/* =========================================================
   FSH Theme – Franz-Senn-Hütte
   Premium-alpin, mobile first.
   ========================================================= */

:root {
    /* Farben */
    --c-bg: #f8f5ef;
    --c-bg-alt: #efeae0;
    --c-ink: #1c1f1d;
    --c-ink-soft: #4d524f;
    --c-line: #d8d2c4;
    --c-line-soft: #ece6d8;
    --c-accent: #2c5b5d;
    --c-accent-strong: #1e4143;
    --c-accent-warm: #b9683f;
    --c-warn: #b65b1c;
    --c-eyebrow: var(--c-accent-strong);
    --c-on-accent: #fffaf2;
    --c-surface: #fffaf2;
    --c-surface-alt: #f5efe5;
    --c-surface-ink: #17201e;
    --c-surface-ink-soft: #4d5651;
    --c-surface-line: #d4ccc0;
    --c-surface-tint: #f2ede5;
    --c-surface-accent: #29504e;
    --c-surface-accent-soft: #dde8e4;
    --c-surface-season: #8a4522;
    --c-surface-season-soft: #f1e4dc;
    --c-surface-on-accent: #fffaf2;

    /* Typo */
    --ff-display: 'Fraunces', Georgia, serif;
    --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fs-xs: 0.78rem;
    --fs-sm: 0.92rem;
    --fs-md: 1rem;
    --fs-lg: 1.18rem;
    --fs-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
    --fs-2xl: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);

    /* Layout */
    --container: 1240px;
    --container-narrow: 760px;
    --gutter: 1rem;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 22, 21, 0.06), 0 8px 24px rgba(15, 22, 21, 0.06);
    --shadow: 0 8px 30px rgba(15, 22, 21, 0.12);
    --header-h: 4.25rem;

    /* Hero */
    --hero-ratio: 1;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    /* Kein globales scroll-behavior: smooth - es animiert in Chrome/Edge jeden Mausrad-Tick
       einzeln und macht das Scrollen stufig. Sanftes Scrollen nur gezielt per JS
       (scrollIntoView({ behavior: 'smooth' }) bei den Tourenkacheln). */
}

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: var(--ff-body);
    font-size: var(--fs-md);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--c-accent-strong);
    text-decoration: none;
}

a:hover {
    color: var(--c-accent-warm);
}

