/* Design-Test «Cover-Look»: schwarzer Grund, Neonfarben als Pinselstriche, Pinselschrift.
   Die rauen Kanten entstehen durch die SVG-Filter #rough und #splat in index.html. */

@font-face {
  font-family: "Knewave";
  src: url("/fonts/knewave.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --paper: #ffffff;
  --ink: #000000;
  --soft: #555555;
  --dim: #b9b9b9;
  --line: #d9d9d9;
  --pink: #ff2e9a;
  --pink-dark: #c4006b;
  --yellow: #ffe600;
  --cyan: #19c8e0;
  --error: #b00020;
  --brush: "Knewave", "Arial Black", "Segoe UI Black", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --col: 58rem;
  --read: 44rem;
}

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

html { scroll-behavior: smooth; background: var(--black); overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

.defs { position: absolute; width: 0; height: 0; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--yellow); }
a:hover { color: var(--yellow); }

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

.skip { position: absolute; left: -999rem; top: 0; background: var(--yellow); color: var(--ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

h1, h2 { font-family: var(--brush); font-weight: 400; line-height: 1.02; margin: 0; text-transform: uppercase; }
h1 { font-size: min(6.4vw, 4.1rem); line-height: 1.16; text-align: center; transform: rotate(-2deg); margin: 2.5rem 0 0; }
h1 span { display: block; white-space: nowrap; }
h1 .l1 { color: var(--yellow); }
h1 .l2 { color: var(--paper); }
h1 .l3 { color: var(--pink); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); margin-bottom: 1.25rem; transform: rotate(-1.5deg); transform-origin: left center; }
p { margin: 0 0 1rem; }

/* Kopfzeile */
.top {
  max-width: calc(var(--col) + 2rem); margin: 0 auto; padding: 1rem 1rem 0;
  display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; align-items: baseline;
  font-size: .95rem; position: relative; z-index: 2;
}
.top-name { font-family: var(--brush); font-size: 1.15rem; text-transform: uppercase; color: var(--yellow); text-decoration: none; }
.top-kind { color: var(--dim); }

/* Hero: alles auf einer Mittelachse, gleiche Spalte wie die Blöcke darunter */
.hero {
  max-width: calc(var(--col) + 2rem); margin: 0 auto; padding: 1.5rem 1rem 3.5rem;
  scroll-margin-top: 1rem; position: relative;
}
.hero-main { min-width: 0; position: relative; z-index: 1; }

.motto { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 800; margin: 2.5rem 0 3.5rem; line-height: 1.75; color: var(--ink); text-align: center; text-wrap: balance; transform: rotate(-1deg); }
.marker { padding: .12em .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--yellow); box-shadow: .4em 0 0 var(--yellow), -.4em 0 0 var(--yellow); }

/* Projektblock: Text links, Cover rechts (auf dem Handy untereinander) */
.project { display: grid; gap: 3rem; }
.cover { display: block; width: 11rem; margin: 1rem auto 1.5rem; position: relative; z-index: 1; }
.cover::before, .cover::after { content: ""; position: absolute; z-index: -1; filter: url(#rough); }
.cover::before { inset: 8% -22% 30% -22%; background: var(--pink); transform: rotate(-9deg); }
.cover::after { inset: 46% -24% 4% -20%; background: var(--yellow); transform: rotate(7deg); }
.cover img { display: block; width: 100%; height: auto; transform: rotate(3deg); box-shadow: 0 0 0 2px var(--black); }

.doodle { position: absolute; pointer-events: none; }
.doodle-crown { width: 3.6rem; right: -2.6rem; top: -2.3rem; transform: rotate(14deg); }
.doodle-star { width: 2.6rem; left: -3.6rem; bottom: 14%; transform: rotate(-12deg); }

@media (min-width: 760px) {
  .hero { padding-top: 3.5rem; padding-bottom: 5rem; }
  h1 { margin-top: 3rem; }
  .motto { margin: 3.25rem 0 4.5rem; }
  .project { grid-template-columns: minmax(0, 1fr) 16rem; column-gap: 6rem; align-items: center; padding-right: 3rem; }
  .cover { width: 16rem; margin: 1rem 0; }
  .doodle-crown { width: 4.8rem; right: -3.4rem; top: -3.2rem; }
  .doodle-star { width: 3.2rem; left: -4.8rem; }
}

/* Papier: das Formular liegt als weisses Blatt auf dem schwarzen Grund */
.paper {
  position: relative; z-index: 0; background: var(--paper); color: var(--ink);
  padding: 1.5rem 1.15rem 1.25rem; margin: 0 -.15rem;
}
.paper::before { content: ""; position: absolute; z-index: -2; inset: 1.2rem -1rem -1rem 1.5rem; background: var(--cyan); filter: url(#rough); transform: rotate(1.2deg); }
.paper::after { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--paper); }
@media (min-width: 600px) { .paper { padding: 2rem 2rem 1.5rem; } }
.paper a { text-decoration-color: var(--pink); }
.paper a:hover { color: var(--pink-dark); }
.paper :focus-visible { outline-color: var(--pink); }

/* Buttons */
.button {
  display: inline-block; position: relative; z-index: 0; font-family: var(--brush); font-weight: 400; font-size: 1.3rem; line-height: 1.1;
  text-transform: uppercase; color: var(--ink); background: none;
  border: 0; border-radius: 0; padding: .95rem 1.6rem .85rem; cursor: pointer; text-decoration: none;
  transform: rotate(-1.5deg); transition: transform .1s ease;
}
.button::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--pink); filter: url(#rough); }
.button::after { content: ""; position: absolute; z-index: -2; inset: .45rem -.5rem -.45rem .5rem; background: var(--yellow); filter: url(#rough); }
.button:hover { color: var(--ink); transform: rotate(0deg) scale(1.03); }
.button:active { transform: rotate(0deg) scale(.98); }
.button[disabled] { opacity: .55; cursor: progress; }
.button-small { font-size: 1.05rem; padding: .75rem 1.2rem .65rem; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

.link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Inhaltsblöcke auf Schwarz */
.block { max-width: calc(var(--col) + 2rem); margin: 0 auto; padding: 3.25rem 1rem; position: relative; }
.block::before { content: ""; position: absolute; left: 1rem; top: 0; width: 7rem; height: .5rem; background: var(--accent, var(--yellow)); filter: url(#rough); transform: rotate(-2deg); }
.block h2 { color: var(--accent, var(--yellow)); }
.block-pink { --accent: var(--pink); }
.block-cyan { --accent: var(--cyan); }
.block p, .block li { color: #f2f2f2; }
.block > p, details p, .project-text p { max-width: var(--read); }

/* Formular */
.field { margin: 0 0 1.5rem; padding: 0; border: 0; min-width: 0; }
.field.nested { margin: .75rem 0 0 2.1rem; }
label, legend { font-weight: 700; display: block; padding: 0; margin-bottom: .35rem; }
.big-label { font-family: var(--brush); font-weight: 400; font-size: 1.7rem; text-transform: uppercase; line-height: 1.05; margin-bottom: .5rem; }
.optional { font-weight: 400; color: var(--soft); }
.hint { color: var(--soft); font-size: .95rem; margin: 0 0 .5rem; max-width: var(--read); }
.under-story { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-top: .35rem; color: var(--soft); font-size: .9rem; }
.count { margin-left: auto; font-variant-numeric: tabular-nums; }

.story-extras { margin-top: .6rem; }
.voice-jump { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; }
.voice-jump .button::before { background: var(--cyan); }
.prompts { border: 0 !important; }
.prompts summary { font-weight: 400; padding: .25rem 0; display: inline-block; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prompts summary::after { content: none; }
.prompts ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.prompts li { margin-bottom: .25rem; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 3px solid var(--ink); border-radius: 0; padding: .7rem .8rem;
}
textarea { resize: vertical; min-height: 12rem; line-height: 1.5; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--pink); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--error); }

.choice { display: grid; grid-template-columns: 1.35rem 1fr; gap: .75rem; align-items: start; font-weight: 400; margin: 0 0 .75rem; cursor: pointer; }
.choice input { width: 1.35rem; height: 1.35rem; margin: .15rem 0 0; accent-color: var(--pink-dark); }

.contact { border-left: 8px solid var(--yellow); padding: .25rem 0 .25rem 1.1rem; margin: 0 0 1.5rem; }
@media (min-width: 760px) {
  .contact { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .contact .choice { grid-column: 1 / -1; }
}

.terms { background: #f1f1f1; padding: .35rem 1.25rem .6rem; margin: 0 0 1.5rem; }
.terms-details { border: 0 !important; margin-bottom: .9rem; }
.terms-details summary { font-weight: 800; padding: 1rem 3.2rem 1rem 0; }
.terms-details summary::after {
  top: .6rem; right: 0; width: 2.1rem; height: 2.1rem;
  background: var(--ink); color: var(--paper);
  font-family: var(--body); font-weight: 800; font-size: 1.6rem; line-height: 2rem; text-align: center;
}
.terms-details[open] summary { padding-bottom: .5rem; }
.done-title { font-size: 1.9rem; transform: none; line-height: 1.05; margin-bottom: .9rem; }
.terms ul { margin: 0 0 .5rem; padding-left: 1.2rem; font-size: .95rem; max-width: var(--read); }
.terms li { margin-bottom: .4rem; }

/* Der Mensch-Check ist nur sichtbar, wenn Cloudflare einen Klick verlangt. */
.cf-turnstile { margin: 0 0 .9rem; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; margin: .5rem 0 1.5rem .25rem; }
#story-form .submit-row .button { margin: 0; }
#story-form .voice-jump .button { margin: 0 .5rem 0 0; }

.error { color: var(--error); font-weight: 700; border-left: 6px solid var(--error); padding-left: .8rem; }
.block .error { color: #ff8a9c; border-color: #ff8a9c; }
.ok { font-weight: 700; border-left: 6px solid var(--cyan); padding-left: .8rem; }
.block .ok { color: var(--paper); }
.done:focus { outline: none; }
.done p:last-child { margin-bottom: 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 1.25rem 0 1.5rem .25rem; }
.share-note { color: var(--soft); font-size: .95rem; }

[hidden] { display: none !important; }

/* Ablauf */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; z-index: 0; padding: .15rem 0 1.4rem 3.8rem; min-height: 3.2rem; }
.steps li::before {
  content: counter(step); position: absolute; left: .1rem; top: -.2rem; z-index: 1;
  font-family: var(--brush); font-size: 1.9rem; line-height: 2.8rem;
  width: 2.8rem; height: 2.8rem; text-align: center; color: var(--ink);
}
.steps li::after { content: ""; position: absolute; z-index: 0; left: 0; top: -.1rem; width: 3rem; height: 2.7rem; background: var(--yellow); filter: url(#rough); transform: rotate(-6deg); }
.steps li:nth-child(2)::after { background: var(--pink); transform: rotate(5deg); }
.steps li:nth-child(3)::after { background: var(--cyan); transform: rotate(-3deg); }
.steps strong { color: var(--paper); }
@media (min-width: 760px) {
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .steps li { padding: 3.9rem 0 0; }
}

/* FAQ */
details { border-bottom: 2px solid #333; }
details:first-of-type { border-top: 2px solid #333; }
summary { cursor: pointer; font-weight: 700; padding: .95rem 2.2rem .95rem 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .25rem; top: .35rem; font-family: var(--brush); font-size: 1.7rem; color: var(--accent, var(--pink)); }
details[open] summary::after { content: "\2212"; }
details p { padding-right: 2rem; }

/* Newsletter */
.inline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 1.25rem; max-width: var(--read); }
.inline-row input { flex: 1 1 14rem; width: auto; border-color: var(--paper); }
.block .hint { color: var(--dim); }

/* Platzhalter, die noch gefüllt werden müssen */
.todo { background: var(--cyan); color: var(--ink); padding: .05em .35em; font-weight: 700; }

/* Fuss */
.foot { max-width: calc(var(--col) + 2rem); margin: 0 auto; padding: 2rem 1rem 3rem; border-top: 2px solid #333; font-size: .95rem; color: var(--dim); }

/* Textseite (Datenschutz) */
.page { max-width: calc(var(--read) + 2rem); margin: 0 auto; padding: 2.5rem 1rem 3rem; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.75rem; color: var(--yellow); }
.page h2 { font-family: var(--body); font-weight: 800; text-transform: none; transform: none; font-size: 1.2rem; line-height: 1.3; margin: 2rem 0 .6rem; color: var(--paper); }
.page ul { padding-left: 1.2rem; }
.page p, .page li { color: #f2f2f2; }
