/* ================================================================
   1. CSS-VARIABLEN & RESET
   Gilt seitenübergreifend für alle HTML-Dateien.
   ================================================================ */

/* Globale Farbpalette und Wiederverwendungswerte.
   Änderungen hier wirken sich auf die gesamte Website aus. */
:root {
    --primary-color: #08468e;
    --secondary-color: #1d1d1f;
    --third-color: #366396;
    --light-gray: #f5f5f7;
    --medium-gray: #86868b;
    --dark-gray: #333333;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Sollte der Höhe Ihrer Navbar entsprechen */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Zentrierter Inhaltsbereich mit maximaler Breite – wird in fast jedem Abschnitt
   aller Seiten als direkte Kind-Klasse der <section>-Elemente genutzt. */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* ================================================================
   2. TYPOGRAPHIE
   ================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 5rem 0;
}

/* Sichtbare Anker für die Abschnitte */
section[id] {
    scroll-margin-top: 80px; /* Sollte der Höhe Ihrer Navbar entsprechen */
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--medium-gray);
    font-size: 1.1rem;
}


/* ================================================================
   3. SCHALTFLÄCHEN
   Werden auf allen Seiten genutzt. Drei Basisvarianten:
     .btn    – Standard-Button (groß, blau gefüllt)
     .btna   – Kleinerer Button, gleiche Farbe wie .btn (z. B. für Karten)
     .btnb   – Umriss-Button (weißer Hintergrund, blauer Rand)
   Modifikatoren: .btn-small, .btn-block, .btn-outline, .btn-primary
   ================================================================ */

/* Primärer Haupt-Button – blaue Fläche, weiße Schrift.
   Genutzt z. B. im Hero-Bereich (index.html) und CTA-Abschnitt. */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--third-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Kleinerer Primär-Button (0.9 rem Schrift) – genutzt in Apartment-Karten
   auf index.html und nordapart.html für „Jetzt buchen"-Links. */
.btna {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btna:hover {
    background-color: var(--third-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Sekundär-Button mit Rahmen (weißer Hintergrund, blauer Rand) –
   genutzt als Alternative neben .btna, z. B. für „Mehr erfahren"-Links. */
.btnb {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition);
    border: 3px solid var(--primary-color) ;
    cursor: pointer;
}

.btnb:hover {
    background-color: var(--third-color);
    border: 3px solid var(--white);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}


/* ================================================================
   4. NAVIGATION
   Fixe Navbar oben auf allen Seiten.
   ================================================================ */

/* Fixe, halbtransparente Navigationsleiste mit Glaseffekt (backdrop-filter).
   Auf allen HTML-Seiten vorhanden. */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Wird per JS (main.js o. Ä.) gesetzt, sobald die Seite gescrollt wird –
   macht die Navbar opaker und fügt einen Schatten hinzu. */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.logo a {
    display: inline-block;  /* Kein Unterstrich, keine Link-Farbe */
    line-height: 0;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
}

/* Unterstrich-Animation beim Hover und für den aktiven Menüpunkt.
   Wächst per CSS-Transition von 0 auf 100 % Breite. */
.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}

/* Hamburger-Menü-Icon – nur auf mobilen Bildschirmen (≤ 992 px) sichtbar.
   Per JS wird .active gesetzt, was die drei Striche zum X animiert. */
.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Die drei horizontalen Striche des Hamburger-Icons.
   Beim Öffnen des Menüs animieren sie sich zu einem X (.menu-toggle.active). */
.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: var(--transition);
}


/* ================================================================
   5. SEITEN-HEADER
   .hero        – Vollbild-Hero auf index.html
   .sub-header  – Kompakter Header (40 vh) auf allen Unterseiten
                  (nordapart.html, Anfrage.html, AGB.html, Gutscheine.html, 404.html)
   ================================================================ */

/* Wrapper für den Seiten-Header (enthält .hero oder .sub-header). */
.main-header {
    position: relative;
    overflow: hidden;
}

/* Vollbild-Hero-Bereich auf index.html.
   Hintergrundbild mit fixem Scrolleffekt (parallax), dunklem Overlay und
   zentriertem Text (.hero-content). */
