/* ==========================================================================
   NAV - ACTIVE LINK
   ========================================================================== */
.nav-links a.active { color: var(--gold); }

/* ==========================================================================
   PAGE-SPEZIFISCHE STYLES (aus Inline-Styles ausgelagert)
   ========================================================================== */

/* From index.php */
/* CSS für die Bilder nebeneinander */
.about-img-container {
    display: flex;
    flex-direction: row; 
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.about-img-container img {
    width: 50%; 
    max-width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.box-fit {
    object-fit: contain !important;
    background: rgba(255,255,255,0.05);
}

.tech-specs {
    background: #fdfdfd;
    padding: 40px 0;
    border-top: 1px solid #eee;
    margin-top: 40px;
    border-radius: 15px;
}
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    text-align: center;
    align-items: start;
}

/* Tablet & Mobile: 2 Spalten statt alles untereinander */
@media (max-width: 992px) {
    .tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }
}

@media (max-width: 576px) {
    .tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

.tech-item {
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tech-item i {
    font-size: 2.5rem;
    color: var(--gold);
    margin: 0 auto 15px;
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1;
}
.tech-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.tech-item span {
    font-size: 0.9rem;
    color: #777;
}

.reviews-section {
    padding: 60px 0;
    background: #fff;
    text-align: center;
}

/* Desktop: etwas mehr Luft nach Google Bewertungen (Premium Rhythmus) */
@media (min-width: 900px) {
    .reviews-section { padding-bottom: 84px; }
}
.reviews-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.review-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--gold);
}
.stars { color: #fbbc04; margin-bottom: 10px; }
.review-card p { font-style: italic; font-size: 0.95rem; color: #444; }
.reviewer { font-weight: 700; margin-top: 15px; display: block; color: #333; }

.disclaimer { 
    text-align: center; 
    margin: 30px auto 0; 
    color: #ccc; 
    font-size: 0.9rem; 
}

/* --- MAXIMAL KOMPAKTES FORMULAR --- */
.c-row { 
    margin-bottom: 6px !important; 
    gap: 6px !important; 
} 
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 2px; 
    margin: 8px 0; 
    text-align: left;
}
.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    color: #333;
    padding: 2px 0;
}
.check-item input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
}
.method-choice { text-align: center; margin-top: 10px; }
.method-choice p { margin-bottom: 5px; font-size: 0.8rem; color: #666; }
.choice-btns { display: flex; gap: 8px; justify-content: center; }

hr { border: 0; border-top: 1px dashed #eee; margin: 6px 0 !important; }

.c-form input, .c-form select, .c-form textarea {
    padding: 10px 15px !important; 
    margin-bottom: 0 !important;
}

.btn-wa, .btn-mail { 
    padding: 10px 15px !important;
    font-size: 0.95rem;
}

.btn-wa { 
    background: #25d366 !important; 
    color: white !important; 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: 700; 
    flex: 1; 
    text-align: center;
}
.btn-mail { 
    background: var(--gold-metal) !important; 
    color: white !important; 
    border: 1px solid rgba(111, 78, 28, 0.28); 
    border-radius: 5px; 
    font-weight: 700; 
    flex: 1; 
    cursor: pointer; 
    font-family: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.spam-protection {
    margin: 8px 0;
    padding: 5px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
#spam_check {
    width: 50px;
    padding: 3px !important;
    text-align: center;
    border: 1px solid var(--gold);
    border-radius: 4px;
}

/* --- MOBILE MENU KORREKTUR --- */
.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 6px; }
.menu-toggle span { width: 30px; height: 3px; background: #1a1a1a; transition: all 0.3s ease-in-out; }

.toggle-animation span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.toggle-animation span:nth-child(2) { opacity: 0; }
.toggle-animation span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 900px) {
    .menu-toggle { display: flex; z-index: 1001; }
    .about-flex { flex-direction: column; text-align: center; }
    .about-img-container { margin-top: 30px; }
    .c-row { flex-direction: column; } 
    .c-row input[style*="width: 30%"], .c-row input[style*="width: 70%"] { width: 100% !important; }
}

@media (max-width: 600px) {
    .choice-btns { flex-direction: column; }
    .about-img-container { flex-direction: row; } 
    .about-img-container img { height: 250px; }
}

/* From layouts.php */
body { font-family: 'Montserrat', sans-serif; background-color: #fff; }

.section-white { padding: 60px 0; background-color: #fafafa; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.subtitle { display: block; text-align: center; color: var(--gold); letter-spacing: 2px; font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
h2 { text-align: center; font-size: 2.5rem; margin-bottom: 20px; color: var(--dark); }
.divider { width: 60px; height: 3px; background: var(--gold); margin: 0 auto 40px; }

/* Burger Menü Fix */
.menu-toggle span { transition: all 0.3s ease-in-out; }
.toggle-animation span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.toggle-animation span:nth-child(2) { opacity: 0; }
.toggle-animation span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Intro Box */
.intro-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border-top: 4px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 50px;
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    position: sticky;
    top: 90px;
    z-index: 900;
    background: rgba(250,250,250,0.9);
    padding: 10px;
    border-radius: 50px;
}
.filter-btn {
    background: var(--white);
    border: 1px solid #ddd;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-family: inherit;
}
.filter-btn.active, .filter-btn:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.18);
}

/* Galerie Raster */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    transition: opacity 0.4s ease;
}
.cat-heading {
    grid-column: 1 / -1;
    font-size: 1.4rem;
    margin: 40px 0 10px;
    padding-left: 10px;
    border-left: 4px solid var(--gold);
    color: var(--dark);
}

