/* ==================== Allgemein ==================== */
/* CSS Reset: Entfernt Standard-Abstände und setzt box-sizing */
#region Allgemein{
   * {
      /* Entfernt margin und padding von allen Elementen */
      margin: 0;
      padding: 0;
      /* border-box: Größe inkludiert Border und Padding */
      box-sizing: border-box;
   }

   html {
      /* Scroll animiert sanft statt zu springen */
      scroll-behavior: smooth;
   }

   body {
      /* Font für die ganze Seite */
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      /* Zeilenhöhe für bessere Lesbarkeit */
      line-height: 1.6;
   }
}




/* ==================== Header / Navigation ==================== */
/* Header-Bereich: Enthält Logo, Navigation und Burger-Menü für mobile Geräte */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #b4c8f0;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo an der linken Seite */
.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Navigation */
.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    /* Entfernt Unterline von Links */
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    /* Innerer Abstand um den Text */
    padding: 8px 12px;
    /* Abgerundete Ecken */
    border-radius: 5px;
    /* 0.3 Sekunden Animation bei Änderungen */
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    background-color: #7b7de4;
    color: #fff;
    transform: translateY(-2px);
}

.nav-link:active {
    background-color: #5c75d1;
    color: #fff;
}
.nav-link.active {
    background-color: #7b7de4;
    color: #fff;
}
/* Burger-Menü Button */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation: Erstes Strich wird um 45° gedreht und nach rechts-unten verschoben (wird zu /Strich) */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

/* Animation: Mittlerer Strich verschwindet (opacity 0 = unsichtbar) */
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

/* Animation: Dritter Strich wird um -45° gedreht und nach links-oben verschoben (wird zu \Strich) */
/* Zusammen ergibt das das typische "X" Symbol beim Menu */
.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== Main Content ==================== */
/* Hero-Sektion: Großer Bereich oben auf jeder Seite mit Hintergrundbild */
/* background-attachment: fixed; erzeugt Parallax-Effekt beim Scrollen */
/* Parallax: Das Hintergrundbild bewegt sich langsamer als der Text, wenn der Nutzer scrollt */
.first-section {
    
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

/* Homepage Hero mit Winterlandschaft und Parallax */
.first-section.main {
    background-image: url("assets/Winterlandschaft.jpeg");
    background-attachment: fixed;
}

/* Hobbies-Seite Hero mit Sonnenuntergang und Parallax */
.first-section.hobbies {
    background-image: url("assets/Tennis\ Schläger.jpeg");
    background-attachment: fixed;
}

/* Urlaub-Seite Hero mit Wegweiser und Parallax */
.first-section.urlaub {
    background-image: url("assets/Hintergrund\ Cro\ 2.jpg");
    background-attachment: fixed;
}

/* Variante für andere Seiten mit kleinerer Hero-Sektion */
/* Kleinere Hero-Sektion für Unterseiten (50vh statt 80vh) */
.first-section.small-hero {
    height: 50vh;
}

/* Freunde & Familie Seite Hero mit Bild und Parallax */
.first-section.ffpage {
    background-image: url("assets/SU\ Jesolo2.jpeg");
    background-attachment: fixed;
}
/* Schule-Seite Hero mit Schulbild und Parallax */
.first-section.school {
    background-image: url("assets/Schul\ Foto\ selber\ gemacht.jpeg");
    background-attachment: fixed;
   

}

    

.first-section.small-hero.ffpage,
.first-section.small-hero.urlaub {
    position: relative;
    background-clip: url("assets/");
    
}

.ffpage video,
.urlaub video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.first-section.small-hero.urlaub::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.first-section.small-hero.urlaub h1 {
    position: relative;
    z-index: 1;
}

.first-section h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn {
    /* Inline-block: Button wird wie Text aber mit Block-Größe angezeigt */
    display: inline-block;
    /* Innen-Abstand im Button */
    padding: 12px 30px;
    /* Buttons haben diese Farbe (lila/blau) */
    background-color: #7b7de4;
    /* Text ist weiß */
    color: #ffffff;
    text-decoration: none;
    /* Sehr abgerundete Ecken (Pillen-Form) */
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    /* Groß- und Kleinbuchstaben werden zu Großbuchstaben */
    text-transform: uppercase;
    /* Alle Eigenschaften animieren über 0.3 Sekunden */
    transition: all 0.3s ease;
    /* Heller Rand um den Button */
    border: 2px solid #b4c1ee;
    cursor: pointer;
    /* Abstand zwischen mehreren Buttons */
    margin: 5px 10px;
}

.btn:hover {
    /* Bei Mausberührung: Button wird transparent (nur Rand sichtbar) */
    background-color: transparent;
    color: #fff;
    /* Rand wird weiß */
    border-color: #fff;
    /* Button wird um 5% größer */
    transform: scale(1.05);
}

/* Button Group - Buttons nebeneinander */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ==================== About Me Section ==================== */
.steckbrief {
    background-color: #fff;
    padding: 100px 20px;
    scroll-margin-top: 90px; /* damit Anker nicht vom Header verdeckt wird */
}

.steckbrief h1 {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 50px;
    color: #7b7de4;
}

.steckbrief-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.steckbrief-text {
    flex: 1;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
}

.steckbrief-text p {
    margin-bottom: 15px;
}

.steckbrief-bild {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    
}

.steckbrief-bild img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 10px rgba(0,0,0,0.1);
}

