/* ==========================================================================
   Spaziergang der Erinnerungen – Stylesheet
   Keine externen Ressourcen (DSGVO), Schriften aus dem System-Stack.
   ========================================================================== */

/* ------------------------------ Tokens ----------------------------------- */
:root {
  --paper: #fbf8f2;
  --paper-2: #f4ede2;
  --paper-3: #efe6d8;
  --ink: #211c17;
  --ink-soft: #5c5349;
  --ink-mute: #72675a;
  --line: #e3d8c7;
  --accent: #9d3f24;
  --accent-dark: #7c2f1a;
  --accent-soft: #f6e6dc;
  --forest: #2f4f45;
  --forest-2: #243c34;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;

  --wrap: 1120px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(33, 28, 23, 0.05);
  --shadow: 0 2px 4px rgba(33, 28, 23, 0.04), 0 18px 40px -24px rgba(33, 28, 23, 0.35);
}

/* ------------------------------ Basis ------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--accent);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

@media (min-width: 720px) {
  .wrap {
    width: min(100% - 4rem, var(--wrap));
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ------------------------------ Header ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 242, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(33, 28, 23, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  color: var(--accent);
}

.brand__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.brand__text small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  padding-block: 0.4rem;
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.1rem;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}

.site-nav a:not(.nav-cta):hover::after {
  right: 0;
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink) !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-3.25px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 1rem;
    text-align: center;
    border-radius: 8px;
  }
}

/* ------------------------------ Typo-Helfer ------------------------------ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lead {
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.section--alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.7rem);
  margin-bottom: 0.75rem;
}

.section-head p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  max-width: 56ch;
}

.accent {
  color: var(--accent);
}

/* ------------------------------ Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(157, 63, 36, 0.9);
}

.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

.btn--light:hover {
  background: #fff;
}

/* ------------------------------ Hero ------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(120% 100% at 88% -20%, #f7e2d1 0%, rgba(247, 226, 209, 0) 55%),
    radial-gradient(90% 80% at 0% 120%, #e7eee9 0%, rgba(231, 238, 233, 0) 55%),
    var(--paper);
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero h1 {
  font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.hero .lead {
  margin-bottom: 1.9rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__meta li + li::before {
  content: "·";
  color: var(--ink-mute);
}

@media (max-width: 560px) {
  .hero__meta {
    display: grid;
    gap: 0.3rem;
  }

  .hero__meta li + li::before {
    display: none;
  }
}

/* Dekorative Routen-Karte */
.route-card {
  position: relative;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.route-card__canvas {
  aspect-ratio: 4 / 3.4;
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(157, 63, 36, 0.04), rgba(157, 63, 36, 0.04)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(33, 28, 23, 0.055) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(33, 28, 23, 0.055) 27px 28px),
    var(--paper);
  overflow: hidden;
}

.route-card__canvas svg {
  width: 100%;
  height: 100%;
}

.route-card__caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@media (max-width: 700px) {
  .route-card {
    display: none;
  }
}

/* ------------------------------ Karten-Grid ------------------------------ */
.grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 680px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 620px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card__num {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.card h3 {
  font-size: 1.32rem;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

/* ------------------------------ Split / Fakten --------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 520px) {
  .facts div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.facts dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 0.25rem;
}

.facts dd {
  margin: 0;
  color: var(--ink);
}

.note {
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  font-size: 0.92rem;
  color: var(--accent-dark);
  border-radius: 0 8px 8px 0;
}

.note p:last-child {
  margin-bottom: 0;
}

/* ------------------------------ Stationen -------------------------------- */
.station-list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .station-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .station-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.station {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.station:hover {
  transform: translateY(-2px);
  border-color: #d3c4ad;
  box-shadow: var(--shadow);
}

.station__head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.station__no {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.station h3 {
  font-size: 1.22rem;
}

.station p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.station__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-top: auto;
  padding-top: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.station--next {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  border-style: dashed;
  border-color: #cfc0a8;
  color: var(--ink-mute);
  min-height: 190px;
}

.station--next:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--accent);
  color: var(--accent);
}

/* ------------------------------ Mitmachen (dunkel) ----------------------- */
.section--ink {
  background: var(--forest);
  color: #f2efe6;
}

.section--ink .eyebrow {
  color: #e3b49a;
}

.section--ink .lead,
.section--ink p {
  color: #d9d8cc;
}

.section--ink h2 {
  color: #fff;
}

.callout {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 880px) {
  .callout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.callout__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.callout__actions small {
  color: #b9c4bd;
  font-size: 0.85rem;
}

/* ------------------------------ Kontakt ---------------------------------- */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr 0.8fr;
    gap: 3rem;
  }
}

.contact-card {
  padding: 1.6rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.contact-card p {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.contact-card a {
  color: var(--accent);
}

/* ------------------------------ Footer ----------------------------------- */
.site-footer {
  padding-block: 3rem 2rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-top {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 760px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-top p {
  margin: 0.6rem 0 0;
  max-width: 34ch;
  font-size: 0.88rem;
  color: var(--ink-mute);
}

.footer-nav h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.8rem;
}

.footer-nav li + li {
  margin-top: 0.45rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* ------------------------------ Unterseiten ------------------------------ */
.page {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem);
}

.prose {
  max-width: 68ch;
}

.prose h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
  margin-bottom: 0.6rem;
}

.prose h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 0.6rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.4rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-bottom: 1em;
}

.prose ul li {
  margin-bottom: 0.3rem;
}

.prose a {
  color: var(--accent);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.page-meta {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-bottom: 2rem;
}

/* ------------------------------ 404 -------------------------------------- */
.center-page {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 60vh;
  padding-block: 4rem;
}

.center-page h1 {
  font-size: clamp(2.4rem, 2rem + 3vw, 3.6rem);
  margin-bottom: 0.8rem;
}

/* ------------------------------ Reveal ----------------------------------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------ Druck ------------------------------------ */
@media print {
  .site-header,
  .site-footer,
  .route-card,
  .nav-toggle {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section--ink {
    background: #fff;
    color: #000;
  }
}