.hero {
    background-image: url("../images/index/hero-backround.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

/* Kompakter Header (40 vh) mit Hintergrundbild für alle Unterseiten.
   Enthält .page-title mit dem Seitentitel. Genutzt auf: nordapart.html,
   Anfrage.html, AGB.html, Gutscheine.html, gezeiten.html, galerie.html, 404.html. */
.sub-header {
    height: 40vh;
    background-image: url('../images/Meer.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-header:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}

/* Seitentitel zentriert im Banner. margin-top: 100px schiebt ihn
   unter die fixierte Navbar (ca. 80px hoch). */
.page-title {
    margin-top: 100px;
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    color: var(--white);
}

.page-title h1 {
    font-size: 3rem;
    margin: 0;
    animation: fadeInUp 1s ease;
}


/* ================================================================
   6. HAUSÜBERSICHT
   Genutzt auf index.html.
   .house-overview   – Abschnitt mit Text + Bild nebeneinander
   .house-cards      – Karten-Raster für die Wohnungsvorschau
   .house-card       – Einzelne Vorschau-Karte (Bild + Info)
   .house-features   – 3-spaltiges Icon-Feature-Raster innerhalb einer Karte
   .feature          – Einzelne Feature-Kachel (Icon + Titel + Text)
   ================================================================ */

/* Weißer Hintergrundabschnitt für die Haus-Übersicht auf index.html. */
.overview {
    background-color: var(--white);
}

/* Hausübersicht */
.house-overview {
    padding: 5rem 0;
    background-color: var(--white);
}

.house-description {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.house-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.house-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Neu: auch vertikal zentrieren */
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%; /* optional, falls die Höhe variiert */
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature .icon {
    width: 40px;
    height: 40px;
    display: block;
    margin-bottom: 1rem;
    margin-left: 0; /* WICHTIG: kein left-margin! */
    margin-right: 0; /* WICHTIG: kein right-margin! */
    object-fit: contain;
}

.feature h4 {
    margin-bottom: 0.5rem;
}

.house-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.house-image img {
    height: 300px;
    display: block;
    transition: transform 0.5s ease;
}

.house-image:hover img {
    transform: scale(1.03);
}

.house-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.house-card {
    flex: 1 1 400px;
    max-width: 550px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.house-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.house-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.house-card:hover .house-image img {
    transform: scale(1.05);
}

.house-info {
    padding: 2rem;
}

.house-info h3 {
    margin-bottom: 0.5rem;
}

.house-info p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}


/* ================================================================
   7. WICHTIGE INFORMATIONEN / INFO-KARTEN
   Genutzt auf index.html (Abschnitt „Wichtige Informationen").
   .info-cards – 4-spaltiges Karten-Raster
   .info-card  – Einzelne Karte mit rundem Icon, Überschrift und Liste
   .info-icon  – Runder blauer Icon-Kreis oben auf der Karte
   ================================================================ */

/* Abschnitt mit hellgrauem Hintergrundverlauf, enthält die 4 Info-Karten. */
.important-info {
    padding: 5rem 0;
    background: linear-gradient(180deg,var(--white) 0%, var(--light-gray) 20%, var(--light-gray) 90%, var(--white) 100%);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1.5fr);
    gap: 1rem;
    margin-top: 3rem;
}

.info-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    position: relative; /* für absolute Zentrierung falls nötig */
}

.info-icon img {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
    margin-left: 6px;
    /* Kein margin! */
}

.info-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.info-card ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.info-card ul li:before {
    content: none;
}

.info-card ul li {
    margin-bottom: 0.8rem;
    position: relative;
}


/* ================================================================
   8. FERIENWOHNUNGS-DETAILS
   Genutzt auf index.html (Karten-Übersicht) und nordapart.html (Detailbereich).
   .apartments           – Abschnitt mit hellgrauem Hintergrund (index.html)
   .apartment-card       – Klickbare Vorschaukarte (index.html)
   .na-apartment-image   – Großes Vorschaubild (300 px hoch) in Karten auf nordapart.html
   .mn-apartment-image   – Kleineres Vorschaubild (200 px hoch) in Karten auf index.html
   .apartment-details    – Detailbereich pro Wohnung auf nordapart.html
   .apartment-info-grid  – 2-spaltiges Raster: Beschreibung links, Buchungsbox rechts
   .booking-card         – Buchungsbox mit Preisangabe und Kalender-iFrame
   .availability-calendar– iFrame-Wrapper für den Belegungskalender
   .features-grid        – 2-spaltiges Raster der Ausstattungsmerkmale
   ================================================================ */

/* Hellgrauer Hintergrundabschnitt für die Wohnungsübersicht auf index.html. */
.apartments {
    background-color: var(--light-gray);
}

.apartment-section {
    margin-bottom: 4rem;
}

.apartment-section:last-child {
    margin-bottom: 0;
}

.section-title {
    text-align: left;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--medium-gray);
}

.apartment-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.apartment-card {
    flex: 1 1 300px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Großes Vorschaubild (300 px hoch) – genutzt in Apartment-Karten auf nordapart.html. */
.na-apartment-image {
    height: 300px;
    overflow: hidden;
}

.na-apartment-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Kleineres Vorschaubild (200 px hoch) – genutzt in Apartment-Karten auf index.html. */
.mn-apartment-image {
    height: 200px;
    overflow: hidden;
}

.mn-apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.apartment-card:hover .apartment-image img {
    transform: scale(1.05);
}

.apartment-info {
    padding: 1.5rem;
}

.apartment-info h4 {
    margin-bottom: 0.5rem;
}

.apartment-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.apartment-features span {
    background-color: var(--light-gray);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.apartment-features span .icon {
    width: 16px; /* Kleinere Größe für die Icons */
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
    display: inline-block;
}

/* Ferienwohnungs-Detailseite */
.apartment-details {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.apartment-details:nth-child(odd) {
    background-color: var(--white);
}

.apartment-gallery {
    margin-bottom: 3rem;
}

.apartment-info-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
}

.apartment-description h3 {
    margin-bottom: 1.5rem;
}

.apartment-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 10px;
}

.apartment-details:nth-child(odd) .apartment-specs {
    background-color: var(--light-gray);
}

.spec-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.spec-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-right: 0.8rem;
}

.apartment-booking {
    align-self: start;
}

.booking-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.apartment-details:nth-child(odd) .booking-card {
    background-color: var(--light-gray);
}

.booking-card h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.price-from {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.price-from span {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.price-from-info {
    color: var(--medium-gray);
    font-size: 0.75rem;
    text-align: center;
    margin-bottom: 0;
}

.availability-calendar {
    width: 100%;
    height: 435px;
    margin-bottom: 1.5rem;
    border-radius: 5px;
}

.availability-calendar iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background-color: var(--white);
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.apartment-details:nth-child(odd) .feature-item {
    background-color: var(--light-gray);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-item i {
    color: var(--primary-color);
    margin-right: 0.8rem;
}

/* Responsive Design für die Ferienwohnungs-Detailseite */
@media (max-width: 1200px) {
    .house-description {
        gap: 2rem;
    }

    .info-cards {
        gap: 1.5rem;
    }

    .apartment-info-grid {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .page-title h1 {
        font-size: 2.5rem;
    }

    .house-description {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .house-text {
        order: 2;
    }

    .house-image {
        order: 1;
    }

    .info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .apartment-info-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .house-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-title h1 {
        font-size: 2rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .apartment-specs {
        flex-direction: column;
        gap: 1rem;
    }
}


/* ================================================================
   9. BILDERGALERIE & LIGHTBOX
   Nur auf nordapart.html. Gesteuert durch js/nordapart.js.

   Aufbau einer Galerie im HTML:
     .gallery-container
       .na-gallery  (.landscape-gallery oder .portrait-gallery)
         #gallery-fewo1-landscape / #gallery-fewo1-portrait
         #gallery-fewo2-landscape / #gallery-fewo2-portrait
           .na-gallery__stage         ← Bildbühne
             img.na-gallery__main     ← Hauptbild (absolut positioniert)
             .na-gallery__btn--prev/next
             .na-gallery__meta
               .na-gallery__counter
               .na-gallery__fs-btn
           .na-gallery__thumbs        ← Scrollbare Thumbnail-Leiste
             .na-gallery__thumb (×n)
               img

   Responsive Umschaltung:
     ≥ 769 px → .portrait-gallery ausgeblendet, .landscape-gallery sichtbar
     ≤ 768 px → .landscape-gallery ausgeblendet, .portrait-gallery sichtbar

   Fullscreen-Overlay:
     .na-fs-overlay (per JS erstellt, einmalig, an <body> gehängt)
   ================================================================ */

/* Äußerer Wrapper, der die Galerie horizontal zentriert.
   Enthält bis zu zwei .na-gallery-Elemente (landscape + portrait). */
.gallery-container {
    max-width: 1000px;
    margin: 0 auto 2rem;
}

/* ── Galerie-Bühne (Hauptbild) ── */
/* Bildbühne mit definierter Höhe über den ::before-Trick (padding-top).
   position: relative ist nötig damit die absolut positionierten Kindelemente
   (Hauptbild, Buttons, Meta) korrekt im Stage bleiben. */
.na-gallery__stage {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    background: #e8e8e8 center / cover no-repeat;
    margin-bottom: 10px;
}

/* Unsichtbarer Block-Spacer, der die Stage-Höhe erzwingt.
   padding-top in % bezieht sich immer auf die BREITE des Elements –
   damit entsteht das gewünschte Seitenverhältnis unabhängig vom Browser.
   Alle Kindelemente (Hauptbild, Buttons) sind position:absolute und
   liegen über diesem Spacer. */
.na-gallery__stage::before {
    content: '';
    display: block;
    padding-top: 66.67%; /* 3:2 Querformat: Höhe = 2/3 der Breite */
}

/* Hochformat-Galerien (mobil) brauchen ein anderes Verhältnis. */
.na-gallery.portrait-gallery .na-gallery__stage::before {
    padding-top: 150%; /* 2:3 Hochformat: Höhe = 3/2 der Breite */
}

/* Das eigentliche Hauptbild der Galerie.
   Absolut positioniert, füllt den Stage vollständig aus.
   z-index: 1 damit es über dem Stage-Hintergrundbild (Crossfade-Basis) liegt.
   transition: opacity für den Einblend-Effekt beim Bildwechsel (js: nordapart.js). */
.na-gallery__main {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease;
    user-select: none;
    -webkit-user-drag: none;
    z-index: 1;
}

/* ── Navigations-Buttons (Pfeil links / Pfeil rechts) ── */
/* Runder, halbtransparenter Button, absolut positioniert an der linken/rechten
   Seite des Stage. Enthält ein SVG-Pfeil-Icon. */
.na-gallery__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.82);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s, transform 0.2s;
}

.na-gallery__btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.08);
}

.na-gallery__btn--prev { left: 12px; }
.na-gallery__btn--next { right: 12px; }

.na-gallery__btn img {
    width: 22px;
    height: 22px;
    pointer-events: none;
    margin: 0;
    display: block;
}

/* ── Meta-Leiste (Counter + Fullscreen-Button) ── */
/* Absolut am unteren Rand des Stage. Enthält links den Bildnummer-Counter
   und rechts den Fullscreen-Button. pointer-events: none damit der gesamte
   Container nicht klickbar ist; .na-gallery__fs-btn setzt pointer-events: all zurück. */
.na-gallery__meta {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

/* Bildnummer-Pill, z. B. „3 / 10". Text wird per JS (nordapart.js) aktualisiert. */
.na-gallery__counter {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

/* Fullscreen-Button rechts in der Meta-Leiste. Öffnet das .na-fs-overlay via JS. */
.na-gallery__fs-btn {
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: background 0.2s, transform 0.2s;
}

.na-gallery__fs-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.08);
}

.na-gallery__fs-btn img {
    width: 18px;
    height: 18px;
    pointer-events: none;
    margin: 0;
    display: block;
}

/* ── Thumbnail-Strip ── */
/* Horizontal scrollbare Thumbnail-Leiste unterhalb des Stage.
   flex + overflow-x: auto erzeugt die scrollbare Zeile. */
.na-gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.na-gallery__thumbs::-webkit-scrollbar { height: 3px; }
.na-gallery__thumbs::-webkit-scrollbar-track { background: transparent; }
.na-gallery__thumbs::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

/* Einzelnes Thumbnail. flex: 0 0 auto verhindert Schrumpfen/Wachsen.
   .active wird per JS gesetzt und zeigt einen farbigen Rahmen (outline). */
.na-gallery__thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 56px;
    border-radius: 7px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.55;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: opacity 0.2s, transform 0.2s, outline-color 0.2s;
}

.na-gallery.portrait-gallery .na-gallery__thumb {
    width: 56px;
    height: 80px;
}

.na-gallery__thumb:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.na-gallery__thumb.active {
    opacity: 1;
    outline-color: var(--primary-color);
}

.na-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* ── Fullscreen-Overlay ──
   Wird einmalig per JS (nordapart.js) erstellt und an <body> angehängt.
   Standardmäßig unsichtbar (opacity: 0, visibility: hidden).
   .active wird per JS gesetzt → Overlay wird sichtbar (opacity: 1). */
.na-fs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.na-fs-overlay.active {
    opacity: 1;
    visibility: visible;
}

.na-fs-overlay__wrap {
    position: relative;
    width: 88vw;
    height: 88vh;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.na-fs-overlay__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.2s ease;
}

.na-fs-overlay__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    transition: background 0.2s;
}

.na-fs-overlay__nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.na-fs-overlay__nav--prev { left: -70px; }
.na-fs-overlay__nav--next { right: -70px; }

.na-fs-overlay__close {
    position: absolute;
    top: -52px;
    right: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s, transform 0.2s;
}

.na-fs-overlay__close:hover {
    color: #fff;
    transform: scale(1.15);
}

.na-fs-overlay__counter {
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    white-space: nowrap;
}

/* ── Responsive Galerie-Umschaltung ──
   Desktop (≥ 769 px): Hochformat-Galerie ausblenden → Querformat-Bilder sehen besser aus.
   Mobil  (≤ 768 px): Querformat-Galerie ausblenden → Hochformat-Bilder passen besser aufs Handy. */
@media (min-width: 769px) {
    .portrait-gallery { display: none; }
}

@media (max-width: 768px) {
    .landscape-gallery { display: none; }

    .na-gallery__btn { width: 36px; height: 36px; }
    .na-gallery__btn img { width: 18px; height: 18px; }

    .na-fs-overlay__wrap {
        width: 96vw;
        height: 84vh;
    }

    .na-fs-overlay__nav--prev { left: 6px; }
    .na-fs-overlay__nav--next { right: 6px; }

    .na-fs-overlay__close {
        top: -44px;
        right: 0;
        font-size: 30px;
    }

    .na-fs-overlay__counter { bottom: -28px; }
}


/* ================================================================
   10. PREISÜBERSICHT
   Genutzt auf nordapart.html (Abschnitt Preise).
   .price-table         – Responsive Tabelle mit Saisonpreisen
   .price-notes         – Hinweiszeilen unterhalb der Tabelle (mit Icon)
   Auf Mobilgeräten (≤ 600 px) wird die Tabelle in ein Karten-Layout umgewandelt
   (jede Zeile wird zu einer eigenen Karte, Spaltenköpfe via data-label).
   ================================================================ */

/* Abschnitt weißer Hintergrund auf nordapart.html. */
.pricing {
    padding: 5rem 0;
    background-color: var(--white);
}

.price-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.price-table thead {
    background-color: var(--primary-color);
    color: var(--white);
}

.price-table th, .price-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #e0e0e2;
}

.price-table tbody tr:nth-child(even) {
    background-color: var(--light-gray);
}

.price-table tbody tr:hover {
    background-color: rgba(0, 113, 227, 0.05);
}

.price-table tfoot {
    background-color: var(--light-gray);
    font-style: italic;
}

.price-notes {
    color: var(--medium-gray);
}

.price-notes p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--medium-gray);
    gap: 8px; /* sorgt für gleichmäßigen Abstand */
}