/* Overlay-Bilder für cooles Layout */
.about-overlay {
    position: absolute;
    width: 150px;
    height: 1px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #b4c1ee;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    
}

.about-overlay:hover {
    transform: scale(1.1);
}

.about-overlay-1 {
    top: -50px;
    left: -50px;
}

.about-overlay-2 {
    top: -50px;
    right: -50px;
}

.about-overlay-3 {
    bottom: -50px;
    left: -50px;
}

.about-overlay-4 {
    bottom: -50px;
    right: -50px;
}

/* Responsive für Tablet */
@media (max-width: 768px) {
    .about-overlay {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }

    .about-overlay-1 {
        top: -30px;
        left: -30px;
    }

    .about-overlay-2 {
        top: -30px;
        right: -30px;
    }

    .about-overlay-3 {
        bottom: -30px;
        left: -30px;
    }

    .about-overlay-4 {
        bottom: -30px;
        right: -30px;
    }
}

/* Responsive für Handy */
@media (max-width: 480px) {
    .about-overlay {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }

    .about-overlay-1 {
        top: -20px;
        left: -20px;
    }

    .about-overlay-2 {
        top: -20px;
        right: -20px;
    }

    .about-overlay-3 {
        bottom: -20px;
        left: -20px;
    }

    .about-overlay-4 {
        bottom: -20px;
        right: -20px;
    }
}

