/*
 * Apart Arera – Stylesheet der Website.
 *
 * Aufbau und Bausteine wie bei Stella Bianca (design-system.css,
 * navigation.css, styles.css, footer.css, weather.css), damit sich beide
 * Seiten gleich anfühlen – in der Farbe des Logos an der Hausfassade statt
 * in Blau (Entwurf D, Oktober 2026). Eine Datei statt neun; alle Farben
 * hängen an den Variablen unten. Bei Stella standen daneben noch feste
 * Farbwerte in den Komponenten (rgba(71, 127, 186, …)), die beim Umfärben
 * übersehen worden wären – hier läuft alles über --primary-rgb.
 */

/* Schriften – selbst gehostet (bei Stella über Google Fonts) */
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/quicksand-latin-wght.woff2') format('woff2');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato-latin-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato-latin-400-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/lato-latin-700.woff2') format('woff2');
}

:root {
    /* Farben aus dem Logo an der Hausfassade: Braun für Schrift und
       Hauptgipfel, Grau für die hinteren Berge. Das Braun am 14.10.2026 an
       drei Fotos neu gemessen (Farbton 23°, vorher #5c3a31 mit 13° zu rot);
       die Abstufungen darunter im selben Abstand mitgeführt, --secondary
       mit mind. 4,5:1 Kontrast auf Beige. */
    --primary: #6b4a35;
    --primary-rgb: 107, 74, 53;
    --primary-dark: #563a29;
    --secondary: #856550;
    --secondary-light: #cdbcaf;
    --logo-grey: #646568; /* hintere Berge im Logo: Untertitel, Orte, kleine Beschriftungen */

    --background-beige: #f8f5f2;
    --background-white: #ffffff;
    --background-gray: #ece6e2;

    --text-primary: #2e2420;
    --text-secondary: #5f544f;
    --text-light: #786d68;
    --text-white: #ffffff;

    --border-color: #e0d7d2;
    --border-light: #ece6e2;

    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-primary-reverse: linear-gradient(135deg, var(--secondary), var(--primary));

    /* Schrift */
    --font-heading: 'Quicksand', system-ui, sans-serif;
    --font-body: 'Lato', Helvetica, Arial, sans-serif;

    /* Abstände, Rundungen, Schatten, Übergänge */
    --section-padding: 80px;
    --radius-card: 20px;
    --radius-button: 10px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-primary: 0 4px 15px rgba(var(--primary-rgb), 0.25);
    --transition-fast: 150ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Bootstrap auf die Hausfarben stellen */
    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--text-primary);
    --bs-body-bg: var(--background-beige);
    --bs-link-color: var(--secondary);
    --bs-link-color-rgb: 133, 101, 80;
    --bs-link-hover-color: var(--primary);
    --bs-link-hover-color-rgb: var(--primary-rgb);
    --bs-focus-ring-color: rgba(var(--primary-rgb), 0.3);
}

/* Grundlagen */
body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--background-beige);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1, .h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem); }
h2, .h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2rem); }
h3, .h3 { font-size: 1.5rem; color: var(--secondary); }
h4, .h4 { font-size: 1.25rem; }

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

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

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    z-index: 2000;
    padding: 0.5rem 1rem;
    background: var(--background-white);
    border-radius: var(--radius-button);
}

.section-beige,
.section-white {
    padding: var(--section-padding) 0;
}

.section-beige { background-color: var(--background-beige); }
.section-white { background-color: var(--background-white); }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--logo-grey);
    margin-bottom: 2rem;
}

.rounded-image {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    height: auto;
}

/* Knöpfe: gefüllt und Rand – wie bei Stella */
.btn,
.btn-filled,
.btn-outline {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: var(--radius-button);
    transition: all var(--transition-slow);
    letter-spacing: 0.3px;
}

.btn-filled {
    background: var(--gradient-primary);
    color: var(--text-white);
    /* durchsichtiger Rand: gleich hoch wie ein Rand-Knopf daneben */
    border: 2px solid transparent;
    /* Verlauf auch unter dem Rand, sonst wiederholt er sich dort als Streifen */
    background-origin: border-box;
    box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.2);
}

.btn-filled:hover,
.btn-filled:focus-visible {
    background: var(--gradient-primary-reverse);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
    transform: translateY(-2px);
}

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

