/* =========================================================================
   Die Lüttstadt-Abenteurer — Küstenwelt
   Eigenständige Kinderbuch-Subdomain der something bookish Edition.
   Leitidee: Entdecker-Route entlang der ostfriesischen Küste. Die sechs
   Cover sind die Helden, geführt an einer gestrichelten Route den Bildschirm
   hinunter – von hellem Morgen (oben) zur Hafennacht (unten).
   Editorial + feine Scroll-Motion. Kein WebGL. Mobil zuerst.
   ========================================================================= */

/* ----- Farbwelt (Wattenmeer / Dünensand / Nordsee) ----------------------- */
:root {
  --sand:       #f3e8d4;   /* heller Dünensand – Grundfläche */
  --sand-warm:  #ecdcbf;   /* wärmerer Sand – Karten, tiefere Abschnitte */
  --sand-soft:  #f8f0e2;   /* Papierhelligkeit für Cards */
  --sky:        #dbe7e4;   /* blasser Nordseehimmel */
  --ink:        #163038;   /* tiefes Seewasser – Fließtext */
  --ink-soft:   #3d5b62;   /* gedämpfter Text */
  --sea:        #2f6e77;   /* Nordsee-Türkis – Akzent */
  --sea-deep:   #123a42;   /* Hafennacht – dunkle Bänder, Footer */
  --dusk:       #e08a4c;   /* Abendgold – dekorativ */
  --buoy:       #c2452a;   /* Bojenrot – Route, CTA, Signale */
  --buoy-deep:  #a5381f;   /* Bojenrot dunkel – Hover */
  --grass:      #6d7f44;   /* Dünengras – dekorativ */
  --line:       rgba(22,48,56,.16);

  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --disp:  'Fraunces', Georgia, 'Times New Roman', serif;

  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --r: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 22px 48px -24px rgba(18, 58, 66, .55);
  --shadow-lift: 0 34px 70px -28px rgba(18, 58, 66, .6);
}

/* ----- Reset / Grundlagen ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(16.5px, 1.15vw, 19px);
  line-height: 1.68;
  color: var(--ink);
  background: var(--sand);
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-deep); text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { color: var(--buoy); }

h1, h2, h3 { font-family: var(--disp); font-weight: 480; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; }
.eyebrow {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(11px, .82vw, 13px); letter-spacing: .22em; text-transform: uppercase;
  color: var(--sea); margin: 0 0 1.1em;
}
.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;
}
.skip {
  position: fixed; top: 10px; left: 50%; transform: translate(-50%, -140%);
  z-index: 200; background: var(--sea-deep); color: #fff; padding: 10px 18px;
  border-radius: 10px; text-decoration: none; font-weight: 600; transition: transform .2s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); color: #fff; }

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: clamp(15px, 1vw, 16.5px);
  letter-spacing: .01em; line-height: 1;
  padding: .95em 1.5em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--primary { background: var(--buoy); color: #fff; box-shadow: 0 12px 26px -14px rgba(165,56,31,.9); }
.btn--primary:hover { background: var(--buoy-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(165,56,31,.95); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--sea); color: var(--sea-deep); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--light:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateY(-2px); }

/* ----- Kopfleiste (schlanke, wärmehelle Wegweiser-Leiste) ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--sand) 78%, transparent);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.topbar.is-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--sand) 92%, transparent); }
.topbar__in { display: flex; align-items: center; gap: 18px; min-height: 62px; padding-block: 8px; }
.brand {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--disp); font-weight: 560; font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 26px; height: 26px; flex: none; color: var(--buoy); }
.topnav { margin-left: auto; display: flex; align-items: center; gap: clamp(6px, 1.4vw, 26px); }
.topnav a:not(.btn) {
  font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--ink-soft);
  text-decoration: none; padding: 6px 2px; position: relative;
}
.topnav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--buoy); border-radius: 2px; transition: right .3s var(--ease);
}
.topnav a:not(.btn):hover { color: var(--ink); }
.topnav a:not(.btn):hover::after { right: 0; }

.navtoggle {
  margin-left: auto; display: none; width: 46px; height: 42px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--sand-soft); cursor: pointer; padding: 0;
  align-items: center; justify-content: center; color: var(--ink);
}
.navtoggle svg { width: 22px; height: 22px; }

/* ============================ HERO ======================================= */
.hero { position: relative; overflow: hidden; padding-top: clamp(36px, 7vw, 92px); isolation: isolate; }
.hero::before { /* Himmel-Verlauf zum Sand */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(178deg, var(--sky) 0%, var(--sand) 46%, var(--sand) 100%);
}
.hero__sun { /* weiche Morgensonne, dezent */
  position: absolute; z-index: -2; top: 4%; right: 8%;
  width: min(46vw, 420px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,138,76,.34), rgba(224,138,76,0) 62%);
  filter: blur(6px); pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 5vw, 72px);
  align-items: center; padding-bottom: clamp(30px, 6vw, 70px);
}
.hero__title {
  font-size: clamp(42px, 8.4vw, 118px); line-height: .94; letter-spacing: -.025em;
  margin: 0 0 .34em;
}
.hero__title .a { display: block; color: var(--ink); }
.hero__title .b { display: block; color: var(--buoy); font-style: italic; font-weight: 420; }
.hero__lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-soft); max-width: 30ch; margin-bottom: 1.6em; }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__crew {
  margin-top: 2em; display: flex; flex-wrap: wrap; align-items: center; gap: .5em 1em;
  font-family: var(--sans); font-size: 14px; color: var(--ink-soft);
}
.hero__crew b { font-family: var(--disp); font-weight: 500; font-size: 17px; color: var(--sea-deep); font-style: italic; }
.hero__crew span { display: inline-flex; align-items: center; gap: .5em; }
.hero__crew span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--buoy); }

