@font-face {
    font-family: 'Monotype Corsiva Custom';
    src: url('../fonts/MTCORSVA.TTF') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #94272f; 
    --accent-color: #fae478;  
    --text-color: #333;
    --white: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-image: url('../img/hintergrund.jpg'); 
    background-repeat: repeat;
    background-size: 400px; 
    background-attachment: fixed;
    
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.button:hover {
    background-color: #741e25;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.button-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

.content-wrapper {
    width: 800px;
    margin: 20px auto;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.content-wrapper-inv {
    width: 800px;
    margin: 20px auto;
    padding: 40px;
    border-radius: 8px;
}

h1, h2, h3 {
    color: var(--primary-color);
    font-family: 'Monotype Corsiva Custom', "Monotype Corsiva", cursive;
    font-weight: normal;
    text-align: center;
}

h1 {
    font-size: 42px;
    border-bottom: 3px solid var(--accent-color);
    display: table;
    margin: 0 auto;
    padding-bottom: 5px;
}

.schnurrtext {
    font-family: 'Monotype Corsiva Custom', "Monotype Corsiva", cursive;
    font-size: 1.6rem;
    text-align: center;
    line-height: 1.4;
    margin: 20px 0;
    color: var(--text-color);
}

.unterschrift {
    font-family: 'Monotype Corsiva Custom', "Monotype Corsiva", cursive;
    font-size: 1.8rem;
    line-height: 1.4;
    margin: 20px 0;
    color: var(--text-color);
    text-align: right;
    font-weight: bold;
}

.fett {
    font-weight: bold;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 16px 0;
    }
    
    .content-wrapper {
        width: auto;
        margin: 20px;
        padding: 20px;
    }

    .content-wrapper-inv {
        width: auto;
        margin: 20px;
        padding: 20px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.bild-container {
    margin: 30px 0;
    text-align: center;
    display: block;
}

.content-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
}

.bild-unterschrift {
    margin-top: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

.site-footer {
    background-color: #333333;
    color: #ffffff;
    padding: 20px 0;
    margin-top: auto;
    width: 100%;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- COUNTDOWN TIMER --- */
.timer-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap; /* Bricht auf kleinen Handys um */
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 10px;
    min-width: 70px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.timer-number {
    font-size: 2rem;
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; /* Zahlen sind in normaler Schrift besser lesbar */
    line-height: 1;
}

.timer-label {
    font-size: 0.9rem;
    margin-top: 5px;
    text-transform: uppercase;
    color: var(--accent-color); /* Gold */
}

/* Anpassung für kleine Handys */
@media (max-width: 480px) {
    .timer-container {
        gap: 10px;
    }
    .timer-box {
        min-width: 50px;
        padding: 10px;
    }
    .timer-number {
        font-size: 1.5rem;
    }
}

/* --- GALERIE GRID SYSTEM --- */
.gallery-grid {
    display: grid;
    /* Automatische Spalten: Mindestens 250px breit, sonst passend */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px;
    margin-top: 30px;
}

/* Stil für einzelne Bilder */
.gallery-item img {
    width: 100%;
    height: 200px; /* Einheitliche Höhe */
    object-fit: cover; /* Bild füllt Box, ohne sich zu verzerren */
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gallery-item img:hover {
    transform: scale(1.03); /* Leichter Zoom beim Drüberfahren */
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

/* Stil für Jahres-Ordner (Kacheln) */
.gallery-folder {
    text-decoration: none;
    color: var(--text-color);
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: block;
}

.gallery-folder:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}

.folder-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.folder-title {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    background-color: var(--primary-color);
    color: white;
}

.gallery-controls {
    margin-bottom: 20px;
}

/* --- LIGHTBOX (GROSSANSICHT) --- */
.lightbox {
    display: none; /* Standardmäßig unsichtbar */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9); /* Fast schwarzer Hintergrund */
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    animation: zoomIn 0.3s;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* --- LIGHTBOX ERWEITERUNG --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    /* Flexbox anpassen, damit Pfeile und Bild nebeneinander passen */
    flex-direction: column; 
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 85%; /* Etwas kleiner, damit Platz für Pfeile ist */
    max-height: 85%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    animation: zoomIn 0.3s;
}

/* Der Schließen-Button (X) */
.close-btn {
    position: absolute;
    top: 15px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}
.close-btn:hover { color: var(--accent-color); }

/* Die Navigation-Pfeile (Links & Rechts) */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px; /* Damit er genau mittig sitzt */
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none; /* Verhindert Markieren des Pfeils */
    z-index: 10000;
}

/* Positionierung */
.prev { left: 0; border-radius: 0 3px 3px 0; }
.next { right: 0; border-radius: 3px 0 0 3px; }

/* Hover Effekt für Pfeile */
.prev:hover, .next:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Halb-transparenter Hintergrund */
    color: var(--accent-color);
}

/* Mobile Anpassung: Pfeile ganz an den Rand */
@media (max-width: 768px) {
    .prev, .next {
        font-size: 24px;
        padding: 12px;
    }
}

/* --- INFO BOX FÜR SCHNURRKÖNIGE --- */
.schnurrkoenig-box {
    margin-bottom: 20px;
    padding: 20px;
}

.schnurrkoenig-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* Falls du den Text im Info-Block etwas kleiner willst als den riesigen fest-text */
.schnurrkoenig-box .fest-text {
    font-size: 1rem; 
    margin: 0;
    text-align: center;
}

/* Karaoke Effekt */
.karaoke-active {
    color: var(--accent-color); /* Oder z.B. red oder orange */
    text-shadow: 0 0 5px rgba(250, 228, 120, 0.5);
    transition: color 0.2s ease;
    font-weight: bold; /* Optional: Text wird fett */
}

/* --- ZIG-ZAG LAYOUT --- */

/* Container für eine Zeile */
.zigzag-row {
    display: flex;
    align-items: center; /* Vertikal mittig ausrichten */
    gap: 40px;           /* Abstand zwischen Bild und Text */
    margin-bottom: 60px; /* Abstand zur nächsten Zeile */
}

/* Jede ZWEITE Zeile (even) wird umgedreht (Bild rechts, Text links) */
.zigzag-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* Das Bild */
.zigzag-bild {
    flex: 1; /* Nimmt 50% Platz */
}

.zigzag-bild img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
}

/* Der Text */
.zigzag-text {
    flex: 1; /* Nimmt 50% Platz */
    text-align: left; /* Text linksbündig (sieht meist besser aus als zentriert) */
}

/* Die Überschrift im Text */
.zigzag-text h3 {
    margin-top: 0;
    font-size: 1.8rem;
    color: var(--primary-color);
    font-family: 'Monotype Corsiva Custom', cursive;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    margin-bottom: 15px;
}

/* --- MOBILE ANPASSUNG --- */
@media (max-width: 768px) {
    .zigzag-row, 
    .zigzag-row:nth-child(even) {
        flex-direction: column; /* Immer untereinander auf Handy */
        text-align: center;
    }
    
    .zigzag-text {
        text-align: center; /* Auf Handy zentriert */
    }

    .zigzag-row {
        gap: 10px;
        margin-bottom: 40px;
    }
}