/* ==================== Steckbrief Info Table ==================== */
.info-table {
    /* Tabelle nimmt volle Breite, maximal aber 700px */
    width: 100%;
    max-width: 700px;
    /* Ränder zwischen Zellen sind nicht verbunden */
    border-collapse: separate;
    /* Abstand zwischen Zellen */
    border-spacing: 0;
    /* Schatten unter der Tabelle */
    box-shadow: 0 6px 18px rgba(120,125,228,0.12);
    /* Überflüssiger Inhalt wird versteckt */
    overflow: hidden;
    /* Tabelle wird zentriert */
    margin: 0 auto;
    /* Stark abgerundete Ecken */
    border-radius: 20px;
}
.info-table tr { background: transparent; }
.info-table td {
    padding: 14px 18px;
    vertical-align: top;
}
.info-table .info-cat {
    /* Kategorie-Spalte (Name, Geburtsjahr, etc.) hat dunkelblauen Hintergrund */
    background: #7b7de4;
    color: #fff;
    font-weight: 700;
    width: 36%;
}
.info-table .info-val {
    /* Wert-Spalte hat Farbverlauf von Blau zu Weiß */
    background: linear-gradient(90deg, #b4c1ee 0%, #ffffff 100%);
    color: #223;
}
.info-table tr + tr .info-cat { border-top: 1px solid rgba(255,255,255,0.06); }

/* Hover subtil */
.info-table tr:hover .info-val { background: linear-gradient(90deg, #dbe6ff 0%, #ffffff 100%); }

/* Mobil: Reihen übereinander stellen, jede Kategorie über ihrem Wert */
@media (max-width: 600px) {
    .info-table, .info-table tbody, .info-table tr, .info-table td { display: block; width: 100%; }
    .info-table td { padding: 12px 14px; }
    .info-table .info-cat { border-radius: 8px 8px 0 0; }
    .info-table .info-val { border-radius: 0 0 8px 8px; margin-bottom: 14px; }
}

/* Responsive für About Me */
@media (max-width: 768px) {
    .steckbrief-container {
        flex-direction: column;
        text-align: center;
    }
    .steckbrief-text, .steckbrief-bild {
        width: 100%;
    }
    .steckbrief-bild {
        margin-bottom: 30px;
        order: -1; /* Bild zuerst */
    }
}

@media (max-width: 480px) {
    .steckbrief h1 {
        font-size: 2.2rem;
    }
    .steckbrief-text {
        font-size: 1rem;
    }
}



/* ==================== Responsive Design ==================== */
/* Responsive CSS: Passt Layout für kleinere Bildschirme an */

/* Tablet/iPad Größe (768px und darunter) */
@media (max-width: 768px) {
    .header {
        padding: 12px 20px;
    }

    .nav {
        /* Dropdown-Menü: Wird mit absolute positioniert, damit es über anderen Elementen liegt */
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        /* Buttons untereinander statt nebeneinander */
        flex-direction: column;
        background-color: #b4c1ee;
        gap: 0;
        /* Trick: max-height von 0 auf 300px animiert das Menü smooth auf/zu */
        /* Das ist besser als display: none/block, weil display nicht animierbar ist */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Wenn die .active Klasse hinzugefügt wird, öffnet sich das Menü */
    .nav.active {
        /* Menü wird jetzt auf 300px max-height expandiert (animiert über 0.3s) */
        max-height: 300px;
    }

    .nav-link {
        width: 100%;
        padding: 15px 20px;
        border-radius: 0;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-link:hover {
        background-color: #7b7de4;
        transform: none;
    }

    .burger-menu {
        display: flex;
    }

    .first-section h1 {
        font-size: 2.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Handy Größe (480px und darunter) */
@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }

    .logo-img {
        height: 40px;
    }

    .burger-menu span {
        width: 22px;
        height: 2.5px;
    }

    .first-section h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}





/* ==================== Hobbies Page - Sections ==================== */


.hobby-section {

    padding: 60px 20px;
    background: #fff;
}

.hobby-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.hobby-image {
    flex: 1;
    min-width: 300px;
}

.hobby-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(123,125,228,0.15);
}

.hobby-text {
    flex: 1;
    min-width: 300px;
}

/* Hobby-Abschnitts-Titel mit dekorativer Unterlinie */
.hobby-text h2 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 2rem;
    color: #7b7de4;
    margin-bottom: 16px;
    padding-bottom: 8px;              /* space for the line */
    position: relative;
    text-transform: uppercase;       /* optional stylistic change */
    letter-spacing: 1px;
}

/* Kleine farbige Linie unter jedem Hobby-Titel */
.hobby-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #7b7de4;
    border-radius: 2px;
}

.hobby-text p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
}

/* Layout abwechselnd - Reihenfolge tauschen */
.hobby-section.alt .hobby-container {
    flex-direction: row-reverse;
}

/* Gallery Section */
.gallery-section {
    padding: 60px 20px;
    background: #f9f9fb;
    scroll-margin-top: 90px;
}

.gallery-section h2 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    color: #7b7de4;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.gallery-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: #7b7de4;
    border-radius: 3px;
}

.gallery-grid {
    /* CSS Grid: Automatische Spalten, die sich je nach Bildschirmgröße anpassen */
    /* repeat(auto-fit, minmax(250px, 1fr)): Mindestens 250px pro Spalte, sonst werden Spalten hinzugefügt */
    /* Beispiel: Bei 1200px Breite passen 4-5 Bilder rein, bei 768px passen 2-3 rein */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Abstand zwischen Bildern */
    gap: 16px;
    /* Grid wird maximal 1200px breit */
    max-width: 1200px;
    /* Grid wird zentriert */
    margin: 0 auto;
    
}

