/*
 * Mythara: Splitterlande – Gestaltung von Login-Fenster (anmelden.html) und Landing-Page (willkommen.html), seit 24.11.2026.
 * Nach den Entwürfen: Landschaft mit Logo als Hintergrund, Tafeln aus dunklem Stein mit goldener Kante, Baum-Emblem oben, Ranken an den Ecken,
 * violette Hauptknöpfe mit Goldrahmen. Bilder in img/echtzeit/start/ (aus dem UI-Kit und dem Hintergrundbild).
 */
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --gold: #d9b25f; --gold-hell: #f3d895; --gold-dunkel: #8a6a2a;
  --stein: #1c1916; --stein-hell: #2a2622; --feld: #121010;
  --violett: #4b2a78; --violett-hell: #6c40a8; --violett-dunkel: #2c1748;
  --pergament: #efe5cf; --text: #e6dcc6; --leise: #b7aa8e;
  --titel: "Cinzel", "Trajan Pro", Georgia, serif; --schrift: "Cormorant Garamond", Georgia, serif; --klein: "Inter", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #120e14 url("../img/echtzeit/start/hintergrund.webp") center top / cover no-repeat fixed; color: var(--text); font-family: var(--schrift); -webkit-font-smoothing: antialiased; }
@media (max-width: 900px) { body { background-image: url("../img/echtzeit/start/hintergrund-klein.webp"); background-attachment: scroll; } }
.buehne { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
/* das Logo steckt im Hintergrundbild; hier nur Platz darüber (und ein lesbares Logo, wenn der Hintergrund am Handy beschnitten ist) */
.logo-platz { height: clamp(150px, 27vh, 280px); flex: none; }
.logo-text { display: none; }
/* hochkant (Handy): das Bild in voller Breite oben, darunter dunkel verlaufend – so bleibt das Logo ganz und einmalig sichtbar */
@media (max-aspect-ratio: 1/1) { body { background: linear-gradient(to bottom, rgba(18,14,20,0) 34vw, rgba(18,14,20,.92) 58vw, #120e14 80vw), url("../img/echtzeit/start/hintergrund-klein.webp") center top / 100% auto no-repeat, #120e14 url("../img/echtzeit/start/hintergrund-klein.webp") center / cover no-repeat; }
  .logo-platz { height: 30vw; } }
@media (max-aspect-ratio: 0/1) { .logo-text { display: block; text-align: center; margin: 4vh 0 3vh; } .logo-text b { display: block; font: 600 clamp(34px, 11vw, 56px)/1 var(--titel); color: var(--gold-hell); letter-spacing: .04em; text-shadow: 0 2px 0 #5a3d12, 0 0 18px rgba(0,0,0,.9); }
  .logo-text small { display: block; margin-top: 6px; font: 600 13px/1 var(--titel); letter-spacing: .32em; color: var(--gold); text-shadow: 0 1px 6px #000; } }

/* ───── Steintafel ───── */
.tafel { position: relative; background: linear-gradient(rgba(20,17,15,.55), rgba(14,12,11,.7)), url("../img/echtzeit/start/stein.webp") center / cover, var(--stein);
  border: 2px solid #4a3f33; border-radius: 22px; outline: 1px solid rgba(217,178,95,.55); outline-offset: -9px;
  box-shadow: 0 0 0 4px #2b241d, 0 0 0 6px rgba(217,178,95,.35), 0 26px 60px rgba(0,0,0,.65), inset 0 0 40px rgba(0,0,0,.6); }
.tafel .emblem { position: absolute; left: 50%; top: -46px; width: 92px; height: 96px; transform: translateX(-50%); background: url("../img/echtzeit/start/emblem.webp") center / contain no-repeat; filter: drop-shadow(0 4px 8px rgba(0,0,0,.7)); pointer-events: none; }
.tafel .ranke { position: absolute; width: 120px; height: 108px; background: url("../img/echtzeit/start/ranken.webp") left top / contain no-repeat; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.tafel .ranke.lo { left: -14px; top: -12px; } .tafel .ranke.ro { right: -14px; top: -12px; transform: scaleX(-1); }
.tafel .ranke.lu { left: -14px; bottom: -12px; transform: scaleY(-1); } .tafel .ranke.ru { right: -14px; bottom: -12px; transform: scale(-1, -1); }
@media (max-width: 560px) { .tafel .ranke { width: 78px; height: 70px; } .tafel .emblem { width: 70px; height: 74px; top: -36px; } }

/* ───── Felder und Knöpfe ───── */
.feld { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; background: linear-gradient(#0f0d0c, #171412); border: 1px solid #5d4c35; border-radius: 8px; box-shadow: inset 0 2px 8px rgba(0,0,0,.7); }
.feld:focus-within { border-color: var(--gold); box-shadow: inset 0 2px 8px rgba(0,0,0,.7), 0 0 0 2px rgba(217,178,95,.25); }
.feld svg { width: 20px; height: 20px; fill: var(--gold); flex: none; }
.feld input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--pergament); font: 400 21px var(--schrift); }
.feld input::placeholder { color: #8e8270; }
.feld .auge { background: none; border: 0; padding: 6px; cursor: pointer; display: grid; } .feld .auge svg { fill: #8e8270; } .feld .auge:hover svg { fill: var(--gold); }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; text-decoration: none; font: 600 22px/1 var(--titel); letter-spacing: .03em; color: var(--pergament);
  padding: 0 28px; height: 62px; border-radius: 10px; border: 2px solid var(--gold);
  background: radial-gradient(120% 140% at 50% 0%, var(--violett-hell), var(--violett) 45%, var(--violett-dunkel));
  box-shadow: 0 0 0 3px #2a1f12, 0 0 0 4px rgba(217,178,95,.6), inset 0 1px 0 rgba(255,255,255,.18), inset 0 -10px 20px rgba(0,0,0,.35), 0 10px 26px rgba(0,0,0,.55); text-shadow: 0 2px 3px rgba(0,0,0,.6); transition: filter .15s, transform .1s; }
.knopf:hover { filter: brightness(1.15); } .knopf:active { transform: translateY(1px); } .knopf:disabled { filter: grayscale(.5) brightness(.8); cursor: default; }
.knopf svg { width: 26px; height: 26px; fill: var(--gold-hell); }
.knopf.dunkel { height: 44px; font-size: 15px; padding: 0 18px; background: linear-gradient(#2a2420, #171412); border-width: 1px; box-shadow: 0 0 0 2px #201a14, 0 6px 14px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06); }
.knopf:focus-visible, .rund:focus-visible, .link:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 3px; }
.haken { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: 400 19px var(--schrift); color: var(--text); user-select: none; }
.haken input { appearance: none; width: 24px; height: 24px; margin: 0; border: 1px solid #6d5a3e; border-radius: 4px; background: #0f0d0c; box-shadow: inset 0 2px 4px rgba(0,0,0,.7); display: grid; place-items: center; cursor: pointer; }
.haken input:checked::after { content: ""; width: 12px; height: 7px; border: solid var(--gold-hell); border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.link { background: none; border: 0; padding: 4px; cursor: pointer; font: 400 18px var(--schrift); color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--gold-hell); }
.rund { width: 46px; height: 46px; display: grid; place-items: center; position: relative; cursor: pointer; border-radius: 9px; border: 1px solid var(--gold-dunkel); background: linear-gradient(#2a2420, #141110); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 10px rgba(0,0,0,.5); }
.rund svg { width: 22px; height: 22px; fill: var(--gold); } .rund:hover { border-color: var(--gold); } .rund:hover svg { fill: var(--gold-hell); }
.rund .zahl { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #c4261f; color: #fff; font: 600 11px/18px var(--klein); text-align: center; box-shadow: 0 0 0 2px #1c1916; }
.meldung { min-height: 1.3em; margin: 0; font: 400 17px var(--schrift); color: var(--leise); text-align: center; }
.meldung[data-art="fehler"] { color: #ff9a8a; } .meldung[data-art="ok"] { color: #a9e08a; }
.fuss { margin-top: auto; padding-top: 18px; font: 400 13px var(--klein); color: rgba(239,229,207,.75); text-shadow: 0 1px 3px #000; text-align: center; }
.fuss a { color: inherit; } .fuss a:hover { color: var(--gold-hell); }

/* ───── Querformat: genau ein Bildschirm, ohne Scrollen (start-passen.js skaliert die Tafel per zoom) ───── */
html.quer, html.quer body { height: 100%; overflow: hidden; }
html.quer .buehne { height: 100vh; height: 100dvh; min-height: 0; justify-content: flex-start; }
html.quer .logo-platz { height: clamp(110px, 24vh, 280px); }
html.quer .tafel { flex: none; margin-top: 46px; }
html.quer .fuss { margin-top: auto; padding-top: 6px; flex: none; }
/* flache Bildschirme (Handy quer): kein Freiraum fürs Logo (es steht im Hintergrund), kürzere Listen – damit die Tafel lesbar groß bleibt */
@media (max-height: 520px) { html.quer .logo-platz { height: 0; } html.quer .tafel { margin-top: 40px; } html.quer .liste { max-height: 150px; } html.quer .fuss { padding-top: 2px; } }
