/* Farben aus der Original-Palette von BMH */
:root {
  --teal: #044c4c;
  --teal-hell: #187070;
  --teal-dunkel: #001414;
  --panel: #023a3a;
  --balken1: #88c0e0;
  --balken2: #4c8cc0;
  --balken-text: #06243c;
  --text: #e6f4f4;
  --text-leise: #8fb8b8;
  --rot: #dc0000;
  --gelb: #f0c800;
  --gruen: #3cc85a;
  --mensch: #f0c800;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--teal-dunkel); color: var(--text); font-family: 'Barlow', system-ui, sans-serif; font-size: 15px; }
body { overscroll-behavior-y: none; }
.pix { image-rendering: pixelated; image-rendering: crisp-edges; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; }
h2, h3, .bc { font-family: 'Barlow Condensed', sans-serif; letter-spacing: .02em; }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--teal); display: flex; flex-direction: column;
  background-image: radial-gradient(circle at 50% 0, #0a5a5a 0, var(--teal) 60%); }
#kopf { position: sticky; top: 0; z-index: 5; background: var(--teal); border-bottom: 3px solid var(--teal-dunkel);
  padding: calc(env(safe-area-inset-top) + 6px) 12px 6px; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
#kopf .logo { height: 26px; width: auto; }
#kopfInfo { font-family: 'Barlow Condensed'; font-size: 14px; text-align: right; line-height: 1.15; color: var(--text-leise); }
#kopfInfo b { color: var(--text); font-size: 16px; }
#inhalt { flex: 1; padding: 12px 12px 96px; }

#navi { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 6;
  display: grid; grid-template-columns: repeat(6, 1fr); background: var(--teal-dunkel); border-top: 2px solid var(--teal-hell);
  padding-bottom: env(safe-area-inset-bottom); }
#navi button { background: none; border: 0; padding: 7px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: 'Barlow Condensed'; font-size: 12.5px; color: var(--text-leise); }
#navi button img { height: 22px; }
#navi button .dm { font-family: 'Barlow Condensed'; font-weight: 700; color: var(--gelb); font-size: 15px; line-height: 22px; }
#navi button.aktiv { color: #fff; background: linear-gradient(var(--teal-hell), transparent); }

/* Panels wie im Original: hellblauer Balken + eingelassene Fläche */
.panel { background: var(--panel); border: 2px solid; border-color: var(--teal-dunkel) var(--teal-hell) var(--teal-hell) var(--teal-dunkel);
  margin-bottom: 14px; }