.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* Navigation – wie navigation.css bei Stella */
.main-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 245, 242, 0.98) 100%);
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: box-shadow var(--transition-slow);
}

.main-nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 0;
    gap: 3rem;
    transition: padding var(--transition-slow);
}

.main-nav.scrolled .nav-container {
    padding: 0.75rem 0;
}

.logo {
    flex-shrink: 0;
    color: var(--primary);
}

.logo:hover {
    color: var(--primary);
    opacity: 0.85;
}

/* Logo im Kopf: 60 px, beim Scrollen 50 px, am Handy 44 px */
.brand-logo {
    display: block;
    height: 60px;
    width: auto;
    transition: height var(--transition-slow);
}

.main-nav.scrolled .brand-logo {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.main-nav .nav-link {
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    padding: 10px 0;
    background: none;
    border: 0;
    font-family: var(--font-body);
    font-size: 1.125rem;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-slow);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after,
.main-nav .nav-link[aria-current]::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    padding-right: 16px !important;
    cursor: pointer;
}

.nav-dropdown-toggle::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform var(--transition-fast);
}

.nav-dropdown.open .nav-dropdown-toggle::before,
.nav-dropdown:hover .nav-dropdown-toggle::before {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--background-white);
    min-width: 220px;
    padding: 12px 0;
    margin-top: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

/* Unsichtbare Brücke, damit das Menü beim Hinüberfahren nicht zuklappt */
.dropdown-content::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
}

.nav-dropdown:hover .dropdown-content,
.nav-dropdown:focus-within .dropdown-content,
.nav-dropdown.open .dropdown-content {
    opacity: 1;
    visibility: visible;
    margin-top: 12px;
}

.dropdown-content a {
    display: block;
    padding: 12px 24px;
    color: var(--primary);
    font-size: 1.05rem;
    transition: all var(--transition-fast);
}

