/* MoreLife Simulator – Webseite. Farben, Schrift und Rundungen sind die des Spiels (src/app/globals.css). */

@font-face { font-family: Nunito; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(schrift/nunito-latin-ext.woff2) format("woff2"); unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4; }
@font-face { font-family: Nunito; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(schrift/nunito-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Farben des Spiels */
  --c-bg: #fff6ec;
  --c-surface: #ffffff;
  --c-surface-2: #fff0e0;
  --c-ink: #2d1b12;
  --c-muted: #7c6252;
  --c-line: #f2dcc6;
  --c-accent: #f2622e;
  --c-accent-ink: #ffffff;
  --c-accent-soft: #ffe1d2;
  --c-sun: #ffb627;
  --c-berry: #d6336c;
  --c-sea: #2f7dd1;
  --c-leaf: #2f9e5b;
  --c-heart: #e8443a;
  /* Nur für die Webseite: Orange, das auch als kleiner Text gut lesbar ist, und der dunkle Block */
  --c-accent-text: #c2410c;
  --c-dark: #2d1b12;
  --c-dark-ink: #fff6ec;
  --c-dark-muted: #e2c7b3;
  --schatten: 0 1px 2px rgb(96 52 20 / 0.06), 0 8px 24px rgb(96 52 20 / 0.08);
  --schatten-gross: 0 2px 4px rgb(96 52 20 / 0.08), 0 24px 60px rgb(96 52 20 / 0.16);
  --rund: 1.5rem;
  --rand: clamp(1rem, 4vw, 5rem);
  --breite: 150rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #1d1410;
    --c-surface: #2a1e18;
    --c-surface-2: #352620;
    --c-ink: #fbeee2;
    --c-muted: #c6a994;
    --c-line: #4a362b;
    --c-accent: #ff7a45;
    --c-accent-ink: #1d1410;
    --c-accent-soft: #4d2a1c;
    --c-sun: #ffc24d;
    --c-berry: #f06595;
    --c-sea: #5aa2ee;
    --c-leaf: #51cf87;
    --c-heart: #ff6b61;
    --c-accent-text: #ff9b70;
    --c-dark: #120c09;
    --schatten: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.3);
    --schatten-gross: 0 2px 4px rgb(0 0 0 / 0.4), 0 24px 60px rgb(0 0 0 / 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* Was versteckt ist, bleibt versteckt – auch wenn eine Klasse sonst „flex“ oder „grid“ setzt. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font-family: Nunito, ui-rounded, system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.7vw, 6.75rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--c-sea); outline-offset: 3px; border-radius: 0.5rem; }

.rahmen { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.schmal { --breite: 46rem; }
.akzent { color: var(--c-accent); }
.sprung { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--c-ink); color: var(--c-bg); padding: 0.75rem 1rem; border-radius: 0.75rem; font-weight: 800; }
.sprung:focus { top: 1rem; }

/* Knöpfe – wie im Spiel: rund, fett, mit Federdruck */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.5rem; padding: 0.9rem 1.6rem; border-radius: 1rem; background: var(--c-accent); color: var(--c-accent-ink); font-weight: 900; font-size: 1.0625rem; text-decoration: none; border: 2px solid transparent; box-shadow: 0 6px 0 rgb(160 52 12 / 0.28), var(--schatten); transition: transform 0.16s cubic-bezier(.3, 1.6, .5, 1), box-shadow 0.16s, filter 0.16s; cursor: pointer; font-family: inherit; }
.knopf:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 8px 0 rgb(160 52 12 / 0.28), var(--schatten); }
.knopf:active { transform: translateY(4px); box-shadow: 0 2px 0 rgb(160 52 12 / 0.28); }
.knopf-zweit { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line); box-shadow: 0 6px 0 var(--c-line); }
.knopf-zweit:hover { border-color: var(--c-accent); box-shadow: 0 8px 0 var(--c-line); }
.knopf-zweit:active { box-shadow: 0 2px 0 var(--c-line); }
.knopf-klein { min-height: 2.75rem; padding: 0.5rem 1.1rem; font-size: 0.95rem; border-radius: 0.85rem; box-shadow: 0 4px 0 rgb(160 52 12 / 0.28); }
.knopf-klein:hover { box-shadow: 0 5px 0 rgb(160 52 12 / 0.28); }
.knopf-hell { background: var(--c-sun); color: #2d1b12; box-shadow: 0 6px 0 rgb(0 0 0 / 0.35); font-size: 1.2rem; padding-inline: 2.4rem; }
.knopf-hell:hover { box-shadow: 0 8px 0 rgb(0 0 0 / 0.35); }
.knopf-hell:active { box-shadow: 0 2px 0 rgb(0 0 0 / 0.35); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.knopfreihe.mitte { justify-content: center; margin-top: 2.5rem; }

/* Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--c-bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.kopf.unten { border-bottom-color: var(--c-line); box-shadow: 0 6px 20px rgb(96 52 20 / 0.06); }
.kopf-innen { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.logo-keim { font-size: 1.7rem; line-height: 1; }
.logo-text { font-weight: 900; font-size: 1.45rem; letter-spacing: -0.03em; color: var(--c-accent); line-height: 0.95; }
.logo-text small { display: block; font-size: 0.56rem; font-weight: 800; letter-spacing: 0.36em; text-transform: uppercase; color: var(--c-muted); margin-top: 0.2rem; }
.menue { display: flex; gap: 0.25rem; margin-left: auto; }
.menue a { padding: 0.6rem 0.8rem; border-radius: 0.75rem; text-decoration: none; font-weight: 800; font-size: 0.95rem; color: var(--c-muted); transition: color 0.15s, background 0.15s; }
.menue a:hover { color: var(--c-ink); background: var(--c-surface-2); }
@media (max-width: 900px) { .menue { display: none; } .kopf-innen { justify-content: space-between; } }

/* 1 · Anfang */
.held { position: relative; padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.held::before { content: ""; position: absolute; inset: -6rem 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(38rem 26rem at 82% 28%, color-mix(in srgb, var(--c-sun) 30%, transparent), transparent 70%), radial-gradient(30rem 22rem at 8% 85%, color-mix(in srgb, var(--c-berry) 13%, transparent), transparent 70%); }
.held-raster { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.marke { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.9rem 0.4rem 0.7rem; border-radius: 99rem; background: var(--c-surface); border: 1px solid var(--c-line); font-size: 0.85rem; font-weight: 800; color: var(--c-muted); margin-bottom: 1.4rem; box-shadow: var(--schatten); }
.punkt { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c-leaf); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-leaf) 60%, transparent); animation: puls 2.4s ease-out infinite; }
@keyframes puls { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-leaf) 60%, transparent); } 100% { box-shadow: 0 0 0 0.7rem transparent; } }
.einleitung { font-size: clamp(1.1rem, 1.5vw, 1.6rem); color: var(--c-muted); max-width: 44rem; margin: 1.5rem 0 2rem; font-weight: 600; }
.kurzinfos { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 2rem; font-size: 0.92rem; font-weight: 700; color: var(--c-muted); }
.kurzinfos li { display: flex; align-items: center; gap: 0.45rem; }
.kurzinfos li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--c-accent); flex: none; }

