/* iQuest – gemeinsamer Einstieg. Brücke zwischen Game (Gold, Bricolage, gemalte Bilder) und Classic (Raster, Navy, Manrope, Linien-Icons). */
@font-face { font-family: 'Bricolage'; src: url('schriften/bricolage-grotesque-var.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('schriften/manrope-latin-500-normal.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('schriften/manrope-latin-700-normal.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('schriften/manrope-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --grund: #F7F5EF;
  --papier: #FFFFFF;
  --tinte: #0C1638;
  --tinte-2: #4A5574;
  --tinte-3: #6B7390;
  --linie: #E4E0D5;
  --linie-2: #D2CCBD;
  --raster: rgba(12, 22, 56, .035);
  --gold: #B87A0C;
  --gold-hell: #F5C542;
  --gold-verlauf: linear-gradient(180deg, #FFE9A6 0%, #F5C542 48%, #D89A1A 100%);
  --gold-kante: #9A6408;
  --fokus: #2F6FEB;
  --schatten: 0 1px 2px rgba(12,22,56,.05), 0 10px 28px rgba(12,22,56,.07);
  --titel: 'Bricolage', 'Trebuchet MS', system-ui, sans-serif;
  --text: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background-color: var(--grund);
  background-image: linear-gradient(var(--raster) 1px, transparent 1px), linear-gradient(90deg, var(--raster) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--tinte); font: 500 16px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: 0 0 auto; }
.rahmen { width: min(1200px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }
.gold { color: var(--gold); }
.klein { margin: 0; font-size: 13px; color: var(--tinte-3); }
.vorzeile { margin: 0; font: 700 12px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* ---------- Knöpfe und Links ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font: 700 15px var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s ease, background-color .15s, border-color .15s, box-shadow .15s, filter .15s; }
.knopf .ic { width: 18px; height: 18px; }
.knopf--gold { background: var(--gold-verlauf); color: #1A1202; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 0 var(--gold-kante); }
.knopf--gold:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.knopf--gold:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 0 var(--gold-kante); }
.knopf--gold:disabled { filter: grayscale(.7); opacity: .5; cursor: not-allowed; }
.knopf--rand { border-color: var(--tinte); background: var(--papier); color: var(--tinte); }
.knopf--rand:hover { background: var(--tinte); color: #fff; }
.knopf--leise { background: transparent; color: var(--tinte-2); }
.knopf--leise:hover { color: var(--tinte); background: rgba(12,22,56,.05); }
.knopf--klein { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.knopf--voll { width: 100%; }
.knopf:focus-visible, .textlink:focus-visible, .bereich:focus-visible, .spiel:focus-visible, .reiter button:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.textlink { font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-color: var(--linie-2); text-underline-offset: 4px; cursor: pointer; }
.textlink:hover { text-decoration-color: var(--gold); }
.textlink--klein { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--tinte-2); }

/* ---------- Kopfzeile ---------- */
.kopf { position: relative; z-index: 10; }
.kopf__zeile { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.marke { display: inline-flex; flex-shrink: 0; align-items: center; gap: 16px; text-decoration: none; }
.marke img { flex-shrink: 0; }
.marke__game { height: 42px; width: auto; filter: drop-shadow(0 2px 3px rgba(80,50,0,.18)); }
.marke__linie { width: 1.5px; height: 30px; background: linear-gradient(180deg, transparent, var(--gold-hell) 20%, var(--gold) 80%, transparent); }
.marke__classic { height: 24px; width: auto; }
.kopf__rechts { display: flex; align-items: center; gap: 18px; }
.kopf__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.kopf__name .ic { color: var(--gold); }

/* ---------- Einstieg ---------- */
.ansicht { flex: 1; }
.start { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); align-items: start; padding: 12px 0 48px; }
.stoebern h1 { margin: 14px 0 0; font: 800 clamp(34px, 4.2vw, 54px)/1.04 var(--titel); letter-spacing: -.02em; text-wrap: balance; }
.einleitung { margin: 12px 0 0; font-size: 18px; color: var(--tinte-2); }
.abschnitt { margin: 34px 0 12px; font: 700 13px var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--tinte-3); }
.handy-knoepfe { display: none; }

.bereiche { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bereich { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid var(--linie); border-radius: 18px; background: var(--papier); box-shadow: var(--schatten); cursor: pointer; text-align: left; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .2s; }
.bereich:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(12,22,56,.05), 0 16px 34px rgba(12,22,56,.1); }
.bereich.ist-an { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,197,66,.35), 0 16px 34px rgba(12,22,56,.1); }
.bereich__bild { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #DDE3EE var(--bild) var(--pos, 50% 50%) / var(--zoom, 220%) no-repeat; }
.bereich__bild img { position: absolute; right: 8%; bottom: -3%; height: 84%; width: auto; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.bereich:hover .bereich__bild img:not(.bereich__schloss) { transform: translateY(-4px); }
.bereich__nebel::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 30% 35%, rgba(247,245,239,.7), transparent 70%), radial-gradient(60% 50% at 75% 70%, rgba(247,245,239,.6), transparent 70%); }
.bereich__bild img.bereich__schloss { position: absolute; z-index: 1; left: 50%; right: auto; top: 50%; bottom: auto; width: 26%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
.bereich__fuss { display: flex; align-items: center; gap: 10px; padding: 12px 14px 14px; }
.bereich__fuss .ic { color: var(--gold); }
.bereich__name { display: block; font: 800 17px/1.15 var(--titel); }
.bereich__info { display: block; font-size: 12.5px; color: var(--tinte-3); }
.bereich--bald { cursor: default; }
.bereich--bald:hover { transform: none; box-shadow: var(--schatten); }
.bereich--bald .bereich__name { color: var(--tinte-2); }
.bereich--bald .bereich__fuss .ic { color: var(--tinte-3); }

.spiele { margin-top: 18px; min-height: 92px; }
.spiele__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; animation: rein .35s cubic-bezier(.2,.7,.2,1) both; }
.spiel { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--linie); border-radius: 16px; background: var(--papier); cursor: pointer; text-align: left; transition: border-color .2s, transform .2s, box-shadow .2s; }
.spiel:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--schatten); }
.spiel img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold-hell); background: #EDE6D3; object-fit: cover; }
.spiel b { display: block; font: 800 17px/1.2 var(--titel); }
.spiel small { display: block; font-size: 13px; color: var(--tinte-3); }
.spiel .ic { color: var(--gold); }
.spiel--bald { cursor: default; grid-template-columns: 56px 1fr; border-style: dashed; background: transparent; }
.spiel--bald:hover { transform: none; box-shadow: none; border-color: var(--linie-2); }
.spiel__leer { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1.5px dashed var(--linie-2); color: var(--tinte-3); }
.spiel--bald b { color: var(--tinte-2); }
.spiele__hinweis { display: flex; align-items: center; gap: 10px; padding: 16px; border: 1px dashed var(--linie-2); border-radius: 16px; color: var(--tinte-3); font-size: 15px; }
@keyframes rein { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Konto-Karte ---------- */
.konto { position: sticky; top: 16px; }
.konto__karte { position: relative; margin-top: 40px; padding: 40px 26px 24px; border: 1px solid var(--linie); border-radius: 22px; background: var(--papier); box-shadow: var(--schatten); }
.konto__karte::before { content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold-verlauf); }
.konto__muenze { position: absolute; left: 50%; top: -30px; width: 58px; transform: translateX(-50%); filter: drop-shadow(0 4px 8px rgba(120,80,0,.25)); }
.konto__zu { display: none; }
.konto__hinweis { display: flex; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #FBF3DD; color: #5A4310; font-size: 14px; font-weight: 600; }
.konto.ist-gefragt .konto__karte { animation: anstupsen .6s ease; }
@keyframes anstupsen { 30% { transform: translateY(-6px); box-shadow: 0 0 0 4px rgba(245,197,66,.45), var(--schatten); } }
.reiter { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #F1EEE6; }
.reiter button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--tinte-2); font-weight: 700; font-size: 14px; cursor: pointer; }
.reiter button.ist-an { background: var(--papier); color: var(--tinte); box-shadow: 0 1px 3px rgba(12,22,56,.12); }
.formular { display: grid; gap: 14px; margin-top: 18px; animation: rein .3s ease both; }
.feld { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.feld input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--linie-2); border-radius: 10px; background: #FDFCF9; color: var(--tinte); font: 500 16px var(--text); }
.feld input:focus { outline: 3px solid rgba(47,111,235,.25); border-color: var(--fokus); }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.haken { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--tinte-2); cursor: pointer; }
.haken input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.willkommen { margin-top: 4px; animation: rein .35s ease both; }
.willkommen__gruss { margin: 0 0 6px; font: 800 24px/1.2 var(--titel); }
.vorteile { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px; }
.vorteile li { display: flex; align-items: center; gap: 10px; }
.vorteile .ic { color: var(--gold); }