.dropdown-content a:hover,
.dropdown-content a[aria-current] {
    background: var(--background-beige);
    color: var(--secondary);
    padding-left: 28px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.lang-switch,
.mobile-lang {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-switch a,
.mobile-lang a {
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* Am Rechner etwas größer (Wunsch des Inhabers) */
.lang-switch {
    font-size: 1rem;
}

.lang-switch a:hover,
.lang-switch a.active,
.mobile-lang a:hover,
.mobile-lang a.active {
    color: var(--primary);
}

.lang-switch a.active,
.mobile-lang a.active {
    font-weight: 700;
}

.separator {
    color: var(--border-color);
    user-select: none;
}

.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    /* Tippfläche mindestens 44 × 44 px */
    min-width: 48px;
    min-height: 48px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.menu-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all var(--transition-slow);
}

.menu-btn[aria-expanded='true'] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-btn[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded='true'] span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.mobile-nav {
    display: none;
    background: var(--background-white);
    border-top: 1px solid var(--background-gray);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.mobile-nav.active {
    max-height: 600px;
    overflow-y: auto;
}

.mobile-nav-content {
    padding: 1.5rem 1rem;
}

.mobile-link {
    display: block;
    padding: 14px 10px;
    color: var(--primary);
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}

/* Linien nur zwischen den Menüpunkten – nach dem letzten keine mehr */
.mobile-nav-content > .mobile-link:last-of-type {
    border-bottom: 0;
}

.mobile-actions {
    margin-top: 1.5rem;
}

.mobile-lang {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mobile-lang a {
    padding: 12px 1.1rem;
}

/* Buchen und Anfrage im Handy-Menü nebeneinander, gleich breit */
.mobile-buttons {
    display: flex;
    gap: 0.75rem;
}

.mobile-buttons .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
}

/* Buchen und Anfrage im Kopf enger beieinander als zur Sprachwahl */
.nav-actions .btn + .btn {
    margin-left: -0.9rem;
}

@media (max-width: 991.98px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .nav-container {
        padding: 1rem 0;
    }

    .brand-logo,
    .main-nav.scrolled .brand-logo {
        height: 44px;
    }
}

/* Karussell */
.carousel-zoom {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.site-carousel .carousel-item img,
.video-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-apartment .carousel-item img,
.carousel-apartment .video-thumbnail img {
    aspect-ratio: 1.9;
    max-height: 640px;
}

/* Die Fotos der Wohnungen sind höchstens 1024 px breit – auf Inhaltsbreite
   statt bildschirmbreit, sonst wirken sie unscharf */
.carousel-apartment {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

@media (min-width: 1140px) {
    .carousel-apartment {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

.site-carousel .carousel-indicators [data-bs-target] {
    /* Punkt 10 px, Tippfläche 34 × 44 px über durchsichtigen Innenabstand */
    box-sizing: content-box;
    width: 10px;
    height: 10px;
    padding: 17px 12px;
    background: radial-gradient(circle, #fff 0 5px, transparent 5.5px);
    border: 0;
    margin: 0;
}

.video-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    transition: transform var(--transition-slow);
}

.video-thumbnail:hover .video-play-button,
.video-thumbnail:focus-visible .video-play-button {
    transform: translate(-50%, -50%) scale(1.08);
}

.video-thumbnail-text {
    position: absolute;
    left: 50%;
    bottom: 3rem;
    transform: translateX(-50%);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-button);
    background: rgba(var(--primary-rgb), 0.85);
    color: var(--text-white);
    font-weight: 700;
}

.video-dialog {
    width: min(960px, 92vw);
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #000;
}

.video-dialog::backdrop {
    background: rgba(0, 0, 0, 0.85);
}

.video-dialog video {
    display: block;
    width: 100%;
    max-height: 80vh;
}

.video-dialog .dialog-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

/* Kopfbereich der Startseite (Entwurf D): Bild mit Text und Knöpfen */
.hero {
    position: relative;
    height: clamp(440px, 74vh, 700px);
    /* svh: Höhe ohne die ein- und ausblendende Adressleiste am Handy (sonst springt der Bereich) */
    height: clamp(420px, 74svh, 700px);
    overflow: hidden;
    background: var(--primary-dark);
    color: var(--text-white);
}

.hero-image,
.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    object-position: center 35%;
}

/* Eigene Ebene für das Karussell: Bootstrap hebt das aktive Bild per z-index
   an – ohne diese Ebene lag es über dem Verlauf, und der weiße Text stand
   ungeschützt auf hellem Schnee */
.hero-carousel {
    z-index: 0;
}

/* Dunkler Verlauf von unten links, damit der weiße Text auf jedem Bild lesbar bleibt */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(36, 20, 16, 0.82) 0%, rgba(36, 20, 16, 0.45) 45%, rgba(36, 20, 16, 0) 72%),
        linear-gradient(90deg, rgba(36, 20, 16, 0.45) 0%, rgba(36, 20, 16, 0) 60%);
    pointer-events: none;
}

.hero-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding-bottom: clamp(2rem, 6vh, 3.75rem);
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    color: var(--text-white);
    font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
    max-width: 16ch;
    margin-bottom: 1rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-lead {
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
    max-width: 36rem;
    margin-bottom: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Faktenband unter dem Bild */
.facts-band {
    background: #f1e9e5;
    padding: 1.5rem 0;
}

.facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.facts-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    align-items: center;
    padding: 0.35rem 1.25rem;
}

.facts-list li + li {
    border-left: 1px solid rgba(var(--primary-rgb), 0.18);
}

.facts-list .bi,
.facts-list .fact-icon {
    grid-row: span 2;
    /* gleiche Breite für alle Icons, damit die Texte bündig beginnen */
    width: 1.15em;
    text-align: center;
    font-size: 1.9rem;
    color: var(--primary);
    line-height: 1;
}

/* Skifahrer (SVG statt Icon-Schrift) – gleich groß wie die Bootstrap-Icons */
.facts-list .fact-icon {
    width: 1.15em;
    height: 1.15em;
    fill: currentColor;
}

.facts-list strong {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.05rem;
    line-height: 1.2;
}

.facts-list span {
    color: var(--logo-grey);
    font-size: 0.92rem;
}

@media (max-width: 991.98px) {
    .facts-list {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 1rem;
    }

    .facts-list li:nth-child(3) {
        border-left: 0;
    }
}

/* Am Handy 2 × 2 statt vier Zeilen untereinander */
@media (max-width: 575.98px) {
    /* Kompakt: kleine Icons und Schrift, keine Trennstriche (li + li schlug
       vorher die Handy-Regel, die Striche blieben stehen) */
    .facts-band {
        padding: 0.8rem 0;
    }

    .facts-list {
        column-gap: 0.75rem;
        row-gap: 0.6rem;
    }

    .facts-list li,
    .facts-list li + li {
        border-left: 0;
        padding: 0;
        column-gap: 0.5rem;
    }

    .facts-list .bi,
    .facts-list .fact-icon {
        font-size: 1.3rem;
    }

    .facts-list strong {
        font-size: 0.88rem;
    }

    .facts-list span {
        font-size: 0.75rem;
        line-height: 1.25;
    }

    /* Kopfbereich: kürzer und mit kleinerer Schrift */
    .hero {
        height: clamp(400px, 66vh, 560px);
        height: clamp(380px, 66svh, 560px);
    }

    .hero-eyebrow {
        font-size: 0.66rem;
        letter-spacing: 0.08em;
        margin-bottom: 0.35rem;
    }

    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 0.45rem;
    }

    .hero-lead {
        font-size: 0.9rem;
        line-height: 1.45;
    }
}

/* Willkommen: Text mit Gruß, daneben Winter groß und Sommer klein überlappend (Winter hat Vorrang) */
.welcome-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--logo-grey);
    margin-bottom: 0.5rem;
}