.price-notes .icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin: 0; /* Kein margin-left! */
}

@media screen and (max-width: 600px) {
    .price-table, .price-table thead, .price-table tbody, .price-table th, .price-table td, .price-table tr {
        display: block;
        width: 100%;
    }

    .price-table thead tr {
        display: none;
    }

    .price-table tr {
        margin-bottom: 1rem;
        border-radius: 8px;
        background: var(--light-gray);
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        padding: 0.5rem 0.5rem;
    }

    .price-table td {
        display: flex;
        align-items: center;
        border: none;
        padding: 0.5rem 1rem;
        position: relative;
        text-align: left;
        min-height: 36px;
        width: 100%;
        font-size: 1rem;
        box-sizing: border-box;
    }

    .price-table td:before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--primary-color);
        width: 110px;       /* Feste Breite für alle Labels */
        min-width: 110px;   /* Optional, falls Label länger */
        margin-right: 3rem; /* Abstand zum Wert */
        text-align: left;
        flex-shrink: 0;
        display: inline-block;
    }

    .price-table td > * {
        margin-left: 3rem;     /* Keine zusätzliche Einrückung */
    }

    .booking-card {
        padding: 1rem;
    }
}


/* ================================================================
   11. LAGE & GOOGLE MAPS
   Genutzt auf index.html (Abschnitt Lage/Karte).
   .map-placeholder  – Platzhalter-Box, solange Google Maps nicht geladen ist
                       (erscheint wenn Nutzer keine Analytics-Cookies akzeptiert hat)
   .map-container    – Wrapper für den eingebetteten Google-Maps-iFrame
                       (erscheint nach Klick auf „Karte laden"-Button)
   .map-info         – Info-Box neben der Karte (Adresse, Entfernungen)
   ================================================================ */

