/* ==========================================================================
   Freundeskreis Isartalbahn – Gestaltung
   Nach Gestaltungsleitfaden 2026: Sora Bold/Regular, Anthrazit #3a3a39,
   Gold #c5a66d, Grautöne 10/30/50 % K und Weiß. Auszeichnungen unterstrichen.
   ========================================================================== */

@font-face { font-family: "Sora"; src: url("../fonts/sora-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #3a3a39;
  --ink-deep: #2c2c2b;
  --gold: #c5a66d;
  --gold-deep: #8a6d36;       /* Gold abgedunkelt für Text auf Hell (Kontrast) */
  --gold-soft: #efe6d4;
  --k10: #ececec;
  --k30: #b2b2b2;
  --k50: #878787;
  --paper: #f7f6f2;
  --white: #fff;
  --muted: #5f5f5d;
  --line: #e0ded8;
  --radius: 22px;
  --radius-s: 14px;
  --shadow: 0 22px 60px rgba(34, 34, 30, .12);
  --shadow-s: 0 8px 28px rgba(34, 34, 30, .06);
  --header-h: 88px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Sora", Arial, sans-serif; font-size: 1rem; line-height: 1.7; text-rendering: optimizeLegibility; }
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); text-transform: uppercase; letter-spacing: -.045em; overflow-wrap: break-word; hyphens: manual; }
h2 { font-size: clamp(1.8rem, 3.6vw, 3.2rem); text-transform: uppercase; letter-spacing: -.035em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
/* Leitfaden: Auszeichnungen unterstreichen, nicht fetten */
strong, b { font-weight: 400; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 42px; height: 2px; background: var(--gold); flex: none; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.eyebrow-light { color: var(--k30); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 720px; color: var(--muted); }
.caption { margin-top: 10px; font-size: .72rem; color: var(--muted); }
.text-link { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- Buttons ---------- */
.button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border: 1px solid var(--gold); border-radius: 999px;
  background: var(--gold); color: var(--ink); font-weight: 700; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.button:hover, .wp-block-button__link:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(110, 88, 47, .22); }
.button-ghost { background: transparent; border-color: var(--ink); }
.button-ghost:hover { background: var(--white); }
.button-small { padding: 10px 18px; font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Kopfbereich ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(247, 246, 242, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(58, 58, 57, .1); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { margin-right: auto; display: block; }
.brand-logo { width: 230px; height: auto; }
.nav .menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 10px 0; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a, .nav .current_page_parent > a, .nav a[aria-current="page"] { border-color: var(--gold); }
.menu-toggle { display: none; align-items: center; gap: 10px; padding: 10px 4px; border: 0; background: none; font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, background .25s; }
.menu-toggle-lines { position: relative; }
.menu-toggle-lines::before, .menu-toggle-lines::after { content: ""; position: absolute; left: 0; }
.menu-toggle-lines::before { top: -7px; }
.menu-toggle-lines::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Abschnitte ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-white { background: var(--white); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .section-head p { color: var(--k10); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 0; }
.section-head > p, .section-head-side p { max-width: 560px; margin: 0; color: var(--muted); }
.section-head-side { display: grid; gap: 14px; justify-items: start; max-width: 560px; }
.section-dark .section-head { margin-bottom: 0; }

/* ---------- Startseite: Begrüßung ---------- */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); hyphens: manual; }
.claim { margin: 26px 0 0; font-size: clamp(1.2rem, 2.3vw, 1.85rem); line-height: 1.45; }
.claim span { display: block; }
.claim-small { font-size: clamp(1.1rem, 2vw, 1.5rem); }
.hero-text { margin-top: 22px; max-width: 540px; color: var(--muted); }
.hero-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px; background: var(--k10); box-shadow: var(--shadow); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--bogen .hero-photo { border-radius: 48% 48% 14px 14px / 40% 40% 14px 14px; }

/* ---------- Titelbild: Darstellungen ---------- */
/* Goldrahmen, versetzt */
.hero--rahmen .hero-figure { padding: 0 20px 0 0; }
.hero--rahmen .hero-photo { border-radius: 22px; overflow: visible; box-shadow: 20px 20px 0 -3px var(--paper), 20px 20px 0 0 var(--gold); }
.hero--rahmen .hero-photo img { border-radius: 22px; }
.hero--rahmen .hero-caption { margin-top: 34px; }

/* Fotoabzug aus dem Archiv */
.hero--foto .hero-figure { position: relative; margin: 10px 8px 0; padding: 16px 16px 0; background: #fff; border-radius: 4px; box-shadow: 0 24px 50px rgba(34, 34, 30, .18), 0 2px 6px rgba(34, 34, 30, .08); transform: rotate(-2deg); transition: transform .5s var(--ease); }
.hero--foto .hero-figure:hover { transform: rotate(0); }
.hero--foto .hero-figure::before { content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; background: rgba(197, 166, 109, .55); transform: translateX(-50%) rotate(2deg); border-radius: 2px; }
.hero--foto .hero-photo { border-radius: 2px; box-shadow: none; }
.hero--foto .hero-caption { margin: 0; padding: 14px 4px 18px; text-align: center; font-size: .82rem; color: var(--ink); letter-spacing: .02em; }

/* Panorama, volle Breite */
.hero--panorama .hero-grid { grid-template-columns: 1fr; gap: 40px; }
.hero--panorama { padding-top: 56px; }
.hero--panorama .hero-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: end; }
.hero--panorama .hero-copy > .eyebrow, .hero--panorama .hero-copy > h1 { grid-column: 1; }
.hero--panorama .hero-copy > .claim { grid-column: 1; }
.hero--panorama .hero-copy > .hero-text, .hero--panorama .hero-copy > .actions { grid-column: 2; }
.hero--panorama .hero-copy > .hero-text { grid-row: 2 / 4; align-self: end; margin: 0; }
.hero--panorama .hero-photo { aspect-ratio: 21 / 9; border-radius: 26px; }
.hero--panorama .hero-photo img { object-position: center 62%; }
@media (max-width: 960px) {
  .hero--panorama .hero-copy { display: block; }
  .hero--panorama .hero-photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .hero--rahmen .hero-figure { padding-right: 12px; }
  .hero--rahmen .hero-photo { box-shadow: 12px 12px 0 -3px var(--paper), 12px 12px 0 0 var(--gold); }
  .hero--rahmen .hero-caption { margin-top: 24px; }
  .hero--foto .hero-figure { padding: 10px 10px 0; }
}

/* ---------- Karten (News) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); transition: transform .3s var(--ease), box-shadow .3s; }
.section-white .card { background: var(--paper); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-link { display: flex; flex-direction: column; width: 100%; text-decoration: none; }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--k10); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--k10); }
.card-placeholder img { width: 96px !important; height: 96px !important; object-fit: contain !important; opacity: .55; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 12px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card-meta span:first-child { background: var(--gold); color: var(--ink); padding: 4px 10px; border-radius: 999px; }
.card-title { font-size: 1.3rem; margin-bottom: 10px; }
.card-text { color: var(--muted); font-size: .93rem; }
.card-more { margin-top: auto; padding-top: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 40px; background: var(--white); }
.stat dd { margin: 0; font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.stat dd::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 16px; background: var(--gold); }
.stat dt { color: var(--muted); }

/* ---------- Mitglied werden ---------- */
.member-panel { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; padding: 48px; border-radius: var(--radius); background: var(--ink); color: var(--white); box-shadow: var(--shadow); }
.member-panel h2 { margin-bottom: 12px; }
.member-panel p { color: var(--k10); margin: 0; max-width: 560px; }
.member-mark { width: 120px; height: 120px; }
.member-action { display: grid; gap: 10px; justify-items: start; }
.member-action small { color: var(--k30); font-size: .75rem; }

/* ---------- Seitenkopf ---------- */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.5rem, 6.5vw, 5.6rem); margin-bottom: .3em; }
.page-hero .lead { margin: 0; }
.route-hero, .contact-hero { background: linear-gradient(135deg, var(--paper), #ece6d9); }

/* ---------- Fließtext (Editor-Inhalte) ---------- */
.content { max-width: 780px; }
.content > * + * { margin-top: 0; }
.content h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); text-transform: none; letter-spacing: -.02em; margin-top: 2.2em; }
.content h3 { margin-top: 1.8em; }
.content p, .content li { color: #4b4b49; }
.content a { text-decoration: underline; text-decoration-color: var(--gold); }
.content ul, .content ol { padding-left: 1.3em; }
.content > :first-child { margin-top: 0; }
.content-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.content .wp-block-buttons { margin: 1.6em 0; display: flex; flex-wrap: wrap; gap: 12px; }
.content .wp-block-image img { border-radius: var(--radius-s); }
.content blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold); font-size: 1.15rem; }
.is-style-hinweis, .notice { margin: 1.6em 0; padding: 18px 22px; background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; color: var(--ink) !important; }
.wp-block-group.is-style-karte { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }

/* Galerie im Editor-Inhalt */
.content .wp-block-gallery { margin: 1.5em 0 2em; gap: 12px; }
.content .wp-block-gallery.has-nested-images figure.wp-block-image { border-radius: var(--radius-s); overflow: hidden; }
.content .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 0; transition: transform .45s var(--ease); }
.content .wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.04); }
.content .wp-block-gallery .blocks-gallery-caption, .content .wp-element-caption { font-size: .78rem; color: var(--muted); margin-top: 10px; }
.single .content { max-width: 900px; }

/* ---------- News-Übersicht & Beitrag ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter a { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.filter a[aria-current="page"], .filter a:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current { background: var(--gold); border-color: var(--gold); }
.empty { padding: 40px; background: var(--white); border: 1px dashed var(--k30); border-radius: var(--radius); text-align: center; color: var(--muted); }

.single-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.single-hero h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); text-transform: none; letter-spacing: -.035em; }
.single-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; color: var(--muted); font-size: .9rem; margin: 0; }
.single-when { background: var(--gold); color: var(--ink); font-weight: 700; padding: 5px 14px; border-radius: 999px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.single-image { margin: 0; }
.single-image img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 8px; }
.post-nav-link { display: grid; gap: 4px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; }
.post-nav-link small { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-nav-link:hover { box-shadow: var(--shadow-s); }
.post-nav-prev { text-align: right; }
.back-row { padding: 32px 0 80px; }

/* ---------- Streckenporträt ---------- */
.route-intro { margin: 0 auto 72px; }
.route { position: relative; max-width: 1000px; margin: 0 auto; }
.route-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.route-line path { fill: none; stroke: var(--gold); stroke-width: 4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 2 0; }
.route-dot { position: absolute; left: 50%; top: 0; z-index: 3; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); border: 4px solid var(--ink); box-shadow: 0 0 0 6px rgba(197, 166, 109, .25); transform: translate(-50%, -50%); transition: left .6s var(--ease), top .6s var(--ease); }
.stations { position: relative; margin: 0; padding: 0; list-style: none; }
.station { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; min-height: 420px; }
.station .flip { grid-column: 1; grid-row: 1; }
.station .station-km { grid-column: 2; grid-row: 1; }
.station:nth-child(even) .flip { grid-column: 3; }
.station-km { display: flex; justify-content: center; position: relative; z-index: 2; }
.stone { width: 76px; height: auto; filter: drop-shadow(0 12px 12px rgba(42, 42, 38, .2)); transition: transform .4s var(--ease); }
.station.is-active .stone { transform: translateY(-4px) scale(1.06); }
.stone-text { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; border: 5px solid var(--paper); box-shadow: 0 0 0 3px var(--gold); line-height: 1; }
.stone-text small { font-size: .6rem; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; color: var(--k30); }