/* Die Vorschau im Handy – dem Hauptbildschirm des Spiels nachgebaut */
.held-spiel { display: flex; flex-direction: column; align-items: center; }
.handy { width: min(100%, 22.5rem); padding: 0.6rem; border-radius: 2.9rem; background: #2d1b12; box-shadow: var(--schatten-gross), inset 0 0 0 2px rgb(255 255 255 / 0.08); transform: rotate(1.5deg); transition: transform 0.4s cubic-bezier(.3, 1.4, .5, 1); }
.handy:hover, .handy:focus-within { transform: rotate(0deg); }
.handy-schirm { position: relative; display: flex; flex-direction: column; height: 39rem; border-radius: 2.35rem; overflow: hidden; background: var(--c-bg); }
.sp-kopf { display: flex; align-items: center; gap: 0.75rem; padding: 1.1rem 1.1rem 0.5rem; }
.sp-wer { min-width: 0; flex: 1; }
.sp-name { font-size: 1.2rem; font-weight: 900; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-zeile { font-size: 0.85rem; font-weight: 700; color: var(--c-muted); }
.sp-geld { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--c-leaf); font-size: 1.05rem; white-space: nowrap; }
.sp-szene { position: relative; margin: 0 1rem 0.3rem; aspect-ratio: 360 / 200; border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--c-line); background: var(--c-surface); flex: none; }
.sp-szene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s ease; }
#sp-bild-b { opacity: 0; }
.sp-moment { position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.5rem; padding: 0.35rem 0.75rem; border-radius: 99rem; background: rgb(0 0 0 / 0.62); color: #fff; font-size: 0.78rem; font-weight: 800; text-align: center; backdrop-filter: blur(4px); animation: rein 0.3s ease-out; }
.sp-konfetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sp-konfetti i { position: absolute; top: -0.75rem; width: 6px; height: 10px; border-radius: 2px; animation: konfetti 1.9s ease-in forwards; }
@keyframes konfetti { to { transform: translateY(15rem) rotate(540deg); opacity: 0; } }
.sp-geschichte { flex: 1; min-height: 0; overflow: hidden; padding: 0.5rem 1.1rem 0.5rem; mask-image: linear-gradient(#000 78%, transparent); -webkit-mask-image: linear-gradient(#000 78%, transparent); }
.sp-jahrblock { animation: rein 0.35s ease-out; margin-bottom: 0.7rem; }
.sp-jahrblock h4, .sp-jahrblock .sp-jahrtitel { margin: 0 0 0.15rem; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent-text); }
.sp-jahrblock .sp-jahrtitel { line-height: 1.2; }
.sp-jahrblock p { font-size: 0.9rem; line-height: 1.4; font-weight: 600; }
.sp-jahrblock p + p { margin-top: 0.2rem; }
.sp-jahrblock.alt { opacity: 0.5; }
@keyframes rein { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
.sp-werte { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; padding: 0.5rem 0.8rem 0.9rem; border-top: 1px solid var(--c-line); }
.sp-werte li { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; min-width: 0; }
.sp-zahl { font-size: 0.85rem; font-weight: 900; font-variant-numeric: tabular-nums; display: flex; gap: 0.2rem; align-items: baseline; }
.sp-balken { width: 100%; height: 0.35rem; border-radius: 99rem; background: var(--c-line); overflow: hidden; }
.sp-balken i { display: block; height: 100%; width: 50%; border-radius: inherit; background: var(--f); transition: width 0.5s cubic-bezier(.3, 1.2, .5, 1); }
.sp-was { font-size: 0.6rem; font-weight: 700; color: var(--c-muted); }
.sp-leiste { display: flex; align-items: flex-end; gap: 0.25rem; padding: 0.3rem 0.5rem 0.8rem; border-top: 1px solid var(--c-line); background: var(--c-surface); }
.sp-punkt { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; font-size: 0.68rem; font-weight: 800; color: var(--c-muted); padding: 0.35rem 0; opacity: 0.75; }
.sp-punkt span { font-size: 1.2rem; line-height: 1; }
.sp-mitte { display: flex; flex-direction: column; align-items: center; padding: 0 0.25rem; }
.sp-plus { width: 4rem; height: 4rem; margin-top: -1rem; border: 0; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); font: 900 1.5rem/1 Nunito, system-ui, sans-serif; box-shadow: 0 0 0 4px var(--c-bg), 0 8px 18px rgb(242 98 46 / 0.45); cursor: pointer; transition: transform 0.16s cubic-bezier(.3, 1.8, .5, 1), filter 0.16s; animation: wink 2.6s ease-in-out infinite; }
.sp-plus:hover { filter: brightness(1.06); }
.sp-plus:active { transform: scale(0.9); }
.sp-plus.benutzt { animation: none; }
@keyframes wink { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.1); } 90% { transform: scale(0.98); } }
.sp-jahr { margin-top: 0.15rem; font-size: 0.68rem; font-weight: 800; color: var(--c-muted); }
.sp-bilanz { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem; padding: 1.5rem; text-align: center; background: color-mix(in srgb, var(--c-bg) 98%, transparent); animation: rein 0.4s ease-out; }
.sp-bilanz[hidden] { display: none; }
.sp-bilanz-oben { font-size: 0.75rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent-text); }
.sp-bilanz-name { font-size: 1.7rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.sp-bilanz-jahre { font-size: 0.9rem; font-weight: 700; color: var(--c-muted); }
.sp-bilanz ul { width: 100%; margin: 0.8rem 0; display: grid; gap: 0.4rem; text-align: left; }
.sp-bilanz li { padding: 0.6rem 0.8rem; border-radius: 0.9rem; background: var(--c-surface); border: 1px solid var(--c-line); font-size: 0.88rem; font-weight: 800; }
.sp-bilanz-frage { font-size: 1.15rem; font-weight: 800; margin: 0.3rem 0 0.6rem; }
.sp-bilanz-frage b { color: var(--c-accent); font-weight: 900; }
.sp-neu { margin-top: 0.6rem; min-height: 2.75rem; padding: 0.5rem 1rem; border: 0; background: none; color: var(--c-muted); font: 800 0.9rem Nunito, system-ui, sans-serif; cursor: pointer; border-radius: 0.75rem; }
.sp-neu:hover { color: var(--c-ink); background: var(--c-surface-2); }
.lebenslinie { width: min(100%, 20rem); height: 0.4rem; margin-top: 1.6rem; border-radius: 99rem; background: var(--c-line); overflow: hidden; }
.lebenslinie span { display: block; height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, var(--c-sun), var(--c-accent)); transition: width 0.5s cubic-bezier(.3, 1.2, .5, 1); }
.vorschau-hinweis { max-width: 22rem; margin-top: 0.9rem; text-align: center; font-size: 0.88rem; font-weight: 600; color: var(--c-muted); }
.vorschau-hinweis b { color: var(--c-ink); }
.mini-plus { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); font-weight: 900; font-size: 0.72rem; vertical-align: middle; }