.hero__stage { position: relative; }
.hero__cover {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lift); rotate: 2.2deg; aspect-ratio: 1;
  outline: 8px solid var(--sand-soft); outline-offset: 0;
}
.hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; z-index: 3; left: -16px; bottom: -18px;
  background: var(--sea-deep); color: #fff; font-family: var(--sans); font-weight: 600;
  font-size: 13px; letter-spacing: .04em; padding: 10px 15px; border-radius: 12px;
  box-shadow: var(--shadow); rotate: -3deg;
}
.hero__badge b { color: var(--dusk); }

/* Küstenband (geschichtete Dünen) am Hero-Fuß – dekorativ, kein Blob */
.coast { position: relative; z-index: -1; margin-top: -2px; line-height: 0; }
.coast svg { width: 100%; height: auto; display: block; }

/* ============================ Sektions-Grundgerüst ======================= */
.section { position: relative; padding-block: clamp(64px, 9vw, 132px); }
/* Anker-Sprünge nicht unter die Sticky-Topbar rutschen lassen */
.section, .station, #start { scroll-margin-top: 80px; }
.section__head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 60px); }
.section__title { font-size: clamp(30px, 4.6vw, 60px); letter-spacing: -.02em; margin-bottom: .3em; }
.section__title em { font-style: italic; color: var(--buoy); }
.lead-lg { font-size: clamp(18px, 1.7vw, 23px); color: var(--ink-soft); }

/* --- Die Reihe: warmes Sand-Band mit editorialer Doppelspalte ------------ */
.reihe { background: var(--sand); }
.reihe__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.reihe__copy p { max-width: 46ch; }
.reihe__facts { display: grid; gap: 14px; align-content: start; }
.fact {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--sand-soft); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; box-shadow: 0 14px 30px -26px rgba(18,58,66,.5);
}
.fact__ic { flex: none; width: 40px; height: 40px; color: var(--sea); }
.fact h3 { font-family: var(--disp); font-size: 22px; margin-bottom: .15em; color: var(--ink); }
.fact p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