.balken { background: linear-gradient(var(--balken1), var(--balken2)); color: var(--balken-text); font-family: 'Barlow Condensed';
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; padding: 3px 10px;
  border: 1px solid; border-color: #d8f0ff #1c4c78 #1c4c78 #d8f0ff; display: flex; justify-content: space-between; align-items: center; }
.balken small { font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.pinhalt { padding: 10px; }

.knopf { background: linear-gradient(#2b8a8a, #0e5656); border: 2px solid; border-color: #6cc0c0 #002828 #002828 #6cc0c0;
  padding: 9px 14px; font-family: 'Barlow Condensed'; font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.knopf:active { border-color: #002828 #6cc0c0 #6cc0c0 #002828; }
.knopf.rot { background: linear-gradient(#e83030, #900000); border-color: #ff9090 #400000 #400000 #ff9090; }
.knopf.gruen { background: linear-gradient(#3cb850, #126a22); border-color: #a0f0b0 #0a3a10 #0a3a10 #a0f0b0; }
.knopf.klein { padding: 5px 9px; font-size: 13.5px; }
.knopf.breit { width: 100%; }
.knopf:disabled { opacity: .45; }
.reihe { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.zwischen { justify-content: space-between; }
.leise { color: var(--text-leise); }
.klein { font-size: 13px; }
.plus { color: var(--gruen); }
.minus { color: #ff6060; }
.mensch { color: var(--mensch); }

.feld { display: block; margin-bottom: 10px; }
.feld span { display: block; font-size: 13px; color: var(--text-leise); margin-bottom: 3px; }
.feld input, .feld select, select.eingabe, input.eingabe { width: 100%; padding: 9px 10px; background: var(--teal-dunkel); color: var(--text);
  border: 2px solid; border-color: #000 var(--teal-hell) var(--teal-hell) #000; border-radius: 0; }
select.eingabe { width: auto; padding: 6px 8px; }

.tabs { display: flex; gap: 0; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: 1; white-space: nowrap; background: var(--teal-dunkel); border: 1px solid var(--teal-hell); padding: 7px 8px;
  font-family: 'Barlow Condensed'; font-weight: 600; color: var(--text-leise); }
.tabs button.aktiv { background: linear-gradient(var(--balken1), var(--balken2)); color: var(--balken-text); }

/* Listen */
.liste { width: 100%; border-collapse: collapse; font-size: 14px; }
.liste td, .liste th { padding: 6px 4px; border-bottom: 1px solid #0b4848; text-align: left; vertical-align: middle; }
.liste th { font-family: 'Barlow Condensed'; color: var(--text-leise); font-weight: 600; font-size: 12.5px; text-transform: uppercase; }
.liste .r { text-align: right; font-variant-numeric: tabular-nums; }
.liste .c { text-align: center; }
.liste tr.ich td { background: rgba(240, 200, 0, .12); }
.liste tr.klickbar { cursor: pointer; }
.liste tr.aufgestellt td { background: rgba(60, 200, 90, .13); }
.liste tr.aufgestellt td:first-child { box-shadow: inset 3px 0 var(--gruen); }

.pos { display: inline-block; width: 22px; text-align: center; font-family: 'Barlow Condensed'; font-weight: 700; font-size: 13px; padding: 1px 0; color: #001414; }
.pos.T { background: #f0c800; } .pos.A { background: #6cb8ff; } .pos.M { background: #7ae08a; } .pos.S { background: #ff7a6a; }
.balk { height: 7px; background: #001414; width: 54px; display: inline-block; vertical-align: middle; }
.balk i { display: block; height: 100%; }
.wap { display: inline-block; vertical-align: middle; flex: none; }
.wap img { width: 100%; height: 100%; display: block; }
.status { font-size: 11px; padding: 0 4px; font-weight: 700; margin-left: 4px; }
.status.v { background: var(--rot); color: #fff; }
.status.g { background: var(--gelb); color: #000; }
.status.l { background: var(--balken2); color: #fff; }

/* Büro */
.vereinKopf { display: flex; gap: 12px; align-items: center; padding: 12px; }
.vereinKopf h2 { margin: 0; font-size: 24px; line-height: 1.05; }
.kennz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #001414; }
.kennz div { background: var(--panel); padding: 8px; text-align: center; }
.kennz b { display: block; font-family: 'Barlow Condensed'; font-size: 20px; }
.kennz span { font-size: 12px; color: var(--text-leise); }
.paarung { display: flex; align-items: center; justify-content: space-around; padding: 12px 6px; text-align: center; }
.paarung .bc { font-size: 17px; font-weight: 600; margin-top: 4px; }
.paarung .vs { font-family: 'Barlow Condensed'; font-size: 26px; font-weight: 700; color: var(--gelb); }
.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: 7px 10px; border-bottom: 1px solid #0b4848; font-size: 14px; }
.news li .leise { font-size: 12px; margin-right: 6px; }
.freunde li { display: flex; align-items: center; gap: 8px; }

/* Aufstellung – Taktiktafel */
.tafel { background: #1c4a26 url(gfx/taktiktafel.png) center/cover; padding: 8px; }
.platz { position: relative; background: repeating-linear-gradient(#2f8a3a 0 26px, #2a7d34 26px 52px); border: 2px solid #e8f0e8; aspect-ratio: 3 / 3.4; }
.platz::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid rgba(255,255,255,.6); }
.platz::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.6); border-radius: 50%; transform: translate(-50%, -50%); }
.platz .strafraum { position: absolute; left: 25%; width: 50%; height: 14%; border: 2px solid rgba(255,255,255,.6); }
.platz .strafraum.o { top: -2px; border-top: 0; } .platz .strafraum.u { bottom: -2px; border-bottom: 0; }
.figur { position: absolute; transform: translate(-50%, -50%); text-align: center; z-index: 2; width: 70px; }
.figur img { height: 28px; display: block; margin: 0 auto; filter: drop-shadow(0 1px 1px #000); }
.figur span { display: block; font-family: 'Barlow Condensed'; font-size: 12.5px; font-weight: 600; background: rgba(0,20,20,.75); padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.figur.leer img { opacity: .3; }

/* Training */
.baelle { display: inline-flex; gap: 2px; }
.baelle button { width: 24px; height: 24px; padding: 0; border: 0; background: #001414 center/14px no-repeat; image-rendering: pixelated; }
.schwerp { width: 40px; height: 30px; background: #001414 center/contain no-repeat; border: 1px solid var(--teal-hell); image-rendering: pixelated; }
.legende { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13px; }
.legende div { display: flex; gap: 6px; align-items: center; }
.legende i { width: 32px; height: 22px; background: center/contain no-repeat; image-rendering: pixelated; flex: none; }

/* Finanzen */
.bilanz td { padding: 5px 8px; }
.bilanz tr.summe td { font-weight: 700; border-top: 2px solid var(--teal-hell); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper b { min-width: 100px; text-align: center; font-family: 'Barlow Condensed'; font-size: 19px; }

/* Spieltag-Ansicht */
.stadion { position: relative; background: url(gfx/stadion.png) center top/100% auto no-repeat; aspect-ratio: 320 / 240; }
.anzeige { position: absolute; left: 19.4%; top: 0.8%; width: 61.2%; height: 45%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed'; color: #ffd84a; text-shadow: 0 0 6px rgba(255, 200, 40, .6); }
.anzeige .stand { font-size: clamp(30px, 11vw, 54px); font-weight: 700; letter-spacing: .06em; display: flex; align-items: center; gap: 10px; }
.anzeige .min { font-size: 18px; color: #ff9a30; }
.anzeige .namen { font-size: 13.5px; color: #fff; text-shadow: none; }
.ticker { max-height: 150px; overflow-y: auto; font-size: 14px; }
.ticker div { padding: 4px 10px; border-bottom: 1px solid #0b4848; }
.konferenz td { font-size: 14px; }
.konferenz tr.blitz td { animation: blitz 1.2s; }
@keyframes blitz { 0% { background: #f0c800; color: #000; } 100% { background: transparent; } }

/* Login */
.titelbild { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.vereinswahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vereinswahl button { background: var(--teal-dunkel); border: 2px solid var(--teal-hell); padding: 6px 2px; font-family: 'Barlow Condensed'; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.vereinswahl button.gewaehlt { border-color: var(--gelb); background: #3a3a00; }
.vereinswahl button:disabled { opacity: .35; }

/* Modal & Toast */
#modal { position: fixed; inset: 0; background: rgba(0, 10, 10, .75); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
#modal[hidden] { display: none; }
.modalBox { background: var(--teal); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; border-top: 3px solid var(--balken1); position: relative;
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); }
.modalBox .zu { position: absolute; right: 8px; top: 6px; background: none; border: 0; font-size: 22px; color: var(--text-leise); }
#toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: #001414; border: 2px solid var(--balken1); padding: 10px 14px; z-index: 30; max-width: 90%; font-size: 14.5px; }
#toast.fehler { border-color: var(--rot); }
.stat { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; font-size: 14px; }
.stat div { display: flex; justify-content: space-between; border-bottom: 1px solid #0b4848; padding: 3px 0; }
.leer { text-align: center; color: var(--text-leise); padding: 18px; }
@media (max-width: 480px) { .stat { grid-template-columns: 1fr; } }
.stat b { white-space: nowrap; margin-left: 8px; }
.baelle button.aus { opacity: .35; }
.baelle button { width: 21px; height: 22px; background-size: 13px; }
.schwerp { width: 34px; }
@media (max-width: 400px) { .balk { width: 40px; } }
.liste tr.meister td:first-child { box-shadow: inset 3px 0 var(--gelb); }
.liste tr.auf td:first-child { box-shadow: inset 3px 0 var(--gruen); }
.liste tr.ab td:first-child { box-shadow: inset 3px 0 #ff6060; }
.live { background: var(--rot); color: #fff; font-size: 11px; padding: 1px 6px; margin-left: 6px; letter-spacing: .08em; animation: puls 1.6s infinite; vertical-align: middle; }
@keyframes puls { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .live { animation: none; } }
.liste tr.gewaehlt td { background: rgba(255, 96, 96, .25); }
.liste tr.bank td { background: rgba(108, 184, 255, .12); }
.liste tr.bank td:first-child { box-shadow: inset 3px 0 var(--balken2); }
.plan li { display: flex; gap: 8px; align-items: center; }
.plan li .x { margin-left: auto; }

.liste tr.abschnitt td { background: var(--teal-dunkel, #033); color: var(--gelb); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; padding-top: 10px; }
.bauliste { display: grid; gap: 8px; }
.bau { border: 1px solid #0b4848; padding: 8px 10px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.bau b { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; }
.bau .stufen i { display: inline-block; width: 10px; height: 10px; margin-right: 3px; border: 1px solid var(--gelb); }
.bau .stufen i.an { background: var(--gelb); }
.bande { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 10px; }
.bande div { border: 1px solid #0b4848; padding: 6px 4px; text-align: center; font-size: 11px; min-height: 42px; }
.bande div.frei { border-style: dashed; color: #6aa; }
.trikot { display: flex; gap: 12px; align-items: center; padding: 10px; }
.trikot svg { flex: none; }

.figur.tippbar { cursor: pointer; }
.figur .srolle { position: absolute; top: -4px; left: 50%; margin-left: 12px; font-style: normal; font-weight: 700; background: var(--gelb); color: #000; padding: 0 3px; font-size: 10px; border-radius: 2px; }
.auswahl { display: grid; gap: 6px; padding: 10px 0; }
.auswahl .knopf { text-align: left; display: grid; gap: 2px; text-transform: none; }
.auswahl .knopf .klein { font-weight: 400; font-family: 'Barlow', sans-serif; letter-spacing: 0; }

.platz { touch-action: none; }
.figur.tippbar:not(.tw) { cursor: grab; }
.figur.zieht { z-index: 5; filter: drop-shadow(0 0 6px #fff); cursor: grabbing; }
.figur img { pointer-events: none; }
.zone { position: absolute; left: 0; right: 0; border-bottom: 1px dashed rgba(255,255,255,.35); pointer-events: none; }
.zone span { position: absolute; right: 4px; bottom: 2px; font-size: 10px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }
.zone.z1 { top: 0; height: 24.5%; }
.zone.z2 { top: 24.5%; height: 25%; }
.zone.z3 { top: 49.5%; height: 30.5%; }

.schalter { align-items: center; gap: 12px; cursor: pointer; }
.schalter input { width: 26px; height: 26px; accent-color: var(--gruen, #3cc85a); flex: none; }

.status.t { background: var(--gelb); color: #000; }

.sterne { color: var(--gelb); white-space: nowrap; letter-spacing: -1px; }
.sterne.klein { font-size: 11px; }
.sterne i { font-style: normal; color: rgba(240, 200, 0, .35); }

.klasse { position: relative; display: inline-block; font-size: 11px; letter-spacing: -1px; color: rgba(240, 200, 0, .25); white-space: nowrap; vertical-align: 1px; }
.klasse i { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--gelb); font-style: normal; }
.klasse.gross { font-size: 18px; }
.talent { color: #3cc85a; font-size: 10px; margin-left: 3px; white-space: nowrap; letter-spacing: -1px; }
.talent i { font-style: normal; color: rgba(60, 200, 90, .35); }

.unsicher .klasse { opacity: .55; }
.unsicher { color: var(--gelb); font-size: 11px; }
.sterne-gelb { color: var(--gelb); letter-spacing: -1px; white-space: nowrap; }
.sterne-gelb i { font-style: normal; color: rgba(240, 200, 0, .25); }
.formgitter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.formgitter label { display: grid; gap: 3px; font-size: 12px; color: #9cc; }
.formgitter select { width: 100%; }

.stadion { position: relative; }
.szene { position: absolute; inset: 8px; display: none; z-index: 5; border: 2px solid #fff; box-shadow: 0 0 0 3px #000; }
.szene.an { display: block; animation: szeneEin .25s; }
.szene svg { width: 100%; height: 100%; display: block; }
.szenetext { position: absolute; left: 0; right: 0; top: 40%; text-align: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; color: #fff; text-shadow: 0 2px 0 #000, 0 0 8px #000; opacity: 0; animation: szeneText 3.2s 1.4s forwards; }
.szenetext.tor { color: var(--gelb); font-size: 40px; }
.szenetext small { font-size: 15px; color: #fff; }
@keyframes szeneEin { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes szeneText { 0% { opacity: 0; transform: scale(.6); } 15% { opacity: 1; transform: scale(1.1); } 25% { transform: none; } 100% { opacity: 1; } }
.statkopf { display: flex; justify-content: space-between; font-weight: 700; font-family: 'Barlow Condensed', sans-serif; margin-bottom: 6px; }
.statz { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; margin: 4px 0; }
.statz > b:last-child { text-align: right; }
.statz span { font-size: 11px; color: #9cc; display: block; text-align: center; }
.sbalk { height: 7px; background: #e04040; }
.sbalk i { display: block; height: 100%; background: #3cc85a; }
.zweispalten { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.zweispalten .liste td, .zweispalten .liste th { font-size: 12px; padding: 4px 3px; }
.vergleich { margin: 10px 0; }
.vergleich span { font-size: 12px; color: #9cc; }
.vergleich div { height: 10px; background: #e04040; margin: 3px 0; }
.vergleich i { display: block; height: 100%; background: #3cc85a; }
.vergleich small { font-size: 11px; }
.form { display: inline-block; width: 18px; text-align: center; font-weight: 700; color: #000; }
.form.S { background: #3cc85a; } .form.U { background: #f0c800; } .form.N { background: #e04040; color: #fff; }

.lebenszeile { display: grid; grid-template-columns: 1fr 90px 28px; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; }
.lebenszeile b { text-align: right; }
.lebenszeile .balk { width: 100%; }
.moral { font-size: 12px; margin-left: 2px; }
#navi[hidden] { display: none; }

.pinnwand { max-height: 260px; overflow-y: auto; }
.pinnwand li { display: block; }

.flagge { font-size: 13px; margin-right: 2px; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.flagge.klein { font-size: 9px; background: #234; padding: 0 2px; }

/* ---- Kapitän, Transferfenster, Verhandlungen, Rückblick, Erfolge ---- */
.status.k { background: var(--gelb); color: #000; border-radius: 50%; padding: 0 5px; }
.fenster { margin: 0 0 10px; padding: 7px 10px; font-size: 14px; border: 2px solid; }
.fenster.offen { border-color: #3cc85a; background: rgba(60, 200, 90, .12); }
.fenster.zu { border-color: #6a8a8a; background: rgba(0, 0, 0, .18); color: var(--text-leise); }
.fenster.deadline { border-color: var(--rot); background: rgba(224, 64, 64, .18); font-weight: 700; animation: blinken 1.2s ease-in-out infinite alternate; }
@keyframes blinken { from { background: rgba(224, 64, 64, .1); } to { background: rgba(224, 64, 64, .32); } }
@media (prefers-reduced-motion: reduce) { .fenster.deadline { animation: none; } }
.verhandlung { border-bottom: 1px solid #0b4848; }
.verhandlung.amzug { border-left: 4px solid var(--gelb); }
.verlauf { margin: 6px 0 8px; padding-left: 20px; font-size: 13.5px; }
.verlauf li { margin: 1px 0; }
.rb { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #0b4848; padding: 5px 0; font-size: 14px; }
.rb span { color: var(--text-leise); flex: 0 0 auto; }
.rb b { text-align: right; }
.erfolge { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.erfolg { display: grid; gap: 2px; padding: 7px; border: 1px solid #0b4848; opacity: .55; }
.erfolg.da { opacity: 1; border-color: var(--gelb); background: rgba(240, 200, 0, .08); }
@media (max-width: 380px) { .erfolge { grid-template-columns: 1fr; } }

/* ---- Derby, Zeitung, Tippspiel, Torjubel, Radio ---- */
.derbyband { margin: 0 0 10px; padding: 7px 10px; text-align: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .04em; color: #fff;
  background: linear-gradient(90deg, #7a0000, #dc0000, #7a0000); border: 2px solid #ff9090; }
.derbyband span { display: block; font-family: 'Barlow', sans-serif; font-weight: 400; letter-spacing: 0; font-size: 12.5px; color: #ffe0e0; }
.panel .derbyband { margin: 8px 10px 0; }
.zeitung-teaser { cursor: pointer; background: #efe8d6; color: #1d1d1d; border-color: #b9ab86; }
.zeitung-teaser .zkopf { font-family: 'Times New Roman', Georgia, serif; font-weight: 700; font-size: 22px; padding: 6px 10px 2px; border-bottom: 3px double #1d1d1d; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.zeitung-teaser .zkopf span { font-family: 'Barlow', sans-serif; font-weight: 400; font-size: 12px; color: #555; }
.zeitung-teaser .zaufmacher { font-family: 'Times New Roman', Georgia, serif; font-weight: 700; font-size: 21px; line-height: 1.15; }
.zeitung-teaser .leise { color: #5d5d5d; }
.zeitung { background: #efe8d6; color: #1d1d1d; margin: -4px; padding: 12px; font-family: Georgia, 'Times New Roman', serif; }
.zeitung .zmast { text-align: center; font-size: 34px; font-weight: 700; letter-spacing: .02em; border-bottom: 3px double #1d1d1d; line-height: 1.1; }
.zeitung .zdatum { display: flex; justify-content: space-between; font-family: 'Barlow', sans-serif; font-size: 12px; border-bottom: 1px solid #1d1d1d; padding: 3px 0; margin-bottom: 8px; gap: 6px; }
.zeitung .zhead { font-size: 27px; line-height: 1.1; margin: 6px 0 2px; color: #1d1d1d; }
.zeitung .zunter { margin: 0 0 10px; font-style: italic; color: #444; }
.zeitung .zspalten { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; border-top: 1px solid #1d1d1d; padding-top: 8px; }
.zeitung .zspalten div { display: grid; gap: 2px; font-size: 15px; line-height: 1.2; }
.zeitung .zspalten span { font-family: 'Barlow', sans-serif; font-size: 12px; color: #555; }
.zeitung .zbox { border: 1px solid #1d1d1d; padding: 8px; margin: 10px 0; font-size: 14.5px; }
.zeitung .zbox select { margin-left: 6px; font-size: 13px; padding: 2px 4px; }
.zeitung .leise { color: #555; }
.zeitung .knopf { font-family: 'Barlow Condensed', sans-serif; }
.elfplatz { margin-top: 8px; background: linear-gradient(#3f8f3f, #2d742d); padding: 6px 2px; display: grid; gap: 6px; border: 2px solid #fff; }
.elfreihe { display: flex; justify-content: space-around; gap: 2px; }
.elfspieler { display: grid; text-align: center; color: #fff; font-family: 'Barlow', sans-serif; min-width: 0; flex: 1; text-shadow: 0 1px 0 #000; }
.elfspieler b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elfspieler span { font-size: 10.5px; opacity: .9; }
.elfspieler.mensch b { color: var(--gelb); }
@media (max-width: 380px) { .zeitung .zspalten { grid-template-columns: 1fr; } .zeitung .zmast { font-size: 28px; } }
.tippfeld { white-space: nowrap; }
.tippfeld input { width: 2.4em; text-align: center; padding: 4px 2px; }
.tippfeld b { margin: 0 3px; }
.radio { margin: 0 0 10px; padding: 7px 10px; background: #111; color: #ffd27a; font-family: 'Courier New', monospace; font-size: 14px; border: 2px solid #444; border-radius: 4px; }
.radio.neu { animation: radioBlink .9s; }
@keyframes radioBlink { 0% { background: #5a3d00; } 100% { background: #111; } }
.jubel { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; animation: jubelAus 3.4s forwards; }
.jubel b { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(44px, 16vw, 86px); line-height: 1; letter-spacing: .04em; color: #ffe100; text-shadow: 0 4px 0 #000, 0 0 18px #ff6a00; animation: jubelPop .6s cubic-bezier(.2, 1.6, .4, 1) both, jubelWackel .25s .6s 6 alternate; }
.jubel span { margin-top: 6px; font-size: 18px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .65); padding: 2px 10px; }
.jubel.freude { background: radial-gradient(circle, rgba(255, 210, 0, .35), rgba(255, 210, 0, 0) 70%); }
.jubel.gegen b { color: #ff5a5a; text-shadow: 0 3px 0 #000; animation: jubelPop .5s both; }
@keyframes jubelPop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes jubelWackel { from { transform: rotate(-3deg) scale(1.03); } to { transform: rotate(3deg) scale(.98); } }
@keyframes jubelAus { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .jubel b, .jubel.gegen b, .radio.neu { animation: none; } }

/* ---- BMH-Klassik ---- */
.mgr { display: inline-block; background-image: url(gfx/manager.png); background-repeat: no-repeat; border: 2px solid var(--teal-hell); flex: none; vertical-align: middle; box-sizing: content-box; }
.bildwahl { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; justify-items: center; }
.bildwahl button { padding: 0; background: none; border: 2px solid transparent; line-height: 0; }
.bildwahl button .mgr { border: 0; }
.bildwahl button.gewaehlt { border-color: var(--gelb); }
.lampen { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
.lampe { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 2px 8px 2px 6px; background: var(--teal-dunkel); border: 1px solid var(--teal-hell); }
.lampe i { width: 11px; height: 11px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 6px var(--gruen); }
.lampe.gelb i { background: var(--gelb); box-shadow: 0 0 6px var(--gelb); }
.lampe.rot i { background: #ff3030; box-shadow: 0 0 7px #ff3030; animation: blinken 1.2s infinite; }
@keyframes blinken { 50% { opacity: .35; } }
.lampentext { padding: 2px 10px 6px; font-size: 13.5px; }
.lampentext.rot { color: #ff9a9a; } .lampentext.gelb { color: #f0d870; }
.blockgitter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; }
.block { background: var(--teal-dunkel); border: 2px solid var(--teal-hell); padding: 6px 4px; text-align: center; cursor: pointer; }
.block b { font-family: 'Barlow Condensed'; font-size: 22px; }
.block.zu { opacity: .55; border-color: #a03030; }
.blockz { height: 5px; background: #012; margin-top: 4px; } .blockz i { display: block; height: 100%; }
.spark { font-family: monospace; letter-spacing: 1px; }
.minzeile { display: grid; grid-template-columns: 4.2em 1fr 1fr; gap: 6px; align-items: center; margin-bottom: 6px; font-size: 13px; }
.minzeile > div { background: var(--teal-dunkel); height: 20px; position: relative; }
.minzeile i { display: block; height: 100%; } .minzeile i.f { background: #2fa84a; } .minzeile i.g { background: #c83838; }
.minzeile b { position: absolute; left: 6px; top: 1px; font-size: 13px; }

.kopfbild { display: block; width: 100%; max-height: 130px; object-fit: cover; object-position: center 30%; border-bottom: 2px solid var(--teal-hell); }

.bau:has(.umfbild) { grid-template-columns: 64px 1fr auto; }
.umfbild { width: 64px; height: auto; max-height: 56px; object-fit: contain; flex: none; }
.umfeld { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 6px; padding: 10px; background: linear-gradient(#8fb8d8, #bcd6e8 60%, #6c8a4a 60%); min-height: 70px; }
.umfeld img { height: 40px; width: auto; }
.umfeld img.kran { height: 64px; }

/* Keine Scrollbalken (Scrollen geht weiter) */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }
.rnr { display: inline-block; min-width: 1.6em; padding: 0 4px; margin-right: 6px; background: #fff; color: #062f2f; border-radius: 3px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-align: center; }
input[type=color] { width: 44px; height: 30px; border: 2px solid var(--teal-hell); background: none; padding: 0; vertical-align: middle; }
/* Hauptmenü wie im Original */
.hauptmenue { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; background: #0a2a4a; }
.mknopf { aspect-ratio: 32 / 25; width: 100%; border: 0; padding: 0; cursor: pointer; background: url(gfx/menu.png) no-repeat; background-size: 800% 400%; image-rendering: pixelated; box-shadow: 0 2px 0 #000; }
.mknopf:active { transform: translateY(1px); filter: brightness(1.2); }
@media (min-width: 560px) { .hauptmenue { grid-template-columns: repeat(6, 1fr); } }
/* Stadion von oben */
.stadionoben { position: relative; margin: 8px 10px; }
.stadionoben img { width: 100%; display: block; image-rendering: pixelated; }
.sblock { position: absolute; transform: translate(-50%, -50%); min-width: 40px; padding: 2px 4px; background: rgba(120, 0, 0, .88); color: #fff; border: 2px solid #3cc85a; border-radius: 4px; font-family: 'Barlow Condensed', sans-serif; line-height: 1; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.sblock b { font-size: 17px; }
.sblock small { font-size: 10px; white-space: nowrap; }
.sblock.zu { background: rgba(60, 60, 60, .9); }
.blink { animation: blink .4s 4; }
@keyframes blink { 50% { filter: brightness(1.8); } }
/* Original-Symbole */
.daumen { width: 22px; height: 22px; vertical-align: middle; image-rendering: pixelated; }
.tick { height: 15px; width: auto; vertical-align: -2px; image-rendering: pixelated; }
.zeitleiste { position: relative; height: 34px; background: url(gfx/zeitleiste.png) center/100% 100% no-repeat; image-rendering: pixelated; }
.zeitleiste #zlBall { position: absolute; top: 10%; width: 4px; height: 80%; background: #ffd400; box-shadow: 0 0 4px #ffd400; transform: translateX(-50%); transition: left .8s linear; }
.zeitleiste #zlTore img { position: absolute; height: 45%; transform: translateX(-50%); }
.kopfbild.ikon { display: flex; justify-content: center; background: radial-gradient(#0d4a4a, #062f2f); padding: 6px 0; max-height: none; object-fit: unset; }
.kopfbild.ikon img { height: 96px; width: auto; image-rendering: pixelated; border: 2px solid #000; }
body { background: var(--teal-dunkel) url(gfx/bg.png) repeat; background-size: 318px 207px; }
/* Schreibtisch (Original-Büro) */
.schreibtisch { display: grid; grid-template-columns: 1fr 1.6fr 1fr 1fr 1fr; gap: 4px; padding: 6px; background: #0a3d6b; }
.schreibtisch button { border: 2px solid #000; background: linear-gradient(#3d8fd0, #1a5c99); padding: 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; color: #fff; }
.schreibtisch .st-kal { background: #fff; color: #c00000; font-family: 'Barlow Condensed', sans-serif; line-height: 1; border-top: 8px solid #c00000; }
.st-kal b { font-size: 24px; } .st-kal small { font-size: 10px; color: #333; font-weight: 700; }
.st-geld img { width: 100%; image-rendering: pixelated; } .st-geld span { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; }
.st-pc img { height: 54px; image-rendering: pixelated; }
.st-name { background: linear-gradient(#5aa8e0, #2a6fae); color: #0b1d33; text-align: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 1px; padding: 3px; border-top: 2px solid #000; border-bottom: 2px solid #000; }
.st-meldung { background: #0b2a3f; color: #9fd8ff; font-family: 'Barlow Condensed', sans-serif; font-size: 15px; padding: 6px 10px; min-height: 2.4em; border-bottom: 2px solid #000; }
.persbild { width: 50px; height: 41px; float: left; margin: 0 8px 4px 0; image-rendering: pixelated; border: 1px solid #000; }
/* Zeitung */
ul.news.papier { background: #f2f0e8; color: #111; margin: 0; }
ul.news.papier li { border-color: #c9c4b4; color: #111; }
ul.news.papier .leise { color: #6b6658; }
/* Konferenz wie die Stadion-Anzeigetafel */
.konferenz tr td { background: linear-gradient(#2f7fc4, #1a5492); color: #fff; border-bottom: 2px solid #000; }
.konferenz tr td.bc { background: #000 !important; color: #ffd400 !important; font-family: 'Courier New', monospace; letter-spacing: 2px; }
.konferenz tr.ich td { background: linear-gradient(#4aa6ea, #2a6fae); }
/* Kopfzeile: rechts nichts mehr abschneiden */
#kopf { gap: 8px; }
#kopf .logo { min-width: 0; flex: 1 1 auto; max-width: calc(100% - 96px); height: auto; max-height: 26px; object-fit: contain; object-position: left center; }
#kopfInfo { flex: 0 0 auto; white-space: nowrap; }