/* 2 · Zahlen */
.zahlen { padding: 2.5rem 0; background: var(--c-surface); border-block: 1px solid var(--c-line); }
.zahlen-liste { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; text-align: center; }
.zahlen-liste b { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.zahlen-liste span { display: block; margin-top: 0.35rem; font-size: 0.9rem; font-weight: 800; color: var(--c-muted); }
.zahlen-stand { margin-top: 1.5rem; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--c-muted); }

/* Abschnitte */
.abschnitt { padding: clamp(4rem, 9vw, 7rem) 0; }
.abschnitt-warm { background: var(--c-surface-2); }
.ueber { font-size: 0.82rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-accent-text); margin-bottom: 0.8rem; }
.ueber.hell { color: var(--c-sun); }
.unter { max-width: 48rem; margin-top: 1.1rem; font-size: clamp(1.12rem, 1.15vw, 1.35rem); font-weight: 600; color: var(--c-muted); }

/* 3 · Schritte */
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.schritt { position: relative; padding: 2rem 1.6rem 1.8rem; border-radius: var(--rund); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--schatten); }
.schritt-nr { display: inline-grid; place-items: center; min-width: 3.5rem; height: 3.5rem; padding: 0 0.6rem; margin-bottom: 1.2rem; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); font-size: 1.45rem; font-weight: 900; box-shadow: 0 6px 14px rgb(242 98 46 / 0.35); }
.schritt:nth-child(1) .schritt-nr { background: var(--c-sun); color: #2d1b12; box-shadow: 0 6px 14px rgb(255 182 39 / 0.4); }
.schritt:nth-child(3) .schritt-nr { background: var(--c-berry); color: #fff; box-shadow: 0 6px 14px rgb(214 51 108 / 0.35); }
.schritt p { margin-top: 0.6rem; color: var(--c-muted); font-weight: 600; }

/* 4 · Lebenswege */
.wege { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.weg { display: flex; flex-direction: column; border-radius: var(--rund); overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--schatten); transition: transform 0.25s cubic-bezier(.3, 1.4, .5, 1), box-shadow 0.25s; }
.weg:hover { transform: translateY(-6px); box-shadow: var(--schatten-gross); }
.weg img { width: 100%; aspect-ratio: 360 / 200; object-fit: cover; background: var(--c-surface-2); }
.weg-text { padding: 1.2rem 1.4rem 1.5rem; }
.weg-text p { margin-top: 0.45rem; font-size: 0.98rem; font-weight: 600; color: var(--c-muted); }
.weg-gross { grid-column: span 2; flex-direction: row; align-items: stretch; }
.weg-gross img { width: 58%; aspect-ratio: auto; height: 100%; min-height: 17rem; }
.weg-gross .weg-text { display: flex; flex-direction: column; justify-content: center; padding: 1.8rem; }
.weg-gross h3 { font-size: 1.8rem; }
.marken { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.marken li { padding: 0.25rem 0.7rem; border-radius: 99rem; background: var(--c-accent-soft); color: var(--c-ink); font-size: 0.8rem; font-weight: 800; }
.weg-normal { grid-column: span 2; justify-content: center; align-items: flex-start; gap: 0.9rem; padding: 2rem; background: var(--c-accent); border-color: transparent; color: #fff; }
.weg-normal h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.weg-normal p { max-width: 30rem; font-weight: 700; font-size: 1.08rem; color: rgb(255 255 255 / 0.92); }
.weg-normal .knopf { margin-top: 0.4rem; font-size: 1.05rem; padding-inline: 1.6rem; }

/* 5 · Talent und Fleiß */
.talent-raster { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.talent-karte { padding: 2rem 1.8rem; border-radius: 2rem; background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--schatten-gross); }
.talent-kopf { font-weight: 800; font-size: 1.05rem; }
.talent-kopf b { font-weight: 900; }
.sterne { color: var(--c-sun); letter-spacing: 0.05em; margin-left: 0.3rem; }
.sterne i { font-style: normal; color: var(--c-line); }
.skala { position: relative; height: 1.4rem; margin: 3.4rem 0 2.6rem; border-radius: 99rem; background: var(--c-line); }
.skala-koennen { position: absolute; inset: 0 auto 0 0; width: 50%; border-radius: 99rem; background: linear-gradient(90deg, var(--c-sun), var(--c-accent)); transition: width 0.4s cubic-bezier(.3, 1.3, .5, 1); }
.skala-talent, .skala-grenze { position: absolute; top: -0.5rem; bottom: -0.5rem; width: 3px; border-radius: 3px; }
.skala-talent { left: 35%; background: var(--c-ink); }
.skala-grenze { left: 50%; background: var(--c-accent-text); transition: left 0.4s cubic-bezier(.3, 1.3, .5, 1); }
.skala em { position: absolute; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 0.8rem; font-weight: 800; white-space: nowrap; }
.skala-talent em { top: 2.6rem; color: var(--c-muted); }
.skala-grenze em { bottom: 2.6rem; color: var(--c-accent-text); font-size: 0.95rem; }
.skala-grenze em b { font-size: 1.3rem; font-weight: 900; }
.regler-text { display: block; font-weight: 800; margin-bottom: 0.3rem; }
.regler-text b { color: var(--c-accent-text); font-weight: 900; font-size: 1.2rem; }
.regler { width: 100%; height: 2.75rem; margin: 0; accent-color: var(--c-accent); cursor: pointer; }
.talent-folge { min-height: 4.8rem; margin-top: 0.8rem; padding: 0.9rem 1.1rem; border-radius: 1rem; background: var(--c-surface-2); font-weight: 700; font-size: 0.98rem; }

/* 6 · Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.kachel { padding: 1.6rem; border-radius: var(--rund); background: var(--c-surface); border: 1px solid var(--c-line); }
.kachel-bild { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: 1rem; border-radius: 1rem; background: var(--c-accent-soft); font-size: 1.6rem; }
.kachel p { margin-top: 0.45rem; font-size: 0.98rem; font-weight: 600; color: var(--c-muted); }

/* 7 · Entstehung */
.devlog-kopf { display: flex; align-items: center; gap: 1.4rem; }
.devlog-kopf .ueber { margin-bottom: 0.4rem; }
.kanal-logo { width: 5.5rem; height: 5.5rem; border-radius: 50%; box-shadow: var(--schatten); flex: none; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.6rem; }
.video { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--rund); }
.video-bild { position: relative; display: block; border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--schatten); transition: transform 0.25s cubic-bezier(.3, 1.4, .5, 1), box-shadow 0.25s; }
.video-bild img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video:hover .video-bild { transform: translateY(-5px); box-shadow: var(--schatten-gross); }
.video-start { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 3.6rem; height: 3.6rem; padding-left: 0.2rem; border-radius: 50%; background: rgb(255 255 255 / 0.94); color: var(--c-accent); font-size: 1.3rem; transform: translate(-50%, -50%) scale(0.9); opacity: 0; transition: opacity 0.2s, transform 0.2s cubic-bezier(.3, 1.6, .5, 1); box-shadow: 0 6px 18px rgb(0 0 0 / 0.3); }
.video:hover .video-start, .video:focus-visible .video-start { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-titel { margin-top: 0.9rem; font-weight: 900; font-size: 1.08rem; line-height: 1.25; }
.video-zeile { margin-top: 0.15rem; font-size: 0.85rem; font-weight: 700; color: var(--c-muted); }

/* 8 · Mitmachen */
.mitmachen { position: relative; padding: clamp(4rem, 9vw, 7rem) 0; background: var(--c-dark); color: var(--c-dark-ink); overflow: hidden; }
.mitmachen::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(34rem 22rem at 50% 0%, rgb(242 98 46 / 0.4), transparent 70%), radial-gradient(22rem 16rem at 88% 100%, rgb(255 182 39 / 0.16), transparent 70%); }
.mitmachen-innen { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mitmachen-text { max-width: 38rem; margin-top: 1.2rem; font-size: 1.15rem; font-weight: 600; color: var(--c-dark-muted); }
.tester-schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; width: min(100%, 52rem); margin: 2.8rem 0; }
.tester-schritte li { display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1.2rem; border-radius: 1.25rem; background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.12); text-align: left; }
.tester-schritte b { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--c-accent); color: #fff; font-weight: 900; font-size: 1.15rem; }
.tester-schritte span { font-weight: 800; line-height: 1.3; }
.tester-schritte small { display: block; font-size: 0.85rem; font-weight: 700; color: var(--c-dark-muted); }
.ehrlich { max-width: 40rem; margin-top: 2.8rem; padding: 1.2rem 1.4rem; border-radius: 1.25rem; border: 1px dashed rgb(255 255 255 / 0.28); font-size: 0.98rem; font-weight: 600; color: var(--c-dark-muted); text-align: left; }
.ehrlich b { color: var(--c-dark-ink); }

/* 9 · Fragen */
.fragen { margin-top: 2.5rem; display: grid; gap: 0.75rem; }
.fragen details { border-radius: 1.25rem; background: var(--c-surface); border: 1px solid var(--c-line); transition: box-shadow 0.2s, border-color 0.2s; }
.fragen details[open] { box-shadow: var(--schatten); border-color: var(--c-accent); }
.fragen summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; padding: 0.9rem 1.3rem; font-weight: 900; font-size: 1.1rem; cursor: pointer; list-style: none; border-radius: 1.25rem; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent-text); font-size: 1.3rem; font-weight: 900; line-height: 1; transition: transform 0.25s cubic-bezier(.3, 1.6, .5, 1); }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen details p { padding: 0 1.3rem 1.3rem; font-weight: 600; color: var(--c-muted); max-width: 38rem; }

