@font-face { font-family: "DM Sans"; font-weight: 400; src: url(fonts/dm-sans-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; font-weight: 500; src: url(fonts/dm-sans-latin-500-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; font-weight: 600; src: url(fonts/dm-sans-latin-600-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; font-weight: 700; src: url(fonts/dm-sans-latin-700-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Marker"; src: url(fonts/permanent-marker-latin-400-normal.woff2) format("woff2"); font-display: swap; }

/* Farben aus dem Maskottchen: Rot, Gelb, Schwarz auf Creme. Werte auch in ../BRAND.md */
:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --ink: #141210;
  --ink-2: #48433d;
  --muted: #7a7369;
  --line: #e2dacb;
  --red: #f03a17;
  --yellow: #ffe11a;
  --font: "DM Sans", system-ui, sans-serif;
  --marker: "Marker", "Comic Sans MS", cursive;
  --radius: 26px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
code { font-size: .9em; background: rgba(0,0,0,.06); padding: .1em .35em; border-radius: 5px; }
[hidden] { display: none !important; }

main, .top-inner, .footer-inner { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.mark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -.035em; text-decoration: none; }
.mark img { width: 28px; transition: transform .3s; }
.mark:hover img { transform: rotate(-12deg) scale(1.1); }
.mark span { color: var(--red); margin-left: -10px; }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--ink); color: #fff; padding: 15px 26px; border-radius: 999px; border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 14px; box-shadow: 0 3px 0 var(--ink); }
.btn-red { background: var(--red); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-invert { background: #fff; color: var(--ink); }
.btn-soon { background: transparent; color: inherit; border-style: dashed; border-color: currentColor; box-shadow: none; opacity: .7; cursor: default; }
.btn-soon:hover, .btn-soon:active { transform: none; box-shadow: none; }
.arrow { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; transition: transform .2s; }
.btn-red .arrow { background: #fff; color: var(--red); }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; padding: 56px 0 40px; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(240,58,23,.15); } }
h1 { font-weight: 700; font-size: clamp(46px, 7.4vw, 100px); line-height: .98; letter-spacing: -.05em; }
h1 mark {
  display: inline-block; background: var(--yellow); color: var(--ink); padding: 0 .14em; border-radius: 16px;
  transform: rotate(-3deg); box-shadow: 4px 4px 0 var(--ink); animation: wiggle 4s ease-in-out infinite;
}
@keyframes wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(2deg); } }
h1 sup { color: var(--red); font-size: .5em; vertical-align: .9em; }
.lede { max-width: 50ch; margin-top: 26px; color: var(--ink-2); font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 26px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 700; margin-right: 8px; }
.footnote { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

.hero-art { position: relative; justify-self: center; width: min(420px, 100%); }
.mascot { position: relative; z-index: 2; rotate: var(--tilt, 0deg); translate: 0 var(--shift, 0px); transition: rotate .4s ease-out, translate .4s ease-out; filter: drop-shadow(10px 12px 0 rgba(20,18,16,.12)); }
.bob { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.scribble { font-family: var(--marker); color: var(--red); line-height: 1.15; }
.scribble-hero { position: absolute; z-index: 3; right: -10px; bottom: -6px; font-size: 21px; transform: rotate(-6deg); text-align: right; }
.scribble-arrow { position: absolute; z-index: 3; width: 90px; right: 150px; bottom: 32px; transform: rotate(10deg); }
.scribble-arrow path { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* Abschnitte */
.block { padding: 72px 0; }
.eyebrow { display: inline-block; font-family: var(--marker); font-size: 20px; color: var(--red); transform: rotate(-2deg); margin-bottom: 14px; }
h2 { font-weight: 700; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.04em; max-width: 24ch; margin-bottom: 44px; }
h2 .dim { color: #b6ad9f; }

/* Skill-Karten */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card {
  border-radius: var(--radius); padding: 36px; min-height: 320px; border: 2px solid var(--ink);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; scroll-margin-top: 30vh;
  box-shadow: 8px 8px 0 var(--ink); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 12px 12px 0 var(--ink); }
.card-dark { background: var(--ink); color: #f6f1e7; }
.card-yellow { background: var(--yellow); }
.card-red { background: var(--red); color: #fff; }
.card.is-target { outline: 4px solid var(--red); outline-offset: 6px; }
.pill { font-size: 12px; font-weight: 600; letter-spacing: .04em; border-radius: 999px; padding: 5px 12px; background: rgba(255,255,255,.14); }
.card-yellow .pill { background: rgba(0,0,0,.08); }
.card h3 { font-weight: 700; font-size: 44px; letter-spacing: -.045em; line-height: 1; }
.card p { opacity: .78; max-width: 40ch; }
.card .btn { margin-top: auto; }
.card-dark .btn-invert { box-shadow: 0 4px 0 var(--red); border-color: #fff; }

/* Schritte */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { position: relative; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: 6px 6px 0 var(--ink); }
.steps li:nth-child(2) { transform: rotate(.8deg); }
.step-no { display: inline-block; font-family: var(--marker); font-size: 28px; color: var(--red); margin-bottom: 14px; }
.steps h3 { font-weight: 700; font-size: 22px; letter-spacing: -.03em; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 15px; }
.peek { position: absolute; width: 92px; right: 18px; top: -70px; transform: rotate(12deg); transition: transform .3s; }
.step-peek:hover .peek { transform: rotate(-4deg) translateY(-8px); }

/* Anmeldung */
.signup {
  position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: end;
  background: var(--red); color: #fff; border: 2px solid var(--ink); border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 5vw, 56px); box-shadow: 10px 10px 0 var(--ink); overflow: hidden;
}
.signup .eyebrow { color: var(--yellow); }
.signup h2 { margin-bottom: 28px; }
.signup h2 .dim { color: #ffb8a6; }
.field-row { display: flex; gap: 12px; max-width: 580px; }
.field-row input {
  flex: 1; min-width: 0; font: 500 16px var(--font); color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 14px 22px; outline: none;
}
.field-row input:focus { box-shadow: 0 0 0 4px var(--yellow); }
.consent { display: flex; gap: 10px; align-items: flex-start; max-width: 580px; margin-top: 18px; font-size: 13px; color: #ffe1d9; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--ink); width: 17px; height: 17px; flex: none; }
.consent a { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-art { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; margin-bottom: calc(-1 * clamp(28px, 5vw, 56px) - 70px); }
.signup-art::before { content: ""; position: absolute; width: 270px; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); bottom: -40px; }
.signup-art img { position: relative; width: min(280px, 100%); transform: rotate(-8deg); transition: transform .4s; }
.signup:hover .signup-art img { transform: rotate(0deg) translateY(-20px); }
.signup-art .scribble { position: relative; z-index: 1; color: var(--yellow); font-size: 24px; transform: rotate(-8deg); margin-bottom: 4px; }

.follow { text-align: center; }
.follow h2 { margin: 0 auto 12px; }
.follow p { color: var(--muted); margin-bottom: 28px; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Einblenden */
.block { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.in { opacity: 1; transform: none; }
.hero-text > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(2) { animation-delay: .06s; }
.hero-text > :nth-child(3) { animation-delay: .12s; }
.hero-text > :nth-child(4) { animation-delay: .18s; }
.hero-text > :nth-child(5) { animation-delay: .24s; }
.hero-art { animation: pop .9s .2s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes pop { from { opacity: 0; transform: scale(.7) rotate(-10deg); } }

footer { border-top: 1px solid var(--line); margin-top: 64px; }
.footer-inner { padding: 30px 0 46px; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 14px; }
.footer-inner p { display: flex; gap: 10px; align-items: flex-start; max-width: 62ch; }
.footer-inner p img { width: 20px; flex: none; }
.footer-inner nav { display: flex; gap: 20px; white-space: nowrap; }

/* Unterseiten (Impressum, Datenschutz) */
.legal { width: min(70ch, 100% - 32px); margin-inline: auto; padding: 64px 0 96px; }
.legal h1 { margin: 0 0 40px; font-size: clamp(40px, 6vw, 64px); }
.legal h2 { font-size: 22px; margin: 36px 0 10px; max-width: none; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal-top { width: min(1160px, 100% - 32px); margin-inline: auto; height: 68px; display: flex; align-items: center; }

/* Check-Mail- und Danke-Seite */
.note-page { text-align: center; padding: 48px 0 40px; width: min(760px, 100% - 32px); margin-inline: auto; }
.note-page .mascot { width: 190px; margin: 0 auto 18px; }
.note-page h1 { font-size: clamp(42px, 7vw, 76px); }
.note-page .lede { margin: 20px auto 0; }
.note-page .scribble { font-size: 22px; transform: rotate(-3deg); margin-top: 18px; }
.checks-col { flex-direction: column; align-items: center; gap: 8px; margin: 26px 0 34px; }
.note-page + .grid { margin-bottom: 24px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-art { width: min(320px, 80%); order: -1; }
  .scribble-arrow { display: none; }
  .scribble-hero { right: -4px; font-size: 18px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li:nth-child(2) { transform: none; }
  .signup { grid-template-columns: 1fr; }
  .signup-art { margin-bottom: calc(-1 * clamp(28px, 5vw, 56px) - 40px); }
  .signup-art img { width: 180px; }
  .signup-art::before { width: 190px; }
  .field-row { flex-direction: column; }
  .card { padding: 28px; min-height: 0; }
  .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .block { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