/* Layout Karten */
.gallery-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
}

.gallery-card:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); 
    border-color: var(--gold);
}

.gallery-card img { 
    width: 100%; 
    display: block; 
    transition: 0.3s; 
}

.gallery-info { 
    padding: 15px; 
    text-align: center; 
    background: #fff; 
    transition: 0.3s; 
}

.gallery-info h4 { 
    margin: 0; 
    font-size: 0.9rem; 
    color: #555; 
    text-transform: capitalize; 
    font-weight: 600; 
    transition: 0.3s; 
}

.gallery-card:hover .gallery-info h4 { 
    color: var(--gold); 
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
}
.lightbox-content { 
    max-width: 90%; 
    max-height: 85vh; 
    border: 3px solid var(--gold); 
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    object-fit: contain;
}
.lightbox-caption { color: #fff; margin-top: 15px; font-size: 1.1rem; letter-spacing: 1px; font-weight: 700; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; opacity: 0.7; transition: 0.3s; z-index: 10001; }
.lightbox-close:hover { opacity: 1; color: var(--gold); }

.nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.05);
    color: white; border: none; width: 60px; height: 60px; cursor: pointer; font-size: 1.5rem;
    transition: 0.3s; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    z-index: 10002;
}
.nav-arrow:hover { background: var(--gold); color: white; }
.prev { left: 20px; }
.next { right: 20px; }

@media (max-width: 768px) {
    .nav-arrow { width: 50px; height: 50px; background: rgba(0,0,0,0.6); }
    .filter-container { top: 70px; gap: 5px; padding: 5px; }
    .filter-btn { padding: 8px 15px; font-size: 0.75rem; }
    h2 { font-size: 1.8rem; }
    .intro-box { padding: 25px; }
}

/* From hintergruende.php */
body { font-family: 'Montserrat', sans-serif; background-color: #fff; }

.section-white { padding: 60px 0; background-color: #fafafa; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.subtitle { display: block; text-align: center; color: var(--gold); letter-spacing: 2px; font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
h2 { text-align: center; font-size: 2.5rem; margin-bottom: 20px; color: var(--dark); }
.divider { width: 60px; height: 3px; background: var(--gold); margin: 0 auto 40px; }

/* Burger Menü Fix */
.menu-toggle span { transition: all 0.3s ease-in-out; }
.toggle-animation span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.toggle-animation span:nth-child(2) { opacity: 0; }
.toggle-animation span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Intro Box */
.intro-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border-top: 4px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 50px;
}

/* Galerie Raster */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Hintergrund Karten --- */
.gallery-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
}