/* Fuß */
.fuss { padding: 3rem 0; border-top: 1px solid var(--c-line); background: var(--c-surface); }
.fuss-innen { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-left: auto; }
.fuss-links a { padding: 0.6rem 0.8rem; border-radius: 0.75rem; text-decoration: none; font-weight: 800; color: var(--c-muted); }
.fuss-links a:hover { color: var(--c-ink); background: var(--c-surface-2); }
.fuss-klein { width: 100%; font-size: 0.85rem; font-weight: 600; color: var(--c-muted); }

/* Unterseiten (Impressum, Datenschutz) */
.seite { padding: 4rem 0 6rem; }
.seite h1 { font-size: clamp(2rem, 5vw, 3rem); }
.seite p { margin-top: 1rem; font-weight: 600; color: var(--c-muted); }
.hinweis-kasten { margin-top: 2rem; padding: 1.4rem 1.6rem; border-radius: 1.25rem; border: 2px dashed var(--c-accent); background: var(--c-surface); }
.hinweis-kasten p:first-child { margin-top: 0; color: var(--c-ink); font-weight: 800; }

/* Beim Scrollen einblenden */
.js .erscheint { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2, .9, .3, 1); transition-delay: var(--warte, 0s); }
.js .erscheint.da { opacity: 1; transform: none; }