/* Abschnitt mit hellgrauem Hintergrund auf index.html. */
.location-info {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.location-grid {
    display: grid;
    grid-template-columns: 2fr 2fr; /* 60% / 40% */
    gap: 3rem;
    align-items: start;
}

.maps-grid-container {
    display: grid;
    grid-template-columns: 2fr 2fr; /* 60% Maps, 40% Text */
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-item h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.location-item h3 i {
    color: var(--primary-color);
    margin-right: 0.8rem;
}

.location-item ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.location-item ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.location-item ul li:before {
    content: none;
}

.maps-section {
    width: 100%;
}

.maps-section h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.map-info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: fit-content; /* Wichtig: passt sich dem Inhalt an */
}

.map-info h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.map-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.map-info .icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    color: var(--primary-color);
}

.map-placeholder {
    width: 100%;
    min-height: 665px;
    background-color: var(--light-gray);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--medium-gray);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.map-placeholder:hover {
    border-color: var(--primary-color);
    background-color: #f0f4f8;
}

.placeholder-content {
    text-align: center;
    max-width: 400px;
}

.placeholder-icon {
    margin-bottom: 1rem;
    font-size: 3rem;
}

.placeholder-content h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.placeholder-content p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.privacy-note {
    font-size: 0.8rem !important;
    color: var(--medium-gray) !important;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

.privacy-note a {
    color: var(--primary-color);
    text-decoration: underline;
}

.privacy-note a:hover {
    color: var(--secondary-color);
}

.map-container {
    width: 100%;
    height: 665px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    border: 1px solid #e0e0e2;
}

.map-container iframe {
    border-radius: 15px;
}

/* Loading Animation für Kartenübergang */
/* Wird per JS gesetzt während der iFrame lädt – macht die Box halbtransparent
   und deaktiviert Klicks vorübergehend. */
.map-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Wird per JS gesetzt sobald der iFrame geladen ist – blendet die Karte sanft ein. */
.map-loaded {
    animation: mapFadeIn 0.8s ease-in-out;
}

@keyframes mapFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .location-grid,
    .maps-grid-container {
        grid-template-columns: 1fr; /* Auf mobilen Geräten gestapelt */
        gap: 2rem;
    }

    .map-info {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .location-grid,
    .maps-grid-container {
        gap: 1.5rem;
    }

    .map-info {
        padding: 1.5rem;
    }

    .map-placeholder,
    .map-container {
        height: 300px;
    }

    .placeholder-content {
        padding: 1.5rem;
    }

    .placeholder-content h4 {
        font-size: 1.2rem;
    }

    .placeholder-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .map-placeholder,
    .map-container {
        height: 250px;
    }

    .placeholder-content {
        padding: 1rem;
    }
}


/* ================================================================
   12. FAQ / AKKORDEON
   Genutzt auf nordapart.html (Abschnitt FAQ).
   .accordion-header   – Klickbarer Fragen-Button; .active dreht den Pfeil
   .accordion-content  – Antwort-Bereich; collapsed via max-height: 0;
                         .active fährt ihn auf (max-height: 500px)
   Steuerung per JS in nordapart.js (Abschnitt 5).
   ================================================================ */

/* Abschnitt weißer Hintergrund auf nordapart.html. */
.faq {
    padding: 5rem 0;
    background-color: var(--white);
}

.accordion {
    max-width: 800px;
    margin: 3rem auto 0;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-item button {
    color: var(--primary-color);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header p {
    margin: 1rem;
    line-height: 1.6;
    color: var(--dark-gray);
}

.accordion-header:hover {
    background-color: rgba(0, 113, 227, 0.05);
}

.accordion-header i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.accordion-header.active img {
    transform: rotate(180deg);
}

.accordion-content {
    background-color: var(--light-gray);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    padding: 1rem;
    max-height: 500px;
}

/* Neue Stile für den Text im Akkordeon */
.accordion-content p {
    margin: 1rem;
    line-height: 1.6;
    color: var(--dark-gray);
}


/* ================================================================
   13. CTA-BEREICH (Call to Action)
   Genutzt auf index.html – blauer Balken mit Buchungsaufforderung.
   ================================================================ */

/* Blauer Vollbreiten-Balken mit weißem Text und zwei Buttons. */
.cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta .btn {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta .btn:hover {
    background-color: var(--light-gray);
}

.cta .btn-primary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta .btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
    }
}


/* ================================================================
   14. TESTIMONIALS / KUNDENSTIMMEN
   Genutzt auf index.html. Endlos scrollendes Karussell (CSS-Animation).
   .testimonials-container – Wrapper mit seitlichen Ausblend-Gradienten
   .testimonial-track      – Flex-Zeile der Karten; bewegt sich per CSS-Animation
   .testimonial-slide      – Einzelner Karten-Slot mit fester Breite
   .testimonial-card       – Die eigentliche Bewertungskarte (Bild, Name, Text, Sterne)
   Die Scroll-Animation wird in main.js oder einer anderen JS-Datei gestartet.
   ================================================================ */

/* Grauer Hintergrundabschnitt mit overflow: hidden damit der scrollende Track
   nicht über den Rand hinausragt. */
.testimonials {
    background-color: var(--light-gray);
    padding: 5rem 0;
    overflow: hidden;
    position: relative;
}

.testimonials h2 {
    margin-bottom: 3rem;
}

.testimonials-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.testimonial-description {
    font-size: 1.2rem;
    color: var(--medium-gray);
    text-align: center;
}

/* Gradienten für Ein- und Ausblenden - schmaler für breiteren sichtbaren Bereich */
.testimonials-container:before,
.testimonials-container:after {
    content: '';
    position: absolute;
    top: 0;
    width: 10%; /* Von 15% auf 10% reduziert für breiteren sichtbaren Bereich */
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonials-container:before {
    left: 0;
    background: linear-gradient(to right, var(--light-gray), transparent);
}

.testimonials-container:after {
    right: 0;
    background: linear-gradient(to left, var(--light-gray), transparent);
}

/* Flex-Container aller Karten. Wird per JS mit einer CSS-Animation versehen,
   die ihn kontinuierlich nach links schiebt (Endlos-Karussell-Effekt). */
.testimonial-track {
    display: flex;
    gap: 30px; /* Vergrößert von 20px auf 30px für mehr Abstand */
    padding: 20px 0;
}

/* Jede Slide hat eine feste Breite */
.testimonial-slide {
    flex: 0 0 auto;
    width: 350px;
    transition: opacity 0.5s ease;
}

/* Karten-Styling */
.testimonial-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--primary-color);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h3 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.testimonial-source {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.source-icon {
    height: 16px;
    margin-right: 5px;
}

.testimonial-rating {
    display: flex;
    align-items: center;
}

.testimonial-rating .icon {
    width: 16px; /* Kleinere Größe für die Sterne */
    height: 16px;
    margin-right: 2px; /* Kleiner Abstand zwischen den Sternen */
    display: inline-block;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--dark-gray);
}

.testimonial-date {
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-align: right;
    margin: 0;
}

/* Container breiter machen für Desktop */
@media (min-width: 1200px) {
    .testimonials .container {
        max-width: 1400px; /* Erhöht von 1200px für breiteren Bereich */
    }
}

/* Responsive Design für Testimonials */
@media (max-width: 992px) {
    .testimonial-slide {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .testimonial-slide {
        width: 280px;
    }

    .testimonial-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .testimonial-slide {
        width: 260px;
    }

    .testimonial-image {
        width: 50px;
        height: 50px;
    }

    .testimonial-info h3 {
        font-size: 1rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }
}


/* ================================================================
   15. FREIZEITAKTIVITÄTEN
   Genutzt auf index.html (Abschnitt Aktivitäten).
   .activities-filter – Filterleiste mit Kategorie-Buttons (.filter-btn)
   .activities-grid   – Responsives Karten-Raster
   .activity-card     – Einzelne Aktivitäts-Karte (Bild, Titel, Meta, Text)
   .favorite-badge    – Blaues „Empfehlung"-Label absolut oben rechts auf der Karte
   Karten werden anfangs mit opacity: 0 + translateY(20px) dargestellt und
   beim Einblenden per JS auf opacity: 1 animiert (fade-in-visible).
   ================================================================ */

/* Weißer Hintergrundabschnitt auf index.html. */
.activities {
    background-color: var(--white);
    padding: 5rem 0;
    padding-bottom: 0px;
}

.activities-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--light-gray);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: #e0e0e2;
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.activity-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.activity-image {
    height: 200px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-image img {
    transform: scale(1.05);
}

.activity-content {
    padding: 1.5rem;
}

.activity-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--medium-gray);
    align-items: center;
    white-space: nowrap;
}

.activity-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.activity-content p {
    margin-bottom: 1.2rem;
    color: var(--dark-gray);
}

.activity-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.activity-features span {
    font-size: 0.9rem;
    color: var(--dark-gray);
    align-items: center;
    white-space: nowrap;
}

.activity-features i {
    color: var(--primary-color);
    margin-right: 5px;
}

.activity-meta .icon,
.activity-features .icon {
    width: 16px;
    height: 16px;
}

.favorite-badge .icon {
    width: 20px;
    height: 20px;
}

/* Explizite Anpassungen für die Aktivitäts-Meta und Features */
.activity-meta span,
.activity-features span {
    display: inline-flex !important; /* Erzwingt inline-flex */
    align-items: center !important;
    margin-right: 10px;
}

/* Zusätzliche Anpassungen für die Container */
.activity-meta,
.activity-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

/* Zusätzliche Stile für Favoriten und Restaurants */
.favorite-badge {
    position: absolute;
    top: 10px; /* Geändert von -10px auf 10px */
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
    display: flex;
}

.favorite-badge i {
    color: white;
    margin-right: 5px;
}

/* Versetzter Einblend-Delay pro Karte (staffelartiger Erscheinungseffekt).
   Wirkt zusammen mit .fade-in-element / .fade-in-visible (Abschnitt 21). */
.activity-card:nth-child(1) { transition-delay: 0.05s; }
.activity-card:nth-child(2) { transition-delay: 0.1s; }
.activity-card:nth-child(3) { transition-delay: 0.15s; }
.activity-card:nth-child(4) { transition-delay: 0.2s; }
.activity-card:nth-child(5) { transition-delay: 0.25s; }
.activity-card:nth-child(6) { transition-delay: 0.3s; }
.activity-card:nth-child(7) { transition-delay: 0.35s; }
.activity-card:nth-child(8) { transition-delay: 0.4s; }
.activity-card:nth-child(9) { transition-delay: 0.45s; }
.activity-card:nth-child(10) { transition-delay: 0.5s; }
.activity-card:nth-child(11) { transition-delay: 0.55s; }
.activity-card:nth-child(12) { transition-delay: 0.6s; }

/* Responsive Design für Aktivitäten */
@media (max-width: 992px) {
    .activities-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.7rem 1.2rem;
    }
}