.flip { position: relative; width: 100%; max-width: 420px; height: 370px; justify-self: center; perspective: 1200px; cursor: pointer; border-radius: 18px; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .75s var(--ease); }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 16px 44px rgba(32, 32, 28, .1); }
.flip-front { background: var(--white); border: 1px solid var(--line); padding: 12px; transition: box-shadow .35s; }
.station.is-active .flip-front, .flip:hover .flip-front { box-shadow: var(--shadow); }
.flip-image { height: 230px; border-radius: 12px; overflow: hidden; background: var(--k10); flex: none; }
.flip-image img { width: 100%; height: 100%; object-fit: cover; }
.flip-copy { padding: 14px 8px 0; }
.flip-copy h2, .flip-back h2 { font-size: 1.4rem; text-transform: none; letter-spacing: -.02em; margin-bottom: 4px; }
.flip-credit { font-size: .74rem; color: var(--muted); margin: 0; }
.flip-hint { margin: auto 8px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.flip-back { transform: rotateY(180deg); background: var(--ink); color: var(--white); padding: 28px; }
.flip-back .card-meta { color: var(--k30); }
.flip-back .flip-hint { color: var(--gold); margin: 14px 0 0; flex: none; }
.flip-text { flex: 1 1 auto; min-height: 0; overflow-y: auto; font-size: .9rem; line-height: 1.6; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.flip-text p:last-child { margin-bottom: 0; }
.flip-text p { color: var(--k10); }

.external-box { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin-top: 72px; padding: 36px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); }
.external-box h2 { font-size: 1.6rem; text-transform: none; margin-bottom: 8px; }
.external-box p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Streckenporträt: Linienplan ---------- */
.lineplan { margin-top: 8px; }
.lineplan-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lineplan-length { padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--white); }
.lineplan-scroll { overflow-x: auto; overflow-y: hidden; margin: 0 -20px; padding: 0 20px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; -webkit-overflow-scrolling: touch; }
.lineplan-track { position: relative; min-width: 880px; height: 230px; margin: 0 100px; }
.lineplan-rail { position: absolute; left: -24px; right: -24px; top: 112px; height: 8px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--k30) 0 14px, var(--k10) 14px 22px); }
.lineplan-progress { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--progress, 0%) + 24px); border-radius: 8px; background: var(--gold); transition: width .6s var(--ease); }
.lineplan-scale span { position: absolute; left: var(--pos); top: 204px; transform: translateX(-50%); font-size: .66rem; color: var(--k50); letter-spacing: .05em; }
.lineplan-scale span::before { content: ""; display: block; width: 1px; height: 8px; margin: 0 auto 2px; background: var(--k30); }
.lineplan-stops { margin: 0; padding: 0; list-style: none; }
.lineplan-stop { position: absolute; left: var(--pos); top: 116px; }
.lineplan-stop button { position: relative; display: block; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.lineplan-dot { position: absolute; inset: 5px; border-radius: 50%; background: var(--white); border: 4px solid var(--ink); transition: transform .3s var(--ease), background .3s, box-shadow .3s; }
.lineplan-stop button:hover .lineplan-dot { transform: scale(1.15); }
.lineplan-stop button[aria-selected="true"] .lineplan-dot { background: var(--gold); transform: scale(1.3); box-shadow: 0 0 0 6px rgba(197, 166, 109, .3); }
.lineplan-label { position: absolute; left: 50%; bottom: 34px; display: grid; gap: 2px; justify-items: center; transform: translateX(-50%); white-space: nowrap; text-align: center; transition: color .2s; }
.lineplan-stop.is-below .lineplan-label { bottom: auto; top: 34px; }
.lineplan-label strong { text-decoration: none; font-weight: 700; font-size: .86rem; padding: 4px 10px; border-radius: 8px; transition: background .25s, color .25s; }
.lineplan-label small { font-size: .72rem; color: var(--muted); letter-spacing: .06em; }
.lineplan-stop button[aria-selected="true"] .lineplan-label strong { background: var(--ink); color: var(--white); }
.lineplan-panels { margin-top: 28px; }
.lineplan-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); }
.lineplan-panel + .lineplan-panel { margin-top: 24px; }
.lineplan.is-ready .lineplan-panel + .lineplan-panel { margin-top: 0; }
.lineplan-panel.is-entering { animation: pop .45s var(--ease); }
.lineplan-photo { margin: 0; }
.lineplan-image { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-s); background: var(--k10); }
.lineplan-image img { width: 100%; height: 100%; object-fit: cover; }
.lineplan-copy { padding: 8px 12px 8px 0; }
.lineplan-meta, .report-head { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.lineplan-meta h2, .report-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); text-transform: none; letter-spacing: -.025em; margin-bottom: 8px; }
.lineplan-meta .eyebrow, .report-head .eyebrow { margin-bottom: 8px; }
.lineplan-meta .card-meta, .report-head .card-meta { margin: 0; }
.lineplan-stone .stone, .report-stone .stone { width: 60px; }
.lineplan-text p, .report-text p { color: #4b4b49; }
.lineplan-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lineplan-nav .button[disabled] { opacity: .35; pointer-events: none; }

/* ---------- Streckenporträt: Reportage ---------- */
.report { margin: 0; padding: 0; list-style: none; }
.report-item { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.report-item:nth-child(4n+3) .report-photo { order: 2; }
.report-photo { margin: 0; }
.report-image { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--k10); box-shadow: var(--shadow); }
.report-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.report-item:hover .report-image img { transform: scale(1.03); }
.report-gap { position: relative; height: 120px; display: grid; place-items: center; }
.report-gap::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; border-left: 4px dotted var(--gold); transform: translateX(-50%); }
.report-gap span { position: relative; padding: 5px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--gold); font-size: .74rem; font-weight: 700; letter-spacing: .1em; }
.report-gap span:empty { display: none; }

