@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--tinte);
  background: var(--elfenbein);
  overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gruen); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.rahmen { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.gesperrt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }

/* Wortmarke: NOURION gesperrt wie auf nourion.de, „Code“ in der Überschriftenschrift daneben */
.marke { display: inline-flex; align-items: center; gap: 0.7rem; color: inherit; text-decoration: none; }
.marke .kachel { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 0.55rem; background: var(--wald); flex: none; }
.marke .kachel svg { width: 1.25rem; height: 1.25rem; }
.marke .kachel svg { stroke: var(--rose-hell); }
.marke .wort { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.marke .code { color: var(--rose-tinte); }
.dunkel .marke .code { color: var(--rose-hell); }
/* Im Kopf faltet sich der Name beim Scrollen zur Kurzform N-Code (Klasse kompakt, gesetzt vom Skript am Seitenende);
   Zeiger oder Fokus auf der Marke zeigen wieder den vollen Namen. Ohne Skript bleibt der volle Name stehen. */
.marke .falte, .marke .strich { display: inline-grid; grid-template-columns: 1fr; }
.marke .falte > span, .marke .strich > span { min-width: 0; overflow: hidden; white-space: pre; }
.marke .strich { grid-template-columns: 0fr; }
.kopf.kompakt .marke:not(:hover):not(:focus-visible) .falte { grid-template-columns: 0fr; }
.kopf.kompakt .marke:not(:hover):not(:focus-visible) .strich { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: no-preference) { .marke .falte, .marke .strich { transition: grid-template-columns 0.45s cubic-bezier(0.4, 0, 0.2, 1); } }
.dunkel .marke { color: var(--mist); }
.dunkel .marke .kachel { background: var(--rose); }
.dunkel .marke .kachel svg { stroke: var(--tanne); }

/* Band über dem Kopf: Verweis zur Mutterfirma; scrollt weg, der Kopf darunter bleibt kleben */
.band-oben { background: var(--leinen); border-bottom: 1px solid var(--linie); font-size: 0.86rem; color: var(--rauch); }
.band-oben .rahmen { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.2rem; }
.band-oben a { color: var(--tinte); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; white-space: nowrap; }
.band-oben a:hover { color: var(--rose-tinte); }
.band-oben .nur-breit { display: none; }
@media (min-width: 760px) { .band-oben .nur-breit { display: inline; } }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 10; transition: box-shadow 0.3s ease; background: color-mix(in srgb, var(--elfenbein) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--linie); }
.kopf .rahmen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.kopf nav { display: flex; align-items: center; gap: 1.6rem; }
.kopf nav a { font-weight: 500; color: var(--tinte); text-decoration: none; }
.kopf nav a:hover { color: var(--rose-tinte); }
.kopf nav .nur-breit { display: none; }
@media (min-width: 760px) { .kopf nav .nur-breit { display: inline; } }
.kopf.kompakt { box-shadow: 0 8px 30px rgba(15, 42, 36, 0.08); }
/* Am Handy: Wortmarke und Knopf müssen nebeneinander in 335 px passen */
@media (max-width: 440px) { .kopf .marke .wort { font-size: 1.3rem; } .kopf .knopf.klein { padding: 0.4rem 0.7rem; font-size: 0.92rem; } }

/* Knöpfe */
.knopf { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.7rem 1.35rem; border-radius: 0.8rem; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; }
.knopf.rose { background: var(--rose); color: var(--tanne); border-color: var(--rose); }
.knopf.rose:hover { background: var(--rose-hell); border-color: var(--rose-hell); }
.knopf.rand { color: var(--mist); border-color: var(--linie-dunkel); }
.knopf.rand:hover { border-color: var(--mist); }
.knopf.rand-hell { color: var(--tinte); border-color: var(--nebel); }
.knopf.rand-hell:hover { border-color: var(--tinte); }
.knopf.klein { min-height: 2.5rem; padding: 0.4rem 1rem; }

