/* berufsmatch.ch – Party-Stil (Paket A: Kontraste, Fokus, neue Bausteine). Ohne Build, ohne externe Schriften. Mobile zuerst.
   Dunkle Grundfläche, pro Runde eine knallige Vollfarbe, dicke Schrift, griffige 3D-Knöpfe. */
:root {
  --bg: #08080c;
  --surface: #18181f;
  --soft: #24242d;
  --ink: #f6f3ff;
  --muted: #a9a9b8;
  --line: #2c2c38;
  --field-line: #6b6b80;   /* Feldrand ≥ 3:1 (A-13) */
  --dark: #08080c;
  --primary: #ffd60a;
  --primary-shade: #c9a700;
  --pink: #ff6fa5;
  --cyan: #3fe0e6;
  --green: #6bf59a;
  --link: #8fe9ff;
  --ok: #6bf59a;
  --ok-bg: #173f2c;
  --mid: #ffd60a;
  --mid-bg: #453a0c;
  --danger: #ff8080;
  --danger-bg: #4a1826;
  --radius: 24px;
  --red: #d70f37;          /* weiss darauf 5,23:1 (A-13) */
  --red-shade: #a80d29;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 600 1.0625rem/1.5 var(--font);
  hyphens: auto;
  hyphenate-limit-chars: 12 5 5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background .25s;
}
main { flex: 1; padding-top: 1.25rem; padding-bottom: 3rem; }
.wrap { width: 100%; max-width: 60rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.narrow { max-width: 34rem; margin: 0 auto; }
.narrow-wide { max-width: 42rem; }

h1, h2, h3 { line-height: 1.05; text-wrap: balance; hyphens: manual; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 7vw, 3rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.2rem; }
h1:focus { outline: none; }
/* Programmatisch gesetzter Fokus (Überschrift, Hauptbereich) ohne Rahmen; Tastaturziele behalten ihn */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
h1 mark { background: var(--primary); color: var(--dark); padding: 0 .12em; border-radius: .15em; display: inline-block; transform: rotate(-2deg); }
p, li { text-wrap: pretty; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
a { color: var(--link); text-underline-offset: .15em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; max-width: 36rem; }
.eyebrow, .kicker { font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .4em; display: block; }
.eyebrow { color: var(--primary); }
.pre { white-space: pre-wrap; }
code { font-size: .85em; }
.sticker { display: inline-block; background: var(--dark); color: #fff; font-size: .8rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 8px; transform: rotate(-2.5deg); margin-bottom: .8rem; }
.hero .sticker { background: var(--pink); color: var(--dark); }

/* Doppelter Fokusrahmen: auf dunklen und auf knalligen Flächen sichtbar (A-13) */
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 7px var(--dark); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--dark); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* Prototyp-Leiste */
.proto-bar { background: #000; color: #fff; font-size: .78rem; font-weight: 500; padding: .4rem 16px; display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: space-between; align-items: center; }
.proto-actions { display: flex; gap: .5rem; }
.proto-bar button { font: inherit; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 999px; padding: .15rem .7rem; cursor: pointer; }

/* Kopfzeile und Navigation */
.site-header { background: var(--bg); border-bottom: 2px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 900; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo-mark { width: 1.6rem; height: 1.6rem; border-radius: 50% 50% 50% 8px; background: var(--primary); box-shadow: inset -7px -7px 0 var(--pink); transform: rotate(-8deg); }

.main-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--surface); border-top: 2px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.main-nav[hidden] { display: none; }
.main-nav a { flex: 1; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .72rem; font-weight: 800; color: var(--muted); text-decoration: none; }
.main-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.main-nav a[aria-current] { color: var(--primary); }
body.has-nav .site-footer { padding-bottom: 78px; }
@media (min-width: 50rem) {
  .main-nav { position: static; border: 0; background: none; gap: .25rem; padding: 0; }
  .main-nav a { flex: none; flex-direction: row; min-height: 40px; padding: 0 .9rem; font-size: .95rem; border-radius: 999px; }
  .main-nav svg { display: none; }
  .main-nav a[aria-current] { background: var(--primary); color: var(--dark); }
  body.has-nav .site-footer { padding-bottom: 1.5rem; }
}
.site-footer { border-top: 2px solid var(--line); padding: 1.5rem 0; font-size: .85rem; font-weight: 500; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
body.bright .site-footer { display: none; }
body.bright.has-nav main { padding-bottom: 90px; }
.site-footer .btn-text { padding: 0; min-height: 0; font-size: inherit; color: var(--link); }

/* Knöpfe: dick, mit Kante, drücken sich ein */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 50px; padding: .5rem 1.4rem; border-radius: 999px; border: 0;
  font: inherit; font-weight: 900; text-decoration: none; cursor: pointer; text-align: center; hyphens: manual;
  background: var(--soft); color: var(--ink); box-shadow: 0 5px 0 rgba(0, 0, 0, .45); transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, .45); }
.btn-lg { min-height: 60px; padding: .6rem 2rem; font-size: 1.15rem; }
.btn-sm { min-height: 40px; padding: .3rem 1rem; font-size: .9rem; box-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-shade); }
.btn-primary:active { box-shadow: 0 1px 0 var(--red-shade); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: var(--soft); color: var(--ink); }
.btn-ghost[aria-current] { background: var(--primary); color: var(--dark); }
.btn-text { background: none; border: 0; font: inherit; cursor: pointer; box-shadow: none; color: var(--muted); padding-left: .4rem; padding-right: .4rem; text-decoration: underline; font-weight: 700; }
.btn-fav-on { background: var(--pink); color: var(--dark); box-shadow: 0 5px 0 #c94477; }
.btn-danger { background: var(--danger); color: var(--dark); box-shadow: 0 5px 0 #b34a4a; }
.btn-cta { background: var(--dark); color: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .35); }
.btn-cta-ghost { background: rgba(255, 255, 255, .55); color: var(--dark); box-shadow: 0 6px 0 rgba(0, 0, 0, .2); }

.row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.row-between { justify-content: space-between; }
.stack { display: grid; gap: 1rem; }
.grid-2 { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 44rem) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Karten */
.card { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.stack > .card, .grid-2 > .card { margin-bottom: 0; }
.card > :last-child { margin-bottom: 0; }
.card-soft { background: var(--soft); }
.card-danger { border: 2px solid var(--danger); background: none; }
details.card summary { font-weight: 900; cursor: pointer; }
details.card[open] summary { margin-bottom: .75rem; }
.notice { background: var(--mid-bg); color: var(--mid); border-radius: 12px; padding: .6rem .9rem; font-size: .88rem; font-weight: 500; }
.plain { list-style: none; padding: 0; }
.plain li { padding-left: 1.7rem; position: relative; margin-bottom: .4rem; }
.plain li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 900; }

/* Startseite */
.hero { padding: 1rem 0 2.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 10vw, 4rem); line-height: 1; letter-spacing: -.03em; margin-bottom: .2em; }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero .row { justify-content: center; }
.steps { display: grid; gap: 14px; margin-bottom: 1.25rem; }
@media (min-width: 44rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--g); color: var(--dark); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: 0 7px 0 rgba(0, 0, 0, .4); }
.step:nth-child(odd) { transform: rotate(-1deg); }
.step:nth-child(even) { transform: rotate(1deg); }
.step span { font-size: 2.4rem; line-height: 1; display: block; margin-bottom: .3rem; }
.step h2 { margin-bottom: .2em; }
.step p { margin: 0; font-size: .95rem; }

/* Karten im Party-Stil: Verlauf, Strahlen, angeschnittene Figuren */
.poster {
  position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 28px; container-type: inline-size; text-decoration: none; color: #fff;
  background: repeating-conic-gradient(from 0deg at 50% 62%, rgba(255, 255, 255, .13) 0 9deg, transparent 9deg 18deg), linear-gradient(165deg, var(--c1), var(--c2));
  border: 2px solid rgba(255, 255, 255, .45); box-shadow: 0 0 38px -8px var(--c1); transition: transform .12s;
}
a.poster:hover { transform: translateY(-4px) rotate(-1deg); }
a.poster:active { transform: scale(.97); }
.poster::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, var(--c2) 78%); }
.poster-emo { position: absolute; left: 0; right: 0; top: 7%; bottom: 27%; display: flex; align-items: center; justify-content: center; font-size: 36cqw; line-height: 1; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .3)); }
.poster-emo img { width: 68%; height: 100%; object-fit: contain; }
/* Titel auf dunklem Band (55 %): weiss darauf ≥ 5,8:1 in allen Runden (A-13) */
.poster strong { position: absolute; z-index: 1; left: 6%; right: 6%; bottom: 6%; text-align: center; font-size: clamp(.8rem, 8cqw, 1.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -.01em; hyphens: auto; text-wrap: balance; background: rgba(8, 8, 12, .55); border-radius: 14px; padding: .35em .45em; }
.poster-badge { position: absolute; z-index: 1; top: 10px; right: 10px; background: rgba(8, 8, 12, .6); color: #fff; font-size: .72rem; font-weight: 800; padding: .25rem .6rem; border-radius: 999px; }
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1rem 0 1.5rem; }
@media (min-width: 44rem) { .games { grid-template-columns: repeat(5, 1fr); } }
.fan { position: relative; width: min(64vw, 260px); margin: 1.6rem auto 2.2rem; }
.fan .poster { width: 100%; aspect-ratio: 3 / 4; }
.fan .poster-emo { top: 12%; bottom: 24%; }
.fan .poster-emo img { width: 78%; }
.fan .poster:nth-child(1), .fan .poster:nth-child(2) { position: absolute; top: 6%; width: 86%; }
.fan .poster:nth-child(1) { left: -42%; transform: rotate(-9deg); }
.fan .poster:nth-child(2) { right: -42%; transform: rotate(9deg); }
.fan .poster:nth-child(3) { position: relative; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 44rem) { .quick { grid-template-columns: repeat(4, 1fr); } }
.quick-tile { background: var(--surface); color: var(--ink); text-decoration: none; border-radius: 20px; padding: .9rem 1rem; display: flex; align-items: center; gap: .6rem; box-shadow: 0 5px 0 rgba(0, 0, 0, .45); }
.quick-tile:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, .45); }
.quick-tile span { font-size: 1.6rem; }
.quick-tile strong { font-weight: 900; line-height: 1.15; }