h1,
h2,
h3,
h4 {
    font-family: var(--ff-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 0.6rem;
}

.skiplink {
    position: absolute;
    left: -9999px;
}

.skiplink:focus {
    left: 1rem;
    top: 1rem;
    z-index: 1000;
    background: var(--c-ink);
    color: #fff;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
}

/* Container */
.container {
    width: min(100% - var(--gutter) * 2, var(--container));
    margin-inline: auto;
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* Eyebrow */
.eyebrow {
    margin: 0 0 0.6rem;
    color: var(--c-eyebrow, var(--c-accent-strong));
    font-family: var(--ff-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    /* Bewusst ohne backdrop-filter: der Weichzeichner im klebenden Header wird bei jedem
       Scroll-Frame über den großen Bildern neu berechnet und ließ das Scrollen auf
       PCs mit schwacher Grafik ruckeln. */
    background: rgba(28, 31, 29, 0.96);
    color: var(--c-on-accent);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: var(--header-h);
}

.site-brand {
    color: var(--c-on-accent);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-brand__title {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 600;
}

.site-brand__sub {
    font-size: var(--fs-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Autorensystem-Bedienelemente: Terrakotta + gestrichelte Kontur + Stift kennzeichnen Editier-Funktionen */
.site-header__author-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    border: 2px dashed rgba(255, 250, 242, 0.6);
    border-radius: 8px;
    background: var(--c-accent-warm);
    color: var(--c-on-accent);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

.site-header__author-edit:hover,
.site-header__author-edit:focus-visible {
    background: #9d5330;
    border-color: var(--c-on-accent);
    color: var(--c-on-accent);
}

@media (max-width: 540px) {
    .site-header__author-edit span {
        display: none;
    }

    .site-header__author-edit {
        padding: 0.32rem 0.5rem;
    }
}

.site-nav {
    margin-left: auto;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav__item {
    position: relative;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    color: rgba(255, 250, 242, 0.86);
    font-size: 0.92rem;
    font-weight: 500;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.site-nav__sublist {
    position: absolute;
    top: calc(100% - 0.55rem);
    left: 0;
    min-width: 14rem;
    padding: 0.45rem;
    margin: 0;
    list-style: none;
    border-radius: 10px;
    background: rgba(22, 25, 24, 0.96);
    border: 1px solid rgba(255, 250, 242, 0.1);
    box-shadow: 0 18px 42px rgba(4, 8, 7, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.35rem);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    z-index: 80;
}

.site-nav__item--has-children:hover .site-nav__sublist,
.site-nav__item--has-children:focus-within .site-nav__sublist {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

.site-nav__subitem+.site-nav__subitem {
    margin-top: 0.15rem;
}

/* Gruppen-Label im Touren-Dropdown (Tourenart) */
.site-nav__subgroup {
    margin: 0.6rem 0.85rem 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.66rem;
    font-weight: 700;
    color: rgba(255, 250, 242, 0.45);
}

.site-nav__subgroup:first-child {
    margin-top: 0.35rem;
}

/* "Alle X anzeigen"-Link am Gruppenende */
.site-nav__sublink--all {
    font-size: 0.78rem;
    color: rgba(255, 250, 242, 0.55);
}

/* Absicherung: sehr lange Dropdowns scrollen statt unterm Viewport zu enden
   (nur Desktop - mobil ist das Untermenü statisch eingebettet) */
@media (min-width: 881px) {
    .site-nav__item--has-children .site-nav__sublist {
        max-height: min(72vh, 34rem);
        overflow-y: auto;
    }
}

.site-nav__sublink {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    color: rgba(255, 250, 242, 0.86);
    font-size: 0.9rem;
    line-height: 1.25;
}

.site-nav__sublink:hover,
.site-nav__sublink.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.site-nav__item--lang {
    margin-left: 0.35rem;
    padding-left: 0.55rem;
    border-left: 1px solid rgba(255, 250, 242, 0.18);
}

.site-nav__expand {
    display: none;
}

.site-nav__toggle {
    display: none;
    margin-left: auto;
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
}

.site-nav__bar {
    display: block;
    width: 1.1rem;
    height: 2px;
    margin: 0.22rem auto;
    background: currentColor;
    border-radius: 1px;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.lang-switcher__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    padding: 0.42rem 0.62rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 250, 242, 0.14);
    color: rgba(255, 250, 242, 0.82);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lang-switcher__link:hover,
.lang-switcher__link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.lang-switcher__link.is-fallback {
    opacity: 0.72;
}

@media (max-width: 880px) {

    /* Backdrop-Filter am Header erzeugt einen containing block fuer fixed-Kinder
       und wuerde die Mobile-Nav auf die Header-Hoehe einsperren -> hier deaktivieren. */
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(28, 31, 29, 0.96);
    }

    .site-nav__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    /* Wie bei orf.at: Menü als Panel von rechts, links bleibt die Seite abgedunkelt sichtbar. */
    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: auto;
        right: 0;
        bottom: auto;
        width: min(22rem, 82vw);
        /* Panel nur so hoch wie der Inhalt (wie orf.at); bei sehr langem Inhalt scrollt es. */
        height: auto;
        max-height: calc(100vh - var(--header-h));
        max-height: calc(100dvh - var(--header-h));
        background: rgba(28, 31, 29, 0.98);
        box-shadow: -12px 12px 32px rgba(4, 8, 7, 0.35);
        border-bottom-left-radius: 8px;
        padding: 0.3rem 0 0.9rem;
        margin-left: 0;
        transform: translateX(100%);
        transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s linear 0.25s;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        overflow-y: auto;
        z-index: 60;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s linear 0s;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 0.25rem;
        align-items: stretch;
        width: 100%;
    }

    .site-nav__item {
        width: 100%;
    }

    .site-nav__link {
        padding: 0.85rem 0.8rem;
        font-size: 1.05rem;
        width: 100%;
    }

    .site-nav__sublist {
        position: static;
        min-width: 0;
        padding: 0.2rem 0 0.35rem 0.85rem;
        border: 0;
        border-left: 1px solid rgba(255, 250, 242, 0.12);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
        margin-top: 0.1rem;
    }

    .site-nav__sublink {
        padding: 0.7rem 0.9rem;
        font-size: 0.96rem;
        color: rgba(255, 250, 242, 0.78);
    }

    /* Untermenüs eingeklappt; Pfeil rechts neben dem Hauptpunkt klappt auf. */
    .site-nav__item--has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .site-nav__item--has-children > .site-nav__link {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

    .site-nav__expand {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 3rem;
        height: 3rem;
        border: 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 250, 242, 0.86);
        cursor: pointer;
    }

    .site-nav__expand svg {
        transition: transform 0.2s ease;
    }

    .site-nav__item.is-expanded > .site-nav__expand {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

    .site-nav__item.is-expanded > .site-nav__expand svg {
        transform: rotate(180deg);
    }

    .site-nav__item--has-children > .site-nav__sublist {
        display: none;
        flex: 0 0 100%;
    }

    .site-nav__item--has-children.is-expanded > .site-nav__sublist {
        display: block;
    }

    .site-nav__item--lang {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
        margin-top: 0.35rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 250, 242, 0.1);
    }

    .lang-switcher {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .lang-switcher__link {
        min-width: 3rem;
    }

    .site-nav__item--cta {
        margin-top: 0.5rem;
    }

    body.nav-open {
        overflow: hidden;
    }

    /* Abdunklung der Seite links neben dem Panel (unter dem Header, z-index 50); Klick schließt (fsh-theme.js). */
    body.nav-open::before {
        content: '';
        position: fixed;
        inset: var(--header-h) 0 0 0;
        z-index: 49;
        background: rgba(10, 14, 13, 0.45);
    }

    /* Einträge als volle Zeilen mit Trennlinie */
    .site-nav__list {
        gap: 0;
    }

    .site-nav__item {
        border-bottom: 1px solid rgba(255, 250, 242, 0.1);
    }

    .site-nav__link {
        padding: 0.6rem 1.4rem;
        border-radius: 0;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.25;
    }

    .site-nav__expand {
        margin-right: 0.6rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .site-nav__item--has-children > .site-nav__sublist .site-nav__sublink {
        padding: 0.45rem 0.9rem;
        font-size: 0.92rem;
    }

    .site-nav__item--has-children > .site-nav__sublist {
        margin: 0 0 0.5rem 1.4rem;
    }

    .site-nav__item--lang {
        border-bottom: 0;
        padding: 0.9rem 1.4rem 0;
    }
}

.section-nav {
    margin-bottom: 1.2rem;
}

.section-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.7rem;
    padding: 0.75rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(23, 33, 31, 0.08);
    background: rgba(255, 252, 247, 0.9);
    color: #31403d;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(17, 24, 22, 0.06);
}

.section-nav__link:hover,
.section-nav__link.is-active {
    background: #d7e3d2;
    color: #14201e;
    border-color: rgba(41, 80, 78, 0.18);
}

@media (max-width: 680px) {
    .section-nav__list {
        flex-direction: column;
    }

    .section-nav__link {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.88rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.2s ease;
    border: 1px solid transparent;
}

.button--primary {
    background: var(--c-accent-warm);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.button--primary:hover {
    transform: translateY(-1px);
    background: var(--c-warn);
    color: #fff;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2.4rem, 5.6vw, 4.8rem) 0 clamp(2rem, 4vw, 3.6rem);
    background-color: var(--c-bg-alt);
    color: var(--c-ink);
}

.hero--image::before,
.hero--image::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero--image::before {
    background-image: var(--hero-media);
    background-position: var(--hero-focus, center);
    background-size: cover;
    transform: scale(1.085);
    transform-origin: center center;
    animation: hero-image-zoom-out 6s ease-out forwards;
}

.hero--image::after {
    background-image: linear-gradient(180deg, rgba(15, 22, 21, 0.18), rgba(15, 22, 21, 0.5));
}

.hero--image {
    color: #fff;
}

.hero--image .hero__title,
.hero--image .hero__lead {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero--image .hero__eyebrow {
    color: rgba(255, 250, 242, 0.92);
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 50rem;
}

.hero__title {
    font-size: var(--fs-2xl);
    margin: 0 0 0.6rem;
}

.hero__lead {
    font-size: var(--fs-lg);
    margin: 0 0 0.8rem;
    opacity: 0.95;
}

.hero__cta {
    margin-top: 1.2rem;
}

/* Webcam-Livebild als Link unten rechts im Hero; --plain = reiner Button,
   wenn das Bild älter als 30 min ist oder nicht lädt (fsh-theme.js). */
/* Ecke rechts unten im Hero: ©-Bildnachweis links neben der Webcam-Kachel. */
.hero__corner {
    position: absolute;
    right: clamp(0.75rem, 2vw, 1.5rem);
    bottom: clamp(0.75rem, 2vw, 1.5rem);
    z-index: 3;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.hero__webcam {
    position: relative;
    display: block;
    width: clamp(7.5rem, 15vw, 12rem);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(14, 22, 24, 0.62);
    border: 1px solid rgba(255, 250, 242, 0.35);
    box-shadow: 0 12px 28px rgba(8, 14, 15, 0.35);
    backdrop-filter: blur(4px);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero__webcam:hover,
.hero__webcam:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(8, 14, 15, 0.45);
}

.hero__webcam img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hero__webcam-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    color: #fffaf2;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero__webcam--plain {
    width: auto;
    border-radius: 8px;
}

.hero__webcam--plain .hero__webcam-caption {
    padding: 0.5rem 0.95rem;
}

.hero--compact {
    display: flex;
    align-items: flex-end;
    /* Mindesthöhe statt fester Höhe: lange Titel (Beiträge, Touren) lassen den
       Hero wachsen, statt oben aus dem Bild zu laufen (overflow: hidden). */
    min-height: clamp(10rem, 12vw, 12rem);
    height: auto;
    padding: clamp(2rem, 3.6vw, 3.2rem) 0 clamp(1.44rem, 2.8vw, 2.24rem);
}

.hero--compact .hero__title,
.hero--compact .hero__lead {
    overflow-wrap: anywhere;
}

@media (max-width: 680px) {
    .hero--compact .hero__title {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
        line-height: 1.12;
    }

    .hero--compact .hero__lead {
        font-size: 1rem;
    }
}

.hero--compact .hero__inner {
    /* Kein width: 100% - das hob die seitlichen Container-Abstände (--gutter)
       auf, der Hero-Text klebte auf Mobilgeräten am linken Rand. */
    flex: 0 0 auto;
}

.hero--compact .hero__title {
    margin-bottom: 0.35rem;
}

.hero--compact .hero__lead {
    margin-bottom: 0;
    max-width: 36rem;
}

/* Hero Hochformat: Bild reicht optisch nach unten, ohne Folge-Inhalt zu verschieben */
.hero--portrait {
    --overhang: clamp(4rem, calc((var(--hero-ratio) - 1) * 16rem), 12rem);
    padding-bottom: calc(clamp(2rem, 4vw, 3.6rem) + var(--overhang));
    margin-bottom: calc(-1 * var(--overhang));
}

.hero--portrait.hero--image::before {
    background-position: var(--hero-focus, center top);
}

.hero--compact.hero--portrait {
    padding-bottom: clamp(1.44rem, 2.8vw, 2.24rem);
    margin-bottom: 0;
}

@keyframes hero-image-zoom-out {
    from {
        transform: scale(1.085);
    }

    to {
        transform: scale(1);
    }
}

/* Sections */
.section {
    padding-block: clamp(2rem, 4vw, 3.6rem);
}

.section--intro {
    padding-top: clamp(1.6rem, 3.2vw, 2.8rem);
    padding-bottom: 0;
}

.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.8rem 1.6rem;
    justify-content: space-between;
    margin-bottom: 1.44rem;
}

.section__title {
    margin: 0;
    font-size: var(--fs-xl);
}

.section__more {
    font-weight: 600;
    color: var(--c-accent-strong);
}

/* Notices */
.notices {
    padding-block: 1rem 0;
}

.notice {
    padding: 0.88rem 1.12rem;
    border-radius: var(--radius-lg);
    background: #fff7e6;
    border: 1px solid #f1d99a;
    border-left: 5px solid #d9a53f;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.75rem;
    /* Feste dunkle Textfarben: die Seitenfarben (--c-ink) passen sich dem
       Hero-Bild an und können hell sein — der Banner-Hintergrund ist aber
       immer hell, sonst wird der Text unlesbar. */
    color: #57492c;
}

.notice--warn {
    background: #fde8dc;
    border-color: #efb38c;
    border-left-color: #d2622a;
    color: #5f3a22;
}

.notice__title {
    margin: 0 0 0.35rem;
    font-weight: 700;
    font-family: var(--ff-display);
    font-size: var(--fs-md);
    color: #2f2814;
}

.notice--warn .notice__title {
    color: #46220f;
}

.notice__text {
    margin: 0;
    color: inherit;
    max-width: 75ch;
}

/* WYSIWYG-Inhalte im Hinweis: Absätze, Listen, Links kompakt halten */
.notice__text p {
    margin: 0 0 0.5rem;
}

.notice__text ul,
.notice__text ol {
    margin: 0.25rem 0 0.5rem;
    padding-left: 1.04rem;
}

.notice__text li {
    margin-bottom: 0.15rem;
}

.notice__text > *:last-child,
.notice__text li:last-child {
    margin-bottom: 0;
}

.notice__text a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.notice__text strong {
    color: #2f2814;
}

.notice--warn .notice__text strong {
    color: #46220f;
}

/* Post grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    gap: 1.12rem;
}

.post-card {
    --surface-ink: #1b1f1d;
    --surface-ink-soft: #5b605c;
    --surface-accent: #284946;
    display: flex;
    flex-direction: column;
    background: rgba(255, 250, 242, 0.96);
    color: var(--surface-ink);
    border: 1px solid var(--c-line-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.post-card__media {
    display: block;
    aspect-ratio: 8/5;
    background: var(--c-bg-alt);
    overflow: hidden;
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.post-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(140deg, #d9d3c2, #c1bba9);
}

.post-card__body {
    padding: 0.88rem 1rem 1.12rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-card__meta {
    margin: 0;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--surface-ink-soft);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.post-card__title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
}

.post-card__title a {
    color: var(--surface-ink);
}

.post-card__summary {
    margin: 0;
    color: var(--surface-ink-soft);
}

.post-card__more {
    margin-top: auto;
    font-weight: 600;
    color: var(--surface-accent);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.badge--warn {
    background: #fde0cd;
    color: #8a3a08;
}

/* Tour activity tiles (Raster pro Tourenart mit durchcyclenden Bildern) */
.section--tour-activities {
    padding-top: 2.4rem;
}

.tour-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 0.88rem;
}

/* JS blendet je nach Viewport zufällig gewählte Kacheln aus; das hidden-
   Attribut muss sich gegen das display: block der Klasse durchsetzen. */
.tour-activity-tile[hidden] {
    display: none;
}

.tour-activity-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(150deg, #22403e, #101d1c);
    color: var(--c-on-accent);
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(15, 26, 28, 0.18);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.tour-activity-tile:hover,
.tour-activity-tile:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15, 26, 28, 0.26);
    color: var(--c-on-accent);
}

.tour-activity-tile__stage {
    position: absolute;
    inset: 0;
    display: block;
}

.tour-activity-tile__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1800ms ease-in-out;
    will-change: transform, opacity;
    /* Läuft unabhängig von .is-active weiter, damit die Transform beim Ausblenden nicht zurückspringt */
    animation: tour-tile-kenburns 16s linear forwards;
}

.tour-activity-tile__img.is-active {
    opacity: 1;
}

@keyframes tour-tile-kenburns {
    from {
        transform: translate(var(--kb-x-from, 0), var(--kb-y-from, 0)) rotate(var(--kb-rot-from, 0deg)) scale(var(--kb-scale-from, 1.12));
    }
    to {
        transform: translate(var(--kb-x-to, 0), var(--kb-y-to, 0)) rotate(var(--kb-rot-to, 0deg)) scale(var(--kb-scale-to, 1.24));
    }
}

.tour-activity-tile__scrim {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 3;
    /* Nur hinter den Textzonen abdunkeln: schmales Band oben (Aktivitätsname) und unten (Beschriftung), Bildmitte bleibt frei */
    background:
        linear-gradient(180deg, rgba(13, 22, 21, 0.55) 0%, rgba(13, 22, 21, 0) 100%) top / 100% 4.5rem no-repeat,
        linear-gradient(0deg, rgba(13, 22, 21, 0.62) 0%, rgba(13, 22, 21, 0) 100%) bottom / 100% 6rem no-repeat;
}

.tour-activity-tile__head {
    position: absolute;
    z-index: 4;
    top: 0.9rem;
    left: 0.95rem;
    right: 0.95rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
}

.tour-activity-tile__head strong {
    font-family: var(--ff-display);
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(13, 22, 21, 0.55);
}

.tour-activity-tile__head em {
    font-style: normal;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    background: rgba(13, 22, 21, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    white-space: nowrap;
}

/* Beim Tourenart-Wechsel faden Art (links) und Trefferzahl (rechts) aus
   und mit dem neuen Text wieder ein — synchron zur Bild-Überblendung. */
@media (prefers-reduced-motion: no-preference) {
    .tour-activity-tile__head strong,
    .tour-activity-tile__head em {
        transition: opacity 450ms ease, transform 450ms ease;
    }
}

.tour-activity-tile__head.is-fading strong,
.tour-activity-tile__head.is-fading em {
    opacity: 0;
    transform: translateY(-7px);
}

.tour-activity-tile__caption {
    position: absolute;
    z-index: 4;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    opacity: 0;
    transform: translate(var(--fly-x, 0), var(--fly-y, 24px)) rotate(var(--fly-rot, 0deg)) scale(0.92);
    /* Ausfaden: gemächlich zurück in Richtung Einflugbahn driften */
    transition: opacity 900ms ease-in, transform 900ms ease-in;
    text-shadow: 0 2px 10px rgba(13, 22, 21, 0.6);
}

.tour-activity-tile__caption.is-in {
    opacity: 1;
    transform: none;
    /* Einfliegen: etwas länger und entspannter */
    transition: opacity 1200ms ease-out, transform 1200ms cubic-bezier(0.16, 0.8, 0.26, 1);
}

.tour-activity-tile__caption strong {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
}

.tour-activity-tile__caption span {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
    .tour-activity-tile,
    .tour-activity-tile:hover {
        transition: none;
        transform: none;
    }

    .tour-activity-tile__img {
        animation: none;
        transform: none;
    }

    .tour-activity-tile__caption {
        transform: none;
        transition: opacity 400ms ease;
    }
}

/* Tour collection */
.section--tours {
    padding-top: 3.2rem;
}

/* Tourenfinder: Tabs je Tourenart, Saison/Anspruch als Segmentschalter,
   Dauer + Sortierung als Auswahl, Suche, Chips für aktive Filter. */
.tour-finder {
    display: grid;
    gap: 0.84rem;
    margin-bottom: 1.2rem;
    padding: 1.04rem clamp(0.8rem, 1.92vw, 1.36rem) 0.96rem;
    border: 1px solid var(--c-surface-line);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
    color: var(--c-surface-ink);
    box-shadow: var(--shadow-sm);
}

.tour-finder__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem 1.2rem;
}

.tour-finder__head h2 {
    margin: 0;
    color: var(--c-surface-ink);
}

.tour-finder__head .eyebrow {
    color: var(--c-surface-accent);
}

.tour-finder__count {
    margin: 0 0 0.25rem;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--c-surface-ink-soft);
    font-variant-numeric: tabular-nums;
}

/* Tabs: Textreiter mit Unterstrich, auf schmalen Screens seitlich scrollbar */
.tour-tabs {
    display: flex;
    gap: 0.15rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--c-surface-line);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tour-tabs::-webkit-scrollbar {
    display: none;
}

.tour-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: -1px;
    padding: 0.55rem 0.9rem 0.7rem;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--c-surface-ink-soft);
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.tour-tab:hover {
    color: var(--c-surface-ink);
}

.tour-tab.is-active {
    color: var(--c-surface-accent);
    border-bottom-color: var(--c-surface-accent);
}

.tour-tab.is-empty {
    opacity: 0.45;
}

.tour-tab__count {
    min-width: 1.65rem;
    padding: 0.08rem 0.45rem;
    border-radius: 8px;
    background: var(--c-surface-tint);
    color: var(--c-surface-ink-soft);
    font-size: 0.76rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.tour-tab.is-active .tour-tab__count {
    background: var(--c-surface-accent);
    color: var(--c-surface-on-accent);
}

/* Steuerelemente: beschriftete Gruppen in einem flexiblen Raster */
.tour-finder__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.12rem;
    align-items: flex-start;
}

.tour-control {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
    flex: 0 0 auto;
}

.tour-control--duration {
    flex: 1 1 10rem;
}

.tour-control--sort {
    flex: 1 1 12rem;
}

.tour-control--search {
    flex: 1 1 16rem;
}

.tour-control__label {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-surface-ink-soft);
}

.tour-segment {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    padding: 0.22rem;
    border-radius: 8px;
    background: var(--c-surface-tint);
    justify-self: start;
}

.tour-segment__button {
    min-height: 2.1rem;
    padding: 0.35rem 0.85rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--c-surface-ink-soft);
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.tour-segment__button:hover {
    color: var(--c-surface-ink);
}

.tour-segment__button.is-active {
    background: var(--c-surface-accent);
    color: var(--c-surface-on-accent);
    box-shadow: var(--shadow-sm);
}

.tour-select {
    width: 100%;
    min-height: 2.65rem;
    padding: 0.45rem 1.84rem 0.45rem 0.85rem;
    border: 1px solid var(--c-surface-line);
    border-radius: 6px;
    background: var(--c-surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%234d5651' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 0.85rem center;
    color: var(--c-surface-ink);
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.tour-search {
    position: relative;
    display: block;
}

.tour-search input {
    width: 100%;
    min-height: 2.65rem;
    padding: 0.6rem 2.08rem 0.6rem 0.85rem;
    border: 1px solid var(--c-surface-line);
    border-radius: 6px;
    background: var(--c-surface);
    color: var(--c-surface-ink);
    font: inherit;
    font-size: var(--fs-sm);
}

.tour-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.tour-search__clear {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    width: 1.75rem;
    height: 1.75rem;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--c-surface-tint);
    color: var(--c-surface-ink-soft);
    font: inherit;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.tour-search__clear:hover {
    background: var(--c-surface-accent-soft);
    color: var(--c-surface-accent);
}

/* Aktive Filter als entfernbare Chips + Zurücksetzen */
.tour-finder__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.6rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--c-surface-line);
    font-size: var(--fs-sm);
}

.tour-finder__summary[hidden] {
    display: none;
}

.tour-finder__summary-label {
    font-weight: 700;
    color: var(--c-surface-ink-soft);
}

.tour-finder__chips {
    display: contents;
}

.tour-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.5rem 0.28rem 0.75rem;
    border: 0;
    border-radius: 8px;
    background: var(--c-surface-accent-soft);
    color: var(--c-surface-accent);
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
}

.tour-filter-chip span {
    font-size: 1.05rem;
    line-height: 1;
}

.tour-filter-chip:hover {
    background: var(--c-surface-accent);
    color: var(--c-surface-on-accent);
}

.tour-finder__reset {
    margin-left: auto;
    padding: 0.25rem 0;
    border: 0;
    background: transparent;
    color: var(--c-surface-accent);
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.tour-tab:focus-visible,
.tour-segment__button:focus-visible,
.tour-select:focus-visible,
.tour-search input:focus-visible,
.tour-search__clear:focus-visible,
.tour-filter-chip:focus-visible,
.tour-finder__reset:focus-visible {
    outline: 2px solid var(--c-surface-accent);
    outline-offset: 2px;
}

@media (max-width: 680px) {
    .tour-finder {
        padding: 0.8rem 0.9rem 0.8rem;
        border-radius: var(--radius);
    }

    .tour-tabs {
        flex-wrap: wrap;
        gap: 0.4rem;
        padding-bottom: 0.2rem;
        border-bottom: 0;
    }

    .tour-tab {
        margin: 0;
        padding: 0.42rem 0.7rem 0.42rem 0.8rem;
        border: 1px solid var(--c-surface-line);
        border-radius: 8px;
        font-size: var(--fs-sm);
    }

    .tour-tab.is-active {
        border-color: var(--c-surface-accent);
        background: var(--c-surface-accent);
        color: var(--c-surface-on-accent);
    }

    .tour-tab.is-active .tour-tab__count {
        background: rgba(255, 250, 242, 0.22);
        color: var(--c-surface-on-accent);
    }

    .tour-finder__controls {
        gap: 0.85rem 0.8rem;
    }

    .tour-control--season,
    .tour-control--level,
    .tour-control--search {
        flex: 1 1 100%;
    }

    .tour-control--duration,
    .tour-control--sort {
        flex: 1 1 calc(50% - 0.4rem);
    }

    .tour-segment {
        display: flex;
        width: 100%;
        border-radius: 10px;
    }

    .tour-segment__button {
        flex: 1 1 auto;
        padding-inline: 0.55rem;
        text-align: center;
    }

    .tour-finder__reset {
        margin-left: 0;
    }

    .tour-finder__head {
        align-items: flex-start;
    }
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.92rem;
}

/* Tourenart-Zwischenüberschrift: volle Zeile im Karten-Raster */
.tour-grid__group {
    grid-column: 1 / -1;
    margin: 0.9rem 0 -0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--c-ink-soft, #5c625f);
}

.tour-grid__group:first-child {
    margin-top: 0;
}

/* "X weitere anzeigen": volle Rasterzeile, dezenter Ghost-Button */
.tour-grid__more {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: -0.2rem;
    padding: 0.55rem 1.12rem;
    border: 1px solid rgba(53, 67, 65, 0.25);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.tour-grid__more:hover {
    background: rgba(53, 67, 65, 0.08);
}

.tour-card {
    --tour-card-bg: var(--c-surface);
    --tour-card-ink: var(--c-surface-ink);
    --tour-card-ink-soft: var(--c-surface-ink-soft);
    --tour-card-line: var(--c-surface-line);
    --tour-card-tint: var(--c-surface-tint);
    --tour-card-accent: var(--c-surface-accent);
    --tour-card-accent-soft: var(--c-surface-accent-soft);
    --tour-card-season: var(--c-surface-season);
    --tour-card-season-soft: var(--c-surface-season-soft);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--tour-card-line);
    border-radius: 6px;
    background: var(--tour-card-bg);
    color: var(--tour-card-ink);
    box-shadow: var(--shadow-sm);
}

.tour-card[hidden] {
    display: none;
}

.tour-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--c-bg-alt);
}

.tour-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-card__media img {
    transform: scale(1.035);
}

.tour-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d8d2c4, #b7c1bb);
}

.tour-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.8rem;
}