.welcome h2 {
    margin-bottom: 1.5rem;
}

.welcome-signature {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    margin-top: 1.5rem;
}

.welcome-images {
    position: relative;
    padding-bottom: 22%;
}

.welcome-image {
    margin: 0;
    position: relative;
}

.welcome-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.welcome-image-main {
    width: 82%;
}

.welcome-image-side {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56%;
}

.welcome-image-side img {
    border: 6px solid var(--background-beige);
}

/* Nur ein Willkommensbild (das andere in der Bildverwaltung leer): volle Breite */
.welcome-images.is-single {
    padding-bottom: 0;
}

.welcome-images.is-single .welcome-image {
    position: relative;
    width: 100%;
}

.welcome-images.is-single .welcome-image-side img {
    border: 0;
}

.welcome-images.is-single .welcome-image-side figcaption {
    left: 1rem;
    top: 1rem;
}

.welcome-image figcaption {
    position: absolute;
    left: 1rem;
    top: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.welcome-image-side figcaption {
    left: 1.4rem;
    top: 1.4rem;
}

/* Am Handy: Winterbild in voller Breite, Sommerbild größer als zuvor darunter versetzt */
@media (max-width: 575.98px) {
    .welcome-images {
        padding-bottom: 34%;
    }

    .welcome-image-main {
        width: 100%;
    }

    .welcome-image-side {
        width: 62%;
    }

    .welcome-image-side img {
        border-width: 4px;
    }
}

/* Wohnungen auf der Startseite */
.apartment-card {
    position: relative;
    height: 100%;
    background: var(--background-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.apartment-card:hover,
.apartment-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.2);
}

.apartment-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.6;
    object-fit: cover;
}

.apartment-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.apartment-card-body h3 a {
    color: var(--primary);
}

.apartment-card-body .btn {
    align-self: flex-start;
    margin-top: auto;
}

.apartment-card-facts {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    color: var(--logo-grey);
    font-weight: 700;
}

.combine-hint {
    margin: 2rem 0 0;
    color: var(--text-secondary);
}

.combine-hint .bi {
    color: var(--primary);
}

/* Veranstaltungen – wie bei Stella */
.events-section {
    background-color: var(--background-beige);
    padding: var(--section-padding) 0 calc(var(--section-padding) - 1.5rem);
}

.events-section-title {
    margin-bottom: 0.5rem;
}

.events-section-subtitle {
    font-size: 1.1rem;
    color: var(--logo-grey);
    margin-bottom: 2rem;
}

.event-card-modern {
    background: var(--background-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.2);
}

.event-image-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    background-color: var(--background-gray);
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card-modern:hover .event-image {
    transform: scale(1.1);
}

.event-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.event-card-modern:hover .event-gradient-overlay {
    opacity: 1;
}

.event-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
    z-index: 2;
    transition: transform 0.3s ease;
}

.event-card-modern:hover .event-date-badge {
    transform: scale(1.1);
}

.event-date-day {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.event-date-month {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-city {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: -8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--logo-grey);
    font-weight: 700;
}

.event-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 20px;
    border-top: 1px solid var(--background-gray);
    margin-top: auto;
}

.event-date-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--logo-grey);
    font-weight: 700;
}