.gallery-grid img {
    /* Bild nimmt volle Breite der Grid-Zelle */
    width: 100%;
    height: 250px;
    /* Bild wird quadratisch zugeschnitten */
    object-fit: cover;
    /* Abgerundete Ecken */
    border-radius: 8px;
    /* Feiner Schatten um Bilder */
    box-shadow: 0 4px 12px rgba(123,125,228,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}

.gallery-grid img:hover {
    /* Bei Mausberührung: Bild wird 2% größer */
    transform: scale(1.03);
    /* Schatten wird stärker */
    box-shadow: 0 8px 20px rgba(123,125,228,0.2);
}

/* Responsive Hobbies */
@media (max-width: 768px) {
    .hobby-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hobby-section.alt .hobby-container {
        flex-direction: column;
    }

    .hobby-image, .hobby-text {
        min-width: 100%;
    }

    .hobby-section {
        padding: 40px 15px;
    }

    .hobby-text h2 {
        font-size: 1.6rem;
    }

    .hobby-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hobby-section {
        padding: 30px 15px;
    }

    .hobby-text h2 {
        font-size: 1.4rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-grid img {
        height: 180px;
    }

    .gallery-section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}


/* ==================== Schule Page – Grid & Lightbox ==================== */
.school-grid-section {
    padding: 60px 20px;
    background: #fff;
    scroll-margin-top: 90px; /* anchor safe */
}

.school-grid-section h2 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    color: #7b7de4;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.school-grid-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: #7b7de4;
    border-radius: 3px;
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.school-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Lightbox: Pop-up Fenster für vergrößerte Bilder - lässt sich mit JavaScript steuern */
.lightbox-overlay {
    /* position: fixed: Bleibt auf Bildschirm, auch wenn man scrollt */
    /* Übernimmt den ganzen Bildschirm und deckt alles ab */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fast schwarzer transparenter Hintergrund */
    background: rgba(0, 0, 0, 0.92);
    /* Flexbox zentriert das große Bild in der Mitte */
    display: flex;
    justify-content: center;
    align-items: center;
    /* opacity: 0 und visibility: hidden = Lightbox ist versteckt */
    /* Das ist besser als display: none, weil display nicht smooth animierbar ist */
    opacity: 0;
    visibility: hidden;
    /* Änderungen animieren smooth über 0.3 Sekunden */
    transition: opacity 0.3s ease;
    /* z-index: 2000 = Lightbox liegt über allem (Header ist 1000) */
    z-index: 2000;
}

/* Wird von JavaScript hinzugefügt, wenn Bild angeklickt wird */
.lightbox-overlay.active {
    /* Lightbox wird jetzt sichtbar und interaktiv */
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-close {
    /* X-Button zum Schließen der Lightbox */
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 2001;
    line-height: 1;
}

.lightbox-close:hover {
    /* X-Button wird heller und größer beim Hover */
    color: #ddd;
    transform: scale(1.2);
}

/* Navigationspfeile */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 2001;
    padding: 0;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Bilderzähler */
/* Zähler: "1 / 5" unten in der Lightbox */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    /* Schwarzer semi-transparenter Hintergrund */
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    /* Sehr abgerundete Ecken (Pille-Form) */
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 2001;
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-nav svg {
        width: 20px;
        height: 20px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        font-size: 2rem;
        right: 15px;
        top: 15px;
    }
}

@media (max-width: 480px) {
    .lightbox-nav {
        width: 36px;
        height: 36px;
    }

    .lightbox-nav svg {
        width: 18px;
        height: 18px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-close {
        font-size: 1.5rem;
        right: 10px;
        top: 10px;
    }
}

@media (max-width: 768px) {
    .school-grid img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .school-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .school-grid img {
        height: 150px;
    }
}


/* ==================== Freunde & Familie - Grid Layout ==================== */
.ff-grid-section {
    padding: 60px 20px;
    background: #f5f7fc;
}

/* CSS Grid mit Template Areas - Layout für Freunde & Familie Seite */
.ff-grid {
    /* 3 gleich breite Spalten (1fr = 1 Freiheit = gleiche Breite) */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;

    /* grid-template-areas: Definiert benannte Bereiche für das Grid */
    /* Jede Box kann mehrere Zellen einnehmen durch wiederholung */
    /* Beispiel: "box1 box1 box2" = box1 nimmt 2 Spalten, box2 nimmt 1 Spalte in Reihe 1 */
    /* Das erlaubt asymmetrische, interessante Layouts */
    grid-template-areas:
        "box1 box1 box2"
        "box3 box4 box4"
        "box5 box5 box5"
        "box5 box5 box5";
}

/* Box-Basis-Styling */
.ff-box {
    /* WeißHintergrund für Boxen */
    background: #fff;
    /* Abgerundete Ecken */
    border-radius: 12px;
    /* Innen-Abstand */
    padding: 24px;
    /* Schatten unter jeder Box */
    box-shadow: 0 8px 20px rgba(123,125,228,0.12);
    /* Animation bei Änderungen */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Überflüssiger Inhalt wird versteckt */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ff-box:hover {
    /* Box hebt sich beim Hover um 4px nach oben */
    transform: translateY(-4px);
    /* Schatten wird intensiver */
    box-shadow: 0 12px 30px rgba(123,125,228,0.18);
}

.ff-box img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Tiergalerie - Grid für mehrere Bilder */
.animal-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.animal-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animal-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(123, 125, 228, 0.2);
}

.ff-box h3 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    color: #7b7de4;
    margin-bottom: 10px;
}

.ff-box p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

/* Grid Areas - Einzelne Boxen */
.ff-box-1 { grid-area: box1; }
.ff-box-2 { grid-area: box2; }
.ff-box-3 { grid-area: box3; }
.ff-box-4 { grid-area: box4; }
.ff-box-5 { grid-area: box5; }
.ff-box-6 { grid-area: box6; }

/* Responsive für Tablet */
@media (max-width: 900px) {
    .ff-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "box1 box2"
            "box3 box4"
            "box5 box5"
            "box6 box6";
    }
}

/* Responsive für Handy */
@media (max-width: 600px) {
    .ff-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "box1"
            "box2"
            "box3"
            "box4"
            "box5"
            "box6";
        gap: 16px;
    }

    .ff-grid-section {
        padding: 40px 15px;
    }

    .ff-box {
        padding: 18px;
    }

    .ff-box img {
        height: 150px;
    }

    .ff-box h3 {
        font-size: 1.1rem;
    }

    .ff-box p {
        font-size: 0.9rem;
    }
}