/* Held */
.held { position: relative; isolation: isolate; background: var(--tanne); color: var(--mist); padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.held .rahmen { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .held .rahmen { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; } }
.held .moin { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--rose-hell); }
.held .gesperrt { color: var(--rose-hell); margin-top: 1.4rem; }
.held h1 { margin-top: 1rem; font-size: clamp(2.5rem, 6.2vw, 4.4rem); color: var(--elfenbein); }
.held h1 em { font-style: normal; color: var(--rose-hell); position: relative; display: inline-block; }
.held h1 .unterstrich { position: absolute; left: 0; bottom: -0.06em; width: 100%; height: 0.2em; overflow: visible; }
.held h1 .unterstrich path { fill: none; stroke: var(--rose); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.held .lead { margin-top: 1.5rem; font-size: 1.2rem; line-height: 1.5; color: #d8d2c4; max-width: 34rem; }
.held .knoepfe { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* Das Änderungsbuch: der eine Blick, den man behält */
.buch { background: var(--elfenbein); color: var(--tinte); border-radius: 1.1rem; padding: 1.4rem 1.5rem 1.2rem; border-left: 6px solid var(--rose); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.buch .titel { font-weight: 600; font-size: 0.95rem; color: var(--rauch); }
.buch ol { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.buch li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.6rem; align-items: start; }
.buch .monat { font-size: 0.8rem; font-weight: 600; color: var(--rose-tinte); padding-top: 0.15rem; }
.buch q { quotes: "„" "“"; font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; display: block; }
.buch .gebaut { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.3rem; font-size: 0.85rem; color: var(--rauch); }
.buch .gebaut::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--rose); flex: none; }
.buch .naechster .tippen { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; color: var(--rauch); }
.buch .cursor { display: inline-block; width: 2px; height: 1em; margin-left: 0.12em; vertical-align: -0.12em; background: var(--rose-tinte); }
.buch .fuss { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--linie); font-size: 0.95rem; }

/* Abschnitte */
section.abschnitt { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section.abschnitt + section.abschnitt { border-top: 1px solid var(--linie); }
.abschnitt h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); max-width: 22ch; }
.abschnitt .einleitung { margin-top: 1rem; max-width: 40rem; color: var(--rauch); font-size: 1.1rem; }

/* Drei Zusagen: Spalten mit Kupferlinie oben, keine Kästen */
.zusagen { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .zusagen { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.zusagen li { border-top: 3px solid var(--rose); padding-top: 1.1rem; }
.zusagen h3 { font-size: 1.35rem; }
.zusagen p { margin-top: 0.6rem; color: var(--rauch); }

/* Ablauf: eine echte Reihenfolge, darum Nummern */
.schritte { display: grid; gap: 1.5rem; margin-top: 2.5rem; counter-reset: schritt; }
@media (min-width: 760px) { .schritte { grid-template-columns: repeat(3, 1fr); } }
.schritte li { counter-increment: schritt; background: var(--leinen); border-radius: 1rem; padding: 1.4rem 1.4rem 1.5rem; }
.schritte li::before { content: counter(schritt); display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--wald); color: var(--rose-hell); font-family: var(--display); font-weight: 700; }
.schritte h3 { margin-top: 0.9rem; font-size: 1.3rem; }
.schritte p { margin-top: 0.5rem; color: var(--rauch); }

/* Was drin ist: zwei Spalten, Haken in Kupfer */
.drin { display: grid; gap: 1rem 2.5rem; margin-top: 2.2rem; }
@media (min-width: 760px) { .drin { grid-template-columns: 1fr 1fr; } }
.drin li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.7rem; align-items: start; }
.drin li svg { width: 1.3rem; height: 1.3rem; margin-top: 0.2rem; color: var(--rose-tinte); }
.drin strong { font-weight: 600; }
.drin span { color: var(--rauch); }