.tour-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tour-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    border-radius: 8px;
    padding: 0.24rem 0.58rem;
    background: var(--tour-card-accent-soft);
    color: var(--tour-card-accent);
    font-size: var(--fs-xs);
    font-weight: 800;
}

.tour-chip--season {
    background: var(--tour-card-season-soft);
    color: var(--tour-card-season);
}

.tour-chip--strong {
    background: var(--tour-card-accent);
    color: var(--c-surface-on-accent);
}

/* Schwierigkeits-Pille mit Stufenbeschreibung in kleiner Schrift darunter. */
.tour-chip--difficulty {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    border-radius: 8px;
    max-width: 100%;
}

.tour-chip--difficulty small {
    font-size: 0.66rem;
    font-weight: 500;
    line-height: 1.35;
    opacity: 0.9;
    white-space: normal;
}

.tour-card__title {
    margin: 0;
    font-size: 1.25rem;
}

.tour-card__title a {
    color: var(--tour-card-ink);
}

.tour-card__summary {
    margin: 0;
    color: var(--tour-card-ink-soft);
    font-size: var(--fs-sm);
}

.tour-card__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0;
}

.tour-card__facts div {
    min-width: 0;
    border-radius: 6px;
    background: var(--tour-card-tint);
    padding: 0.5rem;
}

.tour-card__facts dt {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--tour-card-ink-soft);
}

.tour-card__facts dd {
    margin: 0.08rem 0 0;
    font-weight: 800;
    color: var(--tour-card-ink);
}

.tour-card__more {
    margin-top: auto;
    font-weight: 800;
    color: var(--tour-card-accent);
}

.tour-empty {
    margin-top: 0.8rem;
    font-weight: 700;
    color: var(--c-ink-soft);
}

.tour-detail {
    padding-block: 2.8rem;
}

.tour-detail__facts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.6rem;
}

.tour-detail__facts div {
    min-width: 0;
    border: 1px solid var(--c-surface-line);
    border-radius: 6px;
    background: var(--c-surface);
    color: var(--c-surface-ink);
    padding: 0.75rem;
}

.tour-detail__facts span {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--c-surface-ink-soft);
    text-transform: uppercase;
}

.tour-detail__facts strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.05rem;
    color: var(--c-surface-ink);
}

.tour-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
    gap: 1.6rem;
    align-items: start;
}

.tour-detail__main {
    min-width: 0;
}

.tour-panel {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    border: 1px solid var(--c-surface-line);
    border-radius: 6px;
    background: var(--c-surface);
    color: var(--c-surface-ink);
    padding: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.tour-panel h2 {
    font-size: 1.25rem;
}

.tour-panel__list {
    display: grid;
    gap: 0.7rem;
    margin: 0 0 0.8rem;
}

.tour-panel__list div {
    border-bottom: 1px solid var(--c-surface-line);
    padding-bottom: 0.55rem;
}

.tour-panel__list dt {
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--c-surface-ink-soft);
    text-transform: uppercase;
}

.tour-panel__list dd {
    margin: 0.1rem 0 0;
    font-weight: 700;
}

.tour-panel__difficulty {
    display: grid;
    gap: 0.25rem;
    margin: 0 0 0.8rem;
    border: 1px solid var(--c-surface-line);
    border-radius: 6px;
    background: var(--c-surface-accent-soft);
    padding: 0.75rem;
}

.tour-panel__difficulty p {
    margin: 0;
    color: var(--c-surface-ink-soft);
    font-size: var(--fs-xs);
    font-weight: 800;
    text-transform: uppercase;
}

.tour-panel__difficulty strong {
    color: var(--c-surface-accent);
    font-size: 1.2rem;
    line-height: 1;
}

.tour-panel__difficulty span {
    color: var(--c-surface-ink-soft);
    font-size: var(--fs-sm);
}

.tour-panel__button {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 2.7rem;
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    background: var(--c-surface-accent);
    color: var(--c-surface-on-accent);
    font-weight: 800;
}

.tour-panel__button+.tour-panel__button {
    margin-top: 0.55rem;
}

.tour-panel__button--ghost {
    background: transparent;
    border: 1px solid var(--c-surface-line);
    color: var(--c-surface-accent);
}

.tour-map {
    overflow: hidden;
    border: 1px solid var(--c-surface-line);
    border-radius: 6px;
    background: var(--c-surface);
    color: var(--c-surface-ink);
    box-shadow: var(--shadow-sm);
    margin: 0 0 1.6rem;
}

.tour-detail .tour-map .eyebrow,
.tour-detail .tour-panel .eyebrow {
    color: var(--c-surface-accent);
}

.tour-map__head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: end;
    padding: 0.8rem 0.8rem 0.85rem;
}

.tour-map__head h2 {
    margin-bottom: 0;
    font-size: 1.4rem;
}

