/* ==========================================================================
   LOOTSCH – Seite
   Reihenfolge wie in index.html. Jeder Abschnitt hat hier genau einen Block
   mit demselben Namen. Farben, Schriften, Größen: nur aus tokens.css.

   0  Grundlagen
   A  Bausteine (Display-Schrift, Logo, Augen, Lutscher, Sticker, Knopf)
   1  Hero
   2  Warteliste (oben und unten)
   3  Laufband
   4  Info (4a Was ist das, 4b Sorten, 4c Was drin ist, 4d Fragen)
   6  Footer
   7  Unterseiten (Danke, Impressum, Datenschutz)
   ========================================================================== */


/* 0  Grundlagen ----------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-m);
  line-height: 1.5;
  font-synthesis: none; /* Dokdo hat nur einen Schnitt: kein künstliches Fett */
}

h1, h2, h3, p, ul, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }

:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.defs { position: absolute; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* A  Bausteine ------------------------------------------------------------ */

/* Display-Schrift: alles in Dokdo teilt sich diese Regeln */
h1, h2, h3,
.button,
.ticker__list li,
.scene__title,
.element__sym,
.what__steps,
.footer__claim {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
  line-height: 0.95;
}
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: var(--display-l); }
h3 { font-size: var(--display-m); }

/* Augen: Weiß, Lid-Linie, Pupille. Pupillen bewegt js/site.js. */
.eye__white { fill: var(--paper); }
.eye__lid, .eye__pupil { fill: var(--eye-ink, var(--ink)); }
.eye__pupil { transition: transform 0.14s ease-out; }
.eyes__ring { fill: var(--ink); }
.eyes { overflow: visible; }

/* Logo: Dokdo-Wortmarke mit Augen in den beiden O */
.logo { display: inline-block; color: var(--ink); text-decoration: none; }
.logo__mark { width: clamp(11rem, 8rem + 14vw, 19rem); height: auto; overflow: visible; }
.logo__letters {
  fill: var(--logo-fill, var(--ink));
  stroke: var(--logo-stroke, none);
  stroke-width: 56;
  stroke-linejoin: round;
  paint-order: stroke;
}
.logo--small .logo__mark { width: 11rem; }

/* Lutscher: Körper kommt aus dem <symbol id="lolli">, Farbe über --candy */
.lolli { position: relative; aspect-ratio: 200 / 420; }
.lolli__body { width: 100%; height: 100%; overflow: visible; }
.lolli__candy { fill: var(--candy, var(--lilac)); stroke: var(--ink); stroke-width: 9; }
.lolli__stick { fill: var(--paper); stroke: var(--ink); stroke-width: 8; }
.lolli__shine { fill: none; stroke: var(--paper); stroke-width: 10; stroke-linecap: round; opacity: 0.8; }
.lolli__eyes { position: absolute; left: 13%; top: 15%; width: 74%; height: auto; }

/* Sticker: Überschrift wie aufgeklebt */
.sticker {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  border-radius: var(--wobble-a);
  box-shadow: var(--shadow-sticker);
}
.sticker--big {
  font-size: var(--display-xl);
  padding: 0.16em 0.32em 0.12em;
  transform: rotate(-2.5deg);
}
.sticker--small {
  background: var(--lilac);
  border-radius: var(--wobble-b);
  font-weight: 700;
  font-size: var(--text-m);
  line-height: 1.25;
  padding: 0.45em 0.9em;
  transform: rotate(1.2deg);
}

/* Knopf */
.button {
  font-size: var(--display-s);
  line-height: 1;
  color: var(--paper);
  background: var(--ink);
  border: var(--line) solid var(--ink);
  border-radius: var(--wobble-b);
  padding: 0.5em 0.9em 0.42em;
  cursor: pointer;
  transition: transform 0.12s ease-out;
}
.button:hover { transform: rotate(-2deg) scale(1.03); }
.button:active { transform: scale(0.97); }


/* 1  Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  height: clamp(23rem, 58svh, 40rem);
  overflow: hidden;
  background: var(--scene-a);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }

.hero__logo {
  position: absolute;
  z-index: 2;
  top: var(--space-2);
  left: var(--gutter);
  /* auf jedem Videobild lesbar: Flieder mit schwarzer Kontur */
  --logo-fill: var(--lilac);
  --logo-stroke: var(--ink);
}