.event-date-text .bi {
    color: var(--primary);
}

.event-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: var(--radius-button);
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.2);
}

.event-link-btn:hover,
.event-link-btn:focus-visible {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
    background: var(--gradient-primary-reverse);
    color: var(--text-white);
}

/* Weitere Veranstaltungen: ausgeblendet nur, wenn JavaScript läuft */
.js .event-item-hidden {
    display: none;
}

.events-more {
    margin: 10px 0 1.5rem;
}

.events-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-button);
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.events-more-btn:hover {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.events-more-count {
    opacity: 0.75;
    font-weight: 400;
}

.events-attribution {
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.events-attribution a {
    color: inherit;
    text-decoration: underline;
    display: inline-block;
    padding: 0 0.25rem;
    min-height: 44px;
    line-height: 44px;
}

/* Am Handy klein und in einer Zeile; der Lizenzlink steht im Fließtext */
@media (max-width: 575.98px) {
    .events-attribution {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .events-attribution a {
        display: inline;
        min-height: 0;
        line-height: inherit;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .event-image-container { height: 220px; }
    .event-card-content { padding: 20px; }

    .event-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .event-link-btn {
        justify-content: center;
    }
}

/* Am Handy kompakt (Entscheidung des Inhabers): niedrigeres Bild, weniger
   Innenabstand, Datum und Knopf in einer Zeile – etwa halb so lang wie vorher */
@media (max-width: 575.98px) {
    #eventsGrid > .event-item {
        margin-bottom: 1rem !important;
    }

    .event-card-modern {
        border-radius: 14px;
    }

    .event-image-container {
        height: 150px;
    }

    .event-date-badge {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        border-radius: 10px;
    }

    .event-date-day {
        font-size: 1.3rem;
    }

    .event-date-month {
        font-size: 0.72rem;
    }

    .event-card-content {
        padding: 14px 16px 16px;
    }

    .event-title {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }

    .event-city {
        margin: 0 0 8px;
        font-size: 0.85rem;
    }

    .event-description {
        margin-bottom: 10px;
        font-size: 0.92rem;
    }

    .event-footer {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        padding-top: 10px;
    }

    .event-date-text {
        font-size: 0.85rem;
    }

    .event-link-btn {
        padding: 0 14px;
        min-height: 44px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* Wetter – wie weather.css bei Stella */
.weather-section {
    background-color: var(--background-white);
    padding: 4rem 0;
}

.weather-headline {
    margin-bottom: 0.5rem;
}

.weather-intro {
    font-size: 1.1rem;
    color: var(--logo-grey);
    margin-bottom: 2rem;
}

.weather-now {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
    padding: 2rem;
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: var(--radius-card);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.25);
}

.weather-now .weather-icon {
    font-size: 4.5rem;
    line-height: 1;
}

.weather-now-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.weather-now-temp {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.weather-now-text {
    font-size: 1.125rem;
}

.weather-now-wind {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.4rem;
}

.weather-days {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    /* Am Handy 2 × 2 wie bei Stella – mit auto-fit stand "Mo" allein in einer Reihe */
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    height: 100%;
}

@media (min-width: 576px) {
    .weather-days {
        grid-template-columns: repeat(4, 1fr);
    }
}

.weather-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 0.5rem;
    background: var(--background-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.weather-day .weather-icon {
    font-size: 2.2rem;
    color: var(--primary);
    line-height: 1;
}

.weather-day-label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--logo-grey);
}

.weather-max {
    font-weight: 700;
    font-size: 1.125rem;
}

.weather-min {
    color: var(--text-light);
    margin-left: 0.35rem;
}

.weather-day-snow {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
}

.weather-source {
    margin: 2rem 0 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

@media (max-width: 767px) {
    .weather-now {
        justify-content: center;
        padding: 1.5rem;
    }
}

/* Handy kompakt: flache "Jetzt"-Karte, die vier Tage in einer Reihe als
   schmale Kacheln (Höchst- über Tiefstwert), engere Abstände */
@media (max-width: 575.98px) {
    .weather-section {
        padding: 2.5rem 0;
    }

    .weather-intro {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .weather-now {
        gap: 1rem;
        padding: 0.9rem 1.25rem;
    }

    .weather-now .weather-icon {
        font-size: 2.75rem;
    }

    .weather-now-temp {
        font-size: 1.75rem;
    }

    .weather-now-text {
        font-size: 1rem;
    }

    .weather-now-wind {
        margin-top: 0.15rem;
    }

    .weather-days {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
    }

    .weather-day {
        gap: 0.3rem;
        padding: 0.7rem 0.2rem;
    }

    .weather-day .weather-icon {
        font-size: 1.5rem;
    }

    .weather-day-label {
        font-size: 0.8rem;
    }

    .weather-day-temp {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    .weather-max {
        font-size: 0.95rem;
    }

    .weather-min {
        margin-left: 0;
        font-size: 0.8rem;
    }

    .weather-day-snow {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    .weather-source {
        margin-top: 1.25rem;
    }
}

/* Buchen */
.booking-section .btn {
    margin-top: 0.5rem;
}

.booking-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.booking-actions .btn {
    margin-top: 0;
}

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

.booking-via {
    margin: 0.6rem 0 0;
    font-size: 0.88rem;
    color: var(--logo-grey);
}

.apartment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Anfrage – wie bei Stella: weißer Grund, schlichte Bootstrap-Felder */
.enquiry-wrapper {
    background-color: var(--background-white);
    padding: 50px 0 30px;
}

.enquiry-formular {
    padding-top: 10px;
}

.enquiry .form-control,
.enquiry .form-select {
    background-color: var(--background-white);
    border-color: var(--border-color);
    border-radius: 0.25rem;
}

.enquiry .form-control:focus,
.enquiry .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.enquiry .form-label {
    margin-bottom: 0.3rem;
}

/* Am Handy: Knöpfe in voller Breite untereinander, Felder mit Tippfläche
   von mindestens 44 px */
@media (max-width: 575.98px) {
    .booking-section .btn,
    .apartment-actions .btn,
    .combine-section .btn,
    .not-found-links .btn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-height: 48px;
        margin-left: 0 !important;
    }

    .apartment-actions {
        flex-direction: column;
    }

    .enquiry .form-control,
    .enquiry .form-select {
        min-height: 48px;
    }
}

/* Feste Leiste unten am Handy: Buchen und Anfragen (Entscheidung des Inhabers).
   Nur auf schmalen Bildschirmen; der Fuß der Seite bekommt Platz dafür. */
.mobile-cta {
    display: none;
}

@media (max-width: 991.98px) {
    .mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1010;
        display: flex;
        gap: 0.6rem;
        padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
        transition: transform var(--transition-slow);
    }

    .mobile-cta .btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        min-height: 48px;
        padding: 0 0.75rem;
    }

    /* Ausgeblendet, solange das Anfrageformular oder das offene Menü zu sehen ist */
    .mobile-cta.is-hidden {
        transform: translateY(110%);
    }

    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
}

.enquiry-privacy {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.25rem 0 0;
}

/* Feld gegen Programme: für Menschen unsichtbar, aber nicht display:none,
   das manche Programme erkennen */
.enquiry-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Fußzeile – wie footer.css bei Stella: Das Logo sitzt auf der Grenze
   zwischen Weiß und Footer-Fläche, und zwar so, dass der Fuß der Berge genau
   auf der Farbkante liegt. Werte aus logo.svg (viewBox 3598 × 1336, Fuß der
   Berge bei y 878): Höhe = 0,3713 × Breite, Fuß bei 0,1784 × Breite. */
.footer-white-section {
    --footer-logo-w: 280px;
    background-color: var(--background-white);
    padding-top: 3rem;
}

.footer-logo-top {
    position: relative;
    z-index: 1;
    line-height: 0;
    /* der Teil unter dem Fuß der Berge ragt in die Footer-Fläche */
    margin-bottom: calc(var(--footer-logo-w) * -0.1929);
}

.footer-logo {
    display: inline-block;
}

.footer-logo .brand-logo {
    display: block;
    width: var(--footer-logo-w);
    height: auto;
}

.modern-footer {
    background-color: var(--background-beige);
    color: var(--text-primary);
    padding: calc(280px * 0.1929 + 2.5rem) 0 1.5rem;
}

@media (max-width: 575.98px) {
    .footer-white-section {
        --footer-logo-w: 220px;
    }

    .modern-footer {
        padding-top: calc(220px * 0.1929 + 2rem);
    }
}

.footer-hosts {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-address-section address {
    color: var(--text-secondary);
    line-height: 1.75;
}

.contact-cards-section {
    margin-bottom: 3rem;
}

.contact-card {
    display: flex;
    align-items: center;
    background: var(--background-white);
    border: 1px solid var(--background-gray);
    border-radius: 1rem;
    padding: 1rem;
    color: inherit;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-sm);
    height: 100%;
    min-height: 80px;
}

.contact-card:hover,
.contact-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    border-color: var(--primary);
    color: inherit;
}

.contact-card-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: var(--radius-button);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    color: var(--text-white);
    font-size: 1.3rem;
}

.contact-card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-card-label {
    font-size: 0.8rem;
    color: var(--logo-grey);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card-value {
    font-size: 0.95rem;
    font-weight: 500;
    word-break: break-word;
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.footer-links-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-link,
.copyright-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* "©" als versteckter Link zur Anmeldung – nicht als Link erkennbar */
.admin-door,
.admin-door:hover,
.admin-door:focus {
    color: inherit;
    text-decoration: none;
    cursor: text;
}

.footer-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-separator {
    color: var(--border-color);
}

.address-comma {
    display: none;
}

/* Bis Tablet: Kontaktkarten als drei kleine Kacheln nebeneinander (Icon und
   Beschriftung); die Adresse/Nummer bleibt für Screenreader im Link */
@media (max-width: 767.98px) {
    .contact-cards-section {
        margin-bottom: 1.5rem;
    }

    .contact-cards-section .row {
        --bs-gutter-x: 0.6rem;
    }

    .contact-card {
        flex-direction: column;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.75rem 0.25rem;
        min-height: 0;
        text-align: center;
    }

    .contact-card-icon {
        margin-right: 0;
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }

    .contact-card-content {
        align-items: center;
    }

    .contact-card-label {
        font-size: 0.72rem;
    }

    .contact-card-value {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* Handy: Adresse in einer Zeile, Datenschutz und Impressum nebeneinander,
   © darunter – Tippflächen bleiben mindestens 44 px hoch */
@media (max-width: 575.98px) {
    .footer-address-section {
        margin-bottom: 1.25rem !important;
    }

    .footer-hosts {
        margin-bottom: 0.2rem;
    }

    .address-comma {
        display: inline;
    }

    .address-break {
        display: none;
    }

    .footer-bottom {
        padding-top: 0.5rem;
    }

    .footer-links-copyright {
        gap: 0;
    }

    .footer-separator {
        display: none;
    }

    .footer-link {
        display: inline-block;
        padding: 0.7rem 1rem;
    }

    .copyright-text {
        flex-basis: 100%;
        text-align: center;
    }

    .modern-footer {
        padding-bottom: 1rem;
    }
}

/* Wohnungsseite */
.apartment-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.apartment-facts li {
    background: var(--background-beige);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    color: var(--primary);
    font-weight: 700;
}

/* SVG-Icon (Bett) so groß und so ausgerichtet wie die Bootstrap-Icons daneben */
.apartment-facts .fact-svg {
    width: 1.3em;
    height: 1.3em;
    vertical-align: -0.3em;
}

/* Handy: Überschrift der Unterseiten wie im Startbild (1,6 rem statt 2 rem),
   Fakten als kleine Labels */
@media (max-width: 575.98px) {
    main h1 {
        font-size: 1.6rem;
    }

    .apartment-facts {
        gap: 0.4rem;
        margin-bottom: 1.25rem;
    }

    .apartment-facts li {
        font-size: 0.76rem;
        padding: 0.3rem 0.65rem;
        /* zweizeilig (lange Zimmerliste, schmale Handys) keine Pille */
        border-radius: 0.9rem;
    }
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* Spalten statt Raster: Ein langer Eintrag rechts schiebt links keine Lücke auf */
    columns: 2 15rem;
    column-gap: 1.5rem;
}

.feature-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    break-inside: avoid;
    margin-bottom: 0.75rem;
}

.feature-list .bi {
    color: var(--primary);
    font-size: 1.25rem;
    line-height: 1.3;
}

/* Galerie */
.gallery-category + .gallery-category {
    margin-top: 3rem;
}

.gallery-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    /* Am Handy ein Raster aus kleinen Vorschauen statt eines Bildes je Zeile
       (vorher rund 9.600 px Scrollen); Spaltenzahl am Handy über die Variable */
    grid-template-columns: repeat(var(--gallery-cols-mobile, 2), minmax(0, 1fr));
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
    }
}

.gallery-item.gallery-item-plan {
    background: var(--background-white);
    border: 1px solid var(--border-light);
}

.gallery-item.gallery-item-plan img {
    object-fit: contain;
}

.gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--background-gray);
    cursor: zoom-in;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.4;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.lightbox {
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* sichtbare Höhe – am Handy ohne die Adressleiste */
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(24, 16, 13, 0.95);
    color: var(--text-white);
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.lightbox-figure {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 4.5rem 3rem;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    max-height: calc(100dvh - 9rem);
    object-fit: contain;
    border-radius: 6px;
}

.lightbox-caption {
    margin-top: 1rem;
    text-align: center;
}

.lightbox-counter {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

.lightbox button {
    position: absolute;
    border: 0;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.lightbox button:hover,
.lightbox button:focus-visible {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 575.98px) {
    .lightbox-figure { padding: 4rem 0.5rem 5rem; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; }
}

/* Handy quer: kaum Höhe – Bild fast bildschirmhoch, Bildtext liegt unten
   auf dem Bild statt darunter (sonst wurde das Bild quer kleiner als hochkant) */
@media (orientation: landscape) and (max-height: 575.98px) {
    .lightbox-figure { padding: 0.5rem 4.5rem; }
    .lightbox-image {
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
    }
    .lightbox-caption {
        position: absolute;
        left: 50%;
        bottom: 0.75rem;
        transform: translateX(-50%);
        max-width: calc(100% - 11rem);
        margin: 0;
        padding: 0.2rem 0.75rem;
        border-radius: 6px;
        background: rgba(24, 16, 13, 0.7);
        font-size: 0.85rem;
    }
    .lightbox-caption:empty { display: none; }
}

/* Rechtliches und 404 */
.legal-highlight {
    margin: 2rem 0 1rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--primary);
    background: var(--background-beige);
    border-radius: 0 10px 10px 0;
}

.legal-highlight h2 {
    margin-top: 0;
}

.legal-highlight p:last-child {
    margin-bottom: 0;
}

.legal-container {
    max-width: 52rem;
}

.legal-page h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
}

.legal-note {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.legal-updated {
    margin-top: 2.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.not-found-code {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 700;
    line-height: 1;
    color: var(--secondary-light);
    margin-bottom: 0.5rem;
}

.not-found-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 56px;
    }

    /* Unterseiten: Überschrift näher an den Kopf (vorher 56 px Luft) */
    main > .section-white:first-child {
        padding-top: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* Tippflächen auf allen Touch-Geräten, also auch auf dem Tablet (Handy-Prüfung,
   Regel 4): Formularfelder, Knöpfe der Veranstaltungen, Links im Fuß */
@media (pointer: coarse) {
    .enquiry .form-control,
    .enquiry .form-select {
        min-height: 48px;
    }

    .event-link-btn {
        min-height: 44px;
    }

    .footer-link {
        display: inline-block;
        padding: 0.7rem 0.5rem;
    }
}

/* Anfrageformular: Paare (Anreise/Abreise, Erwachsene/Kinder) – ab sm wie bei
   Stella untereinander in ihrer Spalte, mit kleinem Abstand dazwischen */
.enquiry-pair {
    --bs-gutter-y: 0.5rem;
}

/* Am Handy kompakt: kurze Felder paarweise nebeneinander, engere Abstände,
   kleinere Nachricht; Felder bleiben 48 px hoch zum Antippen */
@media (max-width: 575.98px) {
    .enquiry .row {
        --bs-gutter-x: 0.75rem;
    }

    .enquiry .mb-3 {
        margin-bottom: 0.75rem !important;
    }

    .enquiry .form-label {
        margin-bottom: 0.2rem;
        font-size: 0.9rem;
    }

    .enquiry textarea.form-control {
        height: 6.5rem;
    }

    .enquiry-privacy {
        margin-top: 0.25rem;
    }
}

/* Wohnungsseite: Bilder stehen jetzt im Beschreibungs-Abschnitt (am Handy vor
   der Ausstattung) – unten weniger Luft bis "Mit der ganzen Gruppe?" */
.apartment-description {
    padding-bottom: 1.5rem;
}
