/* Schriften, lokal gehostet (keine Verbindung zu Google) */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/figtree-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #F4F5F9;
  --surface: #FFFFFF;
  --ink: #15192B;
  --ink-2: #4A5068;
  --ink-3: #8A90A6;
  --line: #D9DCE6;
  --accent: #15192B;
  --on-accent: #FFFFFF;
  --h: #2A5BE0;
  --a: #EE7A1C;
  --r: #1C9A68;
  --s: #8A4BD8;
  --t: #DF3F4E;
  --radius: 14px;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Figtree", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pad: 20px;
  --maxw: 560px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--sat); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--sat);
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); font-weight: 800; }
h2 { font-size: 1.55rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.screen { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) calc(40px + var(--sab)); min-height: 100vh; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 56px; padding: 0 22px;
  border: 0; border-radius: var(--radius);
  font-weight: 600; font-size: 1.05rem; cursor: pointer;
  transition: transform .08s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:active { background: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn:focus-visible, .icon-btn:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--h); outline-offset: 3px; }
.btn[disabled] { opacity: .5; cursor: default; }

.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer; flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:active { background: #fff; }

/* ---------- Start ---------- */
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 0 8px; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.brand-mark { display: inline-flex; gap: 3px; }
.brand-mark i { display: block; width: 9px; height: 18px; border-radius: 3px; }

.hero { padding: 40px 0 36px; }
.hero h1 { margin-bottom: 18px; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 36ch; }
.cta-group { margin-top: 28px; display: grid; gap: 12px; }
.meta { font-size: .9rem; color: var(--ink-3); text-align: center; }

.types-intro { padding: 28px 0; border-top: 1.5px solid var(--line); }
.types-intro h2 { margin-bottom: 16px; }
.type-list { list-style: none; margin: 0 0 16px; padding: 0; }
.type-list li {
  display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.type-list li:last-child { border-bottom: 0; }
.type-letter {
  width: 52px; height: 52px; border-radius: 14px; color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
}
.type-list strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.type-list span { color: var(--ink-2); font-size: .95rem; }
.type-list .type-letter { color: #fff; }
.muted { color: var(--ink-2); }

.result-teaser { padding: 28px 0; border-top: 1.5px solid var(--line); display: grid; gap: 12px; }

.site-footer { padding-top: 32px; font-size: .85rem; color: var(--ink-3); display: grid; gap: 6px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--ink-2); }

/* ---------- Quiz ---------- */
#screen-quiz { display: flex; flex-direction: column; padding-bottom: 0; }
.quiz-head {
  position: sticky; top: var(--sat); z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad);
  background: var(--bg);
}
.progress { flex: 1; height: 6px; border-radius: 3px; background: #E2E4EC; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 3px; transition: width .25s ease; }
.progress-label { font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; }

.question { padding: 18px 0 24px; flex: 1; }
.question-kicker { color: var(--ink-3); font-size: .95rem; margin-bottom: 8px; }
.question h2 { font-size: 1.7rem; margin-bottom: 10px; }
.question-hint { color: var(--ink-2); font-size: .95rem; margin-bottom: 8px; }

.answers { list-style: none; margin: 0; padding: 0; }
.answer { padding: 18px 0 14px; border-bottom: 1px solid var(--line); }
.answer:last-child { border-bottom: 0; }
.answer-text { display: block; margin-bottom: 10px; }
.answer-row { display: flex; align-items: center; gap: 14px; }
.answer-value {
  min-width: 68px; font-size: .9rem; font-weight: 600; color: var(--ink-3);
  text-align: right; transition: color .15s;
}
.answer.touched .answer-value { color: var(--ink); }

input[type="range"].slider {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 44px; margin: 0; background: transparent; cursor: pointer;
}
input[type="range"].slider::-webkit-slider-runnable-track {
  height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, var(--fill, var(--ink)) 0 var(--pct, 0%), #DFE2EB var(--pct, 0%) 100%);
}
input[type="range"].slider::-moz-range-track { height: 10px; border-radius: 5px; background: #DFE2EB; }
input[type="range"].slider::-moz-range-progress { height: 10px; border-radius: 5px; background: var(--fill, var(--ink)); }
input[type="range"].slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; margin-top: -10px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--ink);
  box-shadow: 0 2px 6px rgba(21,25,43,.18);
}
input[type="range"].slider::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--ink);
  box-shadow: 0 2px 6px rgba(21,25,43,.18);
}

.quiz-foot {
  position: sticky; bottom: 0; z-index: 5;
  margin: 0 calc(-1 * var(--pad)); padding: 12px var(--pad) calc(12px + var(--sab));
  background: linear-gradient(180deg, rgba(244,245,249,0) 0%, var(--bg) 28%);
}