/* ============================ Bücher / Stationen ========================= */
/* Farbreise: hier beginnt das Abendgold. */
.buecher {
  background:
    linear-gradient(180deg, var(--sand) 0%, var(--sand-warm) 30%, #ecd3ac 78%, #e7c79a 100%);
}
.route { position: relative; margin-top: clamp(20px, 4vw, 46px); }
/* zentrale Entdecker-Route (Desktop) */
.route__line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%);
  background: repeating-linear-gradient(var(--buoy) 0 10px, transparent 10px 20px);
  opacity: .5;
}
.route__prog {
  position: absolute; top: 0; left: 50%; width: 3px; transform: translateX(-50%);
  height: var(--prog, 0%);
  background: repeating-linear-gradient(var(--buoy) 0 10px, transparent 10px 20px);
}

.station {
  position: relative; display: grid; grid-template-columns: 1fr 88px 1fr;
  align-items: center; gap: clamp(18px, 3vw, 40px);
  padding-block: clamp(30px, 4.4vw, 58px);
}
.station__dot {
  grid-column: 2; justify-self: center; z-index: 2;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--sand-soft); border: 3px solid var(--buoy);
  display: grid; place-items: center; font-family: var(--disp); font-weight: 600;
  font-size: 21px; color: var(--buoy); box-shadow: 0 10px 24px -12px rgba(165,56,31,.6);
  transition: transform .5s var(--ease), background-color .5s var(--ease), color .5s var(--ease);
}
.station.is-reached .station__dot { background: var(--buoy); color: #fff; transform: scale(1.06); }

.station__media { grid-column: 1; }
.station__body { grid-column: 3; }
.station:nth-child(even) .station__media { grid-column: 3; order: 2; }
.station:nth-child(even) .station__body { grid-column: 1; text-align: right; }
.station:nth-child(even) .station__tags { justify-content: flex-end; }
.station:nth-child(even) .station__cta { justify-content: flex-end; }

.cover {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  aspect-ratio: 1; box-shadow: var(--shadow); background: var(--sand-warm);
  outline: 7px solid var(--sand-soft); max-width: 400px; margin-inline: auto;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.station:nth-child(odd) .cover { margin-left: auto; rotate: -1.6deg; }
.station:nth-child(even) .cover { margin-right: auto; rotate: 1.6deg; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.cover:hover img { transform: scale(1.035); }
.cover__peek { /* „Bei Amazon“-Overlay-Hinweis */
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px;
  background: linear-gradient(0deg, rgba(18,58,66,.86), transparent);
  color: #fff; font-family: var(--sans); font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: .5em; opacity: 0; translate: 0 8px;
  transition: opacity .35s var(--ease), translate .35s var(--ease);
}
.cover:hover .cover__peek, .cover:focus-visible .cover__peek { opacity: 1; translate: 0 0; }

.station__band { font-family: var(--sans); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--buoy); margin-bottom: .7em; }
.station__title { font-size: clamp(25px, 3vw, 41px); letter-spacing: -.015em; margin-bottom: .5em; color: var(--ink); }
.station__title a { color: inherit; text-decoration: none; }
.station__title a:hover { color: var(--buoy); }
.station__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.2em; }
.tag {
  font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--sea-deep);
  background: rgba(47,110,119,.12); border: 1px solid rgba(47,110,119,.22);
  padding: 5px 12px; border-radius: 999px;
}
.station__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Ausblick: geplante Bände -------------------------------------------- */
.outlook { text-align: center; padding-top: clamp(20px, 4vw, 40px); }
.outlook__num { font-family: var(--disp); font-weight: 600; font-size: clamp(58px, 11vw, 150px); line-height: 1; color: var(--buoy); letter-spacing: -.03em; }
.outlook p { max-width: 40ch; margin-inline: auto; color: var(--sea-deep); font-size: clamp(16px,1.4vw,19px); }