.hero__copy {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  pointer-events: none;
}
.hero__copy .sticker--small { margin-left: var(--space-3); max-width: 22rem; }

/* Platzhalter-Szenen (fällt weg, sobald das echte Video da ist) */
.scenes { position: absolute; inset: 0; }
.scene {
  position: absolute;
  inset: 0;
  padding: 5.5rem var(--gutter) 0;
  visibility: hidden;
}
.scene.is-active { visibility: visible; }
.scene__title { font-size: clamp(2.75rem, 1.5rem + 5vw, 5rem); line-height: 0.85; }
.scene__meta { font-weight: 700; font-size: var(--text-l); }
.scene:nth-child(3n + 1) { background: var(--scene-a); color: var(--paper); }
.scene:nth-child(3n + 2) { background: var(--scene-b); color: var(--lilac); }
.scene:nth-child(3n + 3) { background: var(--scene-c); color: var(--green); }

.hero__lolli {
  position: absolute;
  right: max(-1rem, 6vw);
  bottom: -14%;
  height: 92%;
  transform: rotate(11deg);
}
.scenes__note {
  position: absolute;
  top: var(--space-2);
  right: var(--gutter);
  font-size: var(--text-s);
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 2px dashed var(--ink);
  padding: 0.25em 0.7em;
}

@media (max-width: 40rem) {
  .hero__lolli { right: 0.25rem; height: 80%; bottom: 3%; transform: rotate(8deg); }
  .scenes__note { right: var(--space-1); font-size: 0.75rem; top: auto; bottom: var(--space-1); }
}


/* 2  Warteliste (oben und unten) ------------------------------------------ */

.waitlist { padding-block: var(--space-3) var(--space-4); }
.waitlist--top { background: var(--lilac); }
.waitlist--bottom {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--space-5);
  --focus: var(--lilac);
}
.waitlist--bottom h2 { color: var(--lilac); }

.waitlist__inner {
  display: grid;
  gap: var(--space-2) var(--space-5);
  align-items: start;
}
.waitlist__text { display: grid; gap: var(--space-2); max-width: 34rem; }
.waitlist__text p { font-size: var(--text-m); font-weight: 500; }

.signup { display: grid; gap: var(--space-2); max-width: 34rem; }
.signup__row { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.signup__input {
  flex: 1 1 9rem;
  min-width: 0;
  font: inherit;
  font-size: var(--text-m);
  color: var(--ink);
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--wobble-a);
  padding: 0.75em 0.9em;
}
.signup__input::placeholder { color: #55524a; }
.signup__legal { font-size: var(--text-s); line-height: 1.4; max-width: 34rem; }
.signup__status {
  font-weight: 700;
  background: var(--paper);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  border-radius: var(--wobble-b);
  padding: 0.6em 0.9em;
}

.waitlist--bottom .button { background: var(--lilac); color: var(--ink); border-color: var(--lilac); }

/* Freiwillige Klick-Frage */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.chips legend { font-weight: 600; margin-bottom: var(--space-1); }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span {
  display: inline-block;
  font-weight: 700;
  border: var(--line) solid currentColor;
  border-radius: var(--wobble-a);
  padding: 0.35em 0.9em;
}
.chip input:checked + span { background: var(--lilac); color: var(--ink); border-color: var(--lilac); }
.chip input:focus-visible + span { outline: 4px solid var(--focus); outline-offset: 3px; }

@media (min-width: 56rem) {
  .waitlist__inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .waitlist--top { padding-block: var(--space-4); }
}


/* 3  Laufband -------------------------------------------------------------- */

.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--lilac);
}
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; flex: none; }
.ticker__list li {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  padding: 0.75rem 0 0.6rem 1.3rem;
  font-size: var(--display-m);
  white-space: nowrap;
}
/* Mini-Augen zwischen den Sprüchen */
.ticker__list li::after {
  content: "";
  width: 2.1em;
  height: 1em;
  background: url("../assets/img/favicon.svg") center / contain no-repeat;
}
@keyframes ticker { to { transform: translateX(-50%); } }


/* 4  Info ------------------------------------------------------------------ */

