@font-face {
  font-family: "Bricolage";
  src: url("/static/fonts/Bricolage.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --t1: #e2704a;
  --t2: #c4532f;
  --t3: #a63c22;
  --creme: #fff4ec;
  --sand: #f6e7dc;
  --text: #2b2420;
  --leise: #7a6a60;
  --dunkel: #2b2420;
  --weiss: #ffffff;
  --gruen: #2f7d5b;
  --rund: 22px;
  --schatten: 0 10px 30px rgba(120, 50, 20, .14);
  --verlauf: linear-gradient(165deg, #d0603c 0%, #b8462a 60%, #a63c22 100%);
  --korn: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--creme); }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--creme);
  font-family: "Bricolage", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.45;
}
a { color: inherit; }
.rahmen { max-width: 480px; margin: 0 auto; padding: 0 18px; }
.marke {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.01em;
  text-decoration: none; font-size: 18px;
}
.marke svg { width: 26px; height: 26px; }
.kopfzeile { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }

/* Knöpfe */
.knopf {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  border: 0; border-radius: 18px; padding: 18px 20px; font: inherit; font-weight: 800; font-size: 18px;
  cursor: pointer; text-decoration: none; text-align: center; transition: transform .12s ease, box-shadow .12s ease;
}
.knopf:active { transform: scale(.97); }
.knopf.voll { background: var(--dunkel); color: #fff; box-shadow: 0 8px 22px rgba(43, 36, 32, .25); }
.knopf.terra { background: var(--verlauf); color: #fff; box-shadow: 0 8px 22px rgba(166, 60, 34, .35); }
.knopf.hell { background: #fff; color: var(--text); box-shadow: var(--schatten); }
.knopf.leise { background: transparent; color: var(--leise); font-weight: 600; font-size: 16px; }
.knopf.wa { background: #1fae5b; color: #fff; box-shadow: 0 8px 22px rgba(31, 174, 91, .3); }
.knopf svg { width: 22px; height: 22px; flex: none; }

/* Startseite */
.held {
  position: relative; overflow: hidden; color: #fff; background: var(--verlauf);
  border-radius: 0 0 36px 36px; padding-bottom: 34px;
}
.held::after { content: ""; position: absolute; inset: 0; background: var(--korn); pointer-events: none; }
.held > * { position: relative; z-index: 1; }
.held h1 {
  font-size: clamp(44px, 13vw, 64px); line-height: .95; letter-spacing: -.035em; margin: 18px 0 14px; font-weight: 800;
}
.held .unter { font-size: 19px; opacity: .95; margin: 0 0 22px; }
.wechsel { display: inline-block; position: relative; margin-top: 6px; }
.wechsel span {
  display: inline-block; animation: rein .45s cubic-bezier(.2, .9, .3, 1.3); background: var(--dunkel); color: var(--creme);
  padding: .02em .22em .08em; border-radius: .18em; transform: rotate(-2deg);
}
@keyframes rein { from { transform: translateY(50%) rotate(-8deg) scale(.8); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }
.band {
  overflow: hidden; white-space: nowrap; margin: 26px -18px 0; padding: 12px 0; background: var(--dunkel);
  transform: rotate(-2deg); font-weight: 800; font-size: 20px; letter-spacing: .02em; color: var(--creme);
}
.band .lauf { display: inline-block; animation: lauf 22s linear infinite; }
.band .lauf span { margin: 0 14px; }
.band .lauf i { font-style: normal; color: var(--t1); }
@keyframes lauf { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.stapel { position: relative; height: 340px; margin: 34px 0 10px; }
.stapel .karte-story { position: absolute; width: 47%; height: 300px; }
.stapel .s-a { left: 0; top: 0; transform: rotate(-5deg); z-index: 2; }
.stapel .s-b { right: 0; top: 34px; transform: rotate(5deg); }
.stapel .karte-story .w { font-size: 21px; }
.karte-story {
  border-radius: 22px; padding: 26px 16px; color: #fff; box-shadow: 0 18px 40px rgba(80, 30, 10, .3);
  background: var(--verlauf); overflow: hidden; display: flex; flex-direction: column; justify-content: center;
}
.karte-story.dunkel { background: linear-gradient(170deg, #2b2420, #4a2f24); text-align: center; }
.karte-story .k { font-size: 12px; font-weight: 700; opacity: .9; }
.karte-story .w { font-size: 30px; font-weight: 800; line-height: 1; margin-top: 8px; letter-spacing: -.02em; }
.karte-story .z { font-size: 10.5px; font-weight: 700; opacity: .85; }
.karte-story .m { font-size: 10px; font-weight: 700; opacity: .85; margin-top: 14px; }
.kreis {
  width: 84px; height: 84px; border-radius: 50%; margin: 12px auto 10px;
  background: radial-gradient(circle at 35% 30%, #f08a62, #c4532f); display: flex; align-items: center; justify-content: center;
}
.kreis svg { width: 46px; height: 46px; }
#rollen-symbol svg { width: 70px; height: 70px; }

.schritte { counter-reset: s; list-style: none; padding: 0; margin: 10px 0 26px; }
.schritte li {
  counter-increment: s; position: relative; padding: 16px 16px 16px 64px; margin-bottom: 10px;
  background: #fff; border-radius: var(--rund); box-shadow: var(--schatten); font-weight: 600;
}
.schritte li::before {
  content: counter(s); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; background: var(--verlauf); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.schritte li small { display: block; font-weight: 400; color: var(--leise); font-size: 14.5px; }
h2 { font-size: 30px; line-height: 1.05; letter-spacing: -.025em; margin: 34px 0 12px; }
.pillen { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.pille {
  background: rgba(255, 255, 255, .18); border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 99px;
  padding: 6px 13px; font-size: 14.5px; font-weight: 700;
}
.sticker {
  display: inline-block; background: var(--creme); color: var(--t3); font-weight: 800; font-size: 13px;
  padding: 6px 12px; border-radius: 99px; transform: rotate(-4deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}

/* Formular */
.feld {
  width: 100%; font: inherit; font-size: 26px; font-weight: 800; padding: 18px 20px; border-radius: 18px;
  border: 2.5px solid var(--dunkel); background: #fff; color: var(--text); outline: none; letter-spacing: -.01em;
}
.feld:focus { border-color: var(--t2); box-shadow: 0 0 0 5px rgba(196, 83, 47, .15); }
.haken { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; font-size: 15.5px; cursor: pointer; }
.haken input { width: 24px; height: 24px; accent-color: var(--t2); flex: none; margin-top: 1px; }
.fehler { background: #fde3dc; color: #8a2a12; border-radius: 14px; padding: 12px 14px; font-size: 15px; margin: 12px 0; }
.klein { font-size: 14px; color: var(--leise); }
.mitte { text-align: center; }

/* Fragen */
.quiz { min-height: 100vh; display: flex; flex-direction: column; }
.quiz-kopf { padding: 18px 0 8px; }
.balken { height: 7px; background: var(--sand); border-radius: 9px; overflow: hidden; }
.balken > div { height: 100%; width: 0; background: var(--verlauf); border-radius: 9px; transition: width .35s ease; }
.frage-bereich { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 10px 0 30px; }
.frage-nr { font-weight: 800; color: var(--t2); font-size: 15px; letter-spacing: .04em; }
.frage { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; margin: 8px 0 24px; }
.antworten { display: grid; gap: 12px; }
.antwort {
  text-align: left; font: inherit; font-size: 19px; font-weight: 700; color: var(--text); background: #fff;
  border: 2.5px solid transparent; border-radius: 20px; padding: 18px 20px; cursor: pointer;
  box-shadow: var(--schatten); transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.antwort:active { transform: scale(.98); }
.antwort.gewaehlt { border-color: var(--t2); background: #fff1ea; transform: scale(1.02); }
.rein-rechts { animation: reinR .32s cubic-bezier(.2, .9, .3, 1); }
@keyframes reinR { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.zurueck { background: none; border: 0; font: inherit; color: var(--leise); font-weight: 600; cursor: pointer; padding: 6px 0; }

/* Fertig-Seite */
.fertig { text-align: center; padding: 40px 0 10px; }
.fertig .gross { font-size: 46px; line-height: 1; letter-spacing: -.035em; font-weight: 800; margin: 16px 0 10px; }
.konfetti { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; animation: weg .6s ease 1.6s forwards; }
@keyframes weg { to { opacity: 0; } }
.fertig, .box, .held, .eigen, #ergebnis, h2 { position: relative; z-index: 1; }
.konfetti i {
  position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall 2.4s ease-in forwards;
}
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .6; } }
.box {
  background: #fff; border-radius: 26px; padding: 22px; box-shadow: var(--schatten); margin: 18px 0;
}
.box.terra { background: var(--verlauf); color: #fff; position: relative; overflow: hidden; }
.box.terra::after { content: ""; position: absolute; inset: 0; background: var(--korn); pointer-events: none; }
.box.terra > * { position: relative; z-index: 1; }
.box h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }

/* Besitzerseite */
.zaehler-gross { font-size: 88px; font-weight: 800; line-height: .9; letter-spacing: -.05em; }
.ring { display: flex; gap: 6px; margin: 14px 0 6px; }
.ring span { flex: 1; height: 10px; border-radius: 9px; background: rgba(255, 255, 255, .28); }
.ring span.an { background: #fff; }
.eigen { background: #fff; border-radius: 20px; padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--schatten); }
.eigen .wort { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.eigen .leiste { height: 9px; background: var(--sand); border-radius: 9px; margin: 10px 0 8px; overflow: hidden; }
.eigen .leiste div { height: 100%; background: var(--verlauf); border-radius: 9px; width: 0; transition: width 1s cubic-bezier(.2, .9, .3, 1); }
.eigen .zitat { font-size: 14.5px; color: var(--leise); }
.aufdecken .eigen { opacity: 0; transform: translateY(20px) scale(.96); }
.aufdecken .eigen.da { opacity: 1; transform: none; transition: all .5s cubic-bezier(.2, .9, .3, 1.2); }
.verdeckt-rolle { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.verdeckt-rolle .schwarz { flex: 1; height: 22px; border-radius: 6px; background: repeating-linear-gradient(45deg, #2b2420 0 8px, #3d322c 8px 16px); }
.reiter { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0; padding-bottom: 4px; }
.reiter button {
  flex: none; border: 2px solid var(--dunkel); background: #fff; border-radius: 99px; padding: 8px 14px;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.reiter button.an { background: var(--dunkel); color: #fff; }
.einladung { background: var(--sand); border-radius: 16px; padding: 14px 16px; font-size: 15.5px; margin: 8px 0 12px; }
.zeile { display: flex; gap: 10px; }
.zeile > * { flex: 1; }
.story-vorschau { width: 100%; border-radius: 18px; box-shadow: var(--schatten); display: block; }
.neu-marke {
  display: inline-block; background: #fff; color: var(--t3); font-weight: 800; border-radius: 99px;
  padding: 5px 12px; font-size: 14px; animation: puls 1.6s ease-in-out infinite;
}
@keyframes puls { 50% { transform: scale(1.08); } }
.dialog-hg {
  position: fixed; inset: 0; background: rgba(43, 36, 32, .55); display: none; align-items: flex-end;
  justify-content: center; z-index: 60; padding: 12px;
}
.dialog-hg.offen { display: flex; }
.dialog { background: var(--creme); border-radius: 28px; padding: 24px 20px; width: 100%; max-width: 460px; animation: hoch .3s ease; }
@keyframes hoch { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.fuss { text-align: center; font-size: 13.5px; color: var(--leise); padding: 40px 18px 34px; }
.fuss a { color: var(--leise); text-decoration: none; }
.fuss-klein { margin-top: 6px; font-size: 12.5px; }
.text-seite h1 { font-size: 34px; letter-spacing: -.02em; }
.text-seite h2 { font-size: 21px; margin: 26px 0 6px; }
.text-seite p, .text-seite li { font-size: 16px; }
.versteckt { display: none !important; }