/* ============================ Für Eltern ================================= */
.eltern { background: var(--sea-deep); color: #eaf1ef; }
.eltern .eyebrow { color: var(--dusk); }
.eltern .section__title { color: #fff; }
.eltern .section__title em { color: var(--dusk); }
.eltern .lead-lg { color: rgba(234,241,239,.82); }
.eltern__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(32px,5vw,54px); }
.pcard { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 26px 24px; }
.pcard__ic { width: 38px; height: 38px; color: var(--dusk); margin-bottom: 16px; }
.pcard h3 { font-family: var(--disp); font-size: 22px; color: #fff; margin-bottom: .35em; }
.pcard p { color: rgba(234,241,239,.78); font-size: 15.5px; margin: 0; }

/* ============================ Footer ==================================== */
.foot { background: var(--ink); color: rgba(234,241,239,.72); padding-block: clamp(52px,7vw,84px); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; align-items: start; }
.foot__brand { font-family: var(--disp); font-size: clamp(22px,2.4vw,30px); color: #fff; margin-bottom: .5em; line-height: 1.05; }
.foot__brand em { font-style: italic; color: var(--dusk); }
.foot p { font-size: 15px; max-width: 40ch; }
.foot h4 { font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: rgba(234,241,239,.5); margin: 0 0 1em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7em; }
.foot a { color: rgba(234,241,239,.82); text-decoration: none; font-size: 15.5px; }
.foot a:hover { color: #fff; }
.foot__bottom {
  margin-top: clamp(36px,5vw,56px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
  font-size: 13.5px; color: rgba(234,241,239,.5);
}
.foot__bottom a { font-size: 13.5px; }

/* ============================ Motion / Reveal ============================ */
/* Reveal nutzt die eigenständige translate-Property, damit Parallax (transform)
   und Hover (transform) sich nicht in die Quere kommen. */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.reveal.is-in { opacity: 1; translate: 0 0; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* Sanfter Parallax nur Desktop, per JS als transform gesetzt (auf dem Wrapper,
   nicht auf Cover/Hover-Elementen). */
.parallax { will-change: transform; }

/* ============================ Responsive ================================= */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__stage { max-width: 380px; margin-inline: auto; order: -1; }
  .hero__title { font-size: clamp(44px, 12vw, 78px); }
  .reihe__grid { grid-template-columns: 1fr; }
  .eltern__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand-col { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .topnav { display: none; }
  .topnav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; margin: 0; padding: 10px var(--gut) 22px;
    background: var(--sand-soft); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .topnav.is-open a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .topnav.is-open a:not(.btn)::after { display: none; }
  .topnav.is-open .btn { margin-top: 14px; justify-content: center; }
  .navtoggle { display: inline-flex; }

  /* Route nach links, Stationen gestapelt */
  .route__line, .route__prog { left: 27px; }
  .station { grid-template-columns: 54px 1fr; gap: 16px 18px; padding-block: 30px; }
  .station__dot { grid-column: 1; grid-row: 1; width: 48px; height: 48px; font-size: 18px; align-self: start; }
  .station__media { grid-column: 2; grid-row: 1; }
  .station__body,
  .station:nth-child(even) .station__body { grid-column: 2; grid-row: 2; text-align: left; }
  .station:nth-child(even) .station__media { grid-column: 2; order: 0; }
  .station:nth-child(even) .station__tags,
  .station:nth-child(even) .station__cta { justify-content: flex-start; }
  .cover, .station:nth-child(odd) .cover, .station:nth-child(even) .cover { margin: 0; rotate: 0deg; max-width: 320px; }
  .station__cta { justify-content: flex-start; }
}

@media (max-width: 460px) {
  .foot__grid { grid-template-columns: 1fr; }
  .hero__badge { left: 0; }
}

/* ============================ Reduced Motion ============================ */
@media (prefers-reduced-motion: reduce) {
  .reveal, .station__media .reveal { opacity: 1; transform: none; transition: none; }
  .cover, .cover img, .btn, .station__dot, .parallax { transition: none !important; }
  .parallax { transform: none !important; }
  .route__prog { height: 100% !important; }
}