/* ==================== Account Cards Grid ==================== */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.account-card {
    /* Karten für Instagram, Snapchat, Telefon, Email */
    position: relative;
    width: 100%;
    /* aspect-ratio: 1/1 = Quadratisch (Breite = Höhe), egal wie groß die Card ist */
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(123,125,228,0.18);
    transition: all 0.3s ease;
    cursor: pointer;
    /* Hintergrundbild wird eingefügt über die Klassen .instagram-card etc. */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ::before = Pseudo-Element: erstellt ein Element INNERHALB der Card */
.account-card::before {
    /* Schwarzer semi-transparenter Überzug über dem Hintergrundbild */
    /* Das macht das Hintergrundbild dunkler, damit der weiße Text lesbar ist */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    transition: background 0.3s ease;
    /* z-index: 1 = liegt über dem Hintergrundbild, aber unter dem Text (z-index: 2) */
    z-index: 1;
}

.account-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 2;
    text-align: center;
}

.account-overlay h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.account-overlay p {
    font-size: 1.05rem;
    font-weight: 500;
}

.urlaub-liste-section {
    padding: 70px 20px 40px;
    background: #f5f7fc;
}

.urlaub-liste-section .section-header {
    max-width: 980px;
    margin: 0 auto 30px;
    text-align: center;
}

.urlaub-liste-section h2 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 2.4rem;
    color: #7b7de4;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.urlaub-liste-section p {
    max-width: 760px;
    margin: 0 auto;
    color: #4a5168;
    line-height: 1.7;
}

