:root {
  --bg: #f5f1e8;
  --paper: #fffaf0;
  --ink: #152019;
  --muted: #657267;
  --green: #13251c;
  --green-2: #203a2c;
  --sand: #e8dcc7;
  --accent: #d98a3d;
  --white: #fff;
  --shadow: 0 22px 70px rgba(19, 37, 28, .18);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; background: var(--green); color: white;
  padding: .7rem 1rem; border-radius: 999px; z-index: 50;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: 74px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 54px); z-index: 20; color: white;
  transition: background .25s ease, backdrop-filter .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(19, 37, 28, .9); backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .03em; transition: opacity .25s ease; }
.site-header:not(.is-scrolled) .brand { opacity: 0; pointer-events: none; }
.brand__logo {
  width: 42px; height: 42px; border-radius: 22%; object-fit: cover;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.22));
}
.site-nav { display: flex; gap: 26px; text-transform: lowercase; font-size: .95rem; align-items: center; }
.site-nav a { opacity: .86; }
.site-nav a:hover { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; place-items: center; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: white; margin: 4px 0; border-radius: 4px; }

/* Hero (home only) */
.hero { min-height: 100svh; position: relative; display: grid; place-items: center; overflow: hidden; color: white; text-align: center; }
.hero__image { position: absolute; inset: 0; background: url('../img/hero.jpg') center 30%/cover no-repeat; transform: scale(1.03); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,15,10,.7), rgba(7,15,10,.32) 40%, rgba(7,15,10,.78)); }
.hero__content { position: relative; z-index: 1; width: min(920px, calc(100% - 32px)); padding-top: 42px; transform: translateY(-4vh); }
.hero__content.reveal { transform: translateY(calc(-4vh + 18px)); }
.hero__content.reveal.is-visible { transform: translateY(-4vh); }
.hero__logo { width: clamp(96px, 14vw, 140px); height: auto; margin: 0 auto 22px; filter: drop-shadow(0 18px 28px rgba(0,0,0,.38)); }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .74rem; font-weight: 800; margin: 0 0 16px; color: rgba(255,255,255,.8); }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -.03em; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); max-width: 980px; margin: auto; text-wrap: balance; }
.hero__subtitle { font-size: clamp(1.05rem, 2.1vw, 1.35rem); max-width: 720px; margin: 24px auto 34px; color: rgba(255,255,255,.9); text-wrap: balance; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: white; font-size: 1.6rem; opacity: .75; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

.button {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  padding: 14px 26px; font-weight: 800; text-transform: lowercase; transition: .2s ease; border: 0; cursor: pointer;
  font-size: .96rem;
}
.button--ghost { border: 1px solid rgba(255,255,255,.72); color: white; background: rgba(255,255,255,.08); }
.button--ghost:hover { background: rgba(255,255,255,.18); }
.button--solid { background: var(--accent); color: white; }
.button--solid:hover { background: #c67a30; }
.button--outline { border: 1.5px solid var(--green); color: var(--green); background: transparent; }
.button--outline:hover { background: var(--green); color: white; }

.section { padding: 72px 0; }
#top-content { padding-top: 32px; padding-bottom: 24px; }
.kicker {
  text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 800;
  color: var(--accent); margin: 0 0 10px;
}

/* Page header (non-home pages) */
.page-header { background: var(--green); color: white; padding: 148px 0 64px; }
.page-header--photo {
  background:
    linear-gradient(180deg, rgba(19,37,28,.78), rgba(19,37,28,.5) 45%, rgba(19,37,28,.85)),
    url('../img/hero.jpg') center 30%/cover no-repeat;
}
.page-header .kicker { color: #d3c9a8; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-header p { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 700px; margin-top: 16px; }
.page-header__stats { display: flex; flex-wrap: wrap; gap: clamp(20px,4vw,42px); margin-top: 32px; }
.stat { display: flex; align-items: center; gap: 10px; }
.stat__icon { width: 26px; height: 26px; flex: none; opacity: .92; }
.stat__value { display: block; font-weight: 800; font-size: 1.05rem; }
.stat__label { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.65); }

/* Cards / prose */
.card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 46px);
}
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 2.1em 0 .6em; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--green); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--green); }
.prose img { border-radius: 18px; margin: 1.4em 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .86rem; color: var(--muted); margin-top: .5em; }

img[data-zoomable] { cursor: zoom-in; transition: transform .2s ease; }
img[data-zoomable]:hover { transform: scale(1.015); }