/* Modus-Karte */
.modecard { background: #fff; color: var(--dark); border-radius: 28px; padding: 1.4rem; transform: rotate(-2deg); box-shadow: 0 12px 0 rgba(0, 0, 0, .3); margin: .5rem 0 1.6rem; }
.modecard h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
.modecard a { color: var(--dark); }
.mode-jobs { list-style: none; padding: 0; margin: 0; }
.mode-jobs li { font-weight: 900; padding: .45rem 0; border-top: 2px solid #e6e2f5; }
.modecard-sm { display: block; text-decoration: none; background: var(--primary); transform: rotate(-1deg); padding: 1rem 1.2rem; margin: .2rem 0 .4rem; box-shadow: 0 7px 0 var(--primary-shade); }
.modecard-sm strong { display: block; font-size: 1.35rem; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; margin-bottom: .2rem; }

/* Avatare und Figuren */
.avatar { display: block; flex: none; }
.figure { display: block; height: auto; }
/* Figur rechts oben im Hintergrund: darf hinter die Modus-Karte und die Kacheln laufen */
.hello { position: relative; min-height: 132px; padding: .6rem 40% .4rem 0; display: flex; align-items: center; }
.hello-fig { position: absolute; right: -4px; top: -6px; width: min(40%, 190px); height: auto; z-index: 0; pointer-events: none; filter: drop-shadow(0 0 26px rgba(255, 255, 255, .16)); }
.hello-text { position: relative; z-index: 1; }
.hello h1 { margin: 0; font-size: clamp(1.7rem, 7.2vw, 2.8rem); }
.modecard-sm, .games, .quick, .entries, .wish, .lead, .section-title { position: relative; z-index: 1; }
@media (min-width: 44rem) { .hello { min-height: 190px; } .hello-fig { width: 210px; right: 12px; } }
.avatar-link { display: block; border-radius: 30%; }
.avatar-link[aria-current] { outline: 3px solid #fff; outline-offset: 2px; }
.avatar-pick legend { font-weight: 900; margin-bottom: .6rem; }
.avatar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 10px; }
.avatar-btn { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--muted); font: inherit; font-size: .78rem; font-weight: 800; display: grid; justify-items: center; gap: 6px; border-radius: 18px; transition: transform .1s; }
.avatar-btn .avatar { width: 100%; max-width: 84px; height: auto; }
.avatar-btn:hover { transform: translateY(-3px) rotate(-3deg); }
.avatar-btn[aria-pressed=true] { color: #fff; transform: scale(1.08) rotate(-4deg); }
.avatar-btn[aria-pressed=true] .avatar { outline: 4px solid #fff; outline-offset: 3px; border-radius: 30%; }
.avatar-btn[aria-pressed=false] { opacity: .7; }
.modecard { position: relative; }
.modecard .avatar { position: absolute; top: -38px; right: 14px; transform: rotate(9deg); filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .3)); }
.story .modecard { margin-top: 2.4rem; }
.story .modecard .kicker { padding-right: 96px; }
.story-fig { width: min(56%, 220px); align-self: flex-end; margin: .5rem -6px -1rem 0; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .25)); }

/* Spiel- und Story-Seiten: Vollfarbe, dunkle Schrift */
.game { color: var(--dark); max-width: 34rem; margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100vh - 230px); }
.game a:not(.btn) { color: var(--dark); }
.game-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .85rem; font-weight: 900; margin-bottom: .6rem; }
.game-back { text-decoration: none; font-size: 1.4rem; line-height: 1; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255, 255, 255, .5); border-radius: 50%; }
.game-name { text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.game-count { font-size: .8rem; white-space: nowrap; }
.segs { display: flex; gap: 5px; margin-bottom: 1.4rem; }
.segs i { flex: 1; height: 7px; border-radius: 4px; background: rgba(20, 15, 45, .2); }
.segs i.on { background: var(--dark); }
.segs i.now { background: #fff; }
.game form { display: flex; flex-direction: column; flex: 1; }
.game fieldset { flex: 1; }
.game legend h1 { font-size: clamp(1.9rem, 8vw, 2.7rem); line-height: 1; margin: 0 0 1.1rem; }
.game-note { font-size: .82rem; font-weight: 600; opacity: .75; margin: 1rem 0 0; text-align: center; }
.game .btn-cta { align-self: stretch; }
.story .btn-cta, .story .row { margin-top: auto; }
.story .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story .row .btn:first-child:nth-last-child(3) { grid-column: span 2; }
.story-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 1rem 0; animation: rise .35s ease-out; }
.story-body h1 { font-size: clamp(2rem, 9vw, 3rem); line-height: .98; }
.huge { font-size: clamp(5rem, 26vw, 8rem); line-height: .9; font-weight: 900; letter-spacing: -.05em; margin-bottom: .1em; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
legend { padding: 0; width: 100%; }

/* Antwort-Kacheln */
.tiles { display: grid; gap: 12px; }
.tile-opt {
  display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 64px; padding: .8rem 1.1rem; text-align: left;
  background: #fff; color: var(--dark); border: 0; border-radius: 20px; font: inherit; font-weight: 900; font-size: 1.08rem; line-height: 1.2;
  cursor: pointer; box-shadow: 0 6px 0 rgba(0, 0, 0, .3); transition: transform .08s, box-shadow .08s;
}
.tile-opt:hover { transform: translateY(-2px); }
.tile-opt:active { transform: translateY(5px); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.tile-opt.is-on, .tile-opt:has(input:checked) { background: var(--dark); color: #fff; }
.tile-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tile-opt:has(input:focus-visible) { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 7px var(--dark); }
.tiles-multi .tile-opt::before { content: "+"; flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 15, 45, .12); font-weight: 900; }
.tiles-multi .tile-opt:has(input:checked)::before { content: "✓"; background: var(--green); color: var(--dark); }
.tiles-duel { gap: 6px; }
.tiles-duel .tile-opt { min-height: 150px; justify-content: center; text-align: center; font-size: 1.5rem; border-radius: 28px; }
.tiles-duel .tile-opt:first-child { transform: rotate(-1.5deg); }
.tiles-duel .tile-opt:last-child { transform: rotate(1.5deg); }
.tiles-duel .tile-opt:active { transform: translateY(5px); }
.or { text-align: center; font-weight: 900; font-style: italic; }

/* Schieberegler */
.slider { text-align: center; padding: .5rem 0 1rem; }
.slider-face { font-size: 6rem; line-height: 1; }
.slider-label { font-size: 1.5rem; font-weight: 900; margin: .4rem 0 1.2rem; min-height: 1.5em; }
.slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; border-radius: 999px; background: rgba(20, 15, 45, .22); border: 0; padding: 0; min-height: 0; outline-offset: 6px; }
.slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 6px solid var(--dark); box-shadow: 0 5px 0 rgba(0, 0, 0, .3); cursor: grab; }
.slider input[type=range]::-moz-range-thumb { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 6px solid var(--dark); cursor: grab; }
.slider-ends { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; margin-top: .8rem; }

/* Fortschritt und Profil */
.progress, .meter { height: 16px; background: var(--soft); border-radius: 999px; overflow: hidden; margin-bottom: .5rem; }
.card-soft .meter { background: var(--bg); }
.progress span, .meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--primary)); border-radius: 999px; min-width: 8px; }
.dim { margin-bottom: 1.2rem; }
.dim-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .35rem; }
.dim-label { font-weight: 900; }
.dim-desc { font-size: .85rem; color: var(--muted); margin: 0; font-weight: 500; }
.chip { display: inline-block; font-size: .75rem; font-weight: 800; padding: .15rem .6rem; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list li { background: var(--primary); color: var(--dark); border-radius: 999px; padding: .35rem .9rem; font-weight: 900; }

/* Formulare */
.form { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.form label { display: grid; gap: .3rem; font-weight: 900; }
.form label small, .form fieldset small { font-weight: 500; color: var(--muted); }
.form label .muted { font-weight: 500; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  font: inherit; font-weight: 600; color: var(--ink); background: var(--surface); color-scheme: dark;
  border: 2px solid var(--field-line); border-radius: 16px; padding: .7rem .9rem; min-height: 52px; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: none; }
::placeholder { color: var(--muted); opacity: .8; }
.form .check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; }
.check input { width: 1.4rem; height: 1.4rem; margin-top: .1rem; flex: none; accent-color: var(--primary); }
.form .btn { justify-self: start; }
.rating legend { font-weight: 900; margin-bottom: .4rem; }
.rating-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.scale-opt { position: relative; display: block; cursor: pointer; }
.scale-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.scale-opt span { display: grid; place-items: center; min-height: 54px; background: var(--surface); border-radius: 16px; font-size: 1.2rem; font-weight: 900; box-shadow: 0 4px 0 rgba(0, 0, 0, .45); }
.scale-opt input:checked + span { background: var(--primary); color: var(--dark); }
.scale-opt input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.error { background: var(--danger-bg); color: var(--danger); border-radius: 12px; padding: .6rem .9rem; margin: 0; font-weight: 800; }
.inline { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .95rem; }
.inline select { width: auto; min-height: 46px; padding: .3rem .7rem; }

/* Berufe */
.tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; overflow-x: auto; padding-bottom: 6px; }
.tabs a { white-space: nowrap; padding: .5rem .9rem; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 900; font-size: .92rem; }
.tabs a[aria-current] { background: var(--primary); color: var(--dark); }
.occ { display: flex; flex-direction: column; }
.occ .row { margin-top: auto; }
.occ h3 a, .fav-row h2 a { color: var(--ink); text-decoration: none; }
.occ h3 a:hover, .fav-row h2 a:hover { text-decoration: underline; }
.occ-top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .7rem; font-size: .9rem; }
.badge { font-size: .75rem; font-weight: 900; letter-spacing: .04em; padding: .15rem .55rem; border-radius: 8px; background: var(--cyan); color: var(--dark); }
.badge-eba { background: var(--pink); }
.badge-path { background: var(--primary); }
.badge abbr { text-decoration: none; }
.match { font-size: .78rem; font-weight: 900; padding: .2rem .65rem; border-radius: 999px; white-space: nowrap; }
.match-high { background: var(--green); color: var(--dark); }
.match-mid { background: var(--primary); color: var(--dark); }
.match-low { background: var(--soft); color: var(--muted); }
.occ-top .match { margin-left: auto; }
.reasons { font-size: .9rem; color: var(--muted); font-weight: 500; }
.fav-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.fav-row h2 { margin: .5rem 0 .2em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0 0 1rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 900; overflow-wrap: anywhere; }