.reise-liste {
    display: grid;
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.reise-item {
    /* Reise-Karten mit Bild und Text */
    position: relative;
    background: #ffffff;
    border-radius: 22px;
    /* Subtiler Rand */
    border: 1px solid rgba(123, 125, 228, 0.16);
    box-shadow: 0 18px 40px rgba(123, 125, 228, 0.1);
    overflow: hidden;
    display: flex;
    gap: 0;
}

/* ::before = Pseudo-Element: erstellt dekorativen Streifen links */
.reise-item::before {
    /* Farbiger Streifen links neben jeder Reise-Karte */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    /* Streifen ist nur 6px breit */
    width: 6px;
    height: 100%;
    /* linear-gradient(180deg, ...): Farbverlauf von oben nach unten */
    /* 0% = Dunkelblau (#7b7de4), 100% = Hellblau (#a8c1ff) */
    background: linear-gradient(180deg, #7b7de4 0%, #a8c1ff 100%);
    /* Nur die linken Ecken sind abgerundet */
    border-top-left-radius: 22px;
    border-bottom-left-radius: 22px;
    z-index: 2;
}

.reise-bild {
    /* Bild nimmt 280px Breite und 280px Höhe */
    flex: 0 0 280px;
    min-height: 280px;
    overflow: hidden;
    border-radius: 22px 0 0 22px;
}

.reise-bild img {
    width: 100%;
    height: 100%;
    /* Bild wird zugeschnitten, nicht gestreckt */
    object-fit: cover;
    display: block;
}

.reise-inhalt {
    /* Text-Bereich neben dem Bild */
    flex: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reise-item-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.reise-badge {
    min-width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #7b7de4 0%, #a3b5ff 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(123, 125, 228, 0.16);
}

.reise-item h3 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 1.55rem;
    color: #25305f;
    margin-bottom: 6px;
}

.reise-zeitraum {
    color: #5a6590;
    font-weight: 600;
}

.reise-details {
    display: grid;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.reise-details div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #f3f6ff;
    border: 1px solid rgba(123, 125, 228, 0.08);
}

.detail-label {
    color: #7b7de4;
    font-weight: 700;
}

.reise-details span:last-child {
    color: #444b72;
    text-align: right;
    max-width: 75%;
}

@media (max-width: 900px) {
    .reise-item {
        flex-direction: column;
    }

    .reise-bild {
        flex: 0 0 200px;
        min-height: 200px;
        border-radius: 22px 22px 0 0;
    }

    .reise-inhalt {
        padding: 22px;
    }
}

@media (max-width: 800px) {
    .reise-item-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .reise-details div {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .reise-details span:last-child {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .urlaub-liste-section {
        padding: 50px 15px 30px;
    }

    .reise-bild {
        flex: 0 0 150px;
        min-height: 150px;
    }

    .reise-inhalt {
        padding: 16px;
    }

    .reise-badge {
        min-width: 46px;
        height: 46px;
        font-size: 0.95rem;
    }

    .reise-item h3 {
        font-size: 1.2rem;
    }
}

/* Individuelle Hintergrundbilder */
.instagram-card {
    background-image: url("assets/insta.jpg");
}

.snapchat-card {
    background-image: url("assets/snap.jpg");
}

.telefon-card {
    background-image: url("assets/Telefon.jpg");
}

.email-card {
    background-image: url("assets/G-Mail.jpg");
}

/* Hover-Effekt */
.account-card:hover {
    /* Beim Hover: Karte wird größer und hebt sich ab */
    transform: scale(1.05) translateY(-6px);
    box-shadow: 0 18px 45px rgba(123,125,228,0.26);
}

.account-card:hover::before {
    /* Überzug wird transparenter beim Hover */
    background: rgba(0,0,0,0.25);
}

.kontakt-info {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 1rem;
}

/* Responsive Account Cards */
@media (max-width: 700px) {
    .accounts-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .account-card {
        aspect-ratio: 3 / 2;
    }

    .account-overlay h3 {
        font-size: 1.2rem;
    }

    .account-overlay p {
        font-size: 0.95rem;
    }
}

/* ==================== School Grid Section ==================== */
.school-grid-section {
    padding: 60px 20px;
    background: #f5f7fc;
}

/* CSS Grid mit Template Areas */
.school-grid {
    display: grid;
    /* 3-spaltig, 3-zeilig Grid für mehr Boxen */
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;

    /* Grid Areas definieren: gleichmäßige Anordnung */
    grid-template-areas:
        "box7 box8 box9"
        "box4 box5 box6"
        "box1 box2 box3";
        
}

/* Box-Basis-Styling */
.school-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(123,125,228,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.school-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(123,125,228,0.18);
}

.school-box img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.school-box h3 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    color: #7b7de4;
    margin-bottom: 10px;
}

.school-box p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

/* Grid Areas - Einzelne Boxen */
.school-box-1 { grid-area: box1; }
.school-box-2 { grid-area: box2; }
.school-box-3 { grid-area: box3; }
.school-box-4 { grid-area: box4; }
.school-box-5 { grid-area: box5; }
.school-box-6 { grid-area: box6; }
.school-box-7 { grid-area: box7; }
.school-box-8 { grid-area: box8; }
.school-box-9 { grid-area: box9; }

/* Responsive für Tablet */
@media (max-width: 900px) {
    .school-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas:
            "box7 box8 box9"
            "box4 box5 box6"
            "box1 box2 box3";
    }
}

/* Responsive für Handy */
@media (max-width: 600px) {
    .school-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "box1"
            "box2"
            "box3"
            "box4"
            "box5"
            "box6"
            "box7"
            "box8"
            "box9";
        gap: 16px;
    }

    .school-grid-section {
        padding: 40px 15px;
    }

    .school-box {
        padding: 18px;
    }

    .school-box img {
        height: 240px;
    }

    .school-box h3 {
        font-size: 1.1rem;
    }

    .school-box p {
        font-size: 0.9rem;
    }
}

/* ==================== Schule Intro Section ==================== */
.school-intro-section {
    padding: 60px 20px;
    background: #f5f7fc;
}

.school-intro-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(123,125,228,0.12);
}