/* Schmale Bildschirme */
@media (max-width: 900px) {
  .held-raster, .talent-raster { grid-template-columns: 1fr; }
  .held-text { text-align: center; }
  .held-text .knopfreihe, .kurzinfos { justify-content: center; }
  .einleitung { margin-inline: auto; }
  .zahlen-liste { grid-template-columns: repeat(3, 1fr); row-gap: 1.8rem; }
  .schritte, .kacheln, .videos { grid-template-columns: 1fr; }
  .wege { grid-template-columns: repeat(2, 1fr); }
  .tester-schritte { grid-template-columns: 1fr; width: min(100%, 24rem); }
  .handy { transform: none; }
  .fuss-links { margin-left: 0; }
}
@media (max-width: 620px) {
  .wege { grid-template-columns: 1fr; }
  .weg-gross { grid-column: auto; flex-direction: column; }
  .weg-gross img { width: 100%; aspect-ratio: 360 / 200; min-height: 0; height: auto; }
  .weg-gross .weg-text { padding: 1.2rem 1.4rem 1.5rem; }
  .weg-normal { grid-column: auto; padding: 1.6rem 1.4rem; }
  .weg-gross h3 { font-size: 1.25rem; }
  .knopfreihe .knopf { width: 100%; }
  .kopf .knopf-klein { padding-inline: 0.9rem; }
  .devlog-kopf { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .handy-schirm { height: 37rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .erscheint { opacity: 1; transform: none; }
  .handy { transform: none; }
}

/* ---------- Volle Breite auf großen Bildschirmen ---------- */
@media (min-width: 1500px) {
  .wege { grid-template-columns: repeat(4, 1fr); }
  .handy { zoom: 1.14; }
  .schritt, .kachel { padding: 2.2rem; }
  .schritt p, .kachel p, .weg-text p { font-size: 1.08rem; }
  h3 { font-size: 1.4rem; }
}
@media (min-width: 1850px) {
  body { font-size: 1.15rem; }
  .handy { zoom: 1.28; }
  .knopf { min-height: 4rem; font-size: 1.2rem; padding-inline: 2rem; }
  .knopf-klein { min-height: 3rem; font-size: 1rem; padding-inline: 1.2rem; }
  .menue a { font-size: 1.05rem; }
}

/* Fragen: links die Überschrift, rechts die Antworten */
.fragen-raster { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.fragen-raster .fragen { margin-top: 0; }
.fragen-kopf { position: sticky; top: 6.5rem; }
.fragen details p { max-width: 46rem; }
@media (max-width: 900px) { .fragen-raster { grid-template-columns: 1fr; } .fragen-kopf { position: static; } }

/* ---------- Kopfzeile: Konto und Spielen ---------- */
.kopf-rechts { display: flex; align-items: center; gap: 0.5rem; }

/* Konto-Menü: der eigene Name mit Aufklapp-Liste */
.konto-menue { position: relative; }
.konto-menue-knopf { display: inline-flex; align-items: center; gap: 0.5rem; max-width: 15rem; min-height: 2.75rem; padding: 0.25rem 0.8rem 0.25rem 0.3rem; border: 2px solid var(--c-line); border-radius: 99rem; background: var(--c-surface); color: var(--c-ink); font: 800 0.95rem Nunito, system-ui, sans-serif; text-align: left; white-space: nowrap; cursor: pointer; transition: border-color 0.15s; }
.konto-menue-knopf:hover, .konto-menue-knopf[aria-expanded="true"] { border-color: var(--c-accent); }
.konto-menue-name { overflow: hidden; text-overflow: ellipsis; }
.avatar { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); font-weight: 900; font-size: 0.95rem; line-height: 1; }
.pfeil { flex: none; color: var(--c-muted); transition: transform 0.15s; }
.konto-menue-knopf[aria-expanded="true"] .pfeil { transform: rotate(180deg); }
.konto-menue-liste { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 60; display: grid; gap: 0.15rem; width: max-content; min-width: 15.5rem; max-width: min(24rem, calc(100vw - 2rem)); padding: 0.5rem; border-radius: 1.1rem; background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--schatten-gross); animation: menue-auf 0.14s ease-out; }
@keyframes menue-auf { from { opacity: 0; transform: translateY(-0.35rem); } }
.konto-menue-kopf { display: grid; gap: 0.1rem; margin: 0 0 0.35rem; padding: 0.55rem 0.8rem 0.7rem; border-bottom: 1px solid var(--c-line); }
.konto-menue-kopf b { font-weight: 900; }
.konto-menue-kopf span { font-size: 0.85rem; font-weight: 600; color: var(--c-muted); overflow-wrap: anywhere; }
.konto-menue-liste a, .konto-menue-liste .abmelden-knopf, .konto-menue-liste .feedback-knopf, .konto-menue-liste .teilen-knopf, .menue-konto > a:not(.knopf), .menue-konto .abmelden-knopf { display: flex; align-items: center; width: 100%; min-height: 2.75rem; padding: 0.5rem 0.8rem; border: 0; border-radius: 0.75rem; background: none; color: var(--c-ink); font: 800 0.98rem Nunito, system-ui, sans-serif; text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 0.15s; }
.konto-menue-liste a:hover, .konto-menue-liste .abmelden-knopf:hover, .konto-menue-liste .feedback-knopf:hover, .konto-menue-liste .teilen-knopf:hover, .menue-konto > a:not(.knopf):hover, .menue-konto .abmelden-knopf:hover { background: var(--c-surface-2); }
.konto-menue-liste .konto-menue-spielen { color: var(--c-accent-text); }
.konto-menue-liste .abmelden-knopf, .menue-konto .abmelden-knopf { color: var(--c-muted); }

/* Handy-Menü: Knopf mit drei Strichen, darunter klappt das Menü über die ganze Breite auf */
.menue-knopf { display: none; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; width: 2.75rem; height: 2.75rem; padding: 0; border: 2px solid var(--c-line); border-radius: 0.85rem; background: var(--c-surface); color: var(--c-ink); cursor: pointer; }
.menue-knopf span { display: block; width: 1.15rem; height: 0.16rem; border-radius: 1rem; background: currentColor; transition: transform 0.18s, opacity 0.18s; }
.menue-knopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.46rem) rotate(45deg); }
.menue-knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menue-knopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.46rem) rotate(-45deg); }
.menue-konto { display: none; }
@media (max-width: 900px) {
  .kopf-innen { gap: 0.6rem; }
  .kopf-rechts { margin-left: auto; }
  .menue-knopf { display: inline-flex; }
  .kopf .kopf-rechts .kopf-konto, .kopf .kopf-rechts .konto-menue { display: none; }
  .kopf.menue-offen { background: var(--c-bg); }
  .kopf.menue-offen .menue { display: flex; flex-direction: column; gap: 0.15rem; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 0.6rem var(--rand) 1.2rem; max-height: calc(100dvh - 4.25rem); overflow-y: auto; background: var(--c-bg); border-bottom: 1px solid var(--c-line); box-shadow: 0 1.4rem 2rem rgb(0 0 0 / 0.18); animation: menue-auf 0.16s ease-out; }
  .kopf.menue-offen .menue > a { display: flex; align-items: center; min-height: 3rem; padding: 0.6rem 0.8rem; font-size: 1.08rem; color: var(--c-ink); }
  .menue-konto { display: grid; gap: 0.15rem; margin-top: 0.6rem; padding-top: 0.8rem; border-top: 1px solid var(--c-line); }
  .menue-konto .knopf { width: 100%; }
  .menue-konto-kopf { display: grid; gap: 0.1rem; margin: 0; padding: 0.2rem 0.8rem 0.5rem; }
  .menue-konto-kopf b { font-weight: 900; }
  .menue-konto-kopf span { font-size: 0.88rem; font-weight: 600; color: var(--c-muted); overflow-wrap: anywhere; }
  .menue-konto > a:not(.knopf), .menue-konto .abmelden-knopf { min-height: 3rem; font-size: 1.05rem; }
}
@media (max-width: 480px) { .logo-text { font-size: 1.25rem; } }
@media (max-width: 340px) { .kopf .logo-text small { display: none; } }