/* ================================================================
   16. KONTAKTBEREICH
   Genutzt auf index.html und Anfrage.html.
   .contact-container      – 2-spaltiges Grid: Gastgeber+Kontaktdaten links, Formular rechts
   .hosts-section          – Gastgeber-Bereich mit Foto und Beschreibung
   .contact-form-container – Hellgrauer Formular-Wrapper
   .contact-form           – Das eigentliche Formular (Name, E-Mail, Datum, Nachricht, etc.)
   .contact-icon           – Runder Icon-Kreis neben Kontaktdaten (absolut zentriertes Icon)
   ================================================================ */

/* Abschnitt auf index.html und Anfrage.html. */
.contact {
    padding-bottom: 3rem; /* Reduziert den Abstand am unteren Rand des Kontaktbereichs */
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

/* Gastgeber-Bereich */
.hosts-section {
    margin-bottom: 3rem;
}

.hosts-section h3 {
    padding-top: 2.5rem;
}

.hosts-container {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.host-image {
    flex: 0 0 200px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.host-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.host-info h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.host-info p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

/* Kontaktdetails */
.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    flex: 0 0 50px;
    height: 50px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 0;
    box-sizing: border-box;
    position: relative; /* Für absolute Positionierung des Icons */
}

.contact-icon .icon {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Perfekte Zentrierung */
    padding: 0;
    margin: 0;
}

.contact-text h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-text p {
    margin-bottom: 0.3rem;
    color: var(--dark-gray);
}

.contact-text .note {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* Kontaktformular mit korrigiertem Hintergrund */
.contact-form-container {
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    height: auto;
    max-height: 875px; /* Ihre erfolgreiche Höhe */
    overflow: visible;
}

.contact-form {
    display: block; /* Ändert von flex zu block */
    height: auto;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e2;
    border-radius: 8px;
    background-color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    color: var(--secondary-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form textarea {
    height: 150px; /* Erhöhte Höhe für das Textfeld */
    resize: vertical; /* Erlaubt dem Benutzer, die Größe anzupassen */
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.contact-form .form-group:last-of-type {
    margin-bottom: 0;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group.half {
    flex: 1;
}

/* Checkbox Styling */
.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    margin-top: 5px;
    margin-right: 10px;
    flex-shrink: 0;
}

.form-group.checkbox label {
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-group.checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-submit {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.form-note {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-align: right;
    padding-bottom: 0; /* Explizit kein Padding am unteren Rand */
}

/* Responsive Design für den Kontaktbereich */
@media (max-width: 1200px) {
    .contact-container {
        gap: 2rem;
    }

    .host-image {
        flex: 0 0 150px;
        height: 150px;
    }
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hosts-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .host-image {
        width: 200px;
        margin: 0 auto;
    }

    .host-info {
        text-align: center;
    }

    .contact-details {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .hosts-section h3 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-details {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 1.5rem;
    }
}


/* ================================================================
   17. FOOTER
   ================================================================ */

footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1 1 200px;
}

.footer-section h3 {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-section p a {
    color: white;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-section .icon {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.footer-section i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--light-gray);
}

.footer-section ul li a:hover {
    color: black;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    overflow: hidden;
    position: relative; /* Wichtig für Zentrierung */
}

.social-icons a img.icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    position: absolute; /* Position absolut für Zentrierung */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-section {
        flex: 1 1 100%;
    }
}


/* ================================================================
   18. COOKIE-BANNER
   Auf allen Seiten eingebunden (js/cookie.js steuert Sichtbarkeit).
   .cookie-banner          – Banner am unteren Rand, per Default ausgeblendet (translateY 100%)
                             .show fährt ihn hoch
   .cookie-settings-float  – Schwebender Zahnrad-Button unten rechts, erscheint nach Consent
                             .show macht ihn sichtbar (scale 0→1)
   .cookie-options         – Liste der Cookie-Kategorien mit Toggle-Checkboxen
   ================================================================ */

/* Cookie-Banner am unteren Bildschirmrand, standardmäßig weggescrollt.
   Wird per JS (.show) hochgefahren wenn kein Consent gespeichert ist. */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-header h3 {
    margin: 0;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--medium-gray);
    transition: color 0.3s ease;
}

.cookie-close:hover {
    color: var(--dark-gray);
}

.cookie-close img {
    max-height: 20px;
}

.cookie-options {
    margin: 1.5rem 0;
}

.cookie-option {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option label {
    font-weight: 600;
    margin-left: 0.5rem;
}

.cookie-description {
    margin-top: 0.5rem;
    margin-left: 1.8rem;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.cookie-policy-link {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-actions button {
    flex: 1;
    min-width: 120px;
}

/* Schwebender Zahnrad-Button unten rechts – erscheint nachdem der Nutzer
   dem Cookie-Banner zugestimmt hat (js/cookie.js setzt .show). Öffnet beim
   Klick erneut den Cookie-Banner zum Ändern der Einstellungen. */
.cookie-settings-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 998;
    font-size: 1.3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: scale(0);
}

.cookie-settings-float.show {
    opacity: 1;
    transform: scale(1);
}

.cookie-settings-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.cookie-settings-float img.icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 576px) {
    .cookie-actions {
        flex-direction: column;
    }

    .cookie-content {
        padding: 1rem;
    }
}


/* ================================================================
   19. BILDERGALERIE-SEITE
   Eigene Foto-Galerie-Seite (nicht nordapart.html, separate Seite sofern vorhanden).
   .gallery-grid     – CSS-Grid mit automatischer Spaltenzahl und fester Zeilenhöhe
   .gallery-item     – Einzelnes Bild-Element
     .landscape      – Nimmt 2 Spalten ein (Querformat)
     .portrait       – Nimmt 2 Zeilen ein (Hochformat)
   .grid-wrapper     – Alternatives Grid-Layout mit .wide/.tall/.big-Klassen
   ================================================================ */

/* Weißer Hintergrundabschnitt der Foto-Galerie-Seite. */
.photo-gallery {
    padding: 5rem 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Querformatbilder nehmen 2 Spalten ein */
.gallery-item.landscape {
    grid-column: span 2;
}

/* Hochformatbilder nehmen 2 Zeilen ein */
.gallery-item.portrait {
    grid-row: span 2;
}

.innergridl {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Justified Grid (Flickr-Stil) — jede Zeile gleich hoch, Breiten variieren */
.grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Verhindert, dass das letzte Element in einer Zeile überdehnt wird */
.grid-wrapper::after {
    content: '';
    flex-grow: 999;
    height: 0;
}

.grid-wrapper > div {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex-grow: 1;
    flex-basis: 220px;
    height: 220px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.grid-wrapper > div.gal-visible {
    opacity: 1;
    transform: translateY(0);
}

.grid-wrapper > div::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.grid-wrapper > div.gal-visible:hover::after {
    background: rgba(0, 0, 0, 0.28);
}

.grid-wrapper > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.grid-wrapper > div.gal-visible:hover > img {
    transform: scale(1.05);
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .innergridl {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-auto-rows: 200px;
    }

    .innergridl {
        padding: 10px;
    }

    .grid-wrapper > div { height: 160px; }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 150px;
        gap: 10px;
    }

    .gallery-item.landscape {
        grid-column: span 1;
    }

    .grid-wrapper {
        gap: 4px;
    }

    .grid-wrapper > div { height: 130px; }
}



/* ================================================================
   20. RECHTLICHE SEITEN
   Genutzt auf AGB.html und Datenschutz-Seiten.
   .legal-content – Weißer Kasten mit abgerundeten Ecken, enthält den gesamten
                    rechtlichen Text (Überschriften, Absätze, Listen, Links).
   ================================================================ */

/* Zentrierter weißer Inhalts-Wrapper für Rechtstexte. */
.legal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.legal-content h2 {
    color: var(--primary-color);
    text-align: left;
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--light-gray);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.legal-content p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: var(--dark-gray);
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
    color: var(--dark-gray);
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #005bbf;
}

.legal-content .date-info {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
    font-style: italic;
    color: var(--medium-gray);
    text-align: right;
}


/* ================================================================
   21. HILFSKLASSEN & ANIMATIONEN
   Gilt seitenübergreifend.
   .gutschein-iframe   – iFrame-Wrapper auf Gutscheine.html
   .icon               – Standard-Größe/Abstände für SVG-Icons (global); wird von
                         .na-gallery__btn img und anderen spezifischen Selektoren überschrieben
   .fade-in-element    – Startzustand für Einblend-Animation (unsichtbar, nach unten versetzt)
   .fade-in-visible    – Wird per JS (IntersectionObserver) gesetzt → Element blendet ein
   .error-container    – Zentrierter Inhalt der 404.html
   .popup-overlay      – Halbtransparentes Modal-Overlay (z. B. für Cookie/Karten-Popup)
   .popup-content      – Weißer Modal-Kasten im Overlay
   ================================================================ */

/* iFrame-Wrapper auf Gutscheine.html – Abstand oben damit Navbar nicht überlappt. */
.gutschein-iframe {
    display: block;
    margin-top: 50px;
}

/* Globale Standard-Größe für alle SVG-Icons mit .icon-Klasse.
   Wird von spezifischeren Selektoren (z. B. .na-gallery__btn img, .feature .icon)
   überschrieben, wo abweichende Größen oder kein margin-right benötigt werden. */
.icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

/* Ausgangszustand für Scroll-Einblendanimation – unsichtbar und leicht nach unten verschoben.
   Wird auf Elemente angewendet die beim Einscroll in den Viewport erscheinen sollen.
   JS (IntersectionObserver) fügt .fade-in-visible hinzu sobald das Element sichtbar wird. */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Endzustand der Einblendanimation – wird per JS gesetzt wenn das Element
   im Viewport sichtbar ist. */
.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    min-height: 60vh;
}

.error-image {
    max-width: 300px;
    margin-bottom: 2rem;
}

.error-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.error-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.error-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Halbtransparentes Overlay für modale Dialoge (z. B. Karten-Bestätigung auf index.html).
   .hidden blendet es per display: none aus. */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s;
}

.popup-content {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 350px;
    box-shadow: var(--shadow);
    position: relative;
}

.popup-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    line-height: 1;
}

.popup-overlay.hidden {
    display: none;
}

/* „Karte laden"-Button auf index.html im .map-placeholder-Bereich.
   .loading wird per JS gesetzt während der iFrame lädt (zeigt Spinner-Animation). */
#enable-maps-button {
    position: relative;
    overflow: hidden;
}

#enable-maps-button:active {
    transform: scale(0.98);
}

#enable-maps-button:hover {
    background-color: var(--third-color);
    box-shadow: 0 4px 15px rgba(8, 70, 142, 0.3);
}

/* Loading-Indikator für Maps-Button */
#enable-maps-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

#enable-maps-button.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .error-title {
        font-size: 2.5rem;
    }

    .error-image {
        max-width: 200px;
    }
}


/* ================================================================
   22. RESPONSIVE DESIGN
   Globale Breakpoint-Anpassungen (Typografie, Navbar, Hero) für alle Seiten.
   Sektionsspezifische Breakpoints stehen jeweils am Ende ihres Abschnitts.
   Breakpoints: 992 px (Tablet), 768 px (Mobil), 576 px (Kleines Mobil)
   ================================================================ */

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        transition: 0.4s;
        text-align: center;
        /* Diese Zeile hinzufügen: */
        display: none;
    }

    .nav-menu.active {
        top: 100px;
        /* Diese Zeile hinzufügen: */
        display: block;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        height: 60vh !important;
        min-height: 300px; /* Mindesthöhe für bessere Darstellung */
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .house-card,
    .apartment-card,
    .highlight-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .placeholder-icon {
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .important-info {
        padding-top: 3rem;
        padding-bottom: 0.5rem;
    }

    .house-overview {
        padding-bottom: 0px;
    }

    .apartment-details {
        padding: 1.5rem 0 0 0;
    }

    .dateFilter {
        white-space: pre;
    }
}