/* Tabellen (Admin) */
.table-wrap { overflow-x: auto; margin-bottom: 2rem; background: var(--surface); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .85rem; font-weight: 500; hyphens: manual; }
th, td { text-align: left; vertical-align: top; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.tight { margin: 0; padding-left: 1.1em; }

/* Meldung */
.toast { position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 20px) rotate(-2deg); background: #fff; color: var(--dark); padding: .6rem 1.1rem; border-radius: 14px; font-weight: 900; font-size: .95rem; box-shadow: 0 5px 0 rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 40; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0) rotate(-2deg); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Paket A: neue Bausteine ---------- */
.logo-tld { color: var(--primary); }
.section-title { font-size: 1.5rem; margin-top: 1.6rem; }

/* Drei gleichwertige Einstiege */
.entries { display: grid; gap: 14px; margin-bottom: .5rem; }
@media (min-width: 44rem) { .entries { grid-template-columns: repeat(3, 1fr); } }
.entry { display: grid; gap: .2rem; align-content: start; background: var(--g); color: var(--dark); text-decoration: none; border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: 0 7px 0 rgba(0, 0, 0, .4); transition: transform .1s; }
.entry:hover { transform: translateY(-3px) rotate(-.5deg); }
.entry:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.entry-emo { font-size: 2.4rem; line-height: 1; margin-bottom: .2rem; }
.entry strong { font-size: 1.3rem; font-weight: 900; line-height: 1.1; }
.entry span:last-child { font-size: .95rem; }

/* Wunsch: immer oben, ohne Bewertung */
.wish { background: var(--pink); color: var(--dark); border-radius: 22px; padding: 1rem 1.2rem; margin: .4rem 0 1rem; box-shadow: 0 7px 0 #c94477; }
.wish .kicker { margin: 0 0 .3rem; font-size: .8rem; letter-spacing: .1em; }
.wish-list { list-style: none; padding: 0; margin: 0 0 .4rem; }
.wish-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; padding: .2rem 0; }
.wish-list a { color: var(--dark); font-size: 1.25rem; font-weight: 900; }
.wish .btn-text { color: var(--dark); min-height: 44px; }
.wish p { margin: 0; }
.btn-wish-on { background: var(--pink); color: var(--dark); box-shadow: 0 5px 0 #c94477; }
.card-wish { background: var(--pink); color: var(--dark); }

/* Fragen: Fussbereich mit «Weiss ich noch nicht», «Nichts davon», «Überspringen» */
.q-foot { display: grid; gap: .8rem; margin-top: .4rem; }
.q-alt { display: flex; flex-wrap: wrap; gap: .6rem; }
.q-alt .btn { flex: 1 1 auto; min-height: 50px; font-size: 1rem; }
.btn-cta-ghost.is-on { background: var(--dark); color: #fff; }
.q-hint { background: var(--dark); color: #fff; border-radius: 12px; padding: .6rem .9rem; margin: 0; font-weight: 800; }
.q-reset { justify-self: center; color: var(--dark); min-height: 44px; }
.tiles-scale .tile-opt { min-height: 56px; }
.tiles-extra { display: flex; justify-content: center; gap: .6rem; margin-top: .9rem; }
.tile-small { width: auto; min-height: 50px; padding: .5rem 1.4rem; font-size: 1rem; }
.story-nav .btn, .story-end .btn { width: 100%; }

/* Angaben und Vorschläge */
.dims { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.dims .chip { margin-left: .4rem; }
.dims .dim-desc { display: block; margin-top: .15rem; }
.reasons li { margin-bottom: .2rem; }
.occ .reasons { border-top: 2px solid var(--line); padding-top: .8rem; margin: 1rem 0 0; }
.fam-member + .fam-sep { margin-top: 1rem; }
.fam-sep { font-size: .85rem; color: var(--muted); border-top: 2px dashed var(--line); padding-top: .8rem; margin: 1rem 0 .6rem; }
.fam-member h3 { margin-bottom: .3rem; }
.fam-member .row { margin-top: .4rem; }
.plain-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }

/* Suche */
.search { display: grid; gap: .4rem; margin-bottom: 1rem; font-weight: 900; }
.search input { font-size: 1.15rem; }
.result-count { color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.result h2 { font-size: 1.2rem; }
.result h2 a { color: var(--ink); text-decoration: none; }
.result h2 a:hover { text-decoration: underline; }
.result .row { margin-top: auto; }
.result { display: flex; flex-direction: column; }

/* Wege */
.path-facts { margin: 0 0 .8rem; }
.path-facts dt { font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); margin-top: .6rem; }
.path-facts dd { margin: .1rem 0 0; font-weight: 500; }
.path.is-focus { outline: 3px solid var(--primary); outline-offset: 3px; }
.path .kicker { color: var(--cyan); }
.story-nav { grid-template-columns: 1fr; }

/* Review-Korrekturen Paket A (PAKET_A_REVIEW_TECHNIK R-01–R-03, INHALT F-01, F-31) */
/* Fokus: Elemente mit eigenem 3D-Schatten erhalten den dunklen Zusatzring trotzdem */
.btn:focus-visible, .tile-opt:focus-visible, .btn-text:focus-visible, .entry:focus-visible, .poster:focus-visible, .quick-tile:focus-visible, .wish a:focus-visible, .modecard-sm a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 7px var(--dark); }
/* Reflow 320 px */
.quick-tile { min-width: 0; }
.quick-tile strong { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.fav-row > * { min-width: 0; }
.inline { flex-wrap: wrap; max-width: 100%; }
.inline select { max-width: 100%; }
/* Berufsfeld mit zwei Abschlüssen gleichwertig nebeneinander */
.fam-pair.is-pair { display: grid; gap: 12px; }
@media (min-width: 26rem) { .fam-pair.is-pair { grid-template-columns: 1fr 1fr; } }
.fam-pair.is-pair .fam-member { background: var(--soft); border-radius: 18px; padding: .9rem; }
.fam-pair.is-pair .fam-member h3 { font-size: 1.05rem; }
.fam-sep { border-top: 0; padding-top: 0; margin: 0 0 .7rem; }
/* Mix-Karte mit zwei echten Links */
.modecard-sm h2.kicker { font-size: .8rem; margin: 0 0 .4em; }
.modecard-sm a { color: var(--dark); font-weight: 900; }
.wish-free small { font-weight: 600; }

/* Startkacheln: Fragerunde zentral (Entscheid Auftraggeber D-15), Wunsch und Wege daneben kleiner */
.entries { grid-template-columns: 1fr 1fr; }
.entry-main { grid-column: 1 / -1; background: repeating-conic-gradient(from 0deg at 50% 30%, rgba(255, 255, 255, .07) 0 9deg, transparent 9deg 18deg), linear-gradient(150deg, #d70f37, #7a1fe0);   /* weiss ≥ 5,2:1 */ color: #fff; padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: 1rem; overflow: hidden; position: relative; }
.entry-main .kicker { color: #fff; opacity: .9; }
.entry-main strong { font-size: clamp(1.7rem, 7vw, 2.3rem); letter-spacing: -.02em; }
.entry-main .entry-text { display: grid; gap: .35rem; }
.entry-main .entry-text > span:not(.kicker):not(.btn) { font-size: 1rem; }
.entry-main .btn { justify-self: start; margin-top: .5rem; pointer-events: none; }
.entry-fan { position: relative; height: 150px; margin: 0 auto; width: min(68%, 230px); }
.entry-fan .poster { position: absolute; top: 0; width: 46%; aspect-ratio: 3 / 4; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
.entry-fan .poster strong { display: none; }
.entry-fan .poster-emo { top: 8%; bottom: 8%; }
.entry-fan .poster-emo img { width: 86%; }
.entry-fan .poster:nth-child(1) { left: 0; transform: rotate(-11deg); top: 10px; }
.entry-fan .poster:nth-child(2) { right: 0; transform: rotate(11deg); top: 10px; }
.entry-fan .poster:nth-child(3) { left: 27%; z-index: 1; }
@media (min-width: 44rem) {
  .entries { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
  .entry-main { grid-column: 1; grid-row: 1 / span 2; grid-template-columns: 1fr 1.1fr; align-items: center; }
  .entry-fan { order: 2; height: 190px; width: 100%; }
}
.entry-side { padding: 1rem; }
.entry-side strong { font-size: 1.05rem; }
.entry-side span:last-child { font-size: .85rem; }
.entry-side .entry-emo { font-size: 1.9rem; }

/* Rundenkacheln: offen leuchtet, angefangen zeigt Fortschritt, durch tritt zurück */
.games .poster[data-status="open"] { box-shadow: 0 0 0 3px #fff, 0 0 34px -4px var(--c1); }
.games .poster[data-status="open"] .poster-badge { background: #fff; color: var(--dark); }
.games .poster[data-status="open"] .poster-emo { animation: bob 2.8s ease-in-out infinite; }
.games .poster[data-status="done"] { filter: saturate(.3) brightness(.75); border-color: rgba(255, 255, 255, .2); box-shadow: none; }
.games .poster[data-status="done"]:hover { filter: saturate(.6) brightness(.9); }
.games .poster[data-status="done"] .poster-badge { background: var(--green); color: var(--dark); }
.poster-progress { position: absolute; z-index: 1; left: 10px; right: 10px; top: 42px; height: 8px; border-radius: 99px; background: rgba(8, 8, 12, .45); overflow: hidden; }
.poster-progress i { display: block; height: 100%; background: #fff; border-radius: 99px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-2deg); } }

/* ---------- PHP-Version (Paket B): Klassen statt Inline-Stile, damit die CSP ohne 'unsafe-inline' auskommt ---------- */
.round-1 { --c1: #ffb03d; --c2: #f0143c; }
body.bg-round-1 { background: #ffb03d; }
.round-2 { --c1: #5cc4ff; --c2: #1a5cff; }
body.bg-round-2 { background: #5cc4ff; }
.round-3 { --c1: #5fe08f; --c2: #0f9f6e; }
body.bg-round-3 { background: #5fe08f; }
.round-4 { --c1: #d98bff; --c2: #7a1fe0; }
body.bg-round-4 { background: #d98bff; }
.round-5 { --c1: #ffd23d; --c2: #ff7a1a; }
body.bg-round-5 { background: #ffd23d; }
body.bg-story { background: #ffd60a; }
.entry-yellow { --g: #ffd60a; }
.entry-cyan { --g: #3fe0e6; }
.pct-0 { width: 0%; }
.pct-5 { width: 5%; }
.pct-10 { width: 10%; }
.pct-15 { width: 15%; }
.pct-20 { width: 20%; }
.pct-25 { width: 25%; }
.pct-30 { width: 30%; }
.pct-35 { width: 35%; }
.pct-40 { width: 40%; }
.pct-45 { width: 45%; }
.pct-50 { width: 50%; }
.pct-55 { width: 55%; }
.pct-60 { width: 60%; }
.pct-65 { width: 65%; }
.pct-70 { width: 70%; }
.pct-75 { width: 75%; }
.pct-80 { width: 80%; }
.pct-85 { width: 85%; }
.pct-90 { width: 90%; }
.pct-95 { width: 95%; }
.pct-100 { width: 100%; }
.inline-form { display: inline; margin: 0; }
.row > .inline-form { display: inline-flex; }
.header-actions form, .site-footer form { margin: 0; display: inline; }
.flash { background: #fff; color: var(--dark); border-radius: 14px; padding: .7rem 1rem; font-weight: 900; box-shadow: 0 5px 0 rgba(0, 0, 0, .4); margin: 0 0 1rem; position: relative; z-index: 2; }
body.bright .flash { box-shadow: 0 5px 0 rgba(0, 0, 0, .25); }
.search-row { display: flex; gap: .6rem; }
.search-row input { flex: 1; min-width: 0; }
.story-ki { margin-top: 1rem; text-align: center; }
.story-ki .btn { width: 100%; }
.status-form { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
main:focus { outline: none; }

/* Startfigur (Wunsch Auftraggeber 13.11.2026): rechts neben der Textspalte, unten hinter der nächsten Box.
   Der Text bleibt in der linken Spalte und läuft nicht über die Figur. */
.hello { display: block; min-height: 0; padding: .4rem 44% 0 0; margin-bottom: .8rem; }
.hello-text .lead { margin: .7rem 0 0; font-size: 1.1rem; }
.hello-fig { top: auto; bottom: -46px; right: 0; width: min(46%, 210px); }
@media (min-width: 44rem) {
  .hello { min-height: 0; padding-right: 260px; }
  .hello-fig { width: 240px; right: 8px; bottom: -64px; }
}

/* ===== Überarbeitung 13.11.2026 abends (Auftraggeber + Review REV-UX-01) ===== */
/* Abstände: ein einheitliches Raster statt Einzelwerte */
:root { --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 2.75rem; }
html { scroll-padding-top: 76px; scroll-padding-bottom: 90px; }   /* A-R03: Fokus nicht unter Kopf/Navigation */
main { padding-top: var(--sp-5); }
h1 { margin-bottom: .55em; }
h2 { margin-bottom: .6em; }
p + h2, ul + h2, ol + h2, dl + h2, .card + h2, form + h2, div + h2:not(.sr-only) { margin-top: var(--sp-6); }
.lead { margin-bottom: var(--sp-5); }
.card { padding: var(--sp-5) 1.25rem; margin-bottom: var(--sp-4); }
.card h2 + p, .card h3 + p { margin-top: 0; }
.row { gap: var(--sp-3); }
.stack, .grid-2 { gap: var(--sp-4); }
.section-title { margin: var(--sp-7) 0 var(--sp-3); }
.section-title + .muted { margin-bottom: var(--sp-4); }
.hello { margin-bottom: var(--sp-5); }
.entries { gap: var(--sp-4); margin-bottom: var(--sp-5); }
.games { gap: var(--sp-4); margin: var(--sp-4) 0 var(--sp-6); }
.quick { gap: var(--sp-3); margin-bottom: var(--sp-6); }
.tabs { margin-bottom: var(--sp-5); }
.flash { margin-bottom: var(--sp-5); }
.site-footer .wrap { gap: var(--sp-3) var(--sp-5); }
/* Frageseite: mehr Luft zwischen Frage, Antworten und Knöpfen */
.game-top { margin-bottom: var(--sp-3); }
.segs { margin-bottom: var(--sp-5); }
.game .sticker { margin-bottom: var(--sp-4); }
.game legend h1 { margin: 0 0 var(--sp-6); }
.tiles { gap: var(--sp-3); }
.tiles-duel { gap: var(--sp-2); }
.q-foot { margin-top: var(--sp-5); gap: var(--sp-4); }
.q-alt { gap: var(--sp-3); }
.game-note { margin-top: var(--sp-4); }
/* Berufs- und Suchkarten */
.occ-top { margin-bottom: var(--sp-3); }
.occ h3, .result h2 { margin-bottom: var(--sp-2); }
.occ .row, .result .row { padding-top: var(--sp-3); }
.fam-member + .fam-sep { margin-top: var(--sp-5); }
.path-facts dt { margin-top: var(--sp-4); }
.path-facts dd { margin: var(--sp-1) 0 0; }

/* Navigation unten: runde Icons, weiche Aktiv-Markierung */
.main-nav { border-top: 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .35); border-radius: 22px 22px 0 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.main-nav a { min-height: 58px; gap: 3px; border-radius: 16px; font-size: .72rem; }
.nav-ico { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background .15s ease; }
.main-nav svg { width: 23px; height: 23px; stroke-width: 2; }
.main-nav a[aria-current] .nav-ico { background: color-mix(in srgb, var(--primary) 22%, transparent); }
.main-nav a:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
@media (min-width: 44rem) {
  .main-nav { box-shadow: none; border-radius: 0; padding: 0; }
  .main-nav a { min-height: 40px; border-radius: 999px; font-size: .95rem; }
  .nav-ico { display: none; }
}
@media (max-height: 34rem) { .site-header { position: static; } .main-nav { position: static; border-radius: 0; } body.has-nav .site-footer { padding-bottom: 1.5rem; } }   /* A-R05 */

/* Rundenkacheln: zuerst grau, mit jeder Antwort farbiger (Auftraggeber) */
.games .poster { transition: filter .3s ease, box-shadow .3s ease; }
.games .poster[data-status="open"] { box-shadow: none; }
.games .poster[data-status="open"] .poster-emo { animation: none; }
.games .poster[data-fill="0"] { filter: grayscale(1) brightness(.78); }
.games .poster[data-fill="1"] { filter: grayscale(.75) brightness(.86); }
.games .poster[data-fill="2"] { filter: grayscale(.5) brightness(.93); }
.games .poster[data-fill="3"] { filter: grayscale(.22); }
.games .poster[data-fill="4"] { filter: none; box-shadow: 0 0 0 3px #fff, 0 0 30px -6px var(--c1); }
.games .poster[data-status="done"] { border-color: transparent; }
.games .poster[data-status="done"]:hover, .games .poster:hover { filter: none; }
.games .poster[data-status="open"] .poster-badge { background: rgba(255, 255, 255, .92); color: var(--dark); }

/* Rundenende: Knöpfe einspaltig auf schmalen Geräten (A-R04) */
.story .story-nav { grid-template-columns: 1fr; }
/* Reiter umbrechen statt abschneiden (A-R07) */
.tabs { flex-wrap: wrap; overflow: visible; }

/* KI-Zwischenfrage */
.consent .consent-facts { margin: var(--sp-4) 0; }
.consent-actions { display: grid; gap: var(--sp-3); padding-bottom: var(--sp-4); }
.consent-actions form { margin: 0; }
.consent-actions .btn { width: 100%; }
.consent-actions .btn-text { width: 100%; text-align: center; padding: var(--sp-3); }

/* Konto */
.account-forms { display: grid; gap: var(--sp-4); }
@media (min-width: 44rem) { .account-forms { grid-template-columns: 1fr 1fr; } }
.code-box { font: 900 1.4rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; background: var(--soft); border-radius: 12px; padding: var(--sp-4); word-break: break-all; }
.field { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); font-weight: 900; }
.field input { font: inherit; font-weight: 500; padding: .8rem 1rem; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); min-height: 50px; }
.field small { font-weight: 500; color: var(--muted); }
/* Kompakte Liste (Suche ohne Begriff) */
.compact-list { list-style: none; padding: 0; margin: 0 0 var(--sp-6); background: var(--surface); border-radius: var(--radius); }
.compact-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line); }
.compact-list li:first-child { border-top: 0; }
.compact-list a { font-weight: 900; color: var(--ink); }

/* ===== Runde 13.11.2026 spät (Auftraggeber) ===== */
/* Kopf rechts: Gemerkt-Stern und Anmelden */
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.head-ico { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; background: var(--surface); color: var(--ink); }
.head-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.head-ico:first-child svg { fill: var(--primary); stroke: var(--primary); }
.head-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 900; display: grid; place-items: center; }
.btn-login { background: var(--primary); color: var(--dark); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
/* Weiter-Knopf grün */
.btn-go { background: var(--green); color: var(--dark); box-shadow: 0 6px 0 #2f9e57; }
.btn-go:active { box-shadow: 0 1px 0 #2f9e57; transform: translateY(5px); }
.game .btn-go { align-self: stretch; }
/* Startseite: Figur grösser, rechts angeschnitten, weniger Leerraum neben dem Titel */
.hello { padding: var(--sp-2) 40% 0 0; margin-bottom: var(--sp-5); overflow: visible; }
.hello h1 { font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1; }
.hello-fig { width: min(62%, 280px); right: -16%; top: -8px; bottom: auto; }
main.wrap { overflow-x: clip; }
@media (min-width: 44rem) { .hello { padding-right: 300px; } .hello-fig { width: 300px; right: -20px; top: -24px; } }
.facts-card .facts { columns: 2; column-gap: var(--sp-5); }
.facts li { break-inside: avoid; margin-bottom: var(--sp-2); }
@media (max-width: 30rem) { .facts-card .facts { columns: 1; } }
/* Berufe-Seite */
.block { margin-bottom: var(--sp-7); }
.block > h2 { margin-top: 0; }
/* Wege-Grafik */
.map { margin: 0 0 var(--sp-6); display: grid; gap: var(--sp-3); }
.map a { text-decoration: none; color: inherit; }
.map-step, .map-goal, .map-box, .map-side { border-radius: 16px; padding: var(--sp-3) var(--sp-4); }
.map-step span, .map-goal span, .map-box span, .map-side span { display: block; font-size: .85rem; font-weight: 500; opacity: .85; }
.map-start { background: var(--surface); text-align: center; font-weight: 900; }
.map-arrow { height: 22px; width: 4px; margin: 0 auto; background: var(--line); border-radius: 2px; position: relative; }
.map-arrow::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--line); border-bottom: 0; }
.map-side { background: transparent; border: 2px dashed var(--line); text-align: center; }
.map-lanes { display: grid; gap: var(--sp-3); }
@media (min-width: 40rem) { .map-lanes { grid-template-columns: 1fr 1fr; } .map-next { grid-template-columns: repeat(4, 1fr); } }
.map-lane { border-radius: 20px; padding: var(--sp-4); display: grid; gap: var(--sp-2); align-content: start; }
.map-lane h3 { margin: 0 0 var(--sp-1); font-size: 1.15rem; }
.map-lane h3 span { display: block; font-size: .8rem; font-weight: 600; opacity: .8; }
.lane-lehre { background: color-mix(in srgb, var(--primary) 20%, var(--surface)); }
.lane-schule { background: color-mix(in srgb, var(--cyan, #5cc4ff) 20%, var(--surface)); }
.map-box { background: var(--bg); border: 2px solid transparent; }
.map-box:hover, .map-side:hover { border-color: var(--primary); }
.map-box strong { font-size: 1.05rem; }
.map-plus { border-style: dashed; border-color: var(--line); }
.map-mini { font-size: .8rem; font-weight: 700; opacity: .8; padding-left: var(--sp-2); }
.map-next { display: grid; gap: var(--sp-2); }
.map-goal { background: var(--surface); border-left: 5px solid var(--green); }
.map-note { text-align: center; margin: 0; }
/* Abstände nach Knopfreihen und in Linklisten (Review Auftraggeber) */
.row { margin-bottom: var(--sp-5); }
.card > .row:last-child, .occ .row, .result .row, .story .row { margin-bottom: 0; }
.row > form { display: inline-flex; margin: 0; }
.plain-links { list-style: none; padding: 0; margin: 0; }
.plain-links li { margin-bottom: var(--sp-3); line-height: 1.35; }
.plain-links li:last-child { margin-bottom: 0; }
.back-link, a.back { display: inline-block; margin-bottom: var(--sp-4); }
.card ul:not(.plain):not(.plain-links) li { margin-bottom: var(--sp-2); }
.card h2 + ul, .card h2 + p { margin-top: 0; }
.card ul + h2, .card p + h2 { margin-top: var(--sp-5); }
/* Startfigur: nach unten hinter die Kachel verlängert, unten weich ins Schwarz auslaufend (Auftraggeber) */
.hello { position: relative; z-index: 0; }
.hello-fig { width: min(70%, 320px); right: -18%; top: -10px; bottom: auto; z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, .55) 75%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, .55) 75%, transparent 100%); }
.entries, .wish, .modecard-sm { position: relative; z-index: 1; }
@media (min-width: 44rem) { .hello-fig { width: 340px; right: -30px; top: -30px; } }
.hello-fig { width: min(82%, 340px); right: -30%; top: -6px;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, rgba(0, 0, 0, .5) 72%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 50%, rgba(0, 0, 0, .5) 72%, transparent 92%); }
.hello-text { text-shadow: 0 1px 12px rgba(0, 0, 0, .65); }
@media (min-width: 44rem) { .hello-fig { width: 380px; right: -40px; top: -40px; } }
/* Wege: Balken zum Antippen, ohne Randmarkierung links */
.map-goal { border-left: 0; }
.map-box, .map-goal { padding: 0; }
.map details summary { list-style: none; cursor: pointer; padding: var(--sp-3) var(--sp-4); border-radius: 16px; position: relative; padding-right: 2.6rem; }
.map details summary::-webkit-details-marker { display: none; }
.map details summary::after { content: "+"; position: absolute; right: var(--sp-4); top: 50%; transform: translateY(-50%); font-weight: 900; font-size: 1.3rem; opacity: .7; }
.map details[open] summary::after { content: "–"; }
.map details summary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.map-more { padding: 0 var(--sp-4) var(--sp-4); font-size: .95rem; }
.map-more p { margin: 0 0 var(--sp-2); }
.map-more .row { margin: var(--sp-3) 0 0; }
.map-lane h2 { margin: 0 0 var(--sp-1); font-size: 1.15rem; }
.map-lane h2 span { display: block; font-size: .8rem; font-weight: 600; opacity: .8; }
.map > .map-box { background: transparent; border: 2px dashed var(--line); }
/* Berufe: Bereiche */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-bottom: var(--sp-5); }
@media (min-width: 44rem) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-tile { display: grid; gap: var(--sp-1); background: var(--surface); border-radius: 18px; padding: var(--sp-4); color: var(--ink); text-decoration: none; box-shadow: 0 5px 0 rgba(0, 0, 0, .4); }
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile strong { line-height: 1.2; }
.cat-emo { font-size: 1.8rem; line-height: 1; }
.cat-head { margin: 0 0 var(--sp-3); }
/* KI-Bereich */
.head-ki svg { fill: var(--primary); stroke: none; }
.ki-area textarea { width: 100%; font: inherit; font-weight: 500; padding: .8rem 1rem; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); margin: var(--sp-2) 0 var(--sp-4); resize: vertical; }
.ki-quote { margin: 0 0 var(--sp-4); padding: var(--sp-4); border-radius: 14px; background: var(--surface); font-style: italic; }
.ki-list { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; gap: var(--sp-3); }
.ki-list .card { margin: 0; }
.ki-list h3 { margin: 0 0 var(--sp-2); }
.ki-list h3 a { color: var(--ink); }
/* Konto: Abstand unter Formular-Knöpfen */
.card form .btn + p, form.card .btn + p { margin-top: var(--sp-4); }
.account-forms .card .btn { margin-top: var(--sp-2); }
.account-forms + details { margin-top: var(--sp-4); }
/* Ladehinweis (KI) */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .25); border-top-color: var(--dark); animation: spin .8s linear infinite; }
.btn-cta-ghost.is-loading::after, .btn-ghost.is-loading::after { border-color: rgba(255, 255, 255, .25); border-top-color: currentColor; }
.btn-ghost.is-loading::after { border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg { margin: var(--sp-3) 0 0; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .btn.is-loading::after { animation-duration: 2.4s; } }
.story-end .btn-go { order: -1; }
/* Berufsvorschläge: ganze Karte klickbar, Untertitel feiner */
.fam-member { position: relative; border-radius: 16px; }
.fam-member h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.fam-member h3 a:focus-visible { outline: none; }
.fam-member:has(h3 a:focus-visible) { outline: 3px solid #fff; outline-offset: 2px; }
.fam-member:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.fam-member .row { position: relative; z-index: 1; }
.fam-member p, .cat-tile .small, .entry-side span:not(.entry-emo), .map summary span { font-weight: 400; color: var(--muted); font-size: .95rem; }
.fam-member h3 { margin-bottom: var(--sp-1); }
.sugg-list > .card { margin: 0; }
/* Startseite fertig */
.entry-done { display: block; padding: var(--sp-5); }
.entry-done .entry-text { display: grid; gap: var(--sp-3); }
.entry-done .btn { justify-self: start; pointer-events: auto; }
.entry-again { color: #fff; font-weight: 800; }
.hello-sm { min-height: 0; }
.hello-sm .hello-fig { width: min(48%, 210px); right: -10%; top: -14px; }
.mix-cta { margin-top: var(--sp-3); justify-self: start; }
.card-hl .btn { margin-top: var(--sp-3); }
/* Berufsliste: Jahre immer rechts auf der ersten Zeile */
.compact-list li { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: baseline; gap: var(--sp-3); }
.compact-list li > a { flex: 1; min-width: 0; }
.compact-list li > .muted, .compact-list li > .badge { flex: none; white-space: nowrap; }
/* Suchergebnisse: ganze Karte klickbar, mit Pfeil */
.result { position: relative; }
.result h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.result h2 a { text-decoration: none; }
.result h2::after { content: " →"; color: var(--primary); }
.result:hover { background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
.result:has(h2 a:focus-visible) { outline: 3px solid #fff; outline-offset: 2px; }
.result h2 a:focus-visible { outline: none; }
.result .row { position: relative; z-index: 1; }
.result p { font-weight: 400; color: var(--muted); }
.fam-member h3::after { content: " →"; color: var(--primary); }
.result h2, .occ h2, .occ-top + h2, .occ-top + h3 { margin-top: 0; }
/* Fragen: Auswahl mit Radio/Checkbox, dann «Weiter»; weniger Knöpfe */
.tile-opt:has(input[type="radio"]:checked) { background: var(--dark); color: #fff; }
.tiles-scale .tile-opt, .tiles-single .tile-opt { cursor: pointer; }
.q-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-5); }
.q-alt .btn-text { font-weight: 800; color: var(--dark); text-decoration: underline; text-underline-offset: 3px; padding: var(--sp-2); min-height: 44px; background: none; border: 0; cursor: pointer; font-size: 1rem; }
.q-alt .btn-text.is-on { text-decoration-thickness: 3px; }
/* Grüner Hintergrund (Runde 3): Weiter-Knopf weiss */
body.bg-round-3 .btn-go { background: #fff; color: var(--dark); box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
/* Rundenende: Figur läuft hinter den Knöpfen aus */
.story-fig { -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 95%); mask-image: linear-gradient(to bottom, #000 45%, transparent 95%); }
.story-body { position: relative; z-index: 0; }
.story-nav { position: relative; z-index: 1; }
.round-reset { justify-self: center; color: var(--dark); font-weight: 700; text-decoration: underline; background: none; border: 0; padding: var(--sp-2); }
.story-nav form { justify-content: center; }
/* Berufsvorschläge: Titel als h2-Grösse, Berufe untereinander, EBA-Abzeichen wie EFZ */
.h-like-2 { font-size: 1.7rem; margin-bottom: var(--sp-2); }
.fam-pair.is-pair { grid-template-columns: 1fr !important; }
.badge-eba { background: var(--cyan); }
.why { margin-top: var(--sp-3); border-top: 2px solid var(--line); padding-top: var(--sp-3); }
.why summary { cursor: pointer; font-weight: 800; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: var(--sp-2); }
.why summary::-webkit-details-marker { display: none; }
.why-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: .8rem; font-weight: 900; font-style: italic; }
.why[open] .reasons { margin-top: var(--sp-3); border-top: 0; padding-top: 0; }
/* Startseite: Untertitel in den farbigen Kacheln lesbar */
.entry-side span:not(.entry-emo) { color: var(--dark); opacity: .82; font-weight: 600; font-size: .95rem; }
/* «Das wählst du oft»: schräg und deutlich über der Kachel darunter */
.modecard-sm { transform: rotate(-2.5deg); margin: var(--sp-2) 6px -26px; position: relative; z-index: 3; box-shadow: 0 7px 0 var(--primary-shade), 0 14px 28px rgba(0, 0, 0, .45); }
.modecard-sm .small { display: block; }
.modecard-sm .mix-cta { display: inline-flex; margin-top: var(--sp-3); }
.modecard-sm + .entries .entry-main, .modecard-sm + h2 + .entries .entry-main { padding-top: 46px; }
/* KI-Hinweis unter der Einleitung (kein Knopf) */
.ki-link { display: inline-flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); color: var(--primary); font-weight: 800; text-decoration: none; }
.ki-link svg { width: 22px; height: 22px; fill: var(--primary); flex: none; }
.ki-link:hover { text-decoration: underline; }
/* Berufeseite: Titel in h2-Grösse */
.hello .h-like-2 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
/* KI-Hinweis: Symbol kräftiger, Text auf einer Zeile */
.ki-link { white-space: nowrap; position: relative; z-index: 2; font-size: 1rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }
.ki-link svg { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--primary); fill: var(--dark); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 30%, transparent); }
/* Rundenende: Textlinks, Figur bis zum Knopf */
.story-links { margin: 0; text-align: center; }
.story-links a, .alldone-links a { color: var(--dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.story .story-fig { margin: 0 -6px -64px 0; position: relative; z-index: 0; }
.story-nav { gap: var(--sp-2); }
/* Abschluss aller Runden: zentriert, drehende Strahlen */
body.bg-alldone { background: linear-gradient(160deg, #ffd23d, #ff8a3d 55%, #ff5c8a); overflow-x: hidden; }
.alldone { position: relative; text-align: center; display: grid; justify-items: center; gap: var(--sp-3); padding: var(--sp-6) 0 var(--sp-5); color: var(--dark); isolation: isolate; }
.alldone-rays { position: fixed; left: 50%; top: 40%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .22) 0 8deg, transparent 8deg 16deg); animation: spin 60s linear infinite; }
.alldone .kicker { margin: 0; }
.alldone h1 { font-size: clamp(2.1rem, 9vw, 3.4rem); line-height: 1; margin: 0; max-width: 14ch; }
.alldone .lead { max-width: 30ch; margin: 0; }
.alldone-fig { width: min(70%, 280px); margin: var(--sp-2) 0 -56px; position: relative; z-index: 0; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .25));
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 98%); mask-image: linear-gradient(to bottom, #000 60%, transparent 98%); }
.alldone .btn-go { position: relative; z-index: 1; min-width: min(100%, 320px); }
.alldone-links { margin: var(--sp-2) 0 0; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .alldone-rays { animation: none; } }
/* KI: Wischkarten (Mutmacher) und Hilfe */
.swipe { display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--sp-2) 2px var(--sp-4); margin: 0 -16px var(--sp-4); padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.swipe::-webkit-scrollbar { display: none; }
.swipe:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.swipe-card { flex: 0 0 82%; max-width: 340px; scroll-snap-align: center; border-radius: 24px; padding: var(--sp-5) var(--sp-5) var(--sp-5); color: var(--dark); position: relative; overflow: hidden;
  background: repeating-conic-gradient(from 0deg at 50% 30%, rgba(255, 255, 255, .18) 0 9deg, transparent 9deg 18deg), linear-gradient(160deg, #ffd23d, #ff8a3d); min-height: 380px; display: flex; flex-direction: column; }
.swipe-card:nth-child(2) { background: repeating-conic-gradient(from 0deg at 50% 30%, rgba(255, 255, 255, .18) 0 9deg, transparent 9deg 18deg), linear-gradient(160deg, #5cc4ff, #1a5cff); color: #fff; }
.swipe-card:nth-child(3) { background: repeating-conic-gradient(from 0deg at 50% 30%, rgba(255, 255, 255, .18) 0 9deg, transparent 9deg 18deg), linear-gradient(160deg, #5fe08f, #1f9e5a); }
.swipe-card:nth-child(4) { background: repeating-conic-gradient(from 0deg at 50% 30%, rgba(255, 255, 255, .18) 0 9deg, transparent 9deg 18deg), linear-gradient(160deg, #d98bff, #7a1fe0); color: #fff; }
.swipe-card .figure { width: 62%; align-self: center; margin: -8px 0 var(--sp-3); -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.swipe-card h2 { font-size: 1.5rem; margin: 0 0 var(--sp-2); }
.swipe-card p { margin: 0; font-weight: 600; }
.swipe-last { background: var(--surface) !important; color: var(--ink) !important; }
.starter-list { list-style: none; padding: 0; margin: var(--sp-3) 0 0; display: grid; gap: var(--sp-2); }
.starter-list a { display: block; padding: var(--sp-3) var(--sp-4); border-radius: 14px; background: var(--bg); color: var(--ink); font-weight: 800; text-decoration: none; }
.starter-list a:hover { background: var(--primary); color: var(--dark); }
.card-help { border: 2px solid var(--green); }
/* KI-Symbol auf der Startseite: sanftes Pulsieren */
.hello .ki-link svg { animation: ki-pulse 1.6s ease-in-out infinite; }
@keyframes ki-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 70%, transparent); transform: scale(1); } 50% { box-shadow: 0 0 0 10px transparent; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hello .ki-link svg { animation: none; } }
/* Startseite: Runden direkt unter «Kurze Fragerunden», Suche/Wege darunter */
.rounds-block { margin-top: calc(-1 * var(--sp-3)); background: color-mix(in srgb, #7a1fe0 22%, var(--surface)); border-radius: 0 0 28px 28px; padding: var(--sp-6) var(--sp-4) var(--sp-4); position: relative; z-index: 0; margin-bottom: var(--sp-5); }
.rounds-block .section-title { margin-top: 0; font-size: 1.25rem; }
.rounds-block .games { margin-bottom: 0; }
.entries .entry-main { position: relative; z-index: 1; }
.entries-more { margin-bottom: var(--sp-6); }
/* Konto: einfache Auswahl */
.account-choice { display: grid; gap: var(--sp-3); margin: var(--sp-5) 0; }
.account-choice .btn { width: 100%; }
.account form.card .btn-lg { width: 100%; margin-top: var(--sp-2); }
.account .field small { font-size: .9rem; line-height: 1.4; }
/* Figuren ohne weissen Schein (man sah sonst die Bildkante) */
.hello-fig, .story-fig, .alldone-fig, .swipe-card .figure, .ki-hero-fig { filter: none !important; }
/* KI-Seite: wenig Inhalt, gross und einladend */
.ki-hero { position: relative; min-height: 210px; display: flex; align-items: flex-end; padding-right: 42%; margin-bottom: calc(-1 * var(--sp-4)); }
.ki-hero h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); line-height: 1; margin: 0 0 var(--sp-5); position: relative; z-index: 2; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.ki-hero-fig { position: absolute; right: -14%; top: -6px; width: min(70%, 300px); z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 96%); mask-image: linear-gradient(to bottom, #000 55%, transparent 96%); }
.ki-box { position: relative; z-index: 1; border-radius: 26px; padding: var(--sp-5); display: grid; gap: var(--sp-4);
  background: repeating-conic-gradient(from 0deg at 50% 0%, rgba(255, 255, 255, .08) 0 9deg, transparent 9deg 18deg), linear-gradient(150deg, #d70f37, #7a1fe0); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.ki-box textarea { width: 100%; font: inherit; font-size: 1.1rem; font-weight: 600; padding: var(--sp-4); border-radius: 18px; border: 0; background: #fff; color: var(--dark); resize: vertical; min-height: 140px; }
.ki-box textarea::placeholder { color: #8a8a99; font-weight: 500; }
.ki-box .btn-go { width: 100%; }
.ki-hint { margin: 0; text-align: center; color: #fff; opacity: .85; font-size: .9rem; font-weight: 600; }
/* Mutmacher-Karten als Stapel mit Sprechblase */
.deck { display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--sp-2) 0 var(--sp-4); }
.deck-card { flex: 0 0 86%; scroll-snap-align: center; border-radius: 26px; padding: var(--sp-4); display: grid; justify-items: center; gap: var(--sp-2); color: var(--dark); min-height: 0; user-select: none;
  background: repeating-conic-gradient(from 0deg at 50% 40%, rgba(255, 255, 255, .2) 0 9deg, transparent 9deg 18deg), linear-gradient(160deg, #ffd23d, #ff8a3d); box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.deck-c2 { background: repeating-conic-gradient(from 0deg at 50% 40%, rgba(255, 255, 255, .2) 0 9deg, transparent 9deg 18deg), linear-gradient(160deg, #5cc4ff, #1a5cff); }
.deck-c3 { background: repeating-conic-gradient(from 0deg at 50% 40%, rgba(255, 255, 255, .2) 0 9deg, transparent 9deg 18deg), linear-gradient(160deg, #5fe08f, #1f9e5a); }
.deck-c4 { background: repeating-conic-gradient(from 0deg at 50% 40%, rgba(255, 255, 255, .2) 0 9deg, transparent 9deg 18deg), linear-gradient(160deg, #d98bff, #7a1fe0); }
.deck-last { background: repeating-conic-gradient(from 0deg at 50% 40%, rgba(255, 255, 255, .2) 0 9deg, transparent 9deg 18deg), linear-gradient(160deg, #ff5c8a, #d70f37); }
.deck-fig { width: 132px; height: 132px; object-fit: cover; object-position: 50% 15%; border-radius: 50%; background: rgba(255, 255, 255, .25); border: 4px solid #fff; pointer-events: none; }
.bubble { position: relative; background: #fff; color: var(--dark); border-radius: 20px; padding: var(--sp-3) var(--sp-4); text-align: center; width: 100%; box-shadow: 0 6px 0 rgba(0, 0, 0, .15); }
.bubble::before { content: ""; position: absolute; top: -12px; left: 50%; margin-left: -12px; border: 12px solid transparent; border-top: 0; border-bottom-color: #fff; }
.bubble h2 { font-size: 1.25rem; margin: 0 0 var(--sp-1); }
.bubble p { margin: 0; font-weight: 600; }
.bubble .starter-list { margin-top: var(--sp-2); }
.bubble .starter-list a { background: #f1f1f6; color: var(--dark); padding: var(--sp-2) var(--sp-3); font-size: .95rem; }
/* Mit JavaScript: echter Stapel */
.deck.is-stack { display: grid; overflow: visible; padding: 0 0 46px; touch-action: pan-y; }
.deck.is-stack .deck-card { grid-area: 1 / 1; width: 100%; transition: transform .3s ease, opacity .3s ease; transform-origin: 50% 100%; cursor: grab; }
.deck.is-stack .deck-card.is-drag { transition: none; cursor: grabbing; }
.deck-hint { text-align: center; font-weight: 800; color: var(--muted); margin: 0 0 var(--sp-2); }
.deck-next { display: block; margin: 0 auto var(--sp-5); }
@media (prefers-reduced-motion: reduce) { .deck.is-stack .deck-card { transition: none; } }
/* Kartenstapel: Karten nur so hoch wie nötig */
.deck.is-stack .deck-card { align-self: start; }
.deck-card { gap: 0; }
.deck-fig { width: 112px; height: 112px; margin-bottom: 14px; }
.bubble .starter-list { gap: 6px; }
.bubble .starter-list a { padding: 8px 12px; font-size: .9rem; }
/* KI-Abfragen zentriert, kleinere Knöpfe */
.ask-center, .consent .story-body { text-align: center; }
.ask-center h1 { margin-left: auto; margin-right: auto; max-width: 16ch; }
.ask-center .consent-actions, .consent .consent-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
.ask-center .consent-actions form, .consent .consent-actions form { flex: 0 0 auto; }
.ask-center .consent-actions .btn, .consent .consent-actions .btn { width: auto; min-width: 110px; padding-left: 1.6rem; padding-right: 1.6rem; font-size: 1rem; min-height: 48px; }
.ask-center .loading-msg { flex-basis: 100%; }
.deck.is-stack { padding-bottom: 0; transition: height .3s ease; margin-bottom: var(--sp-4); }
/* Mutmacher-Karten noch niedriger */
.deck-card { padding: var(--sp-3) var(--sp-3) var(--sp-3); border-radius: 22px; }
.deck-fig { width: 84px; height: 84px; margin-bottom: 12px; border-width: 3px; }
.bubble { padding: var(--sp-2) var(--sp-3); border-radius: 16px; }
.bubble h2 { font-size: 1.1rem; }
.bubble p { font-size: .95rem; }
/* KI-Knopf und Hinweis */
.btn-ki { display: inline-flex; align-items: center; gap: var(--sp-2); background: var(--primary); color: var(--dark); box-shadow: 0 5px 0 var(--primary-shade, #b89600); }
.btn-ki svg { width: 22px; height: 22px; fill: var(--dark); flex: none; }
.ki-kicker { position: absolute; left: 0; top: 18px; z-index: 2; display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--primary); color: var(--dark); font-weight: 900; font-size: .9rem; }
.ki-kicker svg { width: 20px; height: 20px; fill: var(--dark); }
/* Berufsseite: farbig und freundlich */
.occ-hero { --g1: #ff8a3d; --g2: #d70f37; position: relative; overflow: hidden; border-radius: 28px; padding: var(--sp-5) var(--sp-4) var(--sp-5); margin: 0 0 var(--sp-5); color: #fff;
  background: repeating-conic-gradient(from 0deg at 85% 15%, rgba(255, 255, 255, .12) 0 9deg, transparent 9deg 18deg), linear-gradient(150deg, var(--g1), var(--g2)); box-shadow: 0 16px 34px rgba(0, 0, 0, .35); }
.cat-bau { --g1: #ffb03d; --g2: #e05a00; } .cat-holz { --g1: #d9a066; --g2: #8a4b1f; } .cat-metall { --g1: #8fa3b8; --g2: #3b4a5c; }
.cat-elektro { --g1: #5cc4ff; --g2: #1a5cff; } .cat-fahrzeuge { --g1: #ff5c5c; --g2: #9e1030; } .cat-natur { --g1: #5fe08f; --g2: #1f8a4f; }
.cat-gesundheit { --g1: #ff7aa8; --g2: #c2185b; } .cat-essen { --g1: #ffd23d; --g2: #ff6b2c; } .cat-schoenheit { --g1: #f59bd9; --g2: #a43aa0; }
.cat-gestaltung { --g1: #d98bff; --g2: #7a1fe0; } .cat-planung { --g1: #7ad7e8; --g2: #1e7a94; } .cat-buero { --g1: #9aa5ff; --g2: #3f4bc9; }
.cat-labor { --g1: #6ee7c7; --g2: #138a75; } .cat-reinigung { --g1: #8fd3ff; --g2: #2b7bc0; }
.occ-back { margin: 0 0 var(--sp-3); font-weight: 800; }
.occ-back a { color: #fff; opacity: .9; text-decoration: none; }
.occ-emo { position: absolute; right: 14px; top: 10px; font-size: 4.2rem; line-height: 1; transform: rotate(8deg); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }
.occ-hero h1 { font-size: clamp(1.8rem, 7.5vw, 2.6rem); margin: var(--sp-2) 70px var(--sp-3) 0; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.occ-sum { font-size: 1.1rem; font-weight: 600; margin: 0 0 var(--sp-4); }
.occ-tags { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.occ-tags li { background: rgba(255, 255, 255, .92); color: var(--dark); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; }
.occ-tags .badge { padding: 0; background: none; font-size: .9rem; }
.occ-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.occ-actions form { margin: 0; }
.occ-actions .btn { background: rgba(0, 0, 0, .28); color: #fff; box-shadow: none; }
.occ-block { margin-bottom: var(--sp-6); }
.occ-block h2 { font-size: 1.4rem; }
.task-tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
@media (min-width: 40rem) { .task-tiles { grid-template-columns: repeat(3, 1fr); } }
.task-tile { border-radius: 20px; padding: var(--sp-4); font-weight: 800; font-size: 1.05rem; line-height: 1.3; color: var(--dark); display: flex; gap: var(--sp-3); align-items: center; }
.task-tile.t1 { background: #ffd23d; } .task-tile.t2 { background: #6bf59a; } .task-tile.t3 { background: #8fd3ff; }
.task-emo { font-size: 1.8rem; flex: none; }
.occ-place p { background: var(--surface); border-radius: 20px; padding: var(--sp-4); font-weight: 600; margin: 0; }
.sib-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.sib-list a { display: flex; align-items: center; gap: var(--sp-3); background: var(--surface); border-radius: 16px; padding: var(--sp-3) var(--sp-4); color: var(--ink); text-decoration: none; font-weight: 800; }
.sib-list a::after { content: "→"; margin-left: auto; color: var(--primary); }
.sib-list a:hover { background: color-mix(in srgb, var(--ink) 8%, var(--surface)); }
.next-tiles { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-4); }
@media (min-width: 40rem) { .next-tiles { grid-template-columns: 1fr 1fr; } }
.next-tile { background: var(--surface); border-radius: 20px; padding: var(--sp-4); display: grid; gap: var(--sp-1); }
.next-tile > span:first-child { font-size: 1.8rem; }
.next-tile span:last-child { color: var(--muted); }
.occ-page .why { background: var(--surface); }
.occ-hero h1 { margin-right: 86px; } .occ-emo { font-size: 3.6rem; }
/* Mutmacher-Karten: Figur viel grösser */
.deck-fig { width: min(92%, 300px); height: auto; aspect-ratio: 1; margin-bottom: 14px; border-width: 5px; }
/* «Nochmals die KI fragen» zentriert */
.ki-area form:has(.btn-ki) { display: flex; justify-content: center; margin: var(--sp-4) 0; }
/* «Frag die KI»-Tag mit Abstand zum Titel */
.ki-hero { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.ki-kicker { position: relative; top: auto; left: auto; margin: 0 0 var(--sp-3); }
/* Sprechblasen grosszügiger und an wechselnden Orten */
.deck-card { position: relative; }
.deck-card:not(.deck-last) .bubble { position: absolute; width: auto; max-width: 78%; padding: var(--sp-4) var(--sp-5); border-radius: 22px; text-align: left; box-shadow: 0 10px 22px rgba(0, 0, 0, .22); }
.deck-card:not(.deck-last) .bubble h2 { font-size: 1.3rem; line-height: 1.15; margin-bottom: var(--sp-2); }
.deck-card:not(.deck-last) .bubble p { font-size: 1.05rem; line-height: 1.35; }
.deck-card:not(.deck-last) .bubble::before { border: 14px solid transparent; }
/* 1: unten links, Spitze nach oben */
.deck-c1 .bubble { left: 12px; bottom: 14px; transform: rotate(-2deg); }
.deck-c1 .bubble::before { top: -14px; left: 36px; margin: 0; border-top: 0; border-bottom-color: #fff; }
/* 2: oben rechts, Spitze nach unten */
.deck-c2 .bubble { right: 12px; top: 14px; transform: rotate(2deg); }
.deck-c2 .bubble::before { top: auto; bottom: -14px; left: auto; right: 40px; margin: 0; border-bottom: 0; border-top-color: #fff; }
/* 3: unten rechts, Spitze nach oben */
.deck-c3 .bubble { right: 12px; bottom: 14px; transform: rotate(1.5deg); }
.deck-c3 .bubble::before { top: -14px; left: auto; right: 44px; margin: 0; border-top: 0; border-bottom-color: #fff; }
/* 4: oben links, Spitze nach unten */
.deck-c4 .bubble { left: 12px; top: 14px; transform: rotate(-1.5deg); }
.deck-c4 .bubble::before { top: auto; bottom: -14px; left: 40px; margin: 0; border-bottom: 0; border-top-color: #fff; }
.deck-card:not(.deck-last) .deck-fig { margin: 0; width: min(100%, 320px); }
.deck-last .bubble { padding: var(--sp-4); }
/* Sprechblasen nie über dem Gesicht: immer unten, abwechselnd links/rechts */
.deck-c2 .bubble { top: auto; bottom: 14px; right: 12px; left: auto; transform: rotate(2deg); }
.deck-c2 .bubble::before { top: -14px; bottom: auto; right: 40px; left: auto; border-top: 0; border-bottom: 14px solid #fff; border-left-color: transparent; border-right-color: transparent; border-top-color: transparent; }
.deck-c4 .bubble { top: auto; bottom: 14px; left: 12px; transform: rotate(-1deg); }
.deck-c4 .bubble::before { top: -14px; bottom: auto; left: 40px; border-top: 0; border-bottom: 14px solid #fff; border-left-color: transparent; border-right-color: transparent; border-top-color: transparent; }