.school-intro-text {
    flex: 1;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

.school-intro-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #7b7de4;
    margin-bottom: 15px;
}

.school-intro-image {
    flex: 1;
    text-align: center;
}

.school-intro-image a {
    text-decoration: none;
    color: #7b7de4;
    font-weight: 500;
}

.school-intro-image p {
    margin-top: 10px;
    font-size: 0.9rem;
}

.school-intro-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(123,125,228,0.12);
    transition: transform 0.3s ease;
}

.school-intro-image img:hover {
    transform: scale(1.02);
}

/* Responsive für Schule Intro */
@media (max-width: 768px) {
    .school-intro-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .school-intro-text h2 {
        font-size: 1.5rem;
    }
}

/* ==================== Urlaub Grid Section ==================== */
.urlaub-grid-section {
    padding: 60px 20px;
    background: #f5f7fc;
}

/* CSS Grid mit Template Areas */
.urlaub-grid {
    display: grid;
    /* 3-spaltig, 4-zeilig Grid mit gleichen Höhen für alle Reihen */
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;

    /* Grid Areas definieren: kreative Anordnung */
    grid-template-areas:
        "box1 box1 box2"
        "box3 box4 box5"
        "box6 box6 box6"
        "box7 box7 box7";
}

/* Box-Basis-Styling */
.urlaub-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(123,125,228,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Clip-Path: Schneidet die Box in eine Form mit abgeschrägter Ecke */
    clip-path: polygon(0 0, 100% 0, 100% 95%, 95% 100%, 0 100%);
}

.urlaub-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(123,125,228,0.18);
}

.urlaub-box img,
.urlaub-box video {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.urlaub-box h3 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    color: #7b7de4;
    margin-bottom: 10px;
}

.urlaub-box p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

/* Grid Areas - Einzelne Boxen */
.urlaub-box-1 { grid-area: box1; }
.urlaub-box-2 { grid-area: box2; }
.urlaub-box-3 { grid-area: box3; }
.urlaub-box-4 { grid-area: box4; }
.urlaub-box-5 { grid-area: box5; }
.urlaub-box-6 { grid-area: box6; }
.urlaub-box-7 { grid-area: box7; }
     
   


/* Foto-Reihe für mehrere Bilder hintereinander */
.photo-row {
    display: flex;
    gap: 15px;
    margin-bottom: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.photo-row img {
    width: 250px;
    height: 350px;
    /* Bild wird zugeschnitten, nicht gestreckt */
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Responsive für Foto-Reihe */
@media (max-width: 900px) {
    .photo-row img {
        width: 100px;
        height: 150px;
    }
}

@media (max-width: 600px) {
    .photo-row {
        gap: 10px;
    }
    .photo-row img {
        width: 80px;
        height: 300px;
    }
}

/* Responsive für Tablet */
@media (max-width: 900px ) {
    .urlaub-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto auto auto;
        grid-template-areas:
            "box1 box2"
            "box3 box4"
            "box5 box5"
            "box6 box6"
            "box7 box7";
    }

    .urlaub-box {
        padding: 18px;
    }

    .urlaub-box-6 p {
        flex-grow: 0;
    }

    .urlaub-box-6 .photo-row {
        margin-bottom: 8px;
    }

   
}

/* Responsive für Handy */
@media (max-width: 600px) {
    .urlaub-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "box1"
            "box2"
            "box3"
            "box4"
            "box5"
            "box6"
            "box7";
        gap: 16px;
    }

    .urlaub-grid-section {
        padding: 40px 15px;
    }

    .urlaub-box {
        padding: 18px;
    }

    .urlaub-box img,
    .urlaub-box video {
        height: 150px;
    }

    .urlaub-box h3 {
        font-size: 1.1rem;
    }

    .urlaub-box p {
        font-size: 0.9rem;
    }
}