.img-lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(19,37,28,.92);
  display: flex; align-items: center; justify-content: center; padding: 16px 72px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.img-lightbox.is-open { opacity: 1; pointer-events: auto; }
.img-lightbox__image {
  max-width: min(1600px, 100%); max-height: 100%; width: auto; height: auto;
  border-radius: 18px; box-shadow: var(--shadow); cursor: zoom-out;
}
@media (max-width: 640px) {
  .img-lightbox { padding: 12px 52px; }
}
.img-lightbox__close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.12); color: white; font-size: 1.2rem; cursor: pointer;
}
.img-lightbox__close:hover { background: rgba(255,255,255,.22); }
.img-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.12); color: white; font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.img-lightbox__nav:hover { background: rgba(255,255,255,.22); }
.img-lightbox__prev { left: 12px; }
.img-lightbox__next { right: 12px; }
@media (max-width: 640px) {
  .img-lightbox__nav { width: 40px; height: 40px; font-size: 1.2rem; }
}
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
  color: var(--green-2); font-style: italic; font-size: 1.08rem;
}

.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: clamp(24px,4vw,56px); align-items: start; }
.article-layout .card { min-width: 0; }
.side-nav { position: sticky; top: 96px; background: var(--sand); border-radius: 22px; padding: 22px; }
.side-nav__title { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 12px; font-weight: 800; }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-nav a { display: block; padding: 9px 12px; border-radius: 12px; font-size: .92rem; color: var(--green-2); }
.side-nav a:hover, .side-nav a.is-active { background: var(--paper); color: var(--green); font-weight: 700; }

/* Timeline photo gallery */
.timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 18px; margin: 2em 0; }
.timeline figure { margin: 0; background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 26px rgba(19,37,28,.12); }
.timeline img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.timeline figcaption { padding: 12px 14px 16px; font-size: .84rem; color: var(--muted); }

/* Stat strip / facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 16px; margin: 1.6em 0; }
.facts__item { background: var(--sand); border-radius: 18px; padding: 18px 20px; }
.facts__value { display: block; font-size: 1.5rem; font-weight: 800; color: var(--green); }
.facts__label { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* Waypoint table */
.table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: 16px; box-shadow: 0 8px 20px rgba(19,37,28,.08); }
table { border-collapse: collapse; width: 100%; background: var(--white); font-size: .94rem; }
table caption { caption-side: top; text-align: left; font-weight: 800; padding: 10px 16px; background: var(--sand); }
th, td { text-align: left; padding: 10px 16px; border-bottom: 1px solid rgba(19,37,28,.08); }
thead th { background: var(--green); color: white; font-weight: 700; }
tbody tr:nth-child(even) { background: rgba(232,220,199,.35); }

/* Hub / link cards (Vorbereitung) */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 22px; margin-top: 8px; }
.hub-card {
  background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: 0 28px 60px rgba(19,37,28,.22); }
.hub-card__image { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.hub-card__map { pointer-events: none; background: var(--sand); }
.hub-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hub-card__avatar { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; object-position: top; flex: none; }
.person-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.person-row--divider { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sand); }
.person-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hub-card__eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 800; }
.hub-card__title { font-size: 1.15rem; font-weight: 800; color: var(--green); }
.hub-card__excerpt { color: var(--muted); font-size: .92rem; flex: 1; }
.hub-card__link { margin-top: 6px; font-weight: 700; color: var(--green); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; font-size: .9rem; }

/* Quote / voices */
.voices { display: grid; gap: 16px; margin: 1.6em 0; }
.voice { background: var(--sand); border-radius: 18px; padding: 20px 22px; }
.voice__meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.voice p { margin: 0; }

/* Author box */
.author-box { display: flex; gap: 20px; align-items: center; background: var(--sand); border-radius: 22px; padding: 22px; margin: 2em 0; }
.author-box img { width: 84px; height: 84px; border-radius: 999px; object-fit: cover; flex: none; }
.author-box h3 { margin: 0 0 6px; font-size: 1.05rem; }
.author-box p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Download box */
.download-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--green); color: white; border-radius: 20px; padding: 22px 26px; margin: 1.6em 0; }
.download-box p { margin: 0; font-weight: 700; }
.download-box span { display: block; font-weight: 400; font-size: .84rem; color: rgba(255,255,255,.7); margin-top: 4px; }

/* Warning / disclaimer note */
.note { background: rgba(217,138,61,.14); border: 1px solid rgba(217,138,61,.4); border-radius: 16px; padding: 16px 20px; margin: 1.6em 0; font-size: .92rem; }

