/* Der Ausweg – Escape-Welten: Aussehen von Menue, Anzeige und Fenstern.
   Bewusst ohne fremde Schriften (kein CDN), nur Systemschriften. */

* { box-sizing: border-box; }

html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #0b0d10; color: #e8e6e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

#buehne { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Menue ---------- */
#menue {
  position: fixed; inset: 0; z-index: 30; overflow-y: auto; scroll-behavior: smooth;
  background: #0b0d10; padding: 0 0 40px;
}
/* Warum width/margin statt Flexbox: Die Startseite ist jetzt lang und scrollt;
   der Inhalt soll mittig stehen, ohne dass der Kopf mit dem Foto eingeengt wird. */
.menue-innen { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.kicker { letter-spacing: .35em; text-transform: uppercase; font-size: 12px; color: #c9a45c; margin: 0 0 8px; }
#menue h1 { font-size: clamp(48px, 12vw, 104px); margin: 0; letter-spacing: .08em; font-weight: 800; line-height: 1; }
.unterzeile { color: #c8ccd2; font-size: 18px; margin: 14px 0 28px; }
.klein { color: #6f7781; font-size: 13px; line-height: 1.6; margin-top: 30px; }
#menue a.knopf { display: inline-block; text-decoration: none; }

/* Kopf mit Szenenfoto: Bild abgedunkelt, damit die Schrift lesbar bleibt */
.held { position: relative; min-height: 72vh; display: flex; align-items: flex-end; overflow: hidden; }
.held-bild { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(.9); transform: scale(1.04); }
.held::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,16,.25) 0%, rgba(11,13,16,.55) 55%, #0b0d10 100%); }
.held-text { position: relative; z-index: 1; padding-top: 12vh; padding-bottom: 7vh; }
.held-knoepfe .knopf { margin-top: 4px; }

.abschnitt { margin: 56px 0 0; }
.ueber { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: #c9a45c; margin: 0 0 18px; font-weight: 700; }

/* Vier Schritte "So funktioniert's" */
.schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.schritt { background: #12161b; border: 1px solid #232a32; border-radius: 10px; padding: 18px 18px 6px; }
.schritt > b { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: #c9a45c; color: #14110a; font-size: 15px; }
.schritt h3 { margin: 12px 0 6px; font-size: 18px; }
.schritt p { margin: 0 0 14px; color: #aab2bb; line-height: 1.55; font-size: 15px; }

/* Bildergalerie: am Handy waagerecht wischbar, am Rechner ein Raster */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.galerie figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: #12161b; aspect-ratio: 16 / 9; }
.galerie img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.galerie figure:hover img { transform: scale(1.04); }
.galerie figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px; font-size: 13px; color: #e8e6e0; background: linear-gradient(transparent, rgba(0,0,0,.75)); }

/* Fakten in Zahlen */
.fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fakten > div { border-left: 3px solid #c9a45c; padding: 6px 0 6px 14px; }
.fakten b { display: block; font-size: 34px; font-weight: 800; color: #e8e6e0; }
.fakten span { color: #9aa3ad; font-size: 14px; line-height: 1.5; }

/* Weltkarten mit Vorschaubild */
#weltliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.weltkarte {
  border: 1px solid #2a323c; background: #12161b; border-radius: 10px;
  padding: 0 18px 16px; margin: 0; overflow: hidden; display: flex; flex-direction: column;
}
.weltkarte .bild { margin: 0 -18px 14px; aspect-ratio: 16 / 9; background: #0b0d10; position: relative; }
.weltkarte .bild img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .3s; }
.weltkarte .nr { color: #c9a45c; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.weltkarte h2 { margin: 6px 0 6px; font-size: 22px; }
.weltkarte p { margin: 0 0 14px; color: #aab2bb; line-height: 1.5; font-size: 15px; flex: 1; }
.weltkarte .knopf { align-self: flex-start; }
.weltkarte.bald { opacity: .5; border-style: dashed; }
.weltkarte.bald p { margin: 0; }
/* Nicht gekaufte Welten: Foto grau und dunkel, Schloss darueber */
.weltkarte.gesperrt .bild img { filter: grayscale(1) brightness(.45); }
.weltkarte.gesperrt .bild::after { content: "🔒"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; opacity: .85; }

@media (max-width: 640px) {
  .galerie { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .galerie figure { scroll-snap-align: start; }
  .held { min-height: 64vh; }
  .abschnitt { margin-top: 40px; }
}
.knopf {
  background: #c9a45c; color: #14110a; border: 0; border-radius: 6px;
  padding: 12px 22px; font-weight: 700; font-size: 16px; margin: 0 10px 6px 0;
}
.knopf.zweit { background: transparent; color: #e8e6e0; border: 1px solid #47505c; }
.knopf:active { transform: translateY(1px); }

#laden { position: fixed; inset: 0; z-index: 40; background: #0b0d10; display: flex; align-items: center; justify-content: center; }
#laden[hidden], #menue[hidden], #hud[hidden], #overlay[hidden], #pause[hidden], #stick[hidden] { display: none; }
.lade-text { color: #9aa3ad; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; }

/* ---------- Anzeige im Spiel ---------- */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#hud button, #inventar { pointer-events: auto; }

#uhr {
  position: absolute; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; letter-spacing: .06em;
  padding: 6px 16px; border-radius: 6px; background: rgba(8, 10, 12, .6); border: 1px solid rgba(255,255,255,.12);
  transition: color .3s, border-color .3s;
}
#uhr.knapp { color: #ff6b57; }
#uhr.strafe { color: #ff3b30; border-color: #ff3b30; }

#knoepfe { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; display: flex; gap: 8px; }
#knoepfe button {
  width: 44px; height: 44px; border-radius: 8px; font-size: 20px;
  background: rgba(8, 10, 12, .6); border: 1px solid rgba(255,255,255,.14);
}

#fadenkreuz {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: rgba(255,255,255,.55); transition: transform .12s, background .12s;
}
#fadenkreuz.aktiv { transform: scale(2.2); background: #c9a45c; }

#zieltext {
  position: absolute; left: 50%; top: calc(50% + 26px); transform: translateX(-50%);
  font-size: 15px; padding: 4px 12px; border-radius: 4px; background: rgba(8,10,12,.65);
  white-space: nowrap; opacity: 0; transition: opacity .12s;
}
#zieltext.an { opacity: 1; }

#meldung {
  position: absolute; left: 50%; bottom: 118px; transform: translateX(-50%);
  width: min(680px, 92vw); text-align: center; font-size: 17px; line-height: 1.45;
  padding: 12px 18px; border-radius: 8px; background: rgba(8,10,12,.82); border: 1px solid rgba(255,255,255,.1);
  opacity: 0; transition: opacity .25s; 
}
#meldung.an { opacity: 1; }

#inventar {
  position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; gap: 8px; max-width: 96vw; flex-wrap: wrap; justify-content: center;
}
.platz {
  position: relative; min-width: 76px; padding: 8px 10px 6px; text-align: center; border-radius: 8px;
  background: rgba(8,10,12,.7); border: 1px solid rgba(255,255,255,.14); cursor: pointer;
}
.platz .bild { font-size: 26px; line-height: 1.1; }
.platz .name { font-size: 11px; color: #b9c0c8; margin-top: 2px; }
.platz .taste { position: absolute; top: 3px; left: 6px; font-size: 10px; color: #7b848e; }
.platz.gewaehlt { border-color: #c9a45c; background: rgba(201,164,92,.22); }

#stick {
  position: absolute; left: 26px; bottom: 120px; width: 110px; height: 110px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05);
}
#stickknopf { position: absolute; left: 35px; top: 35px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.3); }

/* ---------- Fenster ---------- */
#overlay {
  position: fixed; inset: 0; z-index: 20; background: rgba(4,5,6,.78);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
#overlayKasten {
  width: min(680px, 100%); max-height: 92vh; overflow-y: auto;
  background: #14181d; border: 1px solid #2f3843; border-radius: 10px; padding: 22px;
  -webkit-user-select: text; user-select: text;
}
#overlayKasten.wackeln { animation: wackeln .35s; }
@keyframes wackeln { 20% { transform: translateX(-9px);} 40% { transform: translateX(9px);} 60% { transform: translateX(-6px);} 80% { transform: translateX(6px);} }
#overlayZu { margin-top: 18px; background: transparent; border: 1px solid #47505c; border-radius: 6px; padding: 10px 20px; }
#overlayInhalt h2 { margin: 0 0 12px; font-size: 22px; }
#overlayInhalt h3 { margin: 18px 0 8px; font-size: 15px; color: #c9a45c; text-transform: uppercase; letter-spacing: .12em; }
#overlayInhalt p { line-height: 1.6; margin: 0 0 12px; }
.grau { color: #8d96a0; font-size: 14px; }

/* Dokumente sehen aus wie das, was sie sind */
.dok { border-radius: 4px; padding: 22px 24px; line-height: 1.6; font-size: 16px; }
.dok h2 { font-size: 19px; }
.dok.papier { background: #e9e4d4; color: #23211c; font-family: "Courier New", Courier, monospace; }
.dok.zettel { background: #d8cfae; color: #2a2417; font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; font-size: 18px; transform: rotate(-.6deg); }
.dok.gelb { background: #f2de6b; color: #2a2417; font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; font-size: 19px; max-width: 300px; }
.dok.buch { background: #f1ead8; color: #2a251c; font-family: Georgia, "Times New Roman", serif; }
.dok table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 8px 0; }
.dok th, .dok td { border: 1px solid #8a8472; padding: 5px 7px; text-align: left; }
.dok th { background: rgba(0,0,0,.08); }
.dok .hand { font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; color: #1a3a8a; font-size: 17px; }
.dok .rot { color: #a3221a; }
.dok s { color: #7a7566; }

/* Zahlenschloss */
.schloss { display: flex; gap: 12px; justify-content: center; margin: 20px 0 16px; }
.walze { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.walze button { width: 56px; height: 40px; border-radius: 6px; background: #222932; border: 1px solid #3a4450; font-size: 16px; }
.walze .ziffer {
  width: 56px; height: 68px; border-radius: 6px; background: #0c0f12; border: 1px solid #c9a45c;
  display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.mitte { text-align: center; }

/* Sicherungskasten */
.schalterreihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.schalter { padding: 12px 8px; border-radius: 8px; background: #1b2128; border: 1px solid #3a4450; text-align: center; }
.schalter .nr { font-weight: 700; font-size: 18px; }
.schalter .txt { font-size: 12px; color: #aab2bb; min-height: 30px; margin: 4px 0 8px; }
.schalter .hebel { display: inline-block; width: 46px; height: 24px; border-radius: 12px; background: #39424d; position: relative; }
.schalter .hebel::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #c8ced6; transition: left .15s; }
.schalter.an { border-color: #5fbf6a; }
.schalter.an .hebel { background: #2f7d3a; }
.schalter.an .hebel::after { left: 25px; }
#schaltermeldung { min-height: 48px; padding: 10px 12px; border-radius: 6px; background: #0c0f12; color: #d7d2c4; line-height: 1.5; }

.liste button { display: block; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 8px; border-radius: 6px; background: #1b2128; border: 1px solid #3a4450; }
.tipp { padding: 10px 14px; border-left: 3px solid #c9a45c; background: #1b2128; margin-bottom: 10px; line-height: 1.5; }

#pause { position: fixed; inset: 0; z-index: 25; background: rgba(4,5,6,.7); display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; }
.pause-innen h2 { font-size: 40px; margin: 0 0 6px; letter-spacing: .1em; }
.pause-innen p { color: #aab2bb; margin: 0 0 22px; }
#btnMenue { background: transparent; border: 1px solid #47505c; border-radius: 6px; padding: 10px 20px; }

@media (max-width: 640px) {
  #uhr { font-size: 20px; }
  .platz { min-width: 62px; padding: 6px 6px 4px; }
  .platz .bild { font-size: 22px; }
  .platz .taste { display: none; }
  #meldung { font-size: 15px; bottom: 170px; }
  .schalterreihe { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Konto und Bestenliste ---------- */
#kontoleiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 20px; color: #9aa3ad; font-size: 14px; }
#kontoleiste span { flex: 1 1 100%; }
#kontoleiste:empty { display: none; }
.knopf.klein { padding: 8px 14px; font-size: 14px; margin: 0; }
.bestzeit { color: #6fcf7c; font-size: 13px; margin: -2px 0 10px; }
.klein a { color: #8d96a0; }
#kontofenster { position: fixed; inset: 0; z-index: 50; background: rgba(4,5,6,.8); display: flex; align-items: center; justify-content: center; padding: 16px; }
#kontofenster[hidden] { display: none; }
#kontofenster .kasten { width: min(520px, 100%); max-height: 92vh; overflow-y: auto; background: #14181d; border: 1px solid #2f3843; border-radius: 10px; padding: 22px; -webkit-user-select: text; user-select: text; }
#kontofenster h2 { margin: 0 0 14px; }
#kontofenster h3 { margin: 22px 0 8px; font-size: 15px; color: #c9a45c; text-transform: uppercase; letter-spacing: .12em; }
#kontofenster .zu { margin-top: 18px; background: transparent; border: 1px solid #47505c; border-radius: 6px; padding: 10px 20px; }
.kontoform label { display: block; margin-bottom: 12px; color: #aab2bb; font-size: 14px; }
.kontoform input, .weltwahl {
  display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border-radius: 6px; font: inherit; font-size: 16px;
  background: #0c0f12; color: #e8e6e0; border: 1px solid #3a4450;
}
.weltwahl { margin-bottom: 14px; }
.kontoform .knopf { margin-top: 6px; }
.fehler { color: #ff6b57; margin: 6px 0; }
#kontofenster table { width: 100%; border-collapse: collapse; font-size: 15px; }
#kontofenster td { padding: 7px 6px; border-bottom: 1px solid #232a32; }
#kontofenster td:first-child { width: 36px; color: #8d96a0; }
#kontofenster td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
#kontofenster tr.ich td { color: #c9a45c; font-weight: 700; }
.kontoform .haken { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.kontoform .haken input { display: inline-block; width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; }
#kontofenster a { color: #c9a45c; }
.weltkarte.gesperrt h2, .weltkarte.gesperrt p { opacity: .6; }
.kontoform .angebot { padding: 12px; border: 1px solid #3a4450; border-radius: 8px; background: #1b2128; color: #e8e6e0; font-size: 15px; }

/* ---------- Einstellungen im Menue ---------- */
#einstellungen { display: grid; gap: 10px; }
.einstellung { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid #2a323c; border-radius: 8px; background: #12161b; cursor: pointer; line-height: 1.5; color: #aab2bb; }
.einstellung input { width: 20px; height: 20px; margin-top: 2px; accent-color: #c9a45c; flex: none; }
.einstellung b { color: #e8e6e0; }

/* "Als App aufs Handy" (js/installieren.js) */
#installieren[hidden], #installknopf[hidden] { display: none; }
/* Weltkarten ab 6 und die Teaser-Karte werden per hidden ein-/ausgeblendet (js/konto.js: alleZeigen) */
.weltkarte[hidden] { display: none; }
.installkasten { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid #c9a45c55; border-radius: 10px; background: #12161b; }
.installkasten img { border-radius: 14px; flex: none; }
.installkasten p { margin: 0 0 12px; line-height: 1.55; color: #c8ccd2; }
.installkasten .knopf { margin: 0; }

/* Anmelden mit Google / Apple (18.11.2026) – helle Knöpfe wie bei den Anbietern üblich,
   damit man sie sofort erkennt; volle Breite, gut zu treffen am Handy */
#kontofenster .extern { margin: 4px 0 14px; }
#kontofenster .extern .knopf { display: block; width: 100%; box-sizing: border-box; text-align: center; text-decoration: none; margin: 0 0 10px; }
#kontofenster .extern-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
#kontofenster .extern-apple { background: #000; color: #fff; border: 1px solid #555; }
#kontofenster .extern .klein { font-size: 12px; line-height: 1.45; margin: 4px 0 10px; }
#kontofenster .extern .oder { text-align: center; color: #7d8790; font-size: 13px; margin: 14px 0 4px; border-top: 1px solid #2c343c; padding-top: 12px; }

/* Bewegte Vorschau auf den Weltkarten + Trailer (18.11.2026, js/vorschau.js)
   Video liegt genau über dem Standbild und blendet erst ein, wenn es wirklich läuft */
.weltkarte .bild video.vorschau { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s, filter .3s; }
.weltkarte .bild video.vorschau.laeuft { opacity: 1; }
.weltkarte.gesperrt .bild video.vorschau { filter: grayscale(1) brightness(.45); }
.weltkarte.gesperrt .bild::after { pointer-events: none; z-index: 1; }
.weltkarte .trailer-knopf {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(0, 0, 0, .65); color: #e8e6e0; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; letter-spacing: .05em; cursor: pointer;
}
.weltkarte .trailer-knopf:hover { background: rgba(0, 0, 0, .85); border-color: #c9a45c; }
#trailerfenster { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
#trailerfenster[hidden] { display: none; }
#trailerfenster .rahmen { position: relative; height: min(92vh, 960px); aspect-ratio: 9 / 16; max-width: 96vw; }
#trailerfenster video { width: 100%; height: 100%; background: #000; border-radius: 10px; }
#trailerfenster .zu { position: absolute; top: -6px; right: -6px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #555; background: #111; color: #fff; font-size: 18px; cursor: pointer; }

/* Zu zweit spielen (18.11.2026, js/team.js): Wartefenster wie das Konto-Fenster, Chat unten links */
#teamfenster { position: fixed; inset: 0; z-index: 55; background: rgba(4,5,6,.8); display: flex; align-items: center; justify-content: center; padding: 16px; }
#teamfenster[hidden] { display: none; }
#teamfenster .kasten { width: min(480px, 100%); max-height: 92vh; overflow-y: auto; background: #14181d; border: 1px solid #2f3843; border-radius: 10px; padding: 22px; }
#teamfenster h2 { margin: 0 0 14px; }
#teamfenster .zu { margin-top: 18px; background: transparent; border: 1px solid #47505c; border-radius: 6px; padding: 10px 20px; color: inherit; }
#teamfenster .teamcode { font-size: 40px; font-weight: 800; letter-spacing: .18em; text-align: center; color: #c9a45c; margin: 10px 0; }
#teamfenster .teamlink { width: 100%; box-sizing: border-box; padding: 10px; background: #0d1014; color: #c8cdd2; border: 1px solid #2f3843; border-radius: 6px; font-size: 13px; }
#teamfenster .knoepfe { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
#teamfenster .fehler { color: #e0705f; }
.weltkarte [data-team] { margin-top: 8px; }
/* Chat: über dem Spielbild, aber unter Fenstern; die Zeilen lassen Klicks durch */
#teamchat { position: fixed; left: 12px; top: 70px; z-index: 15; width: min(360px, 70vw); font-size: 14px; }
#teamchat[hidden] { display: none; }
#teamchat .zeilen { pointer-events: none; }
#teamchat .zeile { background: rgba(0,0,0,.55); color: #ece7de; padding: 4px 8px; border-radius: 6px; margin-top: 4px; transition: opacity 1.5s; }
#teamchat .zeile.alt { opacity: 0; }
#teamchat .zeile b { color: #c9a45c; }
#teamchat input { width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px; background: rgba(10,12,15,.92); color: #fff; border: 1px solid #c9a45c; border-radius: 6px; font-size: 15px; }
#teamchat .chatknopf { margin-top: 6px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.55); font-size: 18px; cursor: pointer; }
/* Sprachchat: Art wählen (Flüstern / Sprechen / Rufen) */
#teamchat .arten { display: flex; gap: 6px; margin-top: 6px; }
#teamchat .arten button { flex: 1; padding: 6px 4px; font-size: 12px; border-radius: 6px; border: 1px solid #47505c; background: rgba(10,12,15,.9); color: #c8cdd2; cursor: pointer; }
#teamchat .arten button.an { border-color: #c9a45c; color: #f2ece2; background: rgba(201,164,92,.25); }
#teamchat .zeile.fluestern { font-style: italic; color: #b9c0c8; }
#teamchat .zeile.rufen { font-weight: 700; text-transform: none; }
/* Bereich "Zu zweit" auf der Startseite */
#teamliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 14px; }
.teamkarte { border-color: #5a4a2a; }
.teamkarte .nr { color: #e0b860; }
.teamcode-eingabe { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 18px; }
.teamcode-eingabe label { color: #aab2bb; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.teamcode-eingabe input { padding: 10px; background: #0d1014; color: #fff; border: 1px solid #2f3843; border-radius: 6px; font-size: 16px; letter-spacing: .15em; width: 170px; text-transform: uppercase; }
/* Reiter Einzel-Welten / Multi-Welten (bleiben beim Scrollen oben sichtbar) */
.weltreiter { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; margin: 6px 0 16px; padding: 8px 0; background: #0b0d10; }
.weltreiter .reiter { flex: 1; padding: 12px 10px; border-radius: 8px; border: 1px solid #2f3843; background: #12161b; color: #aab2bb; font-size: 15px; font-weight: 700; cursor: pointer; }
.weltreiter .reiter.an { border-color: #c9a45c; color: #f2ece2; background: rgba(201,164,92,.18); }
.weltreiter .neu { font-size: 10px; background: #a3221a; color: #fff; border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: middle; }
.reiterseite[hidden] { display: none; }
#teamliste { margin-top: 10px; }
/* Banner "Zurück ins Team-Spiel" oben auf der Startseite */
#teamzurueck { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 45; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center;
  width: min(560px, calc(100vw - 24px)); box-sizing: border-box; padding: 12px 14px; border-radius: 10px; background: #1b1610; border: 1px solid #c9a45c; color: #f2ece2; box-shadow: 0 8px 30px rgba(0,0,0,.6); }
#teamzurueck .knopf { margin: 0; }
#teamzurueck .zu { background: none; border: none; color: #aab2bb; font-size: 18px; cursor: pointer; }

/* ---- Passwort mit Auge: Feld und Knopf in einer Zeile (js/konto.js, passwortFeld) ---- */
.pwzeile { position: relative; margin-top: 4px; }
.pwzeile input { margin-top: 0 !important; padding-right: 52px !important; }
.pwzeile .auge { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px;
  background: transparent; border: 0; font-size: 20px; cursor: pointer; color: #aab2bb; }

/* ---- Notizbuch: eigene Notizen und Code-Liste (js/engine.js, zeigeNotizen) ---- */
.notizfeld { display: block; width: 100%; min-height: 110px; margin: 6px 0 4px; padding: 10px 12px; border-radius: 6px;
  font: inherit; font-size: 16px; background: #0c0f12; color: #e8e6e0; border: 1px solid #3a4450; resize: vertical; }
.codeliste { list-style: none; padding: 0; margin: 6px 0; font-variant-numeric: tabular-nums; }
.codeliste li { padding: 5px 0; border-bottom: 1px solid #232a32; }
.codeliste .ok { color: #6fd08c; } .codeliste .nein { color: #ff6b57; }

/* ---- Rückblende am Ende (js/engine.js, gewonnen) ---- */
.wegliste { margin: 6px 0 4px; padding-left: 22px; line-height: 1.5; }
.wegliste li { margin-bottom: 3px; }

/* ---- Kowalskis Hefte (js/geschichte.js) ---- */
.heftseite { background: #ece6d2; color: #26221a; font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  font-size: 17px; line-height: 1.55; padding: 16px 18px; border-radius: 4px; margin: 10px 0; transform: rotate(-.4deg); }
.heftseite b { font-family: Georgia, serif; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #6b5a3a; display: block; margin-bottom: 4px; }
.weltkarte.geheim { border-style: dashed; border-color: #6b5a3a; background: linear-gradient(160deg, #1a1712, #0f1114); }
.weltkarte.geheim .nr { color: #c9a45c; }