@media (max-width: 960px) {
  .lineplan-panel, .report-item { grid-template-columns: 1fr; gap: 22px; }
  .report-item:nth-child(4n+3) .report-photo { order: 0; }
  .lineplan-copy { padding: 0 6px 6px; }
  .lineplan-track { min-width: 760px; margin: 0 90px; }
  .report-gap { height: 90px; }
}
@media (max-width: 600px) {
  .lineplan-panel { padding: 14px; }
  .lineplan-scroll { margin: 0 -16px; padding: 0 16px; }
  .lineplan-head { font-size: .66rem; }
  .lineplan-stone .stone, .report-stone .stone { width: 46px; }
}

/* ---------- Streckenporträt: Zeitreise (Standard) ---------- */
/* Hell und klassisch: Fotoabzüge auf einem Stapel, rechts die Strecke als Erzählung */
.route-layout-zeitreise { padding-bottom: 0; }
.route-layout-zeitreise .route-intro { margin-bottom: 56px; }
.route-layout-zeitreise .external-box { margin: 64px auto 96px; }
.tr { padding: 80px 0 40px; background: linear-gradient(180deg, var(--paper) 0%, #efe9dd 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 56px; padding-bottom: 44px; margin-bottom: 64px; border-bottom: 1px solid var(--line); }
.tr-head h2 { max-width: 720px; margin: 0; font-size: clamp(1.9rem, 4vw, 3.3rem); line-height: 1.06; }
.tr-facts { display: flex; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); overflow: hidden; }
.tr-facts div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 18px 26px; }
.tr-facts div + div { border-left: 1px solid var(--line); }
.tr-facts dt { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tr-facts dd { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.tr-facts dd small { font-size: .5em; letter-spacing: 0; color: var(--gold-deep); }

.tr-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 80px; align-items: start; }
.tr-stage { position: sticky; top: calc(var(--header-h) + 36px); padding: 18px 10px 0; }
.tr-frame { position: relative; aspect-ratio: 4 / 3.45; }
.tr-pile { position: absolute; inset: 6% 3% 0 3%; background: var(--white); border-radius: 3px; box-shadow: 0 10px 30px rgba(34, 34, 30, .12); }
.tr-pile-1 { transform: rotate(3.2deg) translate(10px, 6px); }
.tr-pile-2 { transform: rotate(-2.4deg) translate(-8px, 10px); background: #fbfaf7; }
.tr-shot { position: absolute; inset: 0; margin: 0; padding: 14px 14px 0; display: flex; flex-direction: column; background: var(--white); border-radius: 3px; box-shadow: 0 26px 60px rgba(34, 34, 30, .2), 0 2px 6px rgba(34, 34, 30, .08); opacity: 0; transform: translateY(26px) rotate(-1.5deg) scale(.98); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.tr-shot:nth-of-type(even) { --tilt: 1.4deg; }
.tr-shot:nth-of-type(odd) { --tilt: -1.6deg; }
.tr-shot.is-active { opacity: 1; transform: rotate(var(--tilt)); z-index: 2; }
.tr-shot::before { content: ""; position: absolute; top: -13px; left: 50%; z-index: 3; width: 110px; height: 28px; background: rgba(197, 166, 109, .55); transform: translateX(-50%) rotate(-2deg); border-radius: 2px; }
.tr-shot .tr-image { flex: 1; min-height: 0; overflow: hidden; border-radius: 2px; background: var(--k10); }
.tr-shot .tr-image img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.12) contrast(1.02); }
.tr-print-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 4px 18px; }
.tr-print-title { font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.tr-print-km { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tr-stage-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 26px; font-size: .74rem; color: var(--muted); }
.tr-counter { font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.tr-counter-now { color: var(--gold-deep); }

.tr-chapters { position: relative; margin: 0; padding: 0 0 0 40px; list-style: none; }
.tr-chapters::before, .tr-chapters::after { content: ""; position: absolute; left: 6px; top: 8px; width: 2px; border-radius: 2px; }
.tr-chapters::before { bottom: 8px; background: repeating-linear-gradient(180deg, var(--k30) 0 8px, transparent 8px 14px); }
.tr-chapters::after { height: calc((100% - 16px) * var(--tr-progress, 0)); background: var(--gold); transition: height .5s var(--ease); }
.tr-chapter { position: relative; min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.tr-chapter:first-child { min-height: 60vh; justify-content: flex-start; padding-top: 16px; }
.tr-chapter:last-child { min-height: 62vh; }
.js .tr-chapter { opacity: .3; transition: opacity .6s var(--ease); }
.js .tr-chapter.is-active { opacity: 1; }
.tr-index { position: relative; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 14px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tr-index-km { padding: 3px 10px; border: 1px solid var(--gold); border-radius: 999px; color: var(--ink); letter-spacing: .1em; }
.tr-dot { position: absolute; left: -40px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--paper); border: 3px solid var(--k30); transition: background .4s, border-color .4s, box-shadow .4s; }
.tr-chapter.is-active .tr-dot, .tr-chapter.is-passed .tr-dot { background: var(--gold); border-color: var(--ink); }
.tr-chapter.is-active .tr-dot { box-shadow: 0 0 0 6px rgba(197, 166, 109, .25); }
.tr-chapter-photo { display: none; margin: 0 0 24px; }
.tr-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.tr-chapter h3 { margin: 0 0 18px; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.08; letter-spacing: -.035em; text-transform: uppercase; }
.tr-stone .stone { width: 46px; }
.tr-text { max-width: 480px; }
.tr-text p { color: #4b4b49; font-size: 1.02rem; line-height: 1.75; }
.tr-next { margin: 18px 0 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.tr-next span { display: inline-block; margin-right: 6px; }
.tr-end { color: var(--muted); }

@media (max-width: 960px) {
  .tr { padding: 56px 0 24px; }
  .tr-head { margin-bottom: 40px; padding-bottom: 32px; }
  .tr-body { grid-template-columns: 1fr; gap: 0; }
  .tr-stage { display: none; }
  .tr-chapters { padding-left: 30px; }
  .tr-chapters::before, .tr-chapters::after { left: 4px; }
  .tr-chapter, .tr-chapter:first-child, .tr-chapter:last-child { min-height: 0; padding: 0 0 56px; justify-content: flex-start; }
  .js .tr-chapter { opacity: 1; }
  .tr-dot { left: -30px; }
  .tr-chapter-photo { display: block; position: relative; padding: 10px 10px 0; background: var(--white); border-radius: 3px; box-shadow: 0 16px 36px rgba(34, 34, 30, .16); transform: rotate(-1deg); }
  .tr-chapter:nth-child(even) .tr-chapter-photo { transform: rotate(1deg); }
  .tr-chapter-photo .tr-image { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px; background: var(--k10); }
  .tr-chapter-photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.12); }
  .tr-chapter-photo .caption { margin: 0; padding: 10px 2px 12px; font-size: .7rem; }
}
@media (max-width: 600px) {
  .tr-facts div { padding: 14px 18px; }
  .route-layout-zeitreise .route-intro { margin-bottom: 36px; }
}

/* ---------- Über uns ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.person { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); transition: transform .3s var(--ease), box-shadow .3s; }
.person:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.person-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.person-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--k10); }
.person-photo > img { width: 100%; height: 100%; object-fit: cover; }
.person-photo.is-placeholder { aspect-ratio: 16 / 7; background: linear-gradient(135deg, var(--ink), #4a4a48); }
.initials { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--gold); color: var(--white); font-size: 1.6rem; font-weight: 700; letter-spacing: .04em; transition: transform .3s var(--ease); }
.person:hover .initials { transform: scale(1.06); }
.person-info { display: flex; flex-direction: column; padding: 22px 24px 24px; }
.person-role { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin: 0; }
.person-name { font-size: 1.25rem; font-weight: 700; margin-top: 4px; }
.person-more { margin-top: 14px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }

dialog { color: var(--ink); }
.person-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); overflow: auto; }
.person-dialog::backdrop { background: rgba(30, 30, 28, .6); backdrop-filter: blur(4px); }
.person-dialog[open] { animation: pop .35s var(--ease); }
.dialog-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dialog-body { padding: 32px; }
.dialog-body h2 { font-size: 1.8rem; text-transform: none; margin: 6px 0 14px; }
.dialog-text p { color: var(--muted); }
.dialog-close, .lightbox-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-s); font-size: 1.6rem; line-height: 1; cursor: pointer; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.press { columns: 3; column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.press-item { break-inside: avoid; margin-bottom: 28px; }
.press-image { display: block; overflow: hidden; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-s); cursor: zoom-in; }
.press-image img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.press-image:hover img { transform: scale(1.03); }
.press-source { margin: 12px 2px 0; font-size: .82rem; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact-intro { margin-bottom: 40px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 56px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; box-shadow: var(--shadow-s); transition: transform .25s var(--ease), box-shadow .25s; }
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { text-decoration: none; font-weight: 700; word-break: break-word; }
.contact-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--gold); font-weight: 700; font-size: 1.15rem; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.contact-aside > img { width: 96px; height: 96px; margin-bottom: 24px; }
.contact-aside h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.contact-aside > p { color: var(--muted); }
.contact-member { margin-top: 28px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); }
.contact-member strong { text-decoration: none; font-weight: 700; display: block; }
.contact-member p { margin: 4px 0 10px; color: var(--muted); font-size: .92rem; }
.contact-form { padding: 36px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); }
.form-head h2 { font-size: 1.7rem; text-transform: none; margin-bottom: 6px; }
.form-head p:last-child { color: var(--muted); font-size: .85rem; }
.contact-form label { display: block; margin: 18px 0 6px; font-weight: 700; font-size: .92rem; }
.contact-form label small { font-weight: 400; color: var(--muted); }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--k30); border-radius: 10px; background: #fcfcfa; transition: border-color .2s, box-shadow .2s; }
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197, 166, 109, .3); }
.contact-form textarea { min-height: 170px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.contact-form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .86rem; color: var(--muted); margin-top: 22px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.form-submit { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 26px; }
.form-submit small { color: var(--muted); font-size: .78rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-message { display: grid; gap: 2px; margin: 18px 0 4px; padding: 16px 18px; border-radius: 12px; }
.form-message strong { text-decoration: none; font-weight: 700; }
.form-message.success { background: #e7f1e4; border-left: 4px solid #4c7a3f; }
.form-message.error { background: #f8e6e2; border-left: 4px solid #a2402d; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 120px 0; }
.error-404 img { margin: 0 auto 24px; width: 120px; }
.error-404 .eyebrow { justify-content: center; }
.error-404 .eyebrow::before { display: none; }
.error-404 h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.error-404 .lead { margin-inline: auto; }
.error-404 .actions { justify-content: center; }

/* ---------- Fußbereich ---------- */
.site-footer { padding: 64px 0 28px; background: var(--white); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand img { width: 230px; margin-bottom: 18px; }
.footer-claim { color: var(--muted); font-size: .92rem; }
.footer-claim span { display: block; }
.footer-title { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-address { font-style: normal; color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.footer-links { overflow-wrap: anywhere; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.to-top { text-decoration: none; }
.to-top:hover { text-decoration: underline; }

/* ---------- Einblendungen ---------- */
.notice-bar { position: fixed; left: 50%; bottom: 18px; z-index: 90; display: flex; gap: 22px; align-items: center; width: min(760px, calc(100% - 24px)); padding: 18px 22px; background: var(--ink); color: var(--white); border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); transform: translateX(-50%); animation: rise .5s var(--ease); }
.notice-bar strong { text-decoration: none; font-weight: 700; }
.notice-bar p { margin: 2px 0 0; font-size: .82rem; color: var(--k10); }
.notice-bar a { color: var(--white); }
.notice-bar .button { flex: none; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; gap: 16px; width: min(380px, calc(100% - 24px)); padding: 22px 22px 22px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); animation: rise .5s var(--ease); }
.toast img { width: 56px; height: 56px; flex: none; }
.toast strong { text-decoration: none; font-weight: 700; display: block; }
.toast p { margin: 4px 0 12px; font-size: .88rem; color: var(--muted); }
.toast-close { position: absolute; top: 6px; right: 8px; width: 36px; height: 36px; border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); }
@keyframes rise { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 60px 70px; border: 0; background: #1c1c1b; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(20, 20, 18, .96); }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: var(--k10); font-size: .85rem; text-align: center; }
.lightbox-nav { position: absolute; top: 50%; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.lightbox-nav:hover { background: rgba(255, 255, 255, .25); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox.is-single .lightbox-nav { display: none; }

/* ---------- Einblend-Animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px rgba(0, 0, 0, .08); }
  .nav.is-open { display: block; }
  .nav .menu { flex-direction: column; align-items: stretch; gap: 0; width: min(1180px, 100% - 40px); margin: 0 auto; padding: 10px 0 22px; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .nav .menu li:last-child a { border-bottom: 0; }
  .brand-logo { width: 200px; }

  .hero-grid, .about-grid, .single-hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards, .team { grid-template-columns: repeat(2, 1fr); }
  .press { columns: 2; }
  .section-head { flex-direction: column; align-items: start; gap: 18px; }
  .member-panel { grid-template-columns: auto 1fr; }
  .member-action { grid-column: 1 / -1; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .route-line { display: none; }
  .route::before { content: ""; position: absolute; left: 38px; top: 0; bottom: 0; width: 4px; border-radius: 4px; background: linear-gradient(var(--gold), var(--gold-deep)); }
  .route-dot { left: 40px; z-index: 1; }
  .station, .station:nth-child(even) { grid-template-columns: 80px 1fr; gap: 16px; min-height: 0; margin-bottom: 40px; }
  .station .flip, .station:nth-child(even) .flip { grid-column: 2; max-width: 520px; justify-self: start; }
  .station .station-km { grid-column: 1; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ==========================================================================
   Smartphone
   ========================================================================== */
@media (max-width: 600px) {
  .wrap { width: min(1180px, 100% - 32px); }
  .brand-logo { width: 170px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 40px 0; }
  .hero { padding: 40px 0 48px; }
  .page-hero { padding: 48px 0 40px; }
  h1, .page-hero h1 { font-size: clamp(1.9rem, 10.5vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 8vw, 2rem); }
  .hero--bogen .hero-photo { border-radius: 120px 120px 14px 14px; }
  .cards, .team, .stats { grid-template-columns: 1fr; }
  .press { columns: 1; }
  .stat { padding: 28px; }
  .member-panel { grid-template-columns: 1fr; padding: 32px 24px; gap: 22px; }
  .member-mark { width: 80px; height: 80px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .external-box { grid-template-columns: 1fr; padding: 26px; }
  .external-box .button { justify-self: start; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-prev { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .route::before { left: 26px; }
  .route-dot { left: 28px; }
  .station, .station:nth-child(even) { grid-template-columns: 56px 1fr; gap: 12px; }
  .stone { width: 54px; }
  .flip { height: 400px; }
  .flip-image { height: 200px; }
  .flip-back { padding: 22px 20px; }
  .flip-back h2 { font-size: 1.2rem; }
  .flip-text { font-size: .86rem; }
  .notice-bar { flex-direction: column; align-items: stretch; bottom: 12px; }
  .toast { right: 12px; bottom: 12px; }
  .lightbox { padding: 56px 12px; }
  .lightbox-nav { top: auto; bottom: 12px; transform: none; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .notice-bar, .toast, .lightbox, .actions, .route-dot, .route-line { display: none !important; }
  body { background: #fff; }
  .js .reveal { opacity: 1; transform: none; }
  .flip { height: auto; }
  .flip-face { position: static; transform: none; backface-visibility: visible; }
  .flip-back { color: var(--ink); background: #fff; }
}