/* ---------- Spielkarte ---------- */
.dialog { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; }
.dialog__hinter { position: absolute; inset: 0; background: rgba(12,22,56,.35); backdrop-filter: blur(3px); animation: blende .25s ease both; }
@keyframes blende { from { opacity: 0; } }
.dialog__box { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 22px; background: var(--papier); box-shadow: 0 30px 70px rgba(12,22,56,.25); animation: auf .35s cubic-bezier(.2,.8,.2,1.1) both; }
@keyframes auf { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dialog__zu { position: absolute; right: 12px; top: 12px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); cursor: pointer; }
.sk__bild { position: relative; min-height: 340px; overflow: hidden; background: var(--bild) var(--pos, 50% 50%) / cover no-repeat; }
.sk__bild::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12,22,56,.25)); }
.sk__bild img { position: absolute; z-index: 1; left: 50%; bottom: -4%; height: 86%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 12px 18px rgba(0,0,0,.4)); }
.sk__text { padding: 30px 28px 26px; }
.sk__text h2 { margin: 10px 0 8px; font: 800 30px/1.1 var(--titel); letter-spacing: -.01em; }
.sk__satz { margin: 0; color: var(--tinte-2); }
.sk__preis { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--linie); font-size: 14px; font-weight: 700; color: var(--tinte-2); }
.sk__knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- Lernweise: schräger Splitscreen (wie js/mode.js im bisherigen iQuest) ---------- */
html.ist-wahl, html.ist-wahl body { overflow: hidden; }
.split { position: fixed; inset: 0; z-index: 50; background: #0C1638; animation: blende .35s ease both; }
.split[hidden] { display: none; }
.split__haelfte { position: absolute; inset: 0; margin: 0; padding: 0; border: 0; cursor: pointer; color: inherit; font: inherit; text-align: left; background: none; transition: clip-path .55s cubic-bezier(.2,.7,.2,1); }
.split__haelfte--classic {
  clip-path: polygon(0 0, 100% 0, 0 100%); z-index: 1; color: var(--tinte);
  background:
    linear-gradient(rgba(12,22,56,.045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(12,22,56,.045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(12,22,56,.07) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(12,22,56,.07) 1px, transparent 1px) 0 0 / 120px 120px,
    #F3F5F9;
}
.split__haelfte--rpg {
  clip-path: polygon(100% 0, 100% 100%, 0 100%); z-index: 1; color: #FFF4D6;
  background: linear-gradient(160deg, rgba(6,9,23,.2), rgba(6,9,23,.8) 72%), var(--karte) center / cover no-repeat, #060917;
}
.split__inhalt { position: absolute; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, 42vw); }
.split__haelfte--classic .split__inhalt { top: 9vh; left: 7vw; align-items: flex-start; }
.split__haelfte--rpg .split__inhalt { bottom: 9vh; right: 7vw; align-items: flex-end; text-align: right; }
.split__logo { display: block; height: auto; }
.split__haelfte--classic .split__logo { width: min(200px, 40vw); margin-bottom: 8px; }
.split__haelfte--rpg .split__logo { width: min(260px, 52vw); margin-bottom: 4px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.55)); }
.split__name { font: 800 clamp(26px, 3vw, 36px)/1.1 var(--titel); letter-spacing: -.015em; }
.split__haelfte--rpg .split__name { background: linear-gradient(180deg, #FFF3C9 0%, #F8CF55 48%, #E2A72B 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 10px rgba(0,0,0,.55)); }
.split__text { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.5; font-weight: 500; }
.split__haelfte--classic .split__text { color: #4A5574; }
.split__haelfte--rpg .split__text { color: #F6F2E6; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.split__los { margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; }
.split__haelfte--classic .split__los { min-height: 46px; padding: 0 22px; border-radius: 10px; background: #0C1638; color: #fff; font: 700 15px/1.2 var(--text); }
.split__haelfte--rpg .split__los { min-height: 50px; padding: 0 24px; border-radius: 14px; color: #1A1202; font: 800 18px/1.1 var(--titel); background: linear-gradient(180deg, #FFE9A6 0%, #F5C542 46%, #C8860F 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 4px 0 #7E5200, 0 14px 30px rgba(245,197,66,.24); }
@media (hover: hover) {
  .split__haelfte--classic:hover { clip-path: polygon(0 0, 106% 0, 0 106%); z-index: 2; }
  .split__haelfte--rpg:hover { clip-path: polygon(100% -6%, 100% 100%, -6% 100%); z-index: 2; }
}
.split__haelfte:focus-visible { outline: none; }
.split__haelfte:focus-visible .split__los { outline: 3px solid #8FD0FF; outline-offset: 3px; }
.split__mitte {
  position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none;
  display: grid; gap: 4px; justify-items: center; width: max-content; max-width: min(480px, 88vw); padding: 18px 30px 18px; border-radius: 20px;
  background: #0C1638; color: #fff; text-align: center; box-shadow: 0 0 0 1px #C9A24A, 0 14px 36px rgba(0,0,0,.35); transition: opacity .3s ease;
}
.split__zeile { font: 700 11.5px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.split__spiel { font: 800 clamp(30px, 3.4vw, 42px)/1.05 var(--titel); letter-spacing: -.015em; background: linear-gradient(180deg, #FFF3C9 0%, #F8CF55 48%, #E2A72B 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding: 2px 0 4px; }
.split__titel { margin: 6px 0 0; padding-top: 10px; border-top: 1px solid rgba(201,162,74,.45); font: 700 clamp(16px, 1.6vw, 19px)/1.25 var(--text); }
.split__hinweis { margin: 0; font: 500 13px/1.45 var(--text); color: rgba(255,255,255,.78); }
.split__zurueck { position: absolute; z-index: 3; top: 20px; right: 24px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--linie-2); border-radius: 999px; background: rgba(255,255,255,.85); color: var(--tinte); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; backdrop-filter: blur(4px); }
.split__zurueck:hover { background: #fff; }
.split.ist-gewaehlt .split__mitte, .split.ist-gewaehlt .split__zurueck { opacity: 0; pointer-events: none; transition: opacity .25s; }
.split.ist-gewaehlt .split__los { opacity: 0; transition: opacity .2s; }
.split.ist-gewaehlt .split__inhalt { opacity: 0; transition: opacity .3s ease .25s; }
.split.ist-gewaehlt--klassisch .split__haelfte--classic,
.split.ist-gewaehlt--rpg .split__haelfte--rpg { clip-path: polygon(-50% -50%, 150% -50%, 150% 150%, -50% 150%); z-index: 4; transition-duration: .8s; cursor: default; }
/* Organisation – nur bei § 34i GewO, einmal, im Look der gewählten Lernweise */
.org { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 20px; }
.org[hidden] { display: none; }
.org__box { width: min(480px, 100%); padding: 26px 26px 22px; border-radius: 22px; background: #fff; color: var(--tinte); box-shadow: 0 0 0 1px var(--linie), 0 24px 60px rgba(12,22,56,.22); animation: auftauchen .45s cubic-bezier(.2,.7,.2,1) both; }
.org--rpg .org__box { background: #0E1530; color: #F6F2E6; box-shadow: 0 0 0 1px rgba(245,197,66,.55), 0 24px 60px rgba(0,0,0,.55); }
.org__vorzeile { margin: 0; font: 800 14px/1.2 var(--text); color: var(--gold); }
.org--rpg .org__vorzeile { color: #F5C542; }
.org__titel { margin: 8px 0 18px; font: 800 23px/1.2 var(--text); letter-spacing: -.01em; }
.org--rpg .org__titel { font-family: var(--titel); }
.org__wahl { display: grid; gap: 10px; }
.wahl { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: 1px solid var(--linie-2); border-radius: 14px; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s; }
.wahl:has(input:checked) { border-color: var(--gold); background: #FFF8E4; }
.wahl input { width: 18px; height: 18px; margin: 0; accent-color: #C8860F; }
.org--rpg .wahl { border-color: rgba(255,255,255,.18); }
.org--rpg .wahl:has(input:checked) { border-color: #F5C542; background: rgba(245,197,66,.12); }
.org__fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.org--rpg .knopf--leise { color: #F6F2E6; }

/* ---------- Übergang ins Spiel ---------- */
.uebergang { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: #F3F5F9; animation: blende .4s ease both; }
.uebergang.rpg { background: radial-gradient(60% 60% at 50% 45%, #18245a, #060917 70%); color: #F6F2E6; }
.uebergang__innen { display: grid; justify-items: center; gap: 18px; padding: 24px; text-align: center; }
.uebergang__logo { height: 120px; width: auto; }
.uebergang.rpg .uebergang__logo--klassisch, .uebergang:not(.rpg) .uebergang__logo--rpg { display: none; }
.uebergang.rpg .uebergang__logo--rpg { filter: drop-shadow(0 10px 24px rgba(0,0,0,.6)); }
.uebergang__logo--klassisch { height: 70px; }
.uebergang__text { margin: 0; font: 700 12px var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--tinte-3); }
.uebergang.rpg .uebergang__text { color: var(--gold-hell); }
.uebergang__balken { width: 220px; height: 4px; border-radius: 4px; background: rgba(127,127,127,.25); overflow: hidden; }
.uebergang__balken i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #C8860F, #F5C542, #FFE9A6); animation: laden 1.6s ease forwards; }
.uebergang:not(.rpg) .uebergang__balken i { background: var(--tinte); }
@keyframes laden { to { width: 100%; } }
.uebergang__ende { display: grid; justify-items: center; gap: 10px; animation: rein .4s ease both; }
.uebergang__titel { margin: 0; font: 800 28px/1.2 var(--titel); }
.uebergang__klein { margin: 0 0 8px; max-width: 420px; font-size: 15px; opacity: .75; }
.uebergang.rpg .knopf--rand { background: transparent; color: #F6F2E6; border-color: rgba(246,242,230,.6); }

/* ---------- Fuß und Meldung ---------- */
.fuss { border-top: 1px solid var(--linie); }
.fuss__zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-block: 18px; font-size: 13px; color: var(--tinte-3); }
.fuss nav { display: flex; gap: 18px; }
.fuss a { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fuss__vorschau { display: flex; gap: 18px; margin-left: auto; }
.meldung { position: fixed; z-index: 80; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(480px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid var(--linie-2); border-radius: 14px; background: var(--papier); box-shadow: var(--schatten); font-size: 15px; font-weight: 600; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: .3s cubic-bezier(.2,.8,.2,1); }
.meldung.ist-an { opacity: 1; transform: translate(-50%, 0); }
.meldung .ic { color: var(--gold); }

/* ---------- Intro: beide Logos, Goldlinie, gemeinsam in die Kopfzeile ---------- */
.intro { position: fixed; inset: 0; z-index: 100; display: none; background-color: var(--grund); background-image: linear-gradient(var(--raster) 1px, transparent 1px), linear-gradient(90deg, var(--raster) 1px, transparent 1px); background-size: 32px 32px; cursor: pointer; }
.mit-intro .intro { display: block; }
.mit-intro .kopf .marke, .mit-intro .start > *, .mit-intro .fuss { opacity: 0; }
.intro__logo { position: absolute; top: 50%; opacity: 0; will-change: transform, opacity; }
.intro__logo--game { right: calc(50% + 36px); height: clamp(64px, 9vw, 116px); transform: translateY(-50%) translateX(-24px); filter: drop-shadow(0 4px 8px rgba(80,50,0,.2)); }
.intro__logo--classic { left: calc(50% + 36px); height: clamp(38px, 5.2vw, 66px); transform: translateY(-50%) translateX(24px); }
.intro__linie { position: absolute; left: 50%; top: 50%; width: 2px; height: 0; transform: translate(-50%, -50%); background: linear-gradient(180deg, transparent, var(--gold-hell) 20%, var(--gold) 80%, transparent); }
.intro__weiter { position: absolute; right: 20px; bottom: 20px; padding: 8px 14px; border: 1px solid var(--linie-2); border-radius: 999px; background: var(--papier); color: var(--tinte-2); font: 600 13px var(--text); cursor: pointer; opacity: 0; transition: opacity .4s 1s; }
.intro.laeuft .intro__weiter { opacity: 1; }
.einblenden > * { animation: auftauchen .7s cubic-bezier(.2,.7,.2,1) both; }
.einblenden > *:nth-child(2) { animation-delay: .12s; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Handy ---------- */
@media (max-width: 900px) {
  .start { grid-template-columns: 1fr; padding-top: 4px; }
  .kopf__zeile { min-height: 70px; }
  .marke { gap: 10px; }
  .marke__game { height: 32px; } .marke__linie { height: 22px; } .marke__classic { height: 18px; }
  #kopfGast { display: none; }
  .kopf__name, .kopf__text { display: none; }
  .handy-knoepfe { display: flex; gap: 10px; margin-top: 22px; }
  .handy-knoepfe .knopf { flex: 1; }
  .bereiche { grid-template-columns: 1fr 1fr; gap: 12px; }
  .konto { position: fixed; inset: 0; z-index: 45; display: none; place-items: end center; padding: 0; background: rgba(12,22,56,.35); }
  .konto.ist-offen { display: grid; }
  .konto__karte { width: 100%; margin: 0; border-radius: 22px 22px 0 0; padding-top: 44px; max-height: 92vh; overflow: auto; animation: hoch .35s cubic-bezier(.2,.8,.2,1) both; }
  .konto__muenze { top: 8px; width: 34px; }
  .konto__zu { position: absolute; right: 12px; top: 10px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #F1EEE6; cursor: pointer; }
  @keyframes hoch { from { transform: translateY(40px); opacity: 0; } }
  .dialog { place-items: end center; padding: 0; }
  .dialog__box { grid-template-columns: 1fr; border-radius: 22px 22px 0 0; max-height: 92vh; }
  .sk__bild { min-height: 200px; }
  .fuss__vorschau { margin-left: 0; }
  .intro__logo--game { right: auto; left: 50%; top: 40%; transform: translate(-50%, -50%) translateY(-12px); }
  .intro__logo--classic { left: 50%; top: 60%; transform: translate(-50%, -50%) translateY(12px); }
  .intro__linie { width: 0; height: 2px !important; background: linear-gradient(90deg, transparent, var(--gold-hell) 20%, var(--gold) 80%, transparent); }
}
/* Hochformat: flachere Schräge, Classic oben links, RPG unten rechts. */
@media (max-width: 700px) {
  .split__haelfte--classic { clip-path: polygon(0 0, 100% 0, 100% 40%, 0 60%); }
  .split__haelfte--rpg { clip-path: polygon(100% 40%, 100% 100%, 0 100%, 0 60%); }
  .split__inhalt { max-width: 78vw; gap: 7px; }
  .split__haelfte--classic .split__inhalt { top: 8vh; left: 6vw; }
  .split__haelfte--rpg .split__inhalt { bottom: 5vh; right: 6vw; }
  .split__haelfte--classic .split__logo { width: 140px; }
  .split__haelfte--rpg .split__logo { width: 180px; }
  .split__text { font-size: 14px; }
  .split__los { min-height: 42px; }
  .split__zurueck { top: 12px; right: 12px; min-height: 36px; padding: 0 12px; font-size: 13px; }
  .split__mitte { padding: 14px 20px; } .split__spiel { font-size: 26px; } .split__hinweis { font-size: 12px; }
  .split__haelfte--classic .split__inhalt { top: 6vh; }
  .org__fuss { flex-direction: column-reverse; align-items: stretch; }
}
@media (max-width: 700px) and (hover: hover) {
  .split__haelfte--classic:hover { clip-path: polygon(0 0, 100% 0, 100% 44%, 0 64%); }
  .split__haelfte--rpg:hover { clip-path: polygon(100% 36%, 100% 100%, 0 100%, 0 56%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