.tour-map__status {
    margin: 0;
    color: var(--c-surface-ink-soft);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.tour-map__canvas {
    position: relative;
    width: 100%;
    min-height: 24rem;
    background: #dfe4dc;
}

.tour-map__canvas--no-tiles {
    background:
        linear-gradient(rgba(28, 31, 29, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 31, 29, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 30% 25%, rgba(44, 91, 93, 0.16), transparent 32%),
        linear-gradient(145deg, #e7e8df, #cad7d0);
    background-size: 40px 40px, 40px 40px, auto, auto;
}

.tour-map__license {
    margin: 0;
    padding: 0.75rem 0.8rem 0.8rem;
    color: var(--c-surface-ink-soft);
    font-size: var(--fs-xs);
}

.tour-map .leaflet-control-attribution {
    font-size: 0.68rem;
}

.tour-map__layer-select {
    margin: 10px 10px 0 0;
    border-radius: 6px;
    background: var(--c-surface);
    box-shadow: 0 10px 28px rgba(28, 31, 29, 0.18);
}

.tour-map__layer-select select {
    display: block;
    width: min(12rem, calc(100vw - 5rem));
    min-height: 2.35rem;
    border: 1px solid var(--c-surface-line);
    border-radius: 6px;
    padding: 0.48rem 1.6rem 0.48rem 0.7rem;
    background: var(--c-surface);
    color: var(--c-surface-ink);
    font: 800 0.78rem/1.2 var(--ff-body);
    cursor: pointer;
}

.tour-map__layer-select select:focus {
    outline: 2px solid var(--c-surface-accent);
    outline-offset: 2px;
}

.tour-map .leaflet-control-layers {
    border: 0;
    border-radius: 6px;
    background: var(--c-surface);
    color: var(--c-surface-ink);
    box-shadow: 0 10px 28px rgba(28, 31, 29, 0.18);
    font: 700 0.78rem/1.3 var(--ff-body);
}

.tour-map .leaflet-control-layers-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 4.6rem;
    height: 2.35rem;
    border-radius: 6px;
    background: var(--c-surface-accent);
    color: var(--c-surface-on-accent);
    font: 800 0.78rem/1 var(--ff-body);
    text-indent: 0;
    white-space: nowrap;
}

.tour-map .leaflet-control-layers-toggle::after {
    content: 'Karte';
}

.tour-map .leaflet-control-layers-toggle::before {
    content: '';
    width: 0;
    height: 0;
    margin-right: 0.42rem;
    border-left: 0.24rem solid transparent;
    border-right: 0.24rem solid transparent;
    border-top: 0.34rem solid currentColor;
}

.tour-map .leaflet-control-layers-expanded {
    padding: 0.55rem 0.65rem;
    background: var(--c-surface);
    color: var(--c-surface-ink);
}

.tour-map .leaflet-control-layers label {
    margin: 0.26rem 0;
    color: var(--c-surface-ink);
}

@media (max-width: 980px) {
    .tour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tour-detail__facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tour-detail__layout {
        grid-template-columns: 1fr;
    }

    .tour-panel {
        position: static;
    }

    .tour-map__canvas {
        min-height: 21rem;
    }
}

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

    .tour-card__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tour-detail__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tour-map__head {
        display: grid;
    }

    .tour-map__canvas {
        min-height: 18rem;
    }
}

/* Teaser grid */
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    gap: 0.96rem;
}

.teaser {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 5/4;
    color: #fff;
    background: var(--c-accent);
    box-shadow: var(--shadow-sm);
}

.teaser img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transition: transform 0.35s ease;
}

.teaser:hover img {
    transform: scale(1.04);
}

.teaser__body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 0.8rem 0.96rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.6) 100%);
    color: #fff;
}

.teaser__title {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 600;
}

.teaser__sub {
    font-size: var(--fs-sm);
    opacity: 0.86;
}

/* Media tiles (webcam/wetter) */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: 1rem;
}

.media-tile {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 250, 242, 0.96);
    color: #1b1f1d;
    border: 1px solid var(--c-line-soft);
    box-shadow: var(--shadow-sm);
}

.media-tile img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.media-tile figcaption {
    padding: 0.65rem 0.9rem;
    font-size: var(--fs-sm);
    color: #5b605c;
}

.embed-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.embed-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Webcam & Wetter page */
.section--webcam-hub {
    padding-block: clamp(1.6rem, 3.2vw, 3.2rem);
}

.webcam-hub {
    display: grid;
    gap: 1.12rem;
}

.webcam-hub__intro {
    display: grid;
    gap: 0.8rem;
    padding: clamp(0.96rem, 1.6vw, 1.36rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 250, 242, 0.98), rgba(239, 234, 224, 0.94));
    color: #1b1f1d;
    border: 1px solid rgba(28, 34, 31, 0.08);
    box-shadow: var(--shadow-sm);
}

.webcam-hub__intro .eyebrow,
.weather-station__copy .eyebrow,
.reservation-lead__copy .eyebrow,
.reservation-panel .eyebrow {
    color: #58635f;
}

.webcam-hub__title {
    margin: 0;
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 1.25rem + 1.6vw, 2.8rem);
    line-height: 1.08;
    color: #14201f;
}

.webcam-hub__text {
    color: #4d524f;
}

.webcam-hub__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.webcam-hub__fact {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    background: rgba(20, 32, 31, 0.08);
    color: #29413f;
    font-size: var(--fs-sm);
    font-weight: 600;
}

.webcam-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.88rem;
}

.webcam-card {
    grid-column: span 6;
    display: grid;
    background: rgba(255, 250, 242, 0.96);
    color: #1b1f1d;
    border: 1px solid var(--c-line-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.webcam-card--featured {
    grid-column: span 12;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.webcam-card__media {
    position: relative;
    display: block;
    aspect-ratio: var(--cam-ratio, 16 / 9);
    background: #0f1417;
    overflow: hidden;
}

.webcam-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.webcam-card__live {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.62rem;
    border-radius: 8px;
    background: rgba(10, 16, 18, 0.68);
    color: #f6f2ea;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.webcam-card__live::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
    animation: ribbon-pulse 2s ease-out infinite;
}

.webcam-card__body {
    display: grid;
    gap: 0.85rem;
    padding: clamp(0.8rem, 1.44vw, 1.08rem);
}

.webcam-card__kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: var(--fs-xs);
    color: #58635f;
}

.webcam-card__title {
    margin: 0;
    font-family: var(--ff-display);
    font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.9rem);
    line-height: 1.15;
    color: #162321;
}

.webcam-card__description {
    margin: 0;
    color: #505754;
}

.button--secondary,
.button--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.button--secondary {
    background: #193c3b;
    color: #fffaf2;
}

.button--ghost {
    background: rgba(25, 60, 59, 0.08);
    color: #214947;
    border: 1px solid rgba(25, 60, 59, 0.14);
}

.webcam-card__timelapse {
    justify-self: start;
    margin-top: 0.1rem;
}

.section--weather-station {
    padding-block: 0 3.2rem;
}

.weather-station {
    display: grid;
    grid-template-columns: minmax(16rem, 24rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.weather-station__copy,
.weather-station__frame-wrap {
    background: rgba(255, 250, 242, 0.96);
    color: #1b1f1d;
    border: 1px solid var(--c-line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.weather-station__copy {
    padding: clamp(0.92rem, 1.6vw, 1.2rem);
    display: grid;
    gap: 0.85rem;
}

.weather-station__title {
    margin: 0;
    font-family: var(--ff-display);
    font-size: clamp(1.45rem, 1.1rem + 1vw, 2.1rem);
    line-height: 1.12;
    color: #15211f;
}

.weather-station__text {
    margin: 0;
    color: #515754;
}

.weather-station__frame-wrap {
    padding: 0.35rem;
    overflow: hidden;
}

.weather-station__frame {
    width: 100%;
    height: clamp(960px, 112vh, 1260px);
    min-height: 960px;
    border: 0;
    display: block;
    border-radius: calc(var(--radius-lg) - 6px);
    background: #fff;
}

@media (max-width: 960px) {

    .webcam-card,
    .webcam-card--featured {
        grid-column: span 12;
        grid-template-columns: 1fr;
    }

    .weather-station {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .webcam-grid {
        gap: 0.85rem;
    }

    .button--secondary,
    .button--ghost {
        width: 100%;
    }

    .weather-station__frame {
        height: 1100px;
        min-height: 1100px;
    }
}

/* Reservieren page */
.template-reservieren {
    --reservation-surface: var(--c-surface);
    --reservation-surface-alt: var(--c-surface-alt);
    --reservation-ink: var(--c-surface-ink);
    --reservation-ink-soft: var(--c-surface-ink-soft);
    --reservation-line: var(--c-surface-line);
    --reservation-tint: var(--c-surface-tint);
    --reservation-accent: var(--c-surface-accent);
    --reservation-accent-soft: var(--c-surface-accent-soft);
    --reservation-season: var(--c-surface-season);
    --reservation-season-soft: var(--c-surface-season-soft);
    --reservation-on-accent: var(--c-surface-on-accent);
    --reservation-control-bg: var(--c-surface-season);
    --reservation-control-ink: var(--c-surface-on-accent);
}

.reservation-hero {
    background:
        radial-gradient(circle at top right, rgba(182, 91, 28, 0.18), transparent 24%),
        linear-gradient(180deg, #f2e9db 0%, #e7ddce 100%);
}

.reservation-hero .hero__title,
.reservation-hero .hero__lead,
.reservation-hero .hero__eyebrow {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.reservation-hero__meta {
    margin: 0.8rem 0 0;
    max-width: 40rem;
    color: rgba(255, 250, 242, 0.92);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
    font-weight: 500;
}

.section--reservation-shell {
    padding-top: clamp(1.08rem, 2.4vw, 1.8rem);
}

.reservation-shell,
.reservation-notices,
.trail-planner {
    display: grid;
}

/* Einspaltiges Shell-Raster darf nie breiter als der Container werden
   (Panel-Kopf mit Button erzwang auf Handys ~400 px Mindestbreite). */
.reservation-shell {
    grid-template-columns: minmax(0, 1fr);
}

.reservation-shell > *,
.reservation-panel__head > div {
    min-width: 0;
}

.reservation-shell,
.reservation-notices,
.trail-planner {
    gap: 0.96rem;
}

.reservation-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.9fr);
    gap: 0.8rem;
    padding: clamp(0.8rem, 1.44vw, 1.08rem);
    border-radius: 6px;
    background: var(--reservation-surface);
    color: var(--reservation-ink);
    border: 1px solid var(--reservation-line);
    box-shadow: var(--shadow-sm);
}

.reservation-lead__copy {
    display: grid;
    gap: 0.8rem;
}

.reservation-lead__copy .eyebrow,
.reservation-panel__eyebrow {
    color: var(--reservation-accent);
}

.reservation-lead__title,
.reservation-panel__title,
.reservation-notices__title,
.trail-planner__title {
    margin: 0;
    color: var(--reservation-ink);
    font-size: clamp(1.35rem, 1.1rem + 0.75vw, 2rem);
}

.reservation-lead__text,
.reservation-panel__text,
.reservation-notices__text,
.trail-planner__text {
    color: var(--reservation-ink-soft);
}

.reservation-lead__actions {
    display: grid;
    align-content: start;
    gap: 0.65rem;
    padding: clamp(0.68rem, 1.2vw, 0.8rem);
    border-radius: 6px;
    background: var(--reservation-tint);
    color: var(--reservation-ink);
}

.reservation-lead__actions-label {
    margin: 0;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--reservation-ink-soft);
}

.reservation-lead__facts {
    display: grid;
    gap: 0.65rem;
    margin: 0.1rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--reservation-ink-soft);
    font-size: var(--fs-sm);
}

.reservation-lead__facts li {
    position: relative;
    padding-left: 1rem;
}

.reservation-lead__facts li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 50%;
    background: var(--reservation-season);
}

.button--planner {
    background: var(--reservation-season-soft);
    color: var(--reservation-season);
    border-color: var(--reservation-line);
}

.button--planner:hover {
    transform: translateY(-1px);
    background: var(--reservation-season);
    color: var(--reservation-on-accent);
}

.template-reservieren .button--primary {
    background: var(--reservation-control-bg);
    color: var(--reservation-control-ink);
}

.template-reservieren .button--primary:hover {
    background: var(--reservation-accent);
    color: var(--reservation-on-accent);
}

.reservation-alerts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.reservation-lead__alerts {
    display: grid;
    gap: 0.55rem;
}

.reservation-alert {
    padding: 0.75rem 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--reservation-line);
    color: var(--reservation-ink);
}

.reservation-alert h3 {
    margin-bottom: 0.25rem;
    color: var(--reservation-ink);
    font-size: 1rem;
}

.reservation-alert p {
    margin: 0;
    color: var(--reservation-ink-soft);
    font-size: var(--fs-sm);
}

.reservation-alert a {
    color: var(--reservation-season);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

.reservation-alert--cool a {
    color: var(--reservation-accent);
}

.reservation-alert--warm {
    background: var(--reservation-season-soft);
    border-left: 4px solid var(--reservation-season);
}

.reservation-alert--cool {
    background: var(--reservation-accent-soft);
    border-left: 4px solid var(--reservation-accent);
}

.reservation-grid {
    display: grid;
    grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.35fr);
    gap: 0.8rem;
    align-items: start;
}

.reservation-grid--calendar {
    grid-template-columns: 1fr;
}

.reservation-panel {
    padding: clamp(0.76rem, 1.44vw, 1rem);
    border-radius: 6px;
    background: var(--reservation-surface);
    color: var(--reservation-ink);
    border: 1px solid var(--reservation-line);
    box-shadow: var(--shadow-sm);
}

.reservation-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.reservation-panel__eyebrow {
    margin: 0 0 0.45rem;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--reservation-ink-soft);
}

.reservation-panel__actions {
    margin-top: 0.8rem;
}

.reservation-calendar {
    margin-top: 0.75rem;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--reservation-line);
}