/* Kurze Meldung, die von selbst wieder verschwindet (zum Beispiel die Begrüßung im Spiel) */
.toast { position: fixed; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom)); z-index: 80; width: max-content; max-width: calc(100vw - 2rem); padding: 0.85rem 1.2rem; border-radius: 1rem; background: var(--c-ink); color: var(--c-bg); font-weight: 800; font-size: 0.98rem; line-height: 1.4; text-align: center; box-shadow: var(--schatten-gross); transform: translateX(-50%); animation: toast-auf 0.25s ease-out; }
.toast.geht { opacity: 0; transition: opacity 0.4s; }
@keyframes toast-auf { from { opacity: 0; transform: translate(-50%, 0.8rem); } }

/* ---------- Konto: Anmelden, Konto erstellen, Übersicht ---------- */
.konto-seite { position: relative; padding: clamp(2rem, 5vw, 5rem) 0 clamp(4rem, 8vw, 7rem); }
.konto-seite::before { content: ""; position: absolute; inset: -6rem 0 0; z-index: -1; pointer-events: none; background: radial-gradient(38rem 26rem at 15% 20%, color-mix(in srgb, var(--c-sun) 26%, transparent), transparent 70%), radial-gradient(30rem 22rem at 92% 90%, color-mix(in srgb, var(--c-berry) 12%, transparent), transparent 70%); }
.konto-raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.konto-bild { margin-top: 2.2rem; max-width: 40rem; border-radius: 2rem; overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--schatten-gross); }
.konto-bild img { width: 100%; aspect-ratio: 360 / 200; object-fit: cover; }
.karte { width: 100%; max-width: 32rem; justify-self: center; padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: 2rem; background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--schatten-gross); }
.karte h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.karte > p { margin-top: 0.5rem; font-weight: 600; color: var(--c-muted); }
.umschalter { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; padding: 0.3rem; margin-bottom: 1.6rem; border-radius: 1.1rem; background: var(--c-surface-2); }
.umschalter button { min-height: 2.9rem; border: 0; border-radius: 0.85rem; background: none; color: var(--c-muted); font: 800 1rem Nunito, system-ui, sans-serif; cursor: pointer; transition: background 0.15s, color 0.15s; }
.umschalter button[aria-selected="true"], .umschalter button[aria-checked="true"] { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--schatten); }
.formular { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.formular[hidden], .ansicht[hidden] { display: none; }
.feld { display: grid; gap: 0.35rem; }
.feld label { font-weight: 800; font-size: 0.98rem; }
.feld small { font-weight: 600; font-size: 0.85rem; color: var(--c-muted); }
.feld input, .feld textarea { width: 100%; min-height: 3.25rem; padding: 0.7rem 1rem; border-radius: 0.9rem; border: 2px solid var(--c-line); background: var(--c-bg); color: var(--c-ink); font: 700 1.05rem Nunito, system-ui, sans-serif; transition: border-color 0.15s, box-shadow 0.15s; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-soft); }
.feld input::placeholder, .feld textarea::placeholder { color: color-mix(in srgb, var(--c-muted) 60%, transparent); font-weight: 600; }
.feld-passwort { position: relative; }
.feld-passwort input { padding-right: 6.4rem; }
.zeigen { position: absolute; right: 0.4rem; top: 0.4rem; min-height: 2.45rem; padding: 0 0.8rem; border: 0; border-radius: 0.65rem; background: var(--c-surface-2); color: var(--c-ink); font: 800 0.85rem Nunito, system-ui, sans-serif; cursor: pointer; }
.formular .knopf { width: 100%; }
.knopf[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.meldung { padding: 0.8rem 1rem; border-radius: 0.9rem; font-weight: 800; font-size: 0.98rem; }
.meldung[hidden] { display: none; }
.meldung.schlecht { background: color-mix(in srgb, var(--c-heart) 14%, var(--c-surface)); border: 2px solid var(--c-heart); }
.meldung.gut { background: color-mix(in srgb, var(--c-leaf) 14%, var(--c-surface)); border: 2px solid var(--c-leaf); }
/* In der Kontoübersicht steht die Meldung direkt unter der E-Mail-Adresse – mit etwas Luft dazwischen. */
#meldung-konto { margin-top: 0.9rem; }
.meldung.hinweis { margin: 0 0 1.1rem; background: var(--c-accent-soft); border: 2px solid color-mix(in srgb, var(--c-accent) 45%, transparent); font-weight: 700; }
.status-karte { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; padding: 1.1rem 1.2rem; border-radius: 1.25rem; background: var(--c-surface-2); }
.status-karte .status-bild { display: grid; place-items: center; flex: none; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--c-surface); font-size: 1.5rem; }
.status-karte b { display: block; font-weight: 900; }
.status-karte span { font-weight: 600; font-size: 0.95rem; color: var(--c-muted); }
.konto-knoepfe { display: grid; gap: 0.7rem; margin-top: 1.4rem; }
.konto-knoepfe .knopf { width: 100%; }
.leise { margin-top: 1.6rem; border-top: 1px solid var(--c-line); padding-top: 1rem; }
.leise summary { min-height: 2.75rem; display: flex; align-items: center; font-weight: 800; color: var(--c-muted); cursor: pointer; }
.knopf-gefahr { background: var(--c-heart); box-shadow: 0 6px 0 rgb(120 20 16 / 0.3); }
.formular-oben { margin-top: 0; }
.formular-text { margin: -0.3rem 0 0; font-weight: 600; color: var(--c-muted); line-height: 1.5; }
.formular-hinweis { margin: 0; text-align: center; font-size: 0.88rem; font-weight: 600; color: var(--c-muted); }
.formular-hinweis a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.text-knopf { justify-self: center; min-height: 2.75rem; padding: 0 0.9rem; border: 0; border-radius: 0.7rem; background: none; color: var(--c-accent-text); font: 800 0.95rem Nunito, system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-knopf:hover { background: var(--c-surface-2); }
.post-bild { display: block; margin-bottom: 0.8rem; font-size: 3rem; line-height: 1; }
#ansicht-post .formular-text { margin-top: 0.7rem; }
#ansicht-post .formular-text b { color: var(--c-ink); word-break: break-all; }
@media (max-width: 900px) { .konto-raster { grid-template-columns: 1fr; } .konto-text { text-align: center; } .konto-bild { display: none; } .konto-text .unter { margin-inline: auto; } }

/* ---------- Spielen: das Spiel über die ganze Seite ---------- */
.spielseite { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.spielleiste { display: flex; align-items: center; gap: 0.9rem; flex: none; min-height: 3.5rem; padding: 0.3rem var(--rand); background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.spielleiste .logo-text { font-size: 1.15rem; }
.spielleiste .logo-keim { font-size: 1.35rem; }
.wolke { display: inline-flex; align-items: center; gap: 0.45rem; margin-left: auto; padding: 0.35rem 0.8rem; border-radius: 99rem; background: var(--c-surface-2); font-size: 0.85rem; font-weight: 800; color: var(--c-muted); white-space: nowrap; }
.wolke i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c-leaf); }
.wolke[data-zustand="laeuft"] i { background: var(--c-sun); animation: puls 1.2s ease-out infinite; }
.wolke[data-zustand="fehler"] i { background: var(--c-heart); }
.leisten-knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 0.9rem; border-radius: 0.85rem; border: 2px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); font: 800 0.9rem Nunito, system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.leisten-knopf:hover { border-color: var(--c-accent); }
.spielfeld { position: relative; flex: 1; min-height: 0; background: var(--c-bg); }
.spielfeld iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--c-bg); }
.spielfeld iframe[hidden] { display: none; }
.spiel-hinweis { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; overflow: auto; }
.spiel-hinweis[hidden] { display: none; }
.spiel-hinweis .karte { text-align: center; }
.lade-keim { font-size: 3rem; display: inline-block; animation: wippen 1.2s ease-in-out infinite; }
@keyframes wippen { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-0.5rem) rotate(4deg); } }
.wolke { cursor: default; }
.wolke .wolke-mehr { margin-left: -0.3rem; font-weight: 700; }
.wolke .wolke-mehr:empty { display: none; }
.wolke[data-zustand="fehler"] { color: var(--c-ink); }
@media (max-width: 620px) {
  .spielleiste { gap: 0.5rem; }
  .spielleiste .logo-text small, .wolke .wolke-mehr, .nur-breit { display: none; }
  .wolke { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
  .spielleiste .konto-menue-name, .spielleiste .pfeil { display: none; }
  .spielleiste .konto-menue-knopf { padding: 0.25rem; }
}
@media (max-width: 360px) { .spielleiste .logo-text { display: none; } }

/* ---------- Für Suche und KI: Dachzeile über dem Leitsatz, Steckbrief mit Faktentabelle ---------- */
.dach { display: block; margin-bottom: 0.9rem; font-size: clamp(0.95rem, 1.25vw, 1.35rem); font-weight: 900; letter-spacing: 0.01em; line-height: 1.3; color: var(--c-accent-text); }
.steckbrief { padding-bottom: 0; }
.steckbrief-raster { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.antwort { max-width: 52rem; margin-top: 1.1rem; font-size: clamp(1.08rem, 1.15vw, 1.3rem); font-weight: 600; color: var(--c-muted); }
.antwort:first-of-type { color: var(--c-ink); }
.fakten { padding: clamp(1.2rem, 2vw, 2rem); border-radius: 2rem; background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--schatten); }
.fakten table { width: 100%; border-collapse: collapse; }
.fakten caption { padding-bottom: 0.8rem; text-align: left; font-weight: 900; font-size: 1.15rem; }
.fakten th, .fakten td { padding: 0.75rem 0; border-top: 1px solid var(--c-line); text-align: left; vertical-align: top; font-size: 0.98rem; }
.fakten th { width: 34%; padding-right: 1rem; font-weight: 900; white-space: nowrap; }
.fakten td { font-weight: 600; color: var(--c-muted); }
.fakten-stand { margin-top: 0.9rem; font-size: 0.85rem; font-weight: 700; color: var(--c-muted); }
@media (max-width: 900px) { .steckbrief-raster { grid-template-columns: 1fr; } .held-text .dach { text-align: center; } }
@media (max-width: 480px) { .fakten th { white-space: normal; width: 38%; } }

/* Sehr schmale Handys: Das längste Wort der Hauptüberschrift muss in eine Zeile passen. */
@media (max-width: 360px) { h1 { font-size: 2.05rem; } .dach { font-size: 0.9rem; } }

/* ---------- Anmelden mit Google ---------- */
.oder { margin-top: 1.4rem; }
.oder-text { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; font-size: 0.9rem; font-weight: 800; color: var(--c-muted); }
.oder-text::before, .oder-text::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.knopf-google { width: 100%; }
.g-zeichen { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; border: 1px solid var(--c-line); font-weight: 900; color: #4285f4; font-size: 0.95rem; }

/* ---------- Feedback geben (Spielseite) – nur vorhandene Bausteine: Karte, Formular, Umschalter, Knöpfe ---------- */
.feld textarea { min-height: 7.5rem; resize: vertical; line-height: 1.45; }
.umschalter-drei { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.umschalter-drei button { padding: 0 0.3rem; font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 400px) { .umschalter-drei button { padding: 0 0.15rem; font-size: 0.84rem; } }
.haken { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 600; font-size: 0.92rem; line-height: 1.4; color: var(--c-muted); cursor: pointer; }
.haken input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.1rem; accent-color: var(--c-accent); }
.feedback { width: min(32rem, calc(100vw - 1.5rem)); max-width: none; max-height: calc(100dvh - 1.5rem); padding: 0; border: 0; background: none; color: var(--c-ink); overflow: visible; }
.feedback::backdrop { background: color-mix(in srgb, var(--c-ink) 45%, transparent); }
.feedback .karte { max-width: none; max-height: calc(100dvh - 1.5rem); overflow-y: auto; }
.feedback .formular-hinweis a { color: var(--c-accent-text); }
.feedback-danke { text-align: center; }
.feedback-danke .formular-text { margin-top: 0.7rem; }
.feedback-danke[hidden], #form-feedback[hidden] { display: none; }
.feedback-frage { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 70; display: grid; gap: 0.8rem; width: min(30rem, calc(100vw - 1.5rem)); padding: 1rem 1.2rem; border-radius: 1.25rem; background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--schatten-gross); transform: translateX(-50%); animation: toast-auf 0.25s ease-out; }
.feedback-frage[hidden] { display: none; }
.feedback-frage p { margin: 0; font-weight: 600; line-height: 1.45; color: var(--c-muted); }
.feedback-frage b { color: var(--c-ink); font-weight: 900; }
.feedback-frage-knoepfe { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.feedback-frage-knoepfe .knopf { flex: 1 1 9rem; }
/* „Leben teilen“ (seit 0.17.0): dasselbe Fenster wie „Feedback geben“ – mit dem Bild, dem Text und den Diensten. */
.teilen-format { margin-bottom: 0; }
.teilen-bild { display: block; width: auto; max-width: 100%; height: min(27rem, 58dvh); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 1.4rem; box-shadow: var(--schatten-gross); background: #2d1b12; }
.teilen #teilen-format-hinweis { margin-top: -0.4rem; }
.teilen .feld textarea { min-height: 5.5rem; line-height: 1.4; resize: none; overflow: hidden; } /* wächst mit dem Text (teilen.js) */
.teilen #teilen-link { font-weight: 800; overflow-wrap: anywhere; }
.teilen-netze { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.teilen-mehr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.teilen-netze .knopf, .teilen-mehr .knopf { width: 100%; padding-inline: 0.5rem; text-align: center; }
.teilen-netze .knopf { white-space: nowrap; }
.teilen:focus, #teilen-titel:focus { outline: none; } /* der Blick geht beim Öffnen auf die Überschrift – ohne Rahmen und ohne dass am Handy die Tastatur aufgeht */
@media (min-width: 34rem) { .teilen-netze { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 22.5rem) { .teilen-mehr { grid-template-columns: 1fr; } }
#knopf-feedback { gap: 0.4rem; }
.konto-gemeinschaft { margin-top: 1.2rem; }
.konto-gemeinschaft a { color: var(--c-accent-text); }
/* Sprache wechseln, unten in der Karte der Kontoseite: „Deutsch · English“ – die aktuelle Sprache ist hervorgehoben. */
.konto-sprache { display: flex; justify-content: center; align-items: center; gap: 0.3rem; margin-top: 1.4rem; padding-top: 0.6rem; border-top: 1px solid var(--c-line); font-size: 0.9rem; font-weight: 700; color: var(--c-muted); }
.konto-sprache a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.6rem; border-radius: 0.7rem; color: var(--c-muted); text-decoration: underline; text-underline-offset: 3px; }
.konto-sprache a:hover { background: var(--c-surface-2); }
.konto-sprache a[aria-current] { color: var(--c-ink); font-weight: 900; text-decoration: none; }
@media (max-width: 620px) {
  #knopf-feedback { width: 2.75rem; padding: 0; font-size: 1.1rem; }
}

/* ---------- Fehlerseite (404) ---------- */
.fehlerseite .fehler-wege { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 0.55rem; font-weight: 700; }