/* ==================== Impressum-Button (fixiert unten-links) ==================== */
.impressum-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #7b7de4;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    z-index: 1100;
}

.impressum-button:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    background-color: #acbaee;
}

.impressum-button svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}



/* ==================== Animierter Titel (Eingang + Glühen) ==================== */
.hello-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.animated-title {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: elegant-entrance 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0s forwards, 
               glow-pulse-shimmer 4s ease-in-out 2.5s infinite;
    position: relative;
    z-index: 10;
}

@keyframes elegant-entrance {
    0% {
        transform: translateY(0) scale(0.2) rotateX(90deg);
        opacity: 0;
        text-shadow: 0 0 0px rgba(255, 255, 255, 0);
    }
    20% {
        transform: translateY(-100px) scale(1.15) rotateX(0deg);
        opacity: 1;
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.9), 
                     2px 2px 8px rgba(0, 0, 0, 0.4),
                     0 0 80px rgba(123, 125, 228, 0.7);
    }
    35% {
        transform: translateY(0) scale(1);
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.7), 
                     0 0 60px rgba(123, 125, 228, 0.5);
    }
    50% {
        transform: translateY(-60px) scale(1.08);
        text-shadow: 0 0 35px rgba(255, 255, 255, 0.8), 
                     0 0 70px rgba(123, 125, 228, 0.6);
    }
    65% {
        transform: translateY(0) scale(1);
    }
    80% {
        transform: translateY(-30px) scale(1.03);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
        text-shadow: 0 0 20px rgba(123, 125, 228, 0.5),
                     0 0 40px rgba(180, 200, 240, 0.3),
                     2px 2px 4px rgba(0, 0, 0, 0.3);
    }
}

@keyframes glow-pulse-shimmer {
    0% {
        text-shadow: 0 0 10px rgba(123, 125, 228, 0.4),
                     0 0 20px rgba(180, 200, 240, 0.2),
                     2px 2px 4px rgba(0, 0, 0, 0.3);
        transform: scale(1);
        letter-spacing: 3px;
    }
    25% {
        text-shadow: 0 0 25px rgba(123, 125, 228, 0.8),
                     0 0 40px rgba(180, 200, 240, 0.5),
                     0 0 60px rgba(255, 255, 255, 0.3),
                     2px 2px 4px rgba(0, 0, 0, 0.3);
        transform: scale(1.02);
        letter-spacing: 4px;
    }
    50% {
        text-shadow: 0 0 40px rgba(123, 125, 228, 1),
                     0 0 60px rgba(180, 200, 240, 0.6),
                     0 0 80px rgba(255, 255, 255, 0.4),
                     2px 2px 4px rgba(0, 0, 0, 0.3);
        transform: scale(1.05);
        letter-spacing: 5px;
        filter: brightness(1.2);
    }
    75% {
        text-shadow: 0 0 25px rgba(123, 125, 228, 0.8),
                     0 0 40px rgba(180, 200, 240, 0.5),
                     0 0 60px rgba(255, 255, 255, 0.3),
                     2px 2px 4px rgba(0, 0, 0, 0.3);
        transform: scale(1.02);
        letter-spacing: 4px;
    }
    100% {
        text-shadow: 0 0 10px rgba(123, 125, 228, 0.4),
                     0 0 20px rgba(180, 200, 240, 0.2),
                     2px 2px 4px rgba(0, 0, 0, 0.3);
        transform: scale(1);
        letter-spacing: 3px;
    }
}