/* Weather-strip style stat band (route facts on tourprofil) */
.info-band { background: #32432c; color: white; }
.info-band__track { display: flex; flex-wrap: wrap; }
.info-band__segment { flex: 1; min-width: 160px; padding: 18px clamp(18px,3vw,32px); border-left: 1px solid rgba(255,255,255,.16); }
.info-band__segment:first-child { border-left: 0; }
.info-band__label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.info-band__value { font-weight: 800; }

/* Legal / contact (reused from ammersee.bike) */
.legal-hero { padding-top: 108px; padding-bottom: 8px; }
.legal-content { padding-top: 24px; }
.legal-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px,4vw,42px); margin-bottom: 24px; }
.legal-jumpnav { display: flex; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.legal-jumpnav a { text-decoration: underline; text-decoration-color: var(--accent); font-weight: 700; }
.legal-date { color: var(--muted); font-size: .85rem; margin-top: 1.6em; }
.contact-form { display: grid; gap: 14px; margin-top: 18px; }
.contact-form label { font-weight: 700; font-size: .88rem; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(19,37,28,.2); background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form__row { position: absolute; left: -9999px; }
.cf-turnstile { margin-top: 4px; max-width: 100%; overflow: hidden; }
.form-success { display: none; background: #1f4a2e; color: white; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 700; }
.form-success.is-visible { display: block; }

/* Footer */
.site-footer { background: var(--green); color: white; padding: 32px 0; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { opacity: .85; }
.site-footer a:hover { opacity: 1; }
.site-footer a.footer-promo {
  position: relative; display: inline-flex; align-items: center; gap: 4px; opacity: 1;
  padding: 10px 20px; border-radius: 999px; white-space: nowrap;
  border: 1.5px solid var(--accent); background: rgba(217,138,61,.16);
  color: white; box-shadow: var(--shadow);
  font-size: .85rem; font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.site-footer a.footer-promo:hover { background: rgba(217,138,61,.3); transform: translateY(-2px); }
.site-footer a.footer-promo strong { color: var(--accent); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 999px;
  background: var(--green); color: white; border: 0; font-size: 1.1rem; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 15;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

.back-floating {
  position: fixed; left: 20px; top: 90px; background: var(--paper); color: var(--green);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .88rem; box-shadow: var(--shadow); z-index: 15;
}

@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; }
}

@media (max-width: 820px) {
  .site-header { height: 66px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; right: 16px; top: 66px; background: rgba(19,37,28,.96); backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 16px; display: grid; gap: 12px;
    min-width: 200px; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .2s ease;
  }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .hero { padding-bottom: 72px; }
  .hero__content { padding-top: 16px; transform: none; }
  .hero__content.reveal { transform: translateY(18px); }
  .hero__content.reveal.is-visible { transform: translateY(0); }
  .section { padding: 54px 0; }
  .page-header { padding: 118px 0 48px; }
  .legal-hero { padding-top: 96px; padding-bottom: 8px; }
  .legal-content { padding-top: 16px; }
  .site-footer__inner { display: block; text-align: center; }
  .site-footer a.footer-promo { margin-top: 14px; }
  .site-footer nav { justify-content: center; margin-top: 14px; }
  .back-floating { display: none; }
}

@media (max-width: 480px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .brand__logo { width: 36px; height: 36px; }
  .button { width: 100%; max-width: 320px; }
  .author-box { flex-direction: column; text-align: center; }
}

/* Interaktive Streckenkarte (Startseite) */
.home-map { height: clamp(300px, 44vw, 460px); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.home-map__hillshade { mix-blend-mode: multiply; }
@media (max-width: 480px) {
  .home-map { height: 260px; }
}

/* Interaktive Streckenkarte + Höhenprofil (Tourprofil-Seite) */
.tour-map { height: clamp(260px, 42vw, 420px); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.elevation-chart {
  position: relative; margin-top: 16px; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow);
  padding: 8px 6px 2px; height: clamp(150px, 20vw, 200px);
}
.elevation-chart canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.elevation-chart__tooltip {
  position: absolute; top: 8px; background: var(--green); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow);
}
.elevation-chart__hint { text-align: center; color: var(--muted); font-size: .84rem; margin: 10px 0 0; }

@media (max-width: 480px) {
  .tour-map { height: 240px; }
  .elevation-chart { height: 140px; }
}

@media (max-width: 480px) {
  .map-preview__trigger { max-width: 260px; }
}