/* Preis */
.preis { position: relative; isolation: isolate; background: var(--tanne); color: var(--mist); }
.preis .rahmen { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .preis .rahmen { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.preis h2 { color: var(--elfenbein); }
.preis .betrag { font-family: var(--display); font-weight: 600; font-size: clamp(3.5rem, 9vw, 6rem); line-height: 1; color: var(--elfenbein); letter-spacing: -0.03em; }
.preis .betrag small { font-family: var(--sans); font-weight: 500; font-size: 1.1rem; letter-spacing: 0; color: #d8d2c4; margin-left: 0.6rem; }
.preis ul { margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.preis li { display: grid; grid-template-columns: 1.3rem 1fr; gap: 0.6rem; align-items: start; }
.preis li svg { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; color: var(--rose-hell); }
.preis .hinweis { margin-top: 1.4rem; font-size: 0.95rem; color: #b9b2a3; }
.preis .knoepfe { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Ehrlichkeit und Fragen */
.nicht p { margin-top: 1rem; max-width: 44rem; color: var(--rauch); font-size: 1.1rem; }
.fragen { margin-top: 2rem; max-width: 46rem; }
.fragen details { border-top: 1px solid var(--linie); }
.fragen details:last-child { border-bottom: 1px solid var(--linie); }
.fragen summary { cursor: pointer; padding: 1rem 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; color: var(--rose-tinte); font-size: 1.4rem; line-height: 1; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen details p { padding-bottom: 1.1rem; color: var(--rauch); }

/* Fuß */
footer { background: var(--wald); color: #d8d2c4; padding: 3rem 0; font-size: 0.95rem; }
footer .rahmen { display: grid; gap: 2rem; }
@media (min-width: 760px) { footer .rahmen { grid-template-columns: 1.2fr 1fr 1fr; } }
footer a { color: var(--mist); }
footer .satz { margin-top: 1rem; max-width: 30rem; }
footer h3 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose-hell); }
footer ul { margin-top: 0.8rem; display: grid; gap: 0.4rem; }

@media print { .kopf { position: static; } .held { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------- Bewegung ----------
   Eine Szene beim Laden (der Held mit dem Änderungsbuch), Hereinkommen beim Scrollen, Rückmeldung beim Zeiger.
   Alles nur mit Skript (html.js) und nur ohne „weniger Bewegung“; sonst steht die Seite fertig da. */

/* Hintergrund der dunklen Flächen: zwei weiche Lichter und ein feines Raster wie Millimeterpapier, das langsam treibt */
.szene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(60rem 32rem at 88% 8%, rgba(196, 131, 120, 0.17), transparent 62%),
              radial-gradient(52rem 30rem at 6% 100%, rgba(46, 125, 91, 0.26), transparent 62%); }
.szene::before { content: ""; position: absolute; inset: -3rem;
  background-image: linear-gradient(rgba(250, 246, 238, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(250, 246, 238, 0.055) 1px, transparent 1px);
  background-size: 3rem 3rem;
  -webkit-mask-image: radial-gradient(75% 80% at 62% 40%, #000 25%, transparent 100%); mask-image: radial-gradient(75% 80% at 62% 40%, #000 25%, transparent 100%); }

/* Hereinkommen beim Scrollen */
html.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); }
html.js .reveal.da { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @keyframes aufgehen { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes treiben { to { transform: translate(3rem, 3rem); } }
  @keyframes zeichnen { to { stroke-dashoffset: 0; } }
  @keyframes pulsieren { 0%, 100% { box-shadow: 0 0 0 0 rgba(196, 131, 120, 0.55); } 60% { box-shadow: 0 0 0 9px rgba(196, 131, 120, 0); } }
  @keyframes blinken { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

  .szene::before { animation: treiben 70s linear infinite; }
  html.js .reveal { transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--d, 0ms); }

  /* Auftritt beim Laden: links Zeile für Zeile, dann das Buch, dann seine Einträge; der jüngste pulsiert, der nächste blinkt */
  html.js .held .text > * { animation: aufgehen 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  html.js .held .text > :nth-child(1) { animation-delay: 80ms; }
  html.js .held .text > :nth-child(2) { animation-delay: 180ms; }
  html.js .held .text > :nth-child(3) { animation-delay: 280ms; }
  html.js .held .text > :nth-child(4) { animation-delay: 420ms; }
  html.js .held .text > :nth-child(5) { animation-delay: 540ms; }
  html.js .held h1 .unterstrich path { stroke-dasharray: 130; stroke-dashoffset: 130; animation: zeichnen 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1000ms forwards; }
  html.js .buch { animation: aufgehen 1s cubic-bezier(0.16, 1, 0.3, 1) 500ms both; }
  html.js .buch li { animation: aufgehen 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  html.js .buch li:nth-child(1) { animation-delay: 1000ms; }
  html.js .buch li:nth-child(2) { animation-delay: 1400ms; }
  html.js .buch li:nth-child(3) { animation-delay: 1800ms; }
  html.js .buch li:nth-child(4) { animation-delay: 2300ms; }
  html.js .buch .gebaut { animation: aufgehen 0.5s ease-out both; }
  html.js .buch li:nth-child(1) .gebaut { animation-delay: 1400ms; }
  html.js .buch li:nth-child(2) .gebaut { animation-delay: 1800ms; }
  html.js .buch li:nth-child(3) .gebaut { animation-delay: 2200ms; }
  html.js .buch .fuss { animation: aufgehen 0.7s cubic-bezier(0.16, 1, 0.3, 1) 2500ms both; }
  .buch li:nth-child(3) .gebaut::before { animation: pulsieren 2.8s ease-out 2.8s infinite; }
  .buch .cursor { animation: blinken 1.1s step-end infinite; }

  /* Rückmeldung beim Zeiger */
  .knopf, .kopf nav a { transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 0.2s ease, box-shadow 0.2s ease; }
  .fragen details p { animation: aufgehen 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @media (hover: hover) {
    .knopf:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 42, 36, 0.18); }
    .schritte li, .zusagen li { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease; }
    .schritte li:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 42, 36, 0.12); }
    .zusagen li:hover { transform: translateY(-3px); border-top-color: var(--rose-tinte); }
    .buch { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease; }
    .buch:hover { transform: translateY(-3px); box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4); }
  }
}