.info { padding-block: var(--space-5) var(--space-6); display: grid; gap: var(--space-6); }
.info__part { display: grid; gap: var(--space-3); }
.info__part p { max-width: 38rem; }

/* 4a  Was ist das */
.what h2 { font-size: var(--display-l); }
.what__text { display: grid; gap: var(--space-2); }
.what__text p { font-size: var(--text-l); line-height: 1.4; }
.what__text .what__steps { font-size: var(--display-m); line-height: 1; }
@media (min-width: 56rem) {
  .what { grid-template-columns: 1.15fr 1fr; gap: var(--space-5); align-items: end; }
}

/* 4b  Sorten (Handy: Karte quer, Desktop: Karte hoch) */
.flavors__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--space-2); }
.flavor {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  column-gap: var(--space-2);
  row-gap: 0.35rem;
  align-content: center;
  background: var(--bg);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  border-radius: var(--wobble-a);
  padding: var(--space-2);
}
.flavor:nth-child(even) { border-radius: var(--wobble-b); transform: rotate(0.8deg); }
.flavor:nth-child(odd) { transform: rotate(-0.8deg); }
.flavor__lolli { grid-row: 1 / span 2; height: 8.5rem; align-self: center; }
.flavor h3 { font-size: var(--display-s); align-self: end; }
.flavor p { font-weight: 500; line-height: 1.35; align-self: start; }
@media (min-width: 56rem) {
  .flavors__grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
  .flavor { grid-template-columns: 1fr; align-content: start; padding-bottom: var(--space-3); }
  .flavor__lolli { grid-row: auto; height: 12rem; justify-self: center; margin-bottom: var(--space-1); }
}

/* 4c  Was drin ist */
.inside__text { display: grid; gap: var(--space-2); }
.elements { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.element {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 6.75rem;
  aspect-ratio: 1 / 1.12;
  padding: 0.5rem 0.7rem 0.6rem;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow-sticker);
}
.element:nth-child(1) { transform: rotate(-3deg); }
.element:nth-child(2) { transform: rotate(2deg); background: var(--lilac); }
.element:nth-child(3) { transform: rotate(-1.5deg); background: var(--green); }
.element__no { font-weight: 600; font-size: var(--text-s); font-variant-numeric: tabular-nums; }
.element__sym { font-size: 3.5rem; text-transform: none; align-self: center; }
.element__name { font-weight: 600; font-size: var(--text-s); }
@media (min-width: 56rem) {
  .inside { grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
  .elements { justify-content: flex-end; }
  .element { width: 8.5rem; }
  .element__sym { font-size: 4.5rem; }
}

/* 4d  Fragen */
.faq__list { max-width: 44rem; border-top: var(--line) solid var(--ink); }
.faq details { border-bottom: var(--line) solid var(--ink); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding-block: var(--space-2);
  font-weight: 700;
  font-size: var(--text-l);
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 0.6;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: var(--space-3); }


/* 6  Footer ---------------------------------------------------------------- */

.footer { background: var(--green); color: var(--ink); padding-block: var(--space-4); }
.footer .logo { --logo-fill: var(--lilac); }
.footer__inner { display: grid; gap: var(--space-3); }
.footer__brand { display: grid; gap: var(--space-1); justify-items: start; }
.footer__claim { font-size: var(--display-m); color: var(--paper); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-weight: 600; }
.footer__note { font-size: var(--text-s); }
@media (min-width: 56rem) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer__note { grid-column: 1 / -1; }
}


/* 7  Unterseiten ----------------------------------------------------------- */

.subpage__head { background: var(--lilac); padding-block: var(--space-2); border-bottom: var(--line) solid var(--ink); }
.subpage__main { padding-block: var(--space-5) var(--space-6); display: grid; gap: var(--space-3); }
.subpage__main h1 { font-size: var(--display-xl); }
.subpage__main p, .subpage__main li { max-width: 38rem; }
.subpage__main ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 0.3rem; }
.notice {
  max-width: 38rem;
  font-weight: 600;
  border: 2px dashed var(--ink);
  padding: var(--space-2);
}


/* Weniger Bewegung, wenn im Gerät so eingestellt -------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker__list[aria-hidden="true"] { display: none; }
  .ticker__list { flex-wrap: wrap; }
  .button, .eye__pupil { transition: none; }
}