.reservation-calendar iframe {
    width: 100%;
    height: 540px;
    border: 0;
    display: block;
}

.section--reservation-notices {
    padding-block: 0 clamp(1.2rem, 3.2vw, 2.2rem);
}

.reservation-notices__intro {
    max-width: 48rem;
}

.reservation-notices__intro .eyebrow,
.section--reservation-notices .eyebrow {
    color: var(--c-eyebrow, var(--c-ink));
}

.reservation-notices__title {
    color: var(--c-ink);
}

.reservation-notices__text {
    color: var(--c-ink-soft);
}

.reservation-notices__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.reservation-policy {
    padding: clamp(0.76rem, 1.44vw, 1rem);
    border-radius: 6px;
    background: var(--reservation-surface);
    color: var(--reservation-ink);
    border: 1px solid var(--reservation-line);
    box-shadow: var(--shadow-sm);
}

.reservation-policy--alt {
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.97), rgba(245, 240, 231, 0.97));
}

.reservation-policy h3 {
    margin-bottom: 0.8rem;
    color: var(--reservation-ink);
    font-size: 1.3rem;
}

.reservation-policy__list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding-left: 0.92rem;
    color: var(--reservation-ink-soft);
}

.reservation-policy__list li::marker {
    color: var(--reservation-season);
}

.trail-planner {
    display: grid;
    gap: 0.85rem;
    padding: clamp(0.68rem, 1.28vw, 0.88rem);
    border-radius: 6px;
    background: var(--reservation-tint);
    color: var(--reservation-ink);
    border: 1px solid var(--reservation-line);
    box-shadow: var(--shadow-sm);
}

.trail-planner__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.trail-planner__head .eyebrow {
    color: var(--reservation-accent);
}

.trail-planner__title {
    color: var(--reservation-ink);
}

.trail-planner__text {
    color: var(--reservation-ink-soft);
}

.trail-planner__embed {
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--reservation-line);
}

.trail-planner__embed iframe {
    width: 100%;
    height: min(72vh, 680px);
    min-height: 520px;
    border: 0;
    display: block;
    background: #fff;
}

#stubaier-planer {
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

@media (max-width: 960px) {

    .reservation-lead,
    .reservation-grid,
    .reservation-notices__grid,
    .trail-planner {
        grid-template-columns: 1fr;
    }

    .reservation-alerts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .reservation-lead__actions {
        padding: 0;
        background: transparent;
    }

    .reservation-lead__actions .button,
    .reservation-panel__actions .button,
    .trail-planner__actions .button {
        width: 100%;
        justify-content: center;
    }

    .reservation-calendar iframe {
        height: 480px;
    }
}

/* Spotlight: 1–3 Fotos im Aktuell-Block */
.section--spotlight {
    padding-block: clamp(1.4rem, 2.4vw, 2.2rem);
}

.spotlight {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 1fr;
}

.spotlight--c2 {
    grid-template-columns: repeat(2, 1fr);
}

