/* KioskBoss Prototyp: Farben aus dem Bannerbild */
:root {
  --red: #c8382b;
  --red-dark: #9f2a20;
  --cream: #fff6e5;
  --cream-2: #fbead0;
  --navy: #1f2a44;
  --navy-2: #34415f;
  --mustard: #f2b632;
  --orange: #e8821e;
  --wood: #7a4a2a;
  --sky: #7fb3e6;
  --green: #3f8f5b;
  --amber: #e5a21b;
  --line: #ecdcc0;
  --shadow: 0 6px 18px rgba(31, 42, 68, .14);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--navy);
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif; line-height: 1.5; font-weight: 600;
}
h1, h2, h3 { font-family: "Baloo 2", "Nunito", sans-serif; line-height: 1.15; margin: 0 0 .4em; }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 800;
  text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-dark); }
.btn-red:hover { background: #d84436; }
.btn-ghost { background: transparent; border: 2px solid var(--navy); color: var(--navy); padding: 10px 22px; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-small { padding: 7px 16px; font-size: .9rem; }

/* Kopf Startseite */
.topbar { background: var(--navy); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.7rem; text-decoration: none; letter-spacing: .5px; }
.logo span { color: var(--mustard); }
.topbar nav { display: flex; gap: 26px; align-items: center; }
.topbar nav a { text-decoration: none; font-weight: 700; opacity: .9; }
.topbar nav a:hover { opacity: 1; color: var(--mustard); }

/* Hero */
.hero { position: relative; height: 470px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; display: block; }
.hero-card {
  position: absolute; left: max(28px, calc((100% - 1240px) / 2 + 28px)); bottom: 36px;
  background: rgba(255, 246, 229, .95); padding: 28px 32px; border-radius: 18px; max-width: 520px;
  box-shadow: var(--shadow); backdrop-filter: blur(3px);
}
.hero-card h1 { font-size: 2.6rem; color: var(--navy); }
.hero-card h1 em { color: var(--red); font-style: normal; }
.hero-card p { margin: 0 0 18px; font-size: 1.1rem; }
.hero-card .row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Statusband */
.status { background: var(--navy); color: #fff; }
.status .wrap { display: flex; gap: 40px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; justify-content: center; }
.status b { color: var(--mustard); font-size: 1.15rem; }
.status small { opacity: .7; }

section { padding: 64px 0; }
section h2 { font-size: 2.1rem; text-align: center; }
section .lead { text-align: justify; max-width: 680px; margin: 0 auto 38px; color: var(--navy-2); }

/* Karten */
.grid { display: grid; gap: 22px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card h3 { font-size: 1.3rem; }
.card p { margin: 0; color: var(--navy-2); }
.step-no {
  width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-family: "Baloo 2"; font-weight: 800; font-size: 1.4rem; margin-bottom: 12px;
}
.alt { background: var(--cream-2); }

/* Quartiere */
.quartier { border-top: 6px solid var(--mustard); }
.quartier.q1 { border-color: #8a8f99; } .quartier.q2 { border-color: var(--green); }
.quartier.q3 { border-color: var(--orange); } .quartier.q4 { border-color: var(--red); }
.meter { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-top: 6px; }
.meter span:first-child { width: 120px; color: var(--navy-2); }
.dots i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--line); margin-right: 3px; }
.dots i.on { background: var(--mustard); }

/* Preise */
.plan { text-align: center; }
.plan .price { font-family: "Baloo 2"; font-size: 2.4rem; font-weight: 800; color: var(--red); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 20px; text-align: left; }
.plan li { padding: 5px 0 5px 28px; position: relative; color: var(--navy-2); }
.plan li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.plan li.lock::before { content: "🔒"; font-size: .85rem; }
.plan.pro { border: 3px solid var(--mustard); transform: translateY(-8px); }
.badge { background: var(--mustard); color: var(--navy); padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem; }

footer { background: var(--navy); color: #cfd6e6; padding: 36px 0; font-size: .95rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer a { margin-right: 18px; text-decoration: none; }
footer a:hover { color: var(--mustard); }

.note { background: #fff3c4; border: 1px dashed var(--amber); padding: 6px 12px; text-align: center; font-size: .85rem; color: #6b5200; }

/* ======= Spielansicht ======= */
.game { display: grid; grid-template-columns: 220px 1fr 320px; grid-template-rows: auto 1fr; min-height: 100vh; }
.game-head {
  grid-column: 1 / 4; background: var(--navy); color: #fff; display: flex; align-items: center;
  justify-content: space-between; padding: 0 24px; height: 64px; gap: 24px;
}
.stat { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); padding: 6px 16px; border-radius: 999px; font-weight: 800; }
.stat small { display: block; font-weight: 600; opacity: .7; font-size: .7rem; line-height: 1; text-transform: uppercase; letter-spacing: .5px; }
.stat b { font-size: 1.1rem; color: var(--mustard); line-height: 1.1; }
.head-right { display: flex; gap: 14px; align-items: center; }
.bell { position: relative; font-size: 1.4rem; text-decoration: none; }
.bell i { position: absolute; top: -6px; right: -8px; background: var(--red); font-style: normal; font-size: .7rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; }
.side { background: var(--cream-2); border-right: 1px solid var(--line); padding: 18px 12px; }
.side a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; text-decoration: none;
  font-weight: 800; margin-bottom: 4px; color: var(--navy-2);
}
.side a:hover { background: #fff; }
.side a.on { background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red-dark); }
.side .sep { height: 1px; background: var(--line); margin: 12px 6px; }
.main { padding: 24px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.right { padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 20px; }

.kiosk-hero {
  height: 300px; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; overflow: hidden;
  background: url("banner.webp") 82% 62% / 260% auto no-repeat;
}
.kiosk-hero .tag {
  position: absolute; left: 16px; top: 16px; background: rgba(31,42,68,.88); color: #fff; padding: 8px 16px; border-radius: 12px;
}
.kiosk-hero .tag b { font-family: "Baloo 2"; font-size: 1.3rem; display: block; line-height: 1.1; }
.kiosk-hero .tag span { font-size: .85rem; opacity: .8; }
.kiosk-hero .ctas { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 10px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.kpi small { color: var(--navy-2); font-weight: 700; }
.kpi b { display: block; font-family: "Baloo 2"; font-size: 1.7rem; line-height: 1.2; }
.up { color: var(--green); font-size: .9rem; font-weight: 800; }
.down { color: var(--red); font-size: .9rem; font-weight: 800; }

.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.panel > h3 { padding: 14px 20px; margin: 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; display: flex; justify-content: space-between; align-items: center; }
.panel > h3 a { font-size: .85rem; font-family: "Nunito"; font-weight: 800; color: var(--red); text-decoration: none; }
.panel .body { padding: 6px 20px 14px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--navy-2); padding: 10px 6px; }
td { padding: 9px 6px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
td.n, th.n { text-align: right; }
.pill { white-space: nowrap; display: inline-block; padding: 2px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem; color: #fff; }
.pill.g { background: var(--green); } .pill.y { background: var(--amber); } .pill.r { background: var(--red); }
.warn { color: var(--red); font-weight: 800; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.todo li:first-child { border-top: 0; }
.todo .ic { font-size: 1.3rem; }
.todo small { color: var(--navy-2); display: block; }
.alert { background: #fdeceb; border: 2px solid var(--red); border-radius: var(--radius); padding: 16px 18px; }
.alert h3 { color: var(--red-dark); font-size: 1.15rem; }
.alert p { margin: 0 0 12px; font-size: .95rem; }
.alert input {
  width: 100%; padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; font-size: 1.1rem; font-family: inherit; margin-bottom: 10px;
}
.events { list-style: none; margin: 0; padding: 0; }
.events li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; }
.events li:first-child { border-top: 0; }
.rank li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; }
.rank li.me { background: #fff3c4; margin: 0 -10px; padding: 8px 10px; border-radius: 8px; font-weight: 800; }
.two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
@media (max-width: 1100px) {
  .g4, .g3 { grid-template-columns: repeat(2, 1fr); }
  .game { grid-template-columns: 200px 1fr; }
  .right { grid-column: 2; padding: 0 24px 24px; }
}

/* Fliesstexte: immer Blocksatz mit Silbentrennung (html lang="de-CH") */
p { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }

/* Grundschrift: 18 px statt 16 px (alle rem-Groessen skalieren mit) */
html { font-size: 112.5%; }

/* ======= Anmeldung / Registrierung ======= */
.auth-page { background: var(--cream); min-height: 100vh; }
.auth-wrap { display: flex; justify-content: center; padding: 48px 20px 80px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 34px 38px; width: 100%; max-width: 520px; }
.auth-card h1 { font-size: 2rem; color: var(--red); margin-bottom: .1em; }
.auth-sub { color: var(--navy-2); margin: 0 0 1.4rem; }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 800; margin-bottom: 4px; }
.form-row label small { font-weight: 600; color: var(--navy-2); }
.form-row input, .form-row select {
  width: 100%; padding: 11px 14px; font-size: 1rem; font-family: inherit; color: var(--navy);
  border: 2px solid var(--line); border-radius: 10px; background: #fff;
}
.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--mustard); box-shadow: 0 0 0 3px rgba(242,182,50,.35); }
.form-error { color: var(--red-dark); font-weight: 700; font-size: .92rem; margin-top: 4px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 1.2rem; }
.form-check input { margin-top: 6px; width: 18px; height: 18px; flex: none; }
.form-check label { font-size: 1rem; color: var(--navy-2); }
.auth-foot { text-align: center; margin: 1.4rem 0 0; color: var(--navy-2); }
.auth-foot a { color: var(--red); font-weight: 800; }

.form-status { background: #e6f4ea; border: 1px solid #9ccfa8; color: #1f5d34; padding: 10px 14px; border-radius: 10px; margin-bottom: 1rem; font-weight: 700; }

/* ======= Standplatzwahl ======= */
.wahl { max-width: 1640px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.wahl h1 { font-size: 1.9rem; }
.legende { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 0 0 1rem; font-weight: 700; }
.legende .platz { display: inline-block; width: 18px; height: 18px; border-radius: 5px; vertical-align: middle; margin-right: 4px; cursor: default; }
.plan-typ { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.plan-typ h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.3rem; }
.plan-typ .meta { color: var(--navy-2); font-size: .9rem; font-weight: 600; }
.plan-zonen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.zone { border: 2px dashed var(--line); border-radius: 10px; padding: 6px 8px 8px; background: var(--cream); }
.zone-name { font-size: .7rem; text-transform: uppercase; letter-spacing: .5px; color: var(--navy-2); margin-bottom: 4px; font-weight: 800; }
.zone-plaetze { display: flex; gap: 4px; }
.platz { width: 38px; height: 38px; border-radius: 8px; border: 2px solid transparent; font: 800 .8rem "Nunito", sans-serif; cursor: pointer; padding: 0; }
.platz.frei { background: #d9efdf; color: #1f5d34; border-color: #9ccfa8; }
.platz.frei:hover { background: #bfe5c9; }
.platz.besetzt { background: #e6dfd0; color: #8a8070; cursor: not-allowed; }
.platz.gewaehlt { background: var(--mustard); border-color: var(--orange); color: var(--navy); box-shadow: 0 0 0 3px rgba(242, 182, 50, .45); }
.info-panel { position: sticky; top: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.info-panel h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.info-panel .werte { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: .5rem 0; }
.info-panel dt { color: var(--navy-2); font-weight: 700; }
.info-panel dd { margin: 0; font-weight: 700; }
.info-panel .hinweis { color: var(--navy-2); font-size: 1rem; margin: .3rem 0 1rem; }
.gr { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.gr:has(input:checked) { border-color: var(--red); background: #fff5f3; }
.gr.aus { opacity: .55; cursor: not-allowed; }
.gr input { margin-top: 6px; }
.gr small { display: block; color: var(--navy-2); font-weight: 600; line-height: 1.35; }
@media (max-width: 1000px) { .wahl { grid-template-columns: 1fr; } .info-panel { position: static; } }

/* ======= Strassenplan ======= */
.typkarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 14px; }
.typkarte { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--navy-2); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.typkarte.randlage { border-top-color: #8a8f99; } .typkarte.nebenstrasse { border-top-color: #3f8f5b; }
.typkarte.hauptstrasse { border-top-color: #e8821e; } .typkarte.werktor { border-top-color: #c8382b; }
.typkarte span { font-weight: 700; } .typkarte small { color: var(--navy-2); font-weight: 600; line-height: 1.3; }
.karte { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); background: #c9d9b6; margin-bottom: 16px; }
.svgp { cursor: pointer; outline: none; }
.svgp rect { fill: #d9efdf; stroke: #3f8f5b; stroke-width: 2; }
.svgp text { font: 800 11px "Nunito", sans-serif; fill: #1f5d34; text-anchor: middle; pointer-events: none; }
.svgp.frei:hover rect, .svgp.frei:focus rect { fill: #b6e2c3; stroke-width: 3; }
.svgp.besetzt { cursor: not-allowed; }
.svgp.besetzt rect { fill: #cfc7b6; stroke: #a39a86; }
.svgp.besetzt text { fill: #6f6756; }
.svgp.gewaehlt rect { fill: var(--mustard); stroke: var(--orange); stroke-width: 3.5; }
.svgp.gewaehlt text { fill: var(--navy); }
.zonebox { fill: rgba(255, 255, 255, .22); stroke-width: 2.5; stroke-dasharray: 7 4; }
.zonebox.randlage { stroke: #8a8f99; } .zonebox.nebenstrasse { stroke: #3f8f5b; }
.zonebox.hauptstrasse { stroke: #e8821e; } .zonebox.werktor { stroke: #c8382b; }
.zonelabel { font: 800 14px "Nunito", sans-serif; fill: var(--navy); paint-order: stroke; stroke: rgba(255,255,255,.8); stroke-width: 4px; }
details.liste > summary { cursor: pointer; font-weight: 800; padding: 8px 0; color: var(--navy-2); }

/* ======= Profil ======= */
.profil { max-width: 1180px; margin: 0 auto; padding: 24px; }
.profil h1 { font-size: 1.9rem; }
.profil-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.profil-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; }
.profil-box.breit { grid-column: 1 / -1; }
.profil-box h2 { font-size: 1.3rem; margin-bottom: .6rem; text-align: left; }
.profil-box h2 small { font-family: "Nunito", sans-serif; font-weight: 700; color: var(--navy-2); font-size: .8rem; }
.profil-box h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.profil-box .klein { color: var(--navy-2); font-size: 1rem; margin: .4rem 0 .8rem; }
.profil-box .werte { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.profil-box dt { color: var(--navy-2); font-weight: 700; } .profil-box dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.profil-box hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.zwei-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 1rem; }
.qr-zeile { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.qr { width: 200px; height: 200px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.qr svg { width: 100%; height: 100%; display: block; }
.geheim { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; letter-spacing: 1px; background: var(--cream-2); padding: 8px 12px; border-radius: 8px; overflow-wrap: anywhere; }
.codes-box { background: #fff8e1; border: 2px solid var(--mustard); border-radius: var(--radius); padding: 16px 22px; margin-bottom: 20px; }
.codes-box ul { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.codes-box li { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; text-align: center; }
.profil-box input[type=date] { font-family: inherit; }
.stat b { max-width: 15em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
@media (max-width: 860px) { .profil-grid, .zwei-spalten { grid-template-columns: 1fr; } .codes-box ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.staedte { width: 100%; border-collapse: collapse; }
.staedte th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--navy-2); padding: 8px 8px 8px 0; }
.staedte td { padding: 10px 8px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.staedte small { color: var(--navy-2); }
@media (max-width: 860px) { .staedte thead { display: none; } .staedte tr { display: block; padding: 8px 0; border-top: 1px solid var(--line); } .staedte td { display: block; border: 0; padding: 2px 0; } }

/* Profil: Avatar, Kopfzeile und Spalten ohne Luecken */
.profil-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; align-items: stretch; }
.profil-top .profil-box { margin: 0; }
.profil-grid { margin-bottom: 20px; }
.profil-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.profil-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.avatar-form { display: flex; gap: 20px; align-items: flex-start; }
.avatar-rest { flex: 1; min-width: 0; }
.avatar-gross { width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--mustard); background: #fbf1d6; flex: none; object-fit: cover; }
.avatar-wahl { display: grid; grid-template-columns: repeat(5, 64px); gap: 10px; margin-bottom: 14px; }
.avatar-wahl label { cursor: pointer; display: block; position: relative; margin: 0; }
.avatar-wahl input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.avatar-wahl img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid transparent; background: #fbf1d6; object-fit: cover; display: block; transition: transform .1s; }
.avatar-wahl label:hover img { transform: scale(1.06); }
.avatar-wahl input:checked + img { border-color: var(--red); box-shadow: 0 0 0 3px rgba(178,58,46,.25); }
.avatar-wahl input:focus-visible + img { outline: 3px solid var(--mustard); }
@media (max-width: 860px) { .profil-top, .profil-cols { grid-template-columns: 1fr; } .avatar-form { flex-direction: column; align-items: center; } .avatar-wahl { grid-template-columns: repeat(5, minmax(0, 64px)); } }
.stat .avatar-klein { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--mustard); background: #fbf1d6; object-fit: cover; flex: none; margin-left: -8px; }

/* Administration */
.admin-nav { background: #fff; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 24px; box-shadow: 0 2px 6px rgba(31,42,68,.06); }
.admin-nav a { text-decoration: none; color: var(--navy); font-weight: 800; padding: 8px 16px; border-radius: 999px; }
.admin-nav a:hover { background: var(--cream); }
.admin-nav a.aktiv { background: var(--navy); color: #fff; }
.admin { max-width: 1180px; margin: 0 auto; padding: 24px; }
.admin h1 { font-size: 1.9rem; color: var(--red); }
.admin-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kachel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; display: flex; flex-direction: column; }
.kachel b { font-family: "Baloo 2", sans-serif; font-size: 2rem; line-height: 1.1; color: var(--navy); }
.kachel span { color: var(--navy-2); font-weight: 700; }
.tabelle-wrap { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th { text-align: left; font-size: .85rem; text-transform: uppercase; letter-spacing: .4px; color: var(--navy-2); padding: 6px 12px 8px 0; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tabelle td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.admin a { color: var(--red-dark); }
.admin a.btn-ghost { color: var(--navy); }
.admin a.btn-ghost:hover { color: #fff; }
.hinweis-gelb { background: #fff4d6; border: 1px solid var(--mustard); border-radius: 10px; padding: 10px 14px; margin-bottom: 1rem; }
.quartier-zeile { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(90px, 1fr)) auto; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.quartier-zeile .form-row { margin: 0; }
.quartier-zeile .q-knopf { align-self: end; }
.einstellung { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.einstellung:last-child { border-bottom: 0; }
.einst-text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 2px; }
.einst-text .klein { margin: 0; color: var(--navy-2); }
.einst-form { display: flex; align-items: center; gap: 10px; margin: 0; }
.einst-form input { width: 9em; padding: 9px 12px; border: 2px solid var(--line); border-radius: 10px; font: inherit; }
.einheit { font-weight: 800; color: var(--navy-2); }
.deputy { padding: 14px 0; border-top: 1px solid var(--line); }
.deputy-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
.deputy-kopf .klein { margin: 0; }
.deputy-pw { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.deputy-pw .form-row { margin: 0; flex: 1 1 200px; }
.deputy-pw .form-row:last-of-type { flex: 0 0 auto; }
.suche { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.suche input { flex: 1 1 260px; max-width: 420px; padding: 9px 14px; border: 2px solid var(--line); border-radius: 10px; font: inherit; }
.pager { display: flex; gap: 20px; align-items: center; margin-top: 12px; font-weight: 700; }
.pager span { color: var(--navy-2); }
.liste { margin: 0; padding-left: 1.2rem; } .liste li { margin-bottom: .4rem; }
.pruef { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.pruef.ok { background: #e6f4ea; color: #1d6b34; } .pruef.nein { background: #fdeceb; color: var(--red-dark); }
@media (max-width: 860px) { .admin-spalten { grid-template-columns: 1fr; } .quartier-zeile { grid-template-columns: repeat(2, minmax(0, 1fr)); } .quartier-zeile .q-name, .quartier-zeile .q-knopf { grid-column: 1 / -1; } .admin-nav { padding: 8px 12px; } }

/* Textseiten (Datenschutz) */
.text-seite { padding: 32px 16px 56px; }
.text-karte { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 40px; }
.text-karte h1 { font-size: 2.2rem; color: var(--red); margin-bottom: .2em; }
.text-karte h2 { font-size: 1.4rem; margin: 1.6em 0 .4em; text-align: left; }
.text-karte p, .text-karte li { text-align: justify; hyphens: auto; }
.text-karte ul { padding-left: 1.3rem; } .text-karte li { margin-bottom: .45rem; }
.text-karte a { color: var(--red-dark); }
.text-karte .stand { color: var(--navy-2); margin-top: 0; }
.datenschutz-tabelle td, .datenschutz-tabelle th { padding-right: 16px; vertical-align: top; }
.datenschutz-tabelle td { text-align: left; }
.auth-fuss { text-align: center; padding: 0 16px 28px; }
.auth-fuss a { color: var(--navy-2); font-weight: 700; }
@media (max-width: 700px) { .text-karte { padding: 22px 18px; } }

/* Statusleiste der Startseite: mehrere Staedte wechseln durch */
.status .wrap { display: block; }
.status-stadt { display: none; flex-wrap: wrap; gap: 6px 40px; justify-content: center; }
.status-stadt.aktiv { display: flex; animation: statusein .6s ease; }
.status-punkte { display: flex; justify-content: center; gap: 8px; padding-top: 8px; }
.status-punkte button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; }
.status-punkte button.aktiv { background: var(--mustard); }
.status .countdown { font-variant-numeric: tabular-nums; }
@keyframes statusein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Kontaktformular */
.form-row textarea { width: 100%; padding: 11px 14px; font-size: 1rem; font-family: inherit; color: var(--navy); border: 2px solid var(--line); border-radius: 10px; background: #fff; resize: vertical; line-height: 1.5; }
.form-row textarea:focus { outline: none; border-color: var(--mustard); box-shadow: 0 0 0 3px rgba(242,182,50,.35); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.kontakt-form .zaehler { color: var(--navy-2); display: block; margin-top: 4px; }
.text-karte .kontakt-form label a { color: var(--red-dark); }
/* Admin: Nachrichten */
.nachricht { margin-bottom: 16px; }
.nachricht.erledigt { opacity: .65; }
.nachricht-kopf { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.nachricht-kopf h2 { margin-bottom: .1rem; }
.nachricht-kopf .klein { margin: 0; }
.nachricht-knoepfe { display: flex; gap: 8px; }
.nachricht-text { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.zahl-badge { display: inline-block; min-width: 1.4em; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: .8rem; text-align: center; line-height: 1.5; }
.admin-nav a.aktiv .zahl-badge { background: var(--mustard); color: var(--navy); }

/* Einstellungen mit Text, Impressum */
.einst-form.breit { flex: 1 1 380px; flex-wrap: wrap; }
.einst-form.breit input, .einst-form.breit textarea { flex: 1 1 260px; width: auto; }
.einst-form textarea { padding: 9px 12px; border: 2px solid var(--line); border-radius: 10px; font: inherit; color: var(--navy); line-height: 1.4; resize: vertical; }
.impressum-adresse { line-height: 1.6; }

/* Profil: automatische Abmeldung */
.sitzung-wahl { display: grid; gap: 8px; margin: 12px 0 14px; }
.sitzung-opt { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.sitzung-opt:hover { border-color: var(--mustard); }
.sitzung-opt input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--red); }
.sitzung-opt small { color: var(--navy-2); margin-left: 6px; font-weight: 600; }
.sitzung-opt:has(input:checked) { border-color: var(--red); background: #fff6f3; }

/* AddOn-Shop */
.game-zwei { grid-template-columns: 220px 1fr; }
.game-zwei .game-head { grid-column: 1 / 3; }
.lead-text { font-size: 1.1rem; max-width: none; text-align: justify; hyphens: auto; }
.form-fehler { background: #fdeceb; color: var(--red-dark); border: 1px solid #f3c2bd; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.addon-todo { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: #fff3c4; border: 2px solid var(--amber); border-radius: 12px; padding: 12px 16px; font-size: 1.05rem; }
.addon-todo .btn { margin-left: auto; }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; align-items: stretch; }
.addon-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.addon-card h2 { font-size: 1.35rem; margin: 0; text-align: left; }
.addon-card p { margin: 0; text-align: justify; hyphens: auto; }
.addon-kurz { font-weight: 800; color: var(--navy-2); }
.addon-zusatz { font-weight: 800; color: var(--green); font-size: 1.1rem; }
.addon-bild { width: 96px; height: 96px; border-radius: 18px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; font-size: 3rem; overflow: hidden; }
.addon-bild img { width: 100%; height: 100%; object-fit: cover; }
.addon-fakten { list-style: none; margin: 4px 0; padding: 0; color: var(--navy-2); }
.addon-fakten li { margin: 2px 0; }
.addon-fuss { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.addon-preis { font-family: "Baloo 2"; font-size: 1.6rem; font-weight: 800; color: var(--red); }
.addon-fuss form { margin-left: auto; }
.addon-status { font-weight: 800; color: var(--navy-2); flex-basis: 100%; }
.addon-fuss .addon-status { flex-basis: auto; }
.addon-status.gut, .addon-liste .gut { color: var(--green); }
.addon-zahl { font-weight: 800; font-size: 1.1rem; }
.avatar-shop { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 6px 0; }
.avatar-shop .av { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 3px solid transparent; }
.avatar-shop img { width: 100%; height: auto; display: block; border-radius: 10px; }
.avatar-shop .av.mein { border-color: var(--green); }
.avatar-shop .av i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--green); color: #fff; font-style: normal; font-size: 1rem; font-weight: 800; text-align: center; }
.avatar-shop.gross { grid-template-columns: repeat(5, minmax(0, 120px)); gap: 14px; margin: 16px 0; }
.avatar-shop.gross label.av { cursor: pointer; }
.avatar-shop.gross input { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; accent-color: var(--red); z-index: 1; }
.avatar-shop.gross label.av:has(input:checked) { border-color: var(--red); }
.avatar-shop.gross label.av:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.addon-liste { list-style: none; margin: 0 0 8px; padding: 0; }
.addon-liste li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.addon-liste small { font-size: 1rem; color: var(--navy-2); font-weight: 600; }
.form-2spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 20px; }
.form-row textarea { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.check input { width: 20px; height: 20px; }

.text-seite.breit .text-karte { max-width: 1200px; background: none; border: 0; box-shadow: none; padding: 0; }
.text-seite.breit .addon-card h2 { margin-top: 0; }

.tabelle td.aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-bottom: 0; }
.tabelle td.aktionen form { margin: 0; }
.tabelle b.gut { color: var(--green); }

/* Knöpfe in Textseiten: die Linkfarbe der Textkarte darf die Knopffarbe nicht überschreiben */
.text-karte a.btn-red { color: #fff; }
.text-karte a.btn-ghost { color: var(--navy); }
.text-karte a.btn { text-decoration: none; }
.text-karte a.btn-ghost:hover { color: #fff; }

/* Spielregeln */
.regel-inhalt { background: var(--cream-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 22px; margin: 1.2rem 0; }
.regel-inhalt ol { margin: .4rem 0 0; padding-left: 1.4rem; }
.regel-inhalt li { margin-bottom: .2rem; text-align: left; }
.regel-wichtig { background: #fff3c4; border: 2px solid var(--amber); border-radius: 12px; padding: 14px 20px; margin: 1rem 0; }
.regel-wichtig b { font-size: 1.15rem; display: block; margin-bottom: .3rem; }
.regel-wichtig p { margin: 0; }
.text-karte h2[id] { scroll-margin-top: 16px; }

.text-karte p.regel-fett { font-weight: 800; color: var(--navy); background: #fdeceb; border-left: 5px solid var(--red); border-radius: 8px; padding: 12px 16px; }

/* Spielregeln: Hinweis auf Rückerstattung mit hohem Kontrast (weisser Grund, dunkle Schrift, kräftiger roter Rahmen) */
.text-karte p.regel-fett { background: #fff; color: #1f2a44; border: 3px solid var(--red); border-radius: 12px; padding: 16px 20px; font-size: 1.1rem; line-height: 1.55; }
.text-karte p.regel-fett strong { font-weight: 800; color: #1f2a44; }

/* Hervorhebungen in Textseiten deutlich fett (Fliesstext ist 600) */
.text-karte b, .text-karte strong { font-weight: 800; color: #1f2a44; }

/* Nachrichten und Mitbewerber */
.menue-zahl { margin-left: auto; background: var(--red); color: #fff; border-radius: 999px; font-size: 1rem; font-weight: 800; padding: 0 9px; line-height: 1.5; }
.side a.on .menue-zahl { background: #fff; color: var(--red); }
.nachr-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; }
.nachr-tabs a { padding: 8px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; text-decoration: none; font-weight: 800; color: var(--navy-2); font-size: 1rem; }
.nachr-tabs a.aktiv { background: var(--navy); border-color: var(--navy); color: #fff; }
.msg { margin-bottom: 14px; }
.msg-neu { border-left: 5px solid var(--red); }
.msg-team { background: #fffaf0; }
.msg-kopf { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.msg-kopf small { color: var(--navy-2); font-size: 1rem; }
.msg-text { margin: .6rem 0 0; text-align: left; overflow-wrap: anywhere; font-size: 1.05rem; }
.msg-zeile { padding: 10px 0; border-bottom: 1px solid var(--line); }
.msg-zeile small { color: var(--navy-2); font-size: 1rem; }
.zeichenzahl { color: var(--navy-2); font-weight: 700; font-size: 1rem; margin-top: 4px; }
.form-row textarea[readonly], .form-row input[readonly] { background: var(--cream-2); }
.spieler-zelle { display: inline-flex; align-items: center; gap: 10px; }

/* Knöpfe behalten ihre Farbe in jedem Bereich (Admin, Textseiten, Formulare): diese Regeln stehen absichtlich ganz am Ende und sind spezifischer als die Linkfarben der Bereiche */
a.btn { text-decoration: none; }
a.btn.btn-red, a.btn.btn-red:hover, a.btn.btn-red:focus { color: #fff; }
a.btn.btn-ghost { color: var(--navy); }
a.btn.btn-ghost:hover, a.btn.btn-ghost:focus { color: #fff; }

.admin.breit { max-width: 1700px; }
.tabelle td.aktionen form { display: inline; }

details.einklappbar > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
details.einklappbar > summary::-webkit-details-marker { display: none; }
details.einklappbar > summary::before { content: "▸"; font-size: 1.2rem; color: var(--red); }
details.einklappbar[open] > summary::before { content: "▾"; }
details.einklappbar > summary h2 { margin: 0; }
details.einklappbar[open] > summary { margin-bottom: .6rem; }
.mehr-laden { margin-top: 10px; }

.wartung { text-align: center; }
.wartung-bild { width: 100%; max-width: 760px; height: auto; border-radius: 16px; margin-bottom: 1rem; }
.wartung p { text-align: center; }

.monate-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px 14px; margin-top: 4px; }
.suche select { font: inherit; padding: 8px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; }

.tabelle th a.sortlink { color: inherit; text-decoration: none; white-space: nowrap; }
.tabelle th a.sortlink:hover { color: var(--red); }

.art-name { display: inline-flex; align-items: center; gap: 10px; }
.art-bild { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.art-symbol { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; font-size: 1.6rem; }

.tabelle th.mitte, .tabelle td.mitte { text-align: center; }

/* Dezente Symbol-Knöpfe in Admin-Tabellen */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 2px solid var(--line); border-radius: 10px; background: #fff; font-size: 1rem; line-height: 1; cursor: pointer; text-decoration: none; color: inherit; font-family: inherit; }
.icon-btn:hover, .icon-btn:focus-visible { border-color: var(--navy); background: var(--cream-2); }
.icon-btn.an { border-color: var(--red); background: #fff6f3; }
.tabelle td.aktionen { gap: 6px; flex-wrap: nowrap; }

/* Avatar-Vergrösserung */
.av-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; }
.av-btn:focus-visible, .av-lupe:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.av-lupe { position: absolute; right: 4px; bottom: 4px; width: 30px; height: 30px; padding: 0; border: 2px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.92); font-size: 1rem; line-height: 1; cursor: zoom-in; z-index: 2; }
.avatar-shop.gross .av { position: relative; }
.avatar-lupe { border: 0; border-radius: 18px; padding: 14px 18px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.45); max-width: 94vw; background: #fff; }
.avatar-lupe::backdrop { background: rgba(31,42,68,.7); }
.lupe-kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 10px; font-weight: 800; }
.lupe-zu { border: 2px solid var(--line); background: #fff; border-radius: 10px; width: 36px; height: 36px; font-size: 1.1rem; cursor: pointer; }
.lupe-mitte { display: flex; align-items: center; gap: 10px; }
.lupe-mitte img { width: min(480px, 70vw); height: auto; border-radius: 14px; display: block; }
.lupe-nav { border: 2px solid var(--line); background: #fff; border-radius: 50%; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; cursor: pointer; flex: none; }
.lupe-nav:hover, .lupe-zu:hover { border-color: var(--navy); background: var(--cream-2); }

/* Kennzahlen als Links */
a.kachel { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
a.kachel:hover { border-color: var(--mustard); box-shadow: 0 4px 14px rgba(31,42,68,.14); }
a.kachel:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

/* Reload-Knopf in der Kopfleiste */
.game-head .reload-btn { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; font-size: 1.2rem; }
.game-head .reload-btn:hover, .game-head .reload-btn:focus-visible { background: rgba(255,255,255,.18); border-color: #fff; }

/* Einkauf, Lager und Preise */
.lager-kopf { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; }
.lager-zahl { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 18px; min-width: 170px; }
.lager-zahl small { display: block; color: var(--navy-2); font-weight: 700; font-size: 1rem; }
.lager-zahl b { font-family: "Baloo 2", sans-serif; font-size: 1.35rem; color: var(--navy); }
.tabelle th.rechts, .tabelle td.rechts { text-align: right; }
.tabelle tr.gesperrt td { opacity: .6; }
.tabelle tr.gesperrt td:last-child { opacity: 1; }
input.menge, input.preis { width: 92px; font: inherit; font-weight: 700; padding: 7px 10px; border: 2px solid var(--line); border-radius: 10px; text-align: right; background: #fff; }
input.menge:focus, input.preis:focus { outline: none; border-color: var(--mustard); box-shadow: 0 0 0 3px rgba(242,182,50,.35); }
.preis-tief { color: var(--green); }
.preis-hoch { color: var(--red); }
.hinweis-zelle .tief { color: var(--red); font-weight: 800; }
.bestell-leiste { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 12px 18px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); box-shadow: 0 -6px 18px rgba(31,42,68,.12); }
.bestell-leiste b { font-family: "Baloo 2", sans-serif; font-size: 1.15rem; }

/* Mein Kiosk: Abrechnung */
.klein-datum { color: var(--navy-2); font-size: 1rem; font-weight: 700; }
.panel table.abrechnung { width: 100%; }
.panel table.abrechnung td { padding: 4px 0; }
.panel table.abrechnung td.n { text-align: right; }
.panel table.abrechnung tr.summe td { border-top: 2px solid var(--line); font-weight: 800; padding-top: 8px; }