/* ---------- Ergebnis ---------- */
.result-hero {
  margin: 0 calc(-1 * var(--pad)); padding: 24px var(--pad) 32px;
  background: var(--type, var(--ink)); color: #fff;
}
.result-hero .brand { color: rgba(255,255,255,.85); padding-top: 14px; }
.result-hero .brand-mark i { background: rgba(255,255,255,.9) !important; }
.result-hero .brand-mark i:nth-child(2) { opacity: .75; }
.result-hero .brand-mark i:nth-child(3) { opacity: .6; }
.result-hero .brand-mark i:nth-child(4) { opacity: .45; }
.result-hero .brand-mark i:nth-child(5) { opacity: .3; }
.result-who { margin-top: 22px; font-size: 1.05rem; opacity: .9; }
.result-mix { font-size: clamp(2.2rem, 10vw, 3rem); font-weight: 800; margin: 6px 0 10px; letter-spacing: -0.02em; }
.result-line { font-size: 1.15rem; opacity: .92; max-width: 32ch; }

.radar-wrap { display: grid; place-items: center; margin: 24px 0 8px; }
.radar { width: min(100%, 320px); height: auto; overflow: visible; }
.radar .grid { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1; }
.radar .axis { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.radar .shape { fill: rgba(255,255,255,.28); stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; }
.radar .shape-2 { fill: rgba(21,25,43,.22); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 6 5; }
.radar .lbl { fill: #fff; font-family: var(--font-display); font-weight: 800; font-size: 20px; text-anchor: middle; dominant-baseline: central; }
.radar .dot { fill: #fff; }
.radar.on-light .grid, .radar.on-light .axis { stroke: var(--line); }
.radar.on-light .lbl { fill: var(--ink); }

.bars { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 108px 1fr 58px; align-items: center; gap: 10px; font-size: .95rem; }
.bar .bar-name { font-weight: 600; }
.bar .bar-track { height: 10px; border-radius: 5px; background: rgba(255,255,255,.28); overflow: hidden; }
.bar .bar-fill { display: block; height: 100%; background: #fff; border-radius: 5px; width: 0; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bar .bar-pct { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bars.on-light .bar-track { background: #E2E4EC; }
.bars.on-light .bar-fill { background: var(--c); }

.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.share-row .btn-full { grid-column: 1 / -1; }

.analysis { padding: 8px 0 0; }
.analysis-section { padding: 26px 0; border-bottom: 1.5px solid var(--line); }
.analysis-section:last-child { border-bottom: 0; }
.analysis-section h3 { margin-bottom: 10px; }
.analysis-section h3 .tag { color: var(--type); }
.analysis-section p + p { margin-top: 12px; }
.secondary-note { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius); background: #fff; color: var(--ink-2); }
.secondary-note strong { color: var(--ink); }

.compat-list { list-style: none; margin: 0; padding: 0; }
.compat-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.compat-list li:last-child { border-bottom: 0; }
.compat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.compat-head strong { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.05rem; }
.compat-head .swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.fit { display: inline-flex; gap: 3px; }
.fit i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.fit i.on { background: var(--ink); }
.compat-list p { color: var(--ink-2); font-size: .97rem; }

.disclaimer { margin-top: 28px; font-size: .85rem; color: var(--ink-3); }
.result-actions { margin-top: 24px; display: grid; gap: 10px; }

/* ---------- Geteiltes Ergebnis / Vergleich ---------- */
.shared-intro { padding: 10px 0 0; }
.shared-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); font-size: .95rem; margin-bottom: 10px; }
.shared-badge .swatch { width: 12px; height: 12px; border-radius: 50%; }
.compare-hero { padding: 24px 0 8px; }
.compare-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
.legend { display: flex; gap: 18px; margin: 10px 0 0; font-size: .95rem; color: var(--ink-2); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 6px; }
.pair-card { padding: 14px 16px; border-radius: var(--radius); color: #fff; }
.pair-card small { display: block; opacity: .85; font-size: .85rem; }
.pair-card strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; margin-top: 2px; }
.pair-card em { display: block; font-style: normal; opacity: .9; font-size: .9rem; margin-top: 6px; }
.fit-big { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; font-weight: 600; }
.fit-big .fit i { width: 12px; height: 12px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--sab)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .95rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100% - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.name-field { display: grid; gap: 8px; margin-top: 22px; }
.name-field label { font-size: .95rem; opacity: .92; }
.name-field input {
  width: 100%; min-height: 50px; border-radius: 12px; border: 0; padding: 0 14px;
  font: inherit; background: rgba(255,255,255,.18); color: #fff;
}
.name-field input::placeholder { color: rgba(255,255,255,.65); }

.name-field-light { margin-top: 0; }
.name-field-light label { color: var(--ink-2); }
.name-field-light input { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.name-field-light input::placeholder { color: var(--ink-3); }

@media (min-width: 600px) {
  body { font-size: 18px; }
  .screen { padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