.spotlight--c3 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.spotlight--c4 {
    grid-template-columns: 2fr 1fr 1fr;
    /* minmax(0, 1fr): langer Text in der Info-Kachel darf die Zeilen nicht
       aufblähen — die Gesamthöhe bestimmt das große 4/5-Bild links */
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.spotlight--c5,
.spotlight--c6 {
    grid-template-columns: repeat(3, 1fr);
}

.spotlight--c3 .spotlight__tile--image:first-of-type {
    grid-row: span 2;
}

.spotlight--c4 .spotlight__tile--image:first-of-type {
    /* explizit in Zeile 1 verankern: ohne Startzeile schiebt die
       Auto-Platzierung das Bild hinter die Info-Kachel in Zeile 2–3
       und lässt oben links eine Lücke */
    grid-row: 1 / span 2;
    grid-column: 1;
}

.spotlight--c4 .spotlight__tile--info {
    grid-column: 2 / span 2;
    grid-row: 1;
}

/* --- Layouts mit Info-Kachel: für jede Bildanzahl lückenlos gekachelt ---
   c2 = Info + 1 Bild  → zwei gleich breite Kacheln nebeneinander (Basisregel reicht)
   c3 = Info + 2 Bilder → Info als Banner oben, zwei Bilder darunter
   c4 = Info + 3 Bilder → großes Bild links, Info + 2 Bilder rechts (Regeln oben)
   c5 = Info + 4 Bilder → 3×2-Raster, Info über zwei Spalten
   c6 = Info + 5 Bilder → volles 3×2-Raster */

.spotlight--c3.spotlight--has-info {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
}

.spotlight--c3.spotlight--has-info .spotlight__tile--info {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 8rem;
}

/* Banner-Variante: das hochformatige Sonderformat des c3-Bildrasters aufheben */
.spotlight--c3.spotlight--has-info .spotlight__tile--image:first-of-type {
    grid-row: auto;
    grid-column: auto;
    aspect-ratio: 4/3;
}

.spotlight--c5.spotlight--has-info {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.spotlight--c5.spotlight--has-info .spotlight__tile--info {
    grid-column: 1 / span 2;
    grid-row: 1;
}

.spotlight--c6.spotlight--has-info {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {

    .spotlight--c2,
    .spotlight--c3,
    .spotlight--c4,
    .spotlight--c5,
    .spotlight--c6,
    .spotlight--c3.spotlight--has-info,
    .spotlight--c5.spotlight--has-info,
    .spotlight--c6.spotlight--has-info {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .spotlight--c3 .spotlight__tile--image:first-of-type,
    .spotlight--c4 .spotlight__tile--image:first-of-type,
    .spotlight--c3.spotlight--has-info .spotlight__tile--image:first-of-type {
        grid-row: auto;
        grid-column: auto;
    }

    .spotlight--c4 .spotlight__tile--info,
    .spotlight--c3.spotlight--has-info .spotlight__tile--info,
    .spotlight--c5.spotlight--has-info .spotlight__tile--info {
        grid-column: auto;
        grid-row: auto;
    }
}

.spotlight__tile {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #f3f3f0;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
}

.spotlight--c3 .spotlight__tile--image:first-of-type {
    aspect-ratio: 4/5;
}

.spotlight--c4 .spotlight__tile--image:first-of-type {
    aspect-ratio: 4/5;
}

.spotlight__tile>a {
    display: block;
    width: 100%;
    height: 100%;
}

.spotlight__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
}

.spotlight__tile--info {
    aspect-ratio: auto;
    min-height: 0;
    background: linear-gradient(180deg, #16363d 0%, #0f262c 100%);
    color: #f4f7f8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.spotlight__info-inner {
    height: 100%;
    padding: clamp(0.88rem, 1.6vw, 1.28rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    /* Notbremse: überlanger Text scrollt in der Kachel statt das Raster zu sprengen */
    overflow-y: auto;
}

/* auf Mobil (einspaltig) darf die Info-Kachel wieder mit dem Text wachsen */
@media (max-width: 720px) {
    .spotlight__tile--info {
        min-height: 14rem;
    }

    .spotlight__info-inner {
        overflow-y: visible;
    }
}

.spotlight__info-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: var(--fs-xs);
    color: #9fd3dd;
}

.spotlight__info-title {
    margin: 0;
    font-family: var(--ff-display);
    font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.9rem);
    line-height: 1.15;
}

.spotlight__info-text {
    margin: 0;
    color: rgba(244, 247, 248, 0.88);
}

/* Info-Text kommt als Markdown-HTML (p, Listen, Links) aus dem Editor */
.spotlight__info-text > *:first-child {
    margin-top: 0;
}

.spotlight__info-text > *:last-child {
    margin-bottom: 0;
}

.spotlight__info-text p {
    margin: 0 0 0.5em;
}

.spotlight__info-text ul,
.spotlight__info-text ol {
    margin: 0 0 0.5em;
    padding-left: 1.2em;
}

.spotlight__info-text a {
    color: #9fd3dd;
    text-decoration: underline;
}

.spotlight__info-text h1,
.spotlight__info-text h2,
.spotlight__info-text h3,
.spotlight__info-text h4 {
    margin: 0 0 0.35em;
    font-size: 1.05em;
    line-height: 1.25;
}

/* Live-Ribbon: schmaler, vollbreiter Streifen mit Webcam/Wetter */
.ribbon {
    background: linear-gradient(180deg, #0e1d24 0%, #14303a 100%);
    color: #f3f7f8;
    padding-block: 1rem;
    border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.ribbon__inner {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ribbon__label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: var(--fs-sm);
    color: #a8c7d2;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.ribbon__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
    animation: ribbon-pulse 2s ease-out infinite;
}

@keyframes ribbon-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
    }

    70% {
        box-shadow: 0 0 0 0.6rem rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.ribbon__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 0.85rem;
}

.ribbon__tile {
    position: relative;
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.ribbon__tile img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.embed-frame--ribbon {
    aspect-ratio: 16/9;
}

.ribbon__caption {
    position: absolute;
    left: 0.75rem;
    bottom: 0.6rem;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    letter-spacing: 0.04em;
}

/* Feature-Card: einzelner hervorgehobener Blogeintrag */
.section--latest .feature-card {
    --surface-ink: #1b1f1d;
    --surface-ink-soft: #5b605c;
    --surface-accent: #284946;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.2rem;
    background: rgba(255, 250, 242, 0.96);
    color: var(--surface-ink);
    border: 1px solid var(--c-line-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 760px) {
    .section--latest .feature-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.feature-card__media {
    display: block;
    background: #f3f3f0;
}

.feature-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 5/3;
}

.feature-card__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 5/3;
    background: linear-gradient(135deg, #e9e6df, #d6d2c9);
}

.feature-card__body {
    padding: 1.2rem clamp(1rem, 1.6vw, 1.6rem);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-self: center;
    color: var(--surface-ink);
}

.feature-card__meta {
    margin: 0;
    color: var(--surface-ink-soft);
    font-size: var(--fs-sm);
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.feature-card__title {
    margin: 0;
    font-size: clamp(1.35rem, 1.05rem + 1vw, 1.85rem);
    line-height: 1.25;
}

.feature-card__title a {
    color: var(--surface-ink);
    text-decoration: none;
}

.feature-card__title a:hover {
    text-decoration: underline;
}

.feature-card__summary {
    margin: 0;
    color: var(--surface-ink-soft);
}

.feature-card__more {
    margin-top: 0.4rem;
    align-self: flex-start;
    font-weight: 600;
    color: var(--surface-accent);
}

/* Entry / Prose */
.entry {
    padding-block: clamp(1.6rem, 3.2vw, 2.8rem);
}

.entry__content.prose>*+* {
    margin-top: 0.8rem;
}

.prose h2 {
    font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
    margin-top: 1.6rem;
}

.prose h3 {
    font-size: 1.25rem;
    margin-top: 1.2rem;
}

.prose ul,
.prose ol {
    padding-left: 1rem;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
    font-size: 0.95rem;
    background: #fffdfa;
    color: #18211f;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(16, 24, 22, 0.06);
}

.prose th,
.prose td {
    padding: 0.65rem 0.8rem;
    border: 1px solid #d6d6d6;
    color: #18211f;
    background: #fffdfa;
}

.prose th {
    background: #e8f2dd;
    color: #1f2d1e;
    font-weight: 700;
    text-align: left;
}

.prose tbody tr:nth-child(even) td {
    background: #f6f8f3;
}

.prose tbody tr:hover td {
    background: #eef5e6;
}

.prose td:nth-last-child(-n + 2) {
    text-align: right;
    white-space: nowrap;
}

.page-speisen {
    --menu-script: 'Marck Script', 'Segoe Script', 'Brush Script MT', cursive;
    --menu-paper: #fcf6eb;
    --menu-paper-soft: #f4e6d4;
    --menu-line: rgba(84, 61, 34, 0.22);
    --menu-ink: #2f2115;
    --menu-ink-soft: #5b4735;
    --menu-accent: #8f4d20;
    --menu-accent-soft: rgba(143, 77, 32, 0.12);
}

.page-speisen .prose table {
    table-layout: fixed;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)) 0 0 / 100% 4.5rem no-repeat,
        linear-gradient(180deg, var(--menu-paper), var(--menu-paper-soft));
    color: var(--menu-ink);
    border: 1px solid var(--menu-line);
    border-radius: 12px;
    box-shadow:
        0 16px 34px rgba(49, 33, 17, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

@supports (color: color-mix(in srgb, black, white)) {
    .page-speisen {
        --menu-paper: color-mix(in srgb, white 88%, #e8d6bd 12%);
        --menu-paper-soft: color-mix(in srgb, white 70%, #dcc1a0 30%);
        --menu-line: color-mix(in srgb, #5d4631 22%, transparent);
        --menu-ink: color-mix(in srgb, #2f2115 92%, #8f4d20 8%);
        --menu-ink-soft: color-mix(in srgb, #5b4735 88%, #8f4d20 12%);
        --menu-accent: color-mix(in srgb, #8f4d20 82%, #5d4631 18%);
        --menu-accent-soft: color-mix(in srgb, #8f4d20 10%, white 90%);
    }

    .page-speisen .prose table {
        background:
            linear-gradient(180deg, color-mix(in srgb, white 42%, transparent), transparent) 0 0 / 100% 4.5rem no-repeat,
            linear-gradient(180deg, var(--menu-paper), var(--menu-paper-soft));
    }
}

.page-speisen .prose th,
.page-speisen .prose td {
    border-color: var(--menu-line);
    background: transparent;
    color: var(--menu-ink);
    vertical-align: top;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

.page-speisen .prose th {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), var(--menu-accent-soft));
    color: var(--menu-accent);
    font-family: var(--menu-script);
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.45rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: center !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.page-speisen .prose td:first-child {
    font-family: var(--menu-script);
    font-size: clamp(1.1rem, 1rem + 0.35vw, 1.35rem);
    line-height: 1.18;
    color: var(--menu-accent);
}

.page-speisen .prose td {
    color: var(--menu-ink-soft);
    text-align: center !important;
}

.page-speisen .prose th:nth-child(2):not(:last-child),
.page-speisen .prose td:nth-child(2):not(:last-child),
.page-speisen .prose table:first-of-type th:nth-child(2),
.page-speisen .prose table:first-of-type td:nth-child(2),
.page-speisen .prose table:nth-of-type(2) th:nth-child(2),
.page-speisen .prose table:nth-of-type(2) td:nth-child(2) {
    font-family: var(--menu-script);
    font-size: clamp(1.05rem, 0.98rem + 0.25vw, 1.22rem);
    line-height: 1.22;
}

.page-speisen .prose td:nth-child(2) {
    color: var(--menu-ink);
}

.page-speisen .prose td:last-child {
    color: var(--menu-ink);
    font-weight: 600;
}

.page-speisen .prose table:first-of-type td:last-child,
.page-speisen .prose table:nth-of-type(2) td:last-child {
    text-align: center !important;
    white-space: normal;
    font-weight: 400;
}

.page-speisen .prose table:nth-of-type(n + 3) td:last-child {
    text-align: center !important;
    white-space: normal;
    font-family: var(--menu-script);
    font-size: clamp(1.05rem, 0.98rem + 0.25vw, 1.22rem);
    line-height: 1.22;
    font-weight: 400;
}

.page-speisen .prose tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.38);
}

.page-speisen .prose tbody tr:hover td {
    background: rgba(143, 77, 32, 0.1);
}

.page-speisen .prose td:nth-last-child(-n + 2) {
    text-align: center !important;
}

.page-speisen .prose td:last-child,
.page-speisen .prose th:last-child {
    letter-spacing: 0.03em;
}

.page-speisen .prose td:empty::after {
    content: '–';
    color: color-mix(in srgb, var(--menu-ink-soft) 45%, transparent);
}

@media (max-width: 760px) {
    .page-speisen .prose table {
        display: table;
        width: 100%;
        overflow-x: visible;
        border-radius: 10px;
    }

    .page-speisen .prose th,
    .page-speisen .prose td {
        min-width: 0;
    }
}

.prose blockquote {
    margin: 1.2rem 0;
    padding: 0.6rem 0.8rem;
    border-left: 3px solid var(--c-accent-warm);
    color: var(--c-ink-soft);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
}

.prose img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* Bildgrößen aus dem Texteditor (?classes=img-s|m|l, siehe fsh-wysiwyg.js); ohne Klasse volle Breite. */
.prose img.img-s { max-width: 25%; height: auto; }
.prose img.img-m { max-width: 50%; height: auto; }
.prose img.img-l { max-width: 75%; height: auto; }

@media (max-width: 760px) {
    .prose img.img-s { max-width: 50%; }
    .prose img.img-m,
    .prose img.img-l { max-width: 100%; }
}

.entry__back {
    margin-top: 2rem;
}

@media (max-width: 760px) {
    .prose table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Gallery */
.entry__gallery {
    margin-top: 2rem;
    width: min(calc(100vw - var(--gutter) * 2), 1080px);
    margin-left: 50%;
    transform: translateX(-50%);
}

.entry__gallery-title {
    margin: 0 0 0.8rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: clamp(4.75rem, 8vw, 6.5rem);
    gap: 0.9rem;
}

.gallery-item {
    margin: 0;
    grid-column: span 2;
    grid-row: span 2;
    min-height: 0;
    overflow: hidden;
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item--lead.gallery-item--landscape {
    grid-column: span 4;
    grid-row: span 4;
}

.gallery-item--lead.gallery-item--panorama {
    grid-column: span 4;
    grid-row: span 3;
}

.gallery-item--lead.gallery-item--portrait {
    grid-column: span 3;
    grid-row: span 5;
}

.gallery-item--lead.gallery-item--square {
    grid-column: span 3;
    grid-row: span 4;
}

.gallery-item--panorama {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery-item--landscape {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery-item--compact {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item--portrait {
    grid-column: span 2;
    grid-row: span 4;
}

.gallery-item--square {
    grid-column: span 2;
    grid-row: span 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.gallery-item--panorama img,
.gallery-item--portrait img,
.gallery-item--lead.gallery-item--panorama img,
.gallery-item--lead.gallery-item--portrait img {
    transform: scale(1.04);
}

.gallery-grid--c2 {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    grid-template-rows: repeat(2, clamp(7.5rem, 11vw, 10rem));
    grid-auto-flow: row;
}

.gallery-grid--c2 .gallery-item {
    grid-column: auto;
    grid-row: auto;
}

.gallery-grid--c2 .gallery-item:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.gallery-grid--c2 .gallery-item:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
}

@media (max-width: 820px) {
    .entry__gallery {
        width: 100%;
        margin-left: 0;
        transform: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: clamp(5rem, 18vw, 6.5rem);
    }

    .gallery-item--lead.gallery-item--landscape,
    .gallery-item--lead.gallery-item--panorama {
        grid-column: span 4;
        grid-row: span 3;
    }

    .gallery-item--panorama {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item--lead.gallery-item--portrait {
        grid-column: span 2;
        grid-row: span 4;
    }

    .gallery-item--lead.gallery-item--square {
        grid-column: span 2;
        grid-row: span 3;
    }

    .gallery-item--landscape,
    .gallery-item--square {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item--portrait {
        grid-column: span 2;
        grid-row: span 3;
    }

    .gallery-grid--c2 {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
        grid-template-rows: repeat(2, clamp(6.5rem, 18vw, 8rem));
    }
}

@media (max-width: 560px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: clamp(6.5rem, 26vw, 8rem);
    }

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

    .gallery-item--lead.gallery-item--landscape,
    .gallery-item--lead.gallery-item--panorama {
        grid-column: 1 / -1;
        grid-row: span 1;
    }

    .gallery-item--panorama {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item--lead.gallery-item--portrait,
    .gallery-item--portrait {
        grid-column: span 1;
        grid-row: span 2;
    }

    .gallery-item--lead.gallery-item--square,
    .gallery-item--square,
    .gallery-item--landscape {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item img {
        height: 100%;
    }

    .gallery-item--panorama img,
    .gallery-item--portrait img,
    .gallery-item--lead.gallery-item--panorama img,
    .gallery-item--lead.gallery-item--portrait img {
        transform: scale(1.08);
    }

    .gallery-grid--c2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: clamp(8rem, 34vw, 10rem);
    }

    .gallery-grid--c2 .gallery-item:first-child,
    .gallery-grid--c2 .gallery-item:last-child {
        grid-column: span 1;
        grid-row: 1;
    }
}

.gallery-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
    grid-auto-rows: unset;
    aspect-ratio: 16 / 10;
}

.gallery-item {
    border-radius: 10px;
}

.gallery-item a {
    border-radius: inherit;
    overflow: hidden;
}

.gallery-item img {
    border-radius: 0;
}

.gallery-grid--c1>.gallery-item:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.gallery-grid--c2>.gallery-item:nth-child(1) {
    grid-column: 1 / 8;
    grid-row: 1 / 9;
}

.gallery-grid--c2>.gallery-item:nth-child(2) {
    grid-column: 8 / 13;
    grid-row: 1 / 9;
}

.gallery-grid--c3>.gallery-item:nth-child(1) {
    grid-column: 1 / 8;
    grid-row: 1 / 9;
}

.gallery-grid--c3>.gallery-item:nth-child(2) {
    grid-column: 8 / 13;
    grid-row: 1 / 5;
}

.gallery-grid--c3>.gallery-item:nth-child(3) {
    grid-column: 8 / 13;
    grid-row: 5 / 9;
}

.gallery-grid--c4>.gallery-item:nth-child(1) {
    grid-column: 1 / 9;
    grid-row: 1 / 5;
}

.gallery-grid--c4>.gallery-item:nth-child(2) {
    grid-column: 9 / 13;
    grid-row: 1 / 5;
}

.gallery-grid--c4>.gallery-item:nth-child(3) {
    grid-column: 1 / 7;
    grid-row: 5 / 9;
}

.gallery-grid--c4>.gallery-item:nth-child(4) {
    grid-column: 7 / 13;
    grid-row: 5 / 9;
}

.gallery-grid--c5>.gallery-item:nth-child(1) {
    grid-column: 1 / 8;
    grid-row: 1 / 5;
}

.gallery-grid--c5>.gallery-item:nth-child(2) {
    grid-column: 8 / 13;
    grid-row: 1 / 3;
}

.gallery-grid--c5>.gallery-item:nth-child(3) {
    grid-column: 8 / 13;
    grid-row: 3 / 5;
}

.gallery-grid--c5>.gallery-item:nth-child(4) {
    grid-column: 1 / 5;
    grid-row: 5 / 9;
}

.gallery-grid--c5>.gallery-item:nth-child(5) {
    grid-column: 5 / 13;
    grid-row: 5 / 9;
}

.gallery-grid--c6>.gallery-item:nth-child(1) {
    grid-column: 1 / 8;
    grid-row: 1 / 5;
}

.gallery-grid--c6>.gallery-item:nth-child(2) {
    grid-column: 8 / 13;
    grid-row: 1 / 3;
}

.gallery-grid--c6>.gallery-item:nth-child(3) {
    grid-column: 8 / 13;
    grid-row: 3 / 5;
}

.gallery-grid--c6>.gallery-item:nth-child(4) {
    grid-column: 1 / 5;
    grid-row: 5 / 9;
}

.gallery-grid--c6>.gallery-item:nth-child(5) {
    grid-column: 5 / 9;
    grid-row: 5 / 9;
}

.gallery-grid--c6>.gallery-item:nth-child(6) {
    grid-column: 9 / 13;
    grid-row: 5 / 9;
}

@media (max-width: 820px) {
    .gallery-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-template-rows: repeat(8, minmax(0, 1fr));
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 560px) {
    .gallery-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-template-rows: repeat(8, minmax(0, 1fr));
        aspect-ratio: 1 / 1.08;
        gap: 0.55rem;
    }
}

/* Lightbox */
.lightbox-link {
    cursor: zoom-in;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 14, 16, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 1120px);
    min-height: 100dvh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: center;
    gap: 0.75rem;
}

.lightbox__figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    min-height: min(100dvh, 100vh);
    position: relative;
}

.lightbox__image,
.lightbox__video {
    display: block;
    max-width: 100%;
    max-height: min(78vh, 900px);
    border-radius: 10px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.lightbox__video {
    width: min(100%, 1100px);
    aspect-ratio: 16 / 9;
    background: #000;
}

.lightbox__image[hidden],
.lightbox__video[hidden] {
    display: none;
}

.lightbox__caption {
    position: fixed;
    left: 50%;
    bottom: max(1rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(92vw, 1120px);
    color: #eef2f4;
    text-align: center;
    min-height: 1.2rem;
}

.lightbox__close,
.lightbox__nav {
    /* Über der Bildfläche halten: die Figur kommt im DOM nach Close/Prev
       und übermalte die Buttons auf kleinen Viewports (Taps liefen ins
       Leere, nur der Weiter-Button hinter der Figur funktionierte). */
    z-index: 5;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 0;
}

.lightbox__nav[hidden] {
    display: none;
}

@media (max-width: 720px) {
    .lightbox__dialog {
        width: 100vw;
        height: 100dvh;
        padding:
            max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr) auto;
        justify-items: center;
        align-items: stretch;
        gap: 0.35rem;
    }

    .lightbox__figure {
        width: 100%;
        height: 100%;
        justify-content: center;
        gap: 0.45rem;
    }

    .lightbox__close {
        top: max(0.75rem, env(safe-area-inset-top));
        right: max(0.75rem, env(safe-area-inset-right));
    }

    .lightbox__nav {
        position: fixed;
        bottom: max(0.75rem, env(safe-area-inset-bottom));
    }

    .lightbox__nav--prev {
        left: max(0.75rem, env(safe-area-inset-left));
    }

    .lightbox__nav--next {
        right: max(0.75rem, env(safe-area-inset-right));
    }

    .lightbox__image {
        width: auto;
        max-width: 100%;
        max-height: min(calc(100dvh - 7rem), calc(100vh - 7rem));
        object-fit: contain;
    }

    .lightbox__caption {
        width: 100%;
        padding-inline: 0.25rem;
        bottom: max(4.25rem, env(safe-area-inset-bottom));
    }
}

/* Footer */
.site-footer {
    margin-top: clamp(2.4rem, 4vw, 4rem);
    background: #15201d;
    color: rgba(255, 250, 242, 0.82);
    padding: 2.4rem 0 0.8rem;
}

.site-footer a {
    color: rgba(255, 250, 242, 0.92);
}

.site-footer a:hover {
    color: #fff;
}

.site-footer__grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
}

.site-footer__title {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    color: #fff;
    margin: 0 0 0.5rem;
}

.site-footer__heading {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin: 0 0 0.7rem;
    color: rgba(255, 250, 242, 0.6);
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.site-footer__contact {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: grid;
    gap: 0.3rem;
}

.site-footer__bottom {
    margin-top: 1.6rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: var(--fs-sm);
}

/* KI-Übersetzungshinweis im Footer (nur nicht-deutsche Seiten) */
.site-footer__ai-note {
    display: block;
    margin-top: 0.35rem;
    opacity: 0.7;
}

.site-footer__ai-note a {
    text-decoration: underline;
}

/* Prominenter KI-Übersetzungshinweis auf Impressum/Datenschutz */
.ai-translation-note {
    margin: 0 0 1.12rem;
    padding: 0.65rem 0.95rem;
    border-radius: 6px;
    border: 1px solid var(--c-line-soft, rgba(53, 67, 65, 0.12));
    background: var(--c-surface-tint, rgba(53, 67, 65, 0.06));
    color: var(--c-ink-soft, #5c625f);
    font-size: 0.9rem;
}

.ai-translation-note a {
    text-decoration: underline;
}

.site-footer__languages {
    margin-top: 0.96rem;
}

.lang-switcher--footer .lang-switcher__link {
    border-color: rgba(255, 250, 242, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 700px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}
/* ── Tour-Detail: Karte + Höhenprofil im Route&Track-Panel ─────────────── */
.tour-map--compact {
    margin: 0.8rem 0 0.4rem;
}

.tour-map__canvas--compact {
    min-height: 15rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--c-surface-line);
}

.tour-map__status--compact {
    margin: 0.4rem 0 0;
    font-size: var(--fs-xs);
    color: var(--c-surface-ink-soft);
}

.tour-elevation {
    margin-top: 0.9rem;
}

.tour-elevation__title {
    margin: 0 0 0.35rem;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-surface-ink-soft);
}

.tour-elevation__canvas {
    display: block;
    width: 100%;
    border-radius: 6px;
    background: rgba(28, 31, 29, 0.035);
}

.tour-elevation__meta {
    margin: 0.3rem 0 0;
    font-size: var(--fs-xs);
    color: var(--c-surface-ink-soft);
}

/* Schwierigkeits-Chip in der Faktenleiste: Stufenbeschreibung klein darunter. */
.tour-detail__facts small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--c-surface-ink-soft);
}

/* ── Tour-Karte: Maximieren-Button + Vollbild-Modal ────────────────────── */
.tour-map__stage {
    position: relative;
}

.tour-map--compact.is-modal-detached .tour-map__stage,
.tour-map--compact.is-modal-detached .tour-map__status--compact {
    display: none;
}

.tour-map__expand {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(28, 31, 29, 0.25);
    border-radius: 6px;
    background: rgba(255, 250, 242, 0.92);
    color: #1c1f1d;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 26, 28, 0.18);
}

.tour-map__expand:hover,
.tour-map__expand:focus-visible {
    background: #fffaf2;
}

.tour-map-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.96rem;
    background: rgba(15, 26, 28, 0.72);
}

.tour-map-modal__dialog {
    position: relative;
    width: min(1100px, 100%);
    max-height: 100%;
    overflow: auto;
    border-radius: 10px;
    background: var(--c-surface, #fffaf2);
    padding: 0.8rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.tour-map-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    /* Über Leaflets interne z-Indizes (bis 1000) heben. */
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(28, 31, 29, 0.25);
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.95);
    color: #1c1f1d;
    cursor: pointer;
}

.tour-map-modal__body {
    display: grid;
    /* Eine Spalte erzwingen: die verschobenen Kacheln bringen gallery-item-
       Spans mit (span 2), die sonst das Modal-Grid verzerren - die Karte
       landete dadurch in einer schmalen Auto-Spalte. */
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
}

.tour-map-modal__body > * {
    grid-column: 1;
    grid-row: auto;
}

/* Basemap-Auswahl (Leaflet topright) vom Schließen-Symbol wegrücken. */
.tour-map-modal .leaflet-top.leaflet-right .leaflet-control {
    margin-right: 3.6rem;
}

/* Karte im Modal in eigenem Stacking-Context halten - sie wird ohne ihre
   Galerie-Figur (die isolation:isolate trägt) verschoben, sonst übermalen
   Leaflet-Ebenen den Schließen-Button. */
.tour-map-modal [data-tour-map] {
    isolation: isolate;
}

.tour-map__canvas--modal {
    min-height: min(62vh, 640px);
    border-radius: 8px;
    overflow: hidden;
}

.tour-map-modal .tour-elevation {
    margin-top: 0;
}

body.tour-map-modal-open {
    overflow: hidden;
}

/* ── Tour-Detail: Panorama über dem Text, Karte/Profil als Galerie-Kacheln ─ */
.tour-panorama {
    margin: 0 0 1.28rem;
}

.tour-panorama img {
    display: block;
    width: 100%;
    aspect-ratio: 32 / 9;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.gallery-item--map {
    position: relative;
    /* Eigener Stacking-Context: sperrt Leaflet-z-Indizes (bis 1000) und das
       Klick-Overlay ein, damit die Karte nicht über der Lightbox liegt. */
    isolation: isolate;
}

.tour-map__canvas--tile {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.gallery-item--map.is-modal-detached {
    visibility: hidden;
}

.gallery-item--elevation {
    position: relative;
    /* Wie bei der Kartenkachel: Klick-Overlay (hoher z-index) einsperren,
       sonst sticht es durch die Lightbox (z 200) durch. */
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--c-surface-line);
    border-radius: 10px;
    background: var(--c-surface);
    color: var(--c-surface-ink);
    box-shadow: var(--shadow-sm);
}

.tour-elevation__canvas--tile {
    flex: 1;
    min-height: 0;
    width: 100%;
    border-radius: 6px;
    background: rgba(28, 31, 29, 0.035);
}

.tour-map-modal .gallery-item--elevation {
    margin: 0;
}

@media (max-width: 760px) {
    .gallery-item--map,
    .gallery-item--elevation {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* Kachel-Ansicht: Karte statisch wie ein Bild - keine Leaflet-Controls,
   Klick auf die ganze Kachel (Overlay) öffnet das Modal. */
.tour-map__canvas--tile:not(.tour-map__canvas--modal) .leaflet-control-container {
    display: none;
}

/* Bei offener Lightbox oder offenem Karten-Modal keine Kachel-Taps
   annehmen - unabhängig von jeder Stacking-Reihenfolge. */
body.lightbox-open .tour-map__tile-overlay,
body.tour-map-modal-open .tour-map__tile-overlay {
    pointer-events: none;
}

.tour-map__tile-overlay {
    position: absolute;
    inset: 0;
    z-index: 1100;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    border-radius: 10px;
}

.tour-map__canvas--modal + .tour-map__tile-overlay {
    display: none;
}

.gallery-item--map.is-modal-detached .tour-map__tile-overlay,
.gallery-item--elevation.is-modal-detached {
    visibility: hidden;
}

/* ── Tour-Detail: volle Textbreite ohne Seitenpanel, Mosaik-Matrix ─────── */
.tour-detail__text {
    max-width: 50rem;
}

/* Einheitliche Matrix in der Hauptspalte: 2 Kacheln pro Zeile mit fester
   Zeilenhöhe. Bewusst kein aspect-ratio auf den Grid-Items: zusammen mit
   auto-Zeilen führte das zu falschen Zeilenhöhen und überdeckten Bildern. */
.gallery-grid--tour {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* Das Blog-Collage-Layout (.gallery-grid weiter oben) setzt feste 8
       Zeilen + aspect-ratio - beides hier neutralisieren, sonst kollabieren
       die Tour-Kacheln auf ~54px Zeilenhöhe. */
    grid-template-rows: none;
    aspect-ratio: auto;
    grid-auto-rows: clamp(14rem, 24vw, 20rem);
}

.gallery-grid--tour .gallery-item {
    grid-column: span 1;
    grid-row: span 1;
    height: 100%;
    min-height: 0;
}

/* Fix: --tile setzt height:100%, im Modal kollabierte die Karte dadurch
   auf 0 Höhe (nur das Profil war sichtbar). */
.tour-map__canvas--tile.tour-map__canvas--modal {
    height: min(62vh, 640px);
    min-height: min(62vh, 640px);
}

/* Mobil: Karte im Modal deutlich flacher, damit das Höhenprofil ohne
   Scrollen sichtbar ist. */
@media (max-width: 760px) {
    .tour-map__canvas--tile.tour-map__canvas--modal {
        height: min(38vh, 360px);
        min-height: min(38vh, 360px);
    }
}

.tour-map-modal__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tour-map-modal__links .tour-panel__button {
    flex: 0 0 auto;
    min-width: 14rem;
}

@media (max-width: 560px) {
    .gallery-grid--tour {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Modal: Overlays der Kacheln deaktivieren, Profil im Panorama-Verhältnis. */
.tour-map-modal .tour-map__tile-overlay {
    display: none;
}

.tour-map-modal .tour-elevation__canvas {
    height: auto;
    aspect-ratio: 32 / 9;
}

.tour-map-modal .gallery-item--elevation {
    aspect-ratio: auto;
}

/* Tour-Detail: Galerie bleibt in der Hauptspalte (kein Full-Bleed-Ausbruch
   wie bei Blog-Beiträgen - der überlagerte sonst die Tourdaten-Spalte). */
.tour-detail__main .entry__gallery {
    width: 100%;
    margin-left: 0;
    transform: none;
}

/* Header-Hinweis auf ausstehende Übersetzungen (neben dem Edit-Button). */
.site-header__author-translations {
    background: rgba(255, 210, 117, 0.18);
    border-color: rgba(255, 210, 117, 0.5);
}

/* Header-Aktionen im Bearbeitungsmodus: Speichern (gold) + Abbrechen. */
.site-header__editor-save {
    background: rgba(232, 200, 116, 0.25);
    border-color: rgba(232, 200, 116, 0.6);
    cursor: pointer;
}

.site-header__editor-cancel {
    opacity: 0.85;
}

.site-header__editor-save[disabled],
.site-header__editor-cancel.is-locked {
    opacity: 0.45;
    pointer-events: none;
}

/* Blätter-Navigation unter der Beitragsliste (/aktuelles/page:N): Seitenzahlen + Jahres-Sprung */
.pager { display: grid; gap: 0.7rem; margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid rgba(0, 0, 0, .12); font-size: .95rem; }
.pager__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; }
.pager__link { color: inherit; text-decoration: none; font-weight: 600; white-space: nowrap; }
.pager__link:hover { text-decoration: underline; }
.pager__link--disabled { opacity: .4; }
.pager__pages { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.pager__page { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; min-height: 2.2rem; padding: 0 0.5rem; border: 1px solid rgba(0, 0, 0, .14); border-radius: 6px; color: inherit; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.pager__page:hover { background: rgba(0, 0, 0, .06); }
.pager__page.is-current { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.pager__gap { padding: 0 0.2rem; opacity: .6; }
.pager__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.pager__status { color: inherit; opacity: .7; font-variant-numeric: tabular-nums; }
.pager__jump { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.pager__select { min-height: 2.2rem; padding: 0.3rem 0.6rem; border: 1px solid rgba(0, 0, 0, .18); border-radius: 6px; background: var(--c-surface); color: var(--c-surface-ink); font: inherit; font-size: .92rem; cursor: pointer; }
@media (max-width: 680px) {
    .pager__row { justify-content: center; }
    .pager__pages { order: -1; width: 100%; justify-content: center; }
    .pager__meta { justify-content: center; }
}

/* Autorenansicht der Tourenübersicht: angemeldete Autoren sehen auch
   unveröffentlichte Touren, die Karten sind nach Status eingefärbt.
   Farben wie das Status-Feld im Autorenbereich (fsh-author.css):
   Orange = Entwurf, Gelb = Prüfung, Grau = Archiv. */
.tour-card--status-draft {
    --tour-card-bg: #fbd8b4;
    --tour-card-line: rgba(205, 110, 30, 0.45);
    --tour-card-ink: #3a2410;
    --tour-card-ink-soft: #7a3b0a;
}

.tour-card--status-review {
    --tour-card-bg: #fbeeb5;
    --tour-card-line: rgba(176, 140, 0, 0.45);
    --tour-card-ink: #2f2600;
    --tour-card-ink-soft: #5f4a00;
}

.tour-card--status-archived {
    --tour-card-bg: #e1e4e2;
    --tour-card-line: rgba(80, 90, 88, 0.35);
    --tour-card-ink: #262b2a;
    --tour-card-ink-soft: #4a524f;
}

.tour-chip--status {
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tour-chip--status-draft {
    background: #7a3b0a;
    color: #fff;
}

.tour-chip--status-review {
    background: #5f4a00;
    color: #fff;
}

.tour-chip--status-archived {
    background: #4a524f;
    color: #fff;
}

.tour-author-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0 0 1.25rem;
    padding: 0.7rem 0.9rem;
    border: 1px dashed rgba(205, 110, 30, 0.55);
    border-radius: 6px;
    background: rgba(251, 216, 180, 0.35);
    font-size: var(--fs-sm, 0.92rem);
}

.tour-author-notice__legend {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Touren-Untermenü in der Autorenansicht: Statuszusatz hinter unveröffentlichten Touren */
.site-nav__status {
    margin-left: 0.3rem;
    padding: 0.05rem 0.4rem;
    border-radius: 6px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.site-nav__sublink--draft .site-nav__status { background: #fbd8b4; color: #7a3b0a; }
.site-nav__sublink--review .site-nav__status { background: #fbeeb5; color: #5f4a00; }
.site-nav__sublink--archived .site-nav__status { background: #e1e4e2; color: #4a524f; }

/* Statusfilter in der Autorenansicht: die Legende-Chips sind Buttons */
.tour-author-notice .tour-chip {
    border: 0;
    font: inherit;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    gap: 0.35rem;
    opacity: 0.78;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.tour-author-notice .tour-chip:hover,
.tour-author-notice .tour-chip:focus-visible {
    opacity: 1;
    outline: none;
}

.tour-author-notice .tour-chip.is-active {
    opacity: 1;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor;
}

.tour-chip--status-all {
    background: #17302f;
    color: #fff;
}

.tour-chip--status-published {
    background: #17492a;
    color: #fff;
}

.tour-chip__count {
    display: inline-block;
    min-width: 1.3em;
    padding: 0 0.3em;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    text-align: center;
    font-weight: 600;
}

/* Bildnachweis: kleiner ©-Knopf unten rechts im Bild, Klick zeigt den Text (partials/image-credit.html.twig, fsh-theme.js).
   Die Bild-Wrapper werden Bezugsrahmen für die absolute Position. */
.tour-card__media,
.post-card__media,
.gallery-item,
.tour-panorama,
.spotlight__tile--image,
.feature-card__media,
.teaser {
    position: relative;
}

.image-credit {
    position: absolute;
    right: 0.45rem;
    bottom: 0.45rem;
    z-index: 3;
    display: inline-flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.image-credit__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(20, 24, 22, 0.55);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0.7;
    user-select: none;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.image-credit__toggle:hover,
.image-credit__toggle:focus-visible,
.image-credit.is-open .image-credit__toggle {
    opacity: 1;
    background: rgba(20, 24, 22, 0.82);
    outline: none;
}

.image-credit__toggle:focus-visible {
    box-shadow: 0 0 0 2px #fff;
}

.image-credit__text {
    max-width: min(70vw, 22rem);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background: rgba(20, 24, 22, 0.9);
    color: #fff;
    text-align: right;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    overflow-wrap: anywhere;
}

.image-credit__text[hidden] {
    display: none;
}

.image-credit__text a {
    color: inherit;
    text-decoration: underline;
}

/* Im Hero sitzt der ©-Knopf in der Ecke rechts unten (.hero__corner), neben der Webcam-Kachel. */
.hero__corner .image-credit {
    position: relative;
    right: auto;
    bottom: auto;
}

.hero__corner .image-credit__text {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.35rem);
    width: max-content;
}

/* Wetterbericht (GeoSphere-Prognose) auf der Webcam-&-Wetter-Seite */
.forecast__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
}

.forecast__meta {
    margin: 0;
    font-size: var(--fs-sm, 0.92rem);
    opacity: 0.85;
}

.forecast__stale {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #fbeeb5;
    color: #5f4a00;
    font-size: 0.8em;
    font-weight: 600;
}

.forecast__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.forecast-day {
    display: grid;
    gap: 0.6rem;
    padding: clamp(0.92rem, 1.6vw, 1.2rem);
    background: rgba(255, 250, 242, 0.96);
    color: #1b1f1d;
    border: 1px solid var(--c-line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.forecast-day--first {
    border-color: rgba(41, 80, 78, 0.45);
    box-shadow: 0 0 0 2px rgba(41, 80, 78, 0.18), var(--shadow-sm);
}

.forecast-day__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.forecast-day__weekday {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    color: #15211f;
}

.forecast-day__date {
    color: #515754;
    font-size: var(--fs-sm, 0.92rem);
}

.forecast-day__main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.forecast-day__symbol {
    width: 4.25rem;
    height: 4.25rem;
    flex: 0 0 auto;
}

.forecast-day__temp {
    display: flex;
    flex-direction: column;
    margin: 0;
    line-height: 1.05;
}

.forecast-day__temp-max {
    font-family: var(--ff-display);
    font-size: 2rem;
    color: #15211f;
}

.forecast-day__temp-min {
    color: #515754;
    font-size: 1.05rem;
}

.forecast-day__facts {
    display: grid;
    gap: 0.25rem;
    margin: 0;
    font-size: var(--fs-sm, 0.92rem);
}

.forecast-day__facts > div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px dashed rgba(27, 31, 29, 0.12);
}

.forecast-day__facts dt {
    color: #515754;
}

.forecast-day__facts dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

.forecast-day__text {
    margin: 0;
    font-size: var(--fs-sm, 0.92rem);
    line-height: 1.45;
}

.forecast__source {
    margin: 0.9rem 0 0;
    font-size: var(--fs-xs, 0.8rem);
    opacity: 0.8;
}

@media (max-width: 1100px) {
    .forecast__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* Wetterdiagramme (Grafana-Messwerte als SVG) + Vergrößern-Fenster mit interaktivem Grafana-Panel */
.weather-charts__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.weather-charts__text {
    max-width: 46rem;
    margin: 0.4rem 0 0;
    opacity: 0.9;
}

.weather-charts__meta {
    margin: 0.75rem 0 0;
    font-size: var(--fs-sm, 0.92rem);
    opacity: 0.85;
}

.weather-charts__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.weather-chart {
    position: relative;
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding: 0.85rem 0.95rem 0.8rem;
    background: rgba(255, 250, 242, 0.96);
    color: #1b1f1d;
    border: 1px solid var(--c-line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.weather-chart--wide {
    grid-column: 1 / -1;
}

.weather-chart__title {
    font-family: var(--ff-display);
    font-size: 1.1rem;
    color: #15211f;
    padding-right: 7rem;
}

.weather-chart__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.weather-chart--wide .weather-chart__svg {
    max-height: 300px;
}

.weather-chart__grid {
    stroke: rgba(27, 31, 29, 0.1);
    stroke-width: 1;
}

.weather-chart__grid--v {
    stroke-dasharray: 3 4;
}

.weather-chart__tick {
    fill: #515754;
    font-size: 11px;
    font-family: inherit;
}

.weather-chart__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    font-size: var(--fs-sm, 0.9rem);
    color: #3d4341;
}

.weather-chart__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.weather-chart__legend-item i {
    display: inline-block;
    width: 0.8rem;
    height: 0.25rem;
    border-radius: 2px;
}

.weather-chart__legend-item strong {
    color: #15211f;
}

.weather-chart__zoom {
    position: absolute;
    top: 0.65rem;
    right: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(41, 80, 78, 0.25);
    border-radius: 6px;
    background: #fff;
    color: #29504e;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.weather-chart__zoom:hover,
.weather-chart__zoom:focus-visible {
    background: #29504e;
    color: #fff;
    outline: none;
}

.weather-charts__empty {
    margin-top: 1rem;
}

.weather-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 3vw, 2rem);
    background: rgba(10, 14, 13, 0.72);
}

.weather-modal[hidden] {
    display: none;
}

.weather-modal__box {
    display: flex;
    flex-direction: column;
    width: min(1200px, 100%);
    height: min(720px, 100%);
    background: #fff;
    color: #1b1f1d;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.weather-modal__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.6rem 0.8rem 0.6rem 1rem;
    border-bottom: 1px solid rgba(27, 31, 29, 0.1);
}

.weather-modal__head strong {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    margin-right: auto;
}

.weather-modal__range {
    display: inline-flex;
    gap: 0.25rem;
}

.weather-modal__range button,
.weather-modal__close {
    border: 1px solid rgba(41, 80, 78, 0.25);
    border-radius: 6px;
    background: #fff;
    color: #29504e;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    cursor: pointer;
}

.weather-modal__range button.is-active {
    background: #29504e;
    color: #fff;
}

.weather-modal__close {
    font-size: 1.3rem;
    line-height: 1;
    padding: 0.2rem 0.6rem;
}

.weather-modal__frame {
    flex: 1 1 auto;
    width: 100%;
    border: 0;
}

html.weather-modal-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .weather-charts__grid {
        grid-template-columns: 1fr;
    }

    .weather-chart__zoom span {
        display: none;
    }

    .weather-chart__title {
        padding-right: 2.5rem;
    }
}

/* ── Umschalter Autoren-/Besucheransicht im Header (nur angemeldete Autoren, fsh-author) ──
   Aktiver Modus = gefüllte Hälfte mit Häkchen (Autor terrakotta, Besucher gold), der andere
   Modus nur als gedämpfter Text. Hover darf nie wie „aktiv“ aussehen. In der Besucheransicht
   zieht sich zusätzlich ein goldener Streifen über die Oberkante des Headers. */
.site-header__view-switch {
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
    overflow: hidden;
    border: 2px solid var(--c-accent-warm);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-header__view-switch.is-visitor {
    border-color: #c9a044;
}

.site-header__view-option {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.32rem 0.6rem;
    background: transparent;
    color: rgba(255, 250, 242, 0.66);
    text-decoration: none;
}

.site-header__view-option svg {
    flex: 0 0 auto;
}

.site-header__view-check {
    display: none;
}

.site-header__view-option.is-active {
    background: var(--c-accent-warm);
    color: var(--c-on-accent);
}

.site-header__view-option.is-active .site-header__view-check {
    display: inline;
}

.site-header__view-switch.is-visitor .site-header__view-option.is-active {
    background: #c9a044;
    color: #3d2f0e;
}

.site-header__view-option:not(.is-active):hover,
.site-header__view-option:not(.is-active):focus-visible {
    background: rgba(255, 250, 242, 0.14);
    color: var(--c-on-accent);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* Besucheransicht: goldener Streifen an der Oberkante des (sticky) Headers auf jeder Seite. */
.site-header--visitor-view::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: #c9a044;
    pointer-events: none;
}

@media (max-width: 540px) {
    .site-header__view-icon {
        display: none;
    }

    .site-header__view-option {
        padding: 0.3rem 0.45rem;
    }
}