.gallery-card:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); 
    border-color: var(--gold);
}

.gallery-card img { 
    width: 100%; 
    display: block; 
    transition: 0.3s; 
    aspect-ratio: 3/2; 
    object-fit: cover; 
}

.gallery-info { padding: 15px; text-align: center; background: #fff; transition: 0.3s; }
.gallery-info h4 { margin: 0; font-size: 0.9rem; color: #555; text-transform: capitalize; font-weight: 600; transition: 0.3s; }

.gallery-card:hover .gallery-info h4 { color: var(--gold); }

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
}
.lightbox-content { 
    max-width: 90%; 
    max-height: 85vh; 
    border: 3px solid var(--gold); 
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    object-fit: contain;
}
.lightbox-caption { color: #fff; margin-top: 15px; font-size: 1.1rem; letter-spacing: 1px; font-weight: 700; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; opacity: 0.7; transition: 0.3s; }
.lightbox-close:hover { opacity: 1; color: var(--gold); }

.nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.05);
    color: white; border: none; width: 60px; height: 60px; cursor: pointer; font-size: 1.5rem;
    transition: 0.3s; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.nav-arrow:hover { background: var(--gold); }
.prev { left: 20px; }
.next { right: 20px; }

@media (max-width: 768px) {
    .nav-arrow { width: 45px; height: 45px; font-size: 1.2rem; background: rgba(0,0,0,0.5); }
    h2 { font-size: 1.8rem; }
    .intro-box { padding: 25px; }
}

/* From gaestebuch.php */
/* CSS Erweitert für die neue Box-Optik */
.content-width { max-width: 1200px; margin: 0 auto 40px; }

.intro-box { 
    background: #fff; 
    border-radius: 12px; 
    border-top: 4px solid var(--gold); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    overflow: hidden;
    margin-bottom: 40px;
}

.gb-form { max-width: 1200px; margin: 0 auto 50px; background: #fff; padding: 30px; border-radius: 15px; border-top: 4px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.gb-entry { background: white; padding: 25px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-left: 5px solid var(--gold); }
.gb-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 0.85rem; color: #888; }
.gb-name { font-weight: 700; color: var(--dark); font-size: 1.1rem; }
.gb-text { line-height: 1.6; color: #444; white-space: pre-wrap; font-size: 0.95rem; }

.btn-delete-admin { display: inline-block; margin-top: 15px; color: #e74c3c; font-size: 0.75rem; text-decoration: none; border: 1px solid #e74c3c; padding: 5px 12px; border-radius: 4px; transition: all 0.3s; background: transparent; cursor:pointer; }
.btn-delete-admin:hover { background: #e74c3c; color: white; }
.status-msg { text-align: center; margin-bottom: 25px; font-weight: 700; padding: 15px; border-radius: 8px; }
.admin-badge { background: #e74c3c; color: white; padding: 6px 15px; border-radius: 20px; font-size: 0.75rem; font-weight:700; text-transform:uppercase; margin-bottom: 20px; display: inline-block; }

.hp-field { display: none !important; }
.captcha-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; background: #eee; padding: 10px; border-radius: 5px; }

.admin-footer { margin-top: 6px; text-align:center; font-size: 12px; color:#aaa; }
.admin-footer a, .admin-footer button { color:#aaa; background:none; border:none; padding:0; font: inherit; cursor:pointer; text-decoration: none; }
.admin-login-box { display:none; margin-top:8px; }
.admin-login-box input { font-size:12px; padding:6px 8px; border:1px solid #ddd; border-radius:5px; font-family:inherit; }

@media (max-width: 600px) {
    .gb-header { flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* Anchor offset for sticky navbar */
section[id] { scroll-margin-top: 110px; }

