@font-face{font-family:'SGZ Ziffern';src:local('Times New Roman'),local('TimesNewRomanPSMT'),local('Liberation Serif'),local('LiberationSerif'),local('Tinos'),local('Noto Serif'),local('NotoSerif-Regular');font-weight:100 600;unicode-range:U+0030-0039}
@font-face{font-family:'SGZ Ziffern';src:local('Times New Roman Bold'),local('TimesNewRomanPS-BoldMT'),local('Liberation Serif Bold'),local('LiberationSerif-Bold'),local('Tinos Bold'),local('Noto Serif Bold'),local('NotoSerif-Bold');font-weight:700 900;unicode-range:U+0030-0039}
:root {
  --akzent: #55e0d1; --akzent2: #ffb347; --akzent3: #08221f; --tief: #05070d; --panel: rgba(30, 34, 42, .96); --panel2: rgba(30, 34, 42, .98);
  --text: #e8f2fa; --mute: #b8c6d2; --rand: rgba(167, 177, 191, .6); --knopf1: #3a414d; --knopf2: #252a33; --knopfText: #e8f2fa;
  --gruen: #7ff0a0; --rot: #ff7a5a; --gold: #ffe066;
  --kopf: 'SGZ Ziffern', Georgia, 'Times New Roman', serif;
  --blech1: #4a515c; --blech2: #2b3038; --blechKante: #a7b1bf; --tafel: #10141b; --tafelText: #e6f3ff;
  --sk-linie: #55e0d1; --sk-feind: #ffb347; --sk-mond: #ffe066; --sk-stern: #cfe7ff; --sk-strahl: #8ffcff; --sk-grund: #03060d; --sk-rot: #ff6a4a; --sk-streben: #8b96a6;
  --mo-grund: #0d1a1f; --mo-grund2: #16303a; --mo-akzent: #55e0d1; --mo-text: #e8f2fa; --mo-rand: rgba(255, 179, 71, .5);
  --leiste-h: 172px;
}
html[data-ansicht="bernstein"] { --akzent: #ffb347; --sk-linie: #ffb347; --sk-strahl: #ffd27a; --sk-feind: #7ff0ff; --mo-akzent: #ffb347; --sk-stern: #ffe6c0; }
html[data-ansicht="hell"] {
  --akzent: #0f6f66; --akzent2: #b25a12; --akzent3: #e8eef3; --tief: #c9d2dc; --panel: rgba(236, 240, 244, .97); --panel2: rgba(236, 240, 244, .98);
  --text: #18202a; --mute: #3c4856; --rand: rgba(40, 52, 66, .45); --knopf1: #eef2f6; --knopf2: #cfd8e2; --knopfText: #18202a;
  --gruen: #1d7a3a; --rot: #b3261e; --gold: #8a6a10;
  --blech1: #e3e8ee; --blech2: #c3ccd6; --blechKante: #5a6676; --tafel: #f4f7fa; --tafelText: #18202a; --sk-streben: #b9c3cf;
}
body { background: var(--tief); color: var(--text); }
#kulisse { position: fixed; inset: 0; z-index: 0; background: radial-gradient(120% 90% at 50% 20%, #13213d 0%, #070a14 70%) #05070d; }

#buehne { z-index: 1; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) var(--leiste-h); gap: 0; padding: 0; }
#brettbox { grid-row: 1; display: block; overflow: clip; }
#hud { grid-row: 2; display: grid; grid-template-columns: 124px 104px minmax(0, 1.15fr) minmax(0, 1.05fr) minmax(0, 1.1fr) 136px 132px;
  grid-template-rows: 1fr 1fr; grid-template-areas: 'logo zeit schiff ortung lage karte kn' 'modus punkte schiff ortung lage karte kn';
  gap: 8px 10px; padding: 12px 14px 12px; border-radius: 0; overflow: visible; transform: none !important;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, rgba(0, 0, 0, .035) 1px 3px, rgba(255, 255, 255, 0) 3px 5px), linear-gradient(180deg, var(--blech1), var(--blech2));
  border-top: 3px solid var(--blechKante);
  box-shadow: 0 -12px 26px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .18); }
#hud::before, #hud::after { content: ''; position: absolute; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--blechKante); box-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
#hud::before { left: 8px; } #hud::after { right: 8px; }
#logo { grid-area: logo; align-self: end; font-size: 15.5px; letter-spacing: .3px; padding: 0; white-space: nowrap; }
#modus { grid-area: modus; align-self: start; font-size: 12.5px; }
#wZeit { grid-area: zeit; } #wPunkte { grid-area: punkte; }
#eigen, #info { display: none; }
#tSchiff { grid-area: schiff; } #tOrtung { grid-area: ortung; } #tLage { grid-area: lage; }
#tKnoepfe { grid-area: karte; display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
#knoepfe { grid-area: kn; margin: 0; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; align-content: stretch; }
#knoepfe button { height: auto; min-height: 40px; }
.wert { padding: 4px 6px 5px; background: var(--tafel); border-color: var(--blechKante); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45); }
.wert span { font-size: 11px; color: var(--mute); }
.wert b { font: 800 24px/1.1 var(--kopf); color: var(--tafelText); font-variant-numeric: lining-nums tabular-nums; font-kerning: none; }
#logo span { color: var(--text); } #logo b { color: var(--akzent); }

.tafel { position: relative; border-radius: 12px; padding: 8px 12px; background: var(--tafel); border: 1px solid var(--blechKante); color: var(--tafelText);
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, .5); min-width: 0; overflow: hidden; container-type: inline-size; }
.tafel h3 { margin: 0 0 5px; font: 700 12px/1.15 Verdana, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--akzent); overflow-wrap: anywhere; }
i.lang, i.kurz { font-style: normal; } i.kurz { display: none; }
@container (max-width: 240px) { i.lang { display: none; } i.kurz { display: inline; } }
.balken { display: grid; grid-template-columns: 86px 1fr 50px; align-items: center; gap: 8px; margin: 3px 0; font: 12.5px Verdana, sans-serif; }
.balken i { position: relative; display: block; height: 12px; border-radius: 6px; background: rgba(0, 0, 0, .5); overflow: hidden; }
.balken i u { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: var(--gold); box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); text-decoration: none; }
html[data-ansicht="hell"] .balken i { background: rgba(40, 52, 66, .18); }
html[data-ansicht="hell"] .lampen span { border-color: rgba(29, 122, 58, .55); }
.balken i b { display: block; height: 100%; width: 100%; background: var(--akzent); transition: width .25s; }
.balken em { font: 700 14px var(--kopf); font-style: normal; text-align: right; font-variant-numeric: lining-nums tabular-nums; font-kerning: none; }
.balken.knapp i b { background: var(--rot); } .balken.knapp em { color: var(--rot); }
.lampen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 5px; margin-top: 6px; }
.lampen span { font: 11.5px/1.2 Verdana, sans-serif; text-align: center; padding: 3px 2px; border-radius: 6px; border: 1px solid rgba(127, 240, 160, .45); color: var(--gruen); white-space: nowrap; }
.lampen span.weh { background: #8d2a1f; border-color: #ff7a5a; color: #fff; animation: weh 1s steps(2) infinite; }
@keyframes weh { 50% { filter: brightness(1.35); } }
#tOrtung { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: 'kopf kopf' 'radar zeilen'; column-gap: 10px; align-items: center; }
#tOrtung h3 { grid-area: kopf; } #radar { grid-area: radar; } #tOrtung .zeilen { grid-area: zeilen; min-width: 0; }
#radar { width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--blechKante); background: radial-gradient(circle, #0d2b2a, #041312); }
.zeilen p, .lzeile { display: flex; justify-content: space-between; gap: 8px; margin: 3px 0; font: 12.5px Verdana, sans-serif; white-space: nowrap; }
.zeilen b, .lzeile b { font: 700 15px var(--kopf); font-variant-numeric: lining-nums tabular-nums; font-kerning: none; white-space: nowrap; }
.monde { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.monde .mo { display: flex; flex-direction: column; align-items: center; padding: 3px 2px; border-radius: 8px; background: rgba(255, 224, 102, .12); border: 1px solid var(--gold); color: var(--tafelText); min-width: 0; }
.monde .mo b { font: 800 16px/1 var(--kopf); color: var(--gold); }
.monde .mo small { font: 11px/1.3 Verdana, sans-serif; white-space: nowrap; }
.monde .mo.hier { box-shadow: 0 0 0 2px var(--akzent); }
.monde .mo.gefahr { background: rgba(255, 106, 74, .25); border-color: var(--rot); animation: weh .9s steps(2) infinite; }
.monde .mo.gefahr b, .monde .mo.gefahr small { color: var(--rot); }
.monde .mo.weg { opacity: .55; border-style: dashed; background: none; }
.monde .mo { font: inherit; cursor: pointer; touch-action: manipulation; }
.monde .mo:hover:not(:disabled), .monde .mo:focus-visible { background: rgba(255, 224, 102, .26); outline: none; }
.monde .mo:disabled, .monde span.mo { cursor: default; }
body.finger .monde button.mo { min-height: 40px; justify-content: center; }
.monde .mo.bald { border-color: var(--rot); border-style: dashed; }
.monde .mo.bald small { color: var(--rot); font-weight: 700; }
#tKnoepfe button { border-radius: 12px; border: 2px solid rgba(0, 0, 0, .55); background: linear-gradient(var(--knopf1), var(--knopf2)); color: var(--knopfText);
  cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; min-height: 40px; padding: 4px 6px; }
#tKnoepfe button b { font: 700 14px Verdana, sans-serif; } #tKnoepfe button small { font: 11px Verdana, sans-serif; color: var(--mute); text-align: center; }
#tKnoepfe button.haupt { background: linear-gradient(var(--akzent), #2a9e93); color: #06201d; } #tKnoepfe button.haupt small { color: #06302c; }
html[data-ansicht="bernstein"] #tKnoepfe button.haupt { background: linear-gradient(#ffc56a, #c07a1a); color: #2a1606; }
#tKnoepfe button.offen { box-shadow: 0 0 0 3px var(--gold); }
#tKnoepfe button.gesperrt { opacity: .55; border-style: dashed; cursor: not-allowed; }
#tKnoepfe button:not(.gesperrt):hover { filter: brightness(1.12); }

#cockpit { position: absolute; inset: 0; background: var(--sk-grund); touch-action: none; overflow: clip; box-shadow: inset 0 -8px 18px rgba(0, 0, 0, .6); }
#himmel { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#sicht { position: absolute; inset: 0; }
#brett { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; }
#kuppel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
#meld { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); flex-direction: column-reverse; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; width: min(620px, 92%); }
#meld .m { padding: 7px 14px; border-radius: 10px; background: rgba(6, 10, 18, .88); border: 1px solid var(--sk-linie); color: #e8f2fa; font: 14px/1.35 Verdana, sans-serif; text-align: center; transition: opacity .4s; }
#meld .m.weg { opacity: 0; }
#funk { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 7; display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(720px, 94%);
  padding: 6px 16px 6px 6px; border-radius: 26px; background: rgba(6, 10, 18, .92); border: 1px solid var(--blechKante); color: #e8f2fa; font: 14px/1.35 Verdana, sans-serif;
  opacity: 0; transition: opacity .3s; pointer-events: none; }
#funk.an { opacity: 1; } #funk.rot { border-color: #ff7a5a; }
#funk .gesicht { flex: none; width: 40px; height: 40px; border-radius: 50%; background: url(img/frieda.webp?v=1) center / cover no-repeat, radial-gradient(circle at 50% 38%, #f1c9a5 0 30%, #6a3d22 31% 45%, #2b6f8a 46%); border: 2px solid var(--sk-mond); }

#karte { position: absolute; inset: 0; z-index: 30; background: #040810; isolation: isolate; }
#karte canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: manipulation; }
#karte .k-kopf { position: absolute; left: 0; right: 0; top: 0; height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 64px 0 18px; color: #e8f2fa; font: 14px Verdana, sans-serif; pointer-events: none; }
#karte .k-kopf b { font: 700 17px Verdana, sans-serif; color: var(--sk-linie); letter-spacing: .06em; text-transform: uppercase; }
#karte .zu { position: sticky; pointer-events: auto; position: absolute; right: 12px; top: 8px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--blechKante); background: #252a33; color: #e8f2fa; font: 22px/1 Verdana, sans-serif; cursor: pointer; }
#karte .k-fuss { position: absolute; left: 0; right: 0; bottom: 0; min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 6px 16px; color: #e8f2fa; font: 13px/1.35 Verdana, sans-serif; text-align: center; background: rgba(0, 0, 0, .35); pointer-events: none; }

#steuer { display: none; position: absolute; left: 0; right: 0; bottom: 10px; z-index: 5; pointer-events: none; }
#steuer.an { display: block; }
#steuer .kreuz { position: absolute; left: 10px; bottom: 0; width: 176px; height: 124px; display: grid; grid-template-columns: 1fr 52px 1fr; grid-template-rows: 1fr 1fr; gap: 6px; pointer-events: auto; }
#tLinks { grid-column: 1; grid-row: 1 / 3; } #tHoch { grid-column: 2; grid-row: 1; } #tRunter { grid-column: 2; grid-row: 2; } #tRechts { grid-column: 3; grid-row: 1 / 3; }
#steuer button { touch-action: none; border-radius: 14px; border: 2px solid var(--sk-linie); background: rgba(6, 10, 18, .55); color: #e8f2fa; font: 700 13px Verdana, sans-serif; -webkit-user-select: none; user-select: none; }
#steuer button.an { background: rgba(85, 224, 209, .35); }
#tLinks::before, #tRechts::before, #tHoch::before, #tRunter::before { content: ''; display: block; margin: auto; width: 0; height: 0; border: 10px solid transparent; }
#tLinks::before { border-right: 14px solid #e8f2fa; border-left-width: 0; } #tRechts::before { border-left: 14px solid #e8f2fa; border-right-width: 0; }
#tHoch::before { border-bottom: 14px solid #e8f2fa; margin-top: 4px; } #tRunter::before { border-top: 14px solid #e8f2fa; margin-top: 18px; }
#steuer .tempo { position: absolute; right: 146px; bottom: 0; width: 64px; height: 124px; display: grid; grid-template-rows: 1fr 1fr; gap: 6px; pointer-events: auto; }
#steuer .tempo span { font: 700 11px Verdana, sans-serif; pointer-events: none; }
#tGas { border-color: var(--sk-mond) !important; } #tBremse { border-color: var(--sk-streben) !important; }
#tFeuer { position: absolute; right: 12px; bottom: 0; width: 124px; height: 124px; border-radius: 50% !important; pointer-events: auto; border-color: var(--sk-feind) !important; }
#tFeuer span { font: 700 15px Verdana, sans-serif; pointer-events: none; }

@media (max-width: 1100px) and (min-height: 561px) {
  body:not(.hoch) { --leiste-h: 218px; }
  body:not(.hoch) #hud { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); gap: 8px 10px; padding: 10px 14px;
    grid-template-areas: 'zeit punkte karte karte kn kn' 'schiff schiff ortung ortung lage lage'; }
  body:not(.hoch) #logo, body:not(.hoch) #modus { display: none; }
  body:not(.hoch) #tKnoepfe { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  body:not(.hoch) #knoepfe { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); grid-auto-rows: minmax(44px, auto); gap: 6px; align-content: center; }
}
@media (max-height: 560px) and (orientation: landscape) {
  :root { --leiste-h: 116px; }
  body:not(.hoch) #buehne { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); }
  body:not(.hoch) #hud { grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1fr) 92px 128px; grid-template-areas: 'zeit schiff ortung lage karte kn' 'punkte schiff ortung lage karte kn';
    padding: 6px 8px; gap: 5px 6px; border-radius: 0; overflow: visible; }
  #logo, #modus { display: none; }
  body:not(.hoch) .wert b { font-size: 18px; } body:not(.hoch) .wert span { font-size: 11px; letter-spacing: .3px; }
  .tafel { padding: 4px 7px; } .tafel h3 { display: none; }
  .balken { grid-template-columns: 62px minmax(0, 1fr) 36px; gap: 5px; margin: 2px 0; font-size: 11px; } .balken em { font-size: 13px; }
  .lampen span { font-size: 11px; padding: 1px; } .lampen { margin-top: 3px; gap: 3px 4px; }
  #tOrtung { grid-template-areas: 'radar zeilen'; grid-template-rows: minmax(0, 1fr); column-gap: 7px; }
  #radar { width: 62px; height: 62px; border-width: 2px; }
  .zeilen p { margin: 1px 0; font-size: 11px; gap: 4px; } .zeilen b { font-size: 13px; }
  .monde { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 4px; }
  .monde .mo { flex-direction: row; justify-content: center; gap: 5px; padding: 1px 2px; } .monde .mo b { font-size: 14px; }
  .monde .mo small { font-size: 11px; } .lzeile { margin: 3px 0 0; font-size: 11px; }
  #tKnoepfe { gap: 5px; } #tKnoepfe button { min-height: 36px; padding: 2px 4px; } #tKnoepfe button b { font-size: 13px; }
  #tKnoepfe button small { display: none; } #bKarte i.lang { display: none; } #bKarte i.kurz { display: inline; }
  body:not(.hoch) #knoepfe { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } body:not(.hoch) #knoepfe button { height: auto; min-height: 40px; }
  #steuer { bottom: 8px; } #steuer .kreuz { width: 160px; height: 104px; grid-template-columns: 1fr 48px 1fr; } #tFeuer { width: 104px; height: 104px; } #steuer .tempo { right: 124px; height: 104px; width: 58px; }
  #karte .k-kopf { height: 44px; gap: 10px; font-size: 12.5px; } #karte .k-kopf b { font-size: 15px; } #karte .zu { top: 4px; }
  #karte .k-fuss { font-size: 12px; min-height: 32px; padding: 4px 12px; }
}
body.hoch { --leiste-h: 336px; }
body.hoch #buehne { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) var(--leiste-h); gap: 0; padding: 0 0 env(safe-area-inset-bottom); }
body.hoch #hud { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; gap: 6px; padding: 8px; border-radius: 0;
  grid-template-areas: 'zeit punkte karte karte' 'schiff schiff ortung ortung' 'lage lage lage lage' 'kn kn kn kn'; }
body.hoch #logo, body.hoch #modus { display: none; }
body.hoch #tKnoepfe { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 6px; }
body.hoch #tKnoepfe button { padding: 4px; } body.hoch #tKnoepfe button b { font-size: 13.5px; } body.hoch #tKnoepfe button small { display: none; }
body.hoch #bKarte i.lang { display: none; } body.hoch #bKarte i.kurz { display: inline; }
body.hoch .tafel { padding: 6px 8px; }
body.hoch #tSchiff h3, body.hoch #tOrtung h3 { display: none; }
body.hoch #tOrtung { grid-template-areas: 'radar zeilen'; grid-template-rows: minmax(0, 1fr); column-gap: 8px; }
body.hoch #radar { width: 66px; height: 66px; border-width: 2px; }
body.hoch .zeilen p { font-size: 11.5px; margin: 2px 0; gap: 4px; } body.hoch .zeilen b { font-size: 14px; }
body.hoch .balken { grid-template-columns: 64px minmax(0, 1fr) 38px; gap: 5px; font-size: 11.5px; } body.hoch .balken em { font-size: 13px; }
body.hoch .lampen span { font-size: 11px; }
body.hoch .tafel h3 { margin-bottom: 3px; }
body.finger #meld { bottom: 150px; }
@media (max-height: 560px) and (orientation: landscape) { body.finger:not(.hoch) #meld { bottom: 8px; width: auto; max-width: calc(100% - 440px); min-width: 220px; } body.finger:not(.hoch) #meld .m { font-size: 12.5px; padding: 5px 10px; } }
body.hoch #steuer .kreuz { width: 156px; height: 108px; grid-template-columns: 1fr 48px 1fr; } body.hoch #tFeuer { width: 108px; height: 108px; } body.hoch #steuer .tempo { right: 128px; height: 108px; width: 58px; }

#ov { z-index: 20; }

#wahl { position: fixed; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; background: rgba(3, 6, 13, .8); padding: 12px; }
#wahl[hidden] { display: none; }
#wahl .fenster { position: relative; width: min(900px, 100%); max-height: 100%; overflow: auto; padding: 16px 18px; border-radius: 14px; background: var(--panel2); border: 2px solid var(--blechKante); color: var(--text); }
#wahl h2 { margin: 0 0 4px; color: var(--akzent); font: 800 24px var(--kopf); }
#wahl .leise { margin: 0 0 10px; color: var(--mute); font-size: 14px; }
#wahl .felder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
#wahl .feldwahl { position: relative; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 7px 9px; border-radius: 10px; border: 2px solid var(--rand);
  background: var(--tafel); color: var(--tafelText); text-align: left; min-height: 44px; min-width: 0; }
#wahl .feldwahl b { font: 800 17px var(--kopf); color: var(--akzent); } #wahl .feldwahl span { font-size: 13px; line-height: 1.2; } #wahl .feldwahl small { font-size: 12px; color: var(--mute); }
#wahl .feldwahl.zu { opacity: .55; border-style: dashed; cursor: not-allowed; }
#wahl .feldwahl .kob { position: absolute; right: 5px; top: 5px; display: flex; align-items: flex-end; gap: 1px; pointer-events: none; }
#wahl .feldwahl .kob svg { width: 22px; height: 18px; }
#wahl .feldwahl .kob em { font: 700 11px Verdana, sans-serif; font-style: normal; color: var(--mute); margin: 0 3px 0 -2px; }
#wahl .feldwahl[data-stufe="0"] { border-left: 5px solid #55e0d1; } #wahl .feldwahl[data-stufe="1"] { border-left: 5px solid #a07cff; }
#wahl .feldwahl[data-stufe="2"] { border-left: 5px solid #ff7a5a; } #wahl .feldwahl[data-stufe="3"] { border-left: 5px solid #7dffa0; }
@media (max-width: 560px), (max-height: 430px) { #wahl .feldwahl .kob svg { width: 16px; height: 13px; } #wahl .feldwahl .kob em { font-size: 11px; } }
#wahl .feldwahl:not(.zu):hover { filter: brightness(1.15); }
#wahl .zu:not(.feldwahl) { position: sticky; float: right; top: 0; width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--blechKante); background: var(--panel); color: var(--text); font: 700 22px Verdana, sans-serif; }
@media (max-width: 760px), (max-height: 660px) {
  #wahl { padding: 6px; } #wahl .fenster { padding: 10px 10px 12px; }
  #wahl h2 { font-size: 20px; margin-bottom: 0; } #wahl .leise { font-size: 12.5px; margin-bottom: 6px; }
  #wahl .felder { gap: 5px; grid-template-columns: repeat(4, minmax(0, 1fr)); } #wahl .feldwahl { padding: 4px 7px; } #wahl .feldwahl small { display: none; }
  #wahl .feldwahl b { font-size: 15px; } #wahl .feldwahl span { font-size: 12px; line-height: 1.15; }
}
@media (max-width: 520px) { #wahl .felder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-height: 430px) and (min-aspect-ratio: 1/1) { #wahl .felder { grid-template-columns: repeat(5, minmax(0, 1fr)); } #wahl .leise { display: none; } #wahl .feldwahl span { font-size: 11.5px; } }

@media (max-height: 430px) and (min-aspect-ratio: 1/1) {
  .dlg.menue { padding: 10px 14px; }
  .dlg.menue .schildkopf { font-size: 30px; line-height: 1.05; margin: 0; }
  .dlg.menue > .unter { display: none; }
  .dlg.menue .modi { gap: 8px; margin-top: 6px; }
  .dlg.menue .modus { padding: 6px 8px; }
  .dlg.menue h3 { font-size: 15px; margin: 4px 0 0; } .dlg.menue h3 + div { padding-top: 0; padding-bottom: 0; min-height: 0; }
  .dlg.menue .reihe { margin-top: 6px; }
}
.dlg.mo-tafel .mo-leiter { margin-top: 30px; }
.dlg.mo-tafel .mo-leiter-bahn em b { display: none; }
.dlg.mo-tafel .mo-leiter-bahn em.mo-erreicht:has(+ em:not(.mo-erreicht)) b, .dlg.mo-tafel .mo-leiter-bahn em.mo-erreicht:last-of-type b { display: block; }
.dlg.mo-tafel .mo-leiter-bahn em.mo-erreicht + em:not(.mo-erreicht) b, .dlg.mo-tafel .mo-leiter-bahn em:first-of-type:not(.mo-erreicht) b { display: block; bottom: auto; top: 20px; }
.dlg.mo-tafel .mo-leiter p { margin-top: 26px; }
#ov .dlg.mo-tafel details.mo-rechen summary { min-height: 42px; display: flex; align-items: center; justify-content: center; }
@media (max-height: 430px) and (min-aspect-ratio: 1/1) {
  #ov .dlg.mo-tafel .mo-tipp { display: none; }
  #ov .dlg.mo-tafel .mo-leiter { margin-top: 22px; }
  #ov .dlg.mo-tafel .mo-kachel { padding-top: 2px; padding-bottom: 2px; }
  #ov .dlg.mo-tafel #eMenue, #ov .dlg.mo-tafel #eNoch { min-height: 50px; } #ov .dlg.mo-tafel details.mo-rechen summary { min-height: 50px; }
}
.dlg.ende.mo-tafel .mo-kacheln > .mo-kachel:last-child { container-type: inline-size; }
.dlg.ende.mo-tafel .mo-kacheln > .mo-kachel:last-child b { font-size: clamp(15px, 15cqi, 24px); line-height: 1.6; hyphens: auto; overflow-wrap: anywhere; }
.pflug { position: fixed; z-index: 40; pointer-events: none; font: 800 20px var(--kopf); text-shadow: 0 2px 6px rgba(0, 0, 0, .8); white-space: nowrap; transform: translate(-50%, -50%); }
#punkte.pop { animation: skPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes skPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); color: var(--sk-mond); } 100% { transform: scale(1); } }
.lampen span.neu { animation: skRuettel .5s; }
@keyframes skRuettel { 0%, 100% { transform: none; } 20% { transform: translateX(-4px) rotate(-3deg); } 40% { transform: translateX(4px) rotate(3deg); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.lampen span.heil { animation: skHeil .9s both; }
@keyframes skHeil { 0% { box-shadow: 0 0 0 0 rgba(125, 255, 160, .9); background: rgba(125, 255, 160, .55); } 100% { box-shadow: 0 0 0 10px rgba(125, 255, 160, 0); } }
.balken.tank i b { animation: skTank .7s; }
@keyframes skTank { 0%, 60% { background: var(--sk-strahl); box-shadow: 0 0 10px var(--sk-strahl); } }
@media (prefers-reduced-motion: reduce) { #punkte.pop, .lampen span.neu, .lampen span.heil, .balken.tank i b { animation: none; } }
html.ruhig #punkte.pop, html.ruhig .lampen span.neu, html.ruhig .lampen span.heil, html.ruhig .balken.tank i b { animation: none; }
#ov kbd { display: inline-block; min-width: 1.5em; padding: 0 5px; margin: 0 1px; border-radius: 5px; border: 1px solid var(--blechKante, #7a8696); border-bottom-width: 2px; background: rgba(255, 255, 255, .08); font: 700 12px Verdana, sans-serif; text-align: center; }
#ov .steck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
#ov .steck > div { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; border-radius: 10px; border: 1px solid var(--rand, #3a4656); background: rgba(0, 0, 0, .25); text-align: center; }
#ov .steck svg { width: 54px; height: 45px; } #ov .steck b { font: 800 14px var(--kopf); } #ov .steck span { font-size: 12px; } #ov .steck small { font-size: 11px; color: var(--mute); line-height: 1.25; }
#ov .kp { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.lzeile.auftrag span { min-width: 0; color: var(--mute); font-size: 11px; }
@media (max-height: 640px) { .lzeile.auftrag { display: none; } }
.lzeile.auftrag b { color: var(--rot); font-size: 13px; } .lzeile.auftrag.ok b { color: #7dffa0; }
@media (max-height: 560px) and (orientation: landscape) { body:not(.hoch) .lzeile.auftrag { display: none; } }
#ov .rt-tabs { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 8px; background: inherit; }
#ov .rt-tab { min-height: 40px; padding: 6px 12px; border-radius: 10px; border: 2px solid var(--rand, #3a4656); background: rgba(0, 0, 0, .25); color: inherit; font: 700 13px Verdana, sans-serif; cursor: pointer; }
#ov .rt-tab.an { border-color: var(--akzent); color: var(--akzent); background: rgba(85, 224, 209, .12); }
#ov .steck { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 520px) { #ov .steck { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#wahl .felder.stufen { grid-template-columns: repeat(4, minmax(0, 1fr)); } #wahl .feldwahl.stufe { min-height: 96px; padding-top: 30px; }
#wahl .feldwahl.stufe .kob svg { width: 26px; height: 22px; }
@media (max-width: 560px) { #wahl .felder.stufen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mo-eng2 .mo-leiter, .mo-eng2 .mo-plakette.mo-info { display: none !important; }
#wahl .feldwahl .kob.viele em { display: none; } #wahl .feldwahl .kob.viele svg { width: 17px; height: 14px; }
body.hoch #steuer button { background: rgba(6, 10, 18, .28); border-width: 1.5px; }
body.hoch #steuer button.an { background: rgba(85, 224, 209, .3); }
body.hoch #steuer .kreuz { width: 138px; height: 92px; grid-template-columns: 1fr 44px 1fr; gap: 4px; left: 6px; }
body.hoch #tFeuer { width: 92px; height: 92px; right: 8px; } body.hoch #steuer .tempo { right: 106px; width: 52px; height: 92px; gap: 4px; }
body.hoch #steuer { bottom: 6px; opacity: .92; }
#ov .rt-listen { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
#ov .rt-liste { padding: 6px 8px; border-radius: 10px; border: 1px solid var(--rand, #3a4656); background: rgba(0, 0, 0, .25); }
#ov .rt-liste h4 { margin: 0 0 4px; font: 800 14px var(--kopf); color: var(--akzent); } #ov .rt-liste ol { margin: 0; padding-left: 20px; font-size: 13px; }
#ov .rt-liste li span { display: inline-block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; } #ov .rt-liste li b { float: right; font: 700 13px var(--kopf); }
#karte .k-werkknopf { margin-left: auto; min-height: 40px; padding: 4px 12px; border-radius: 10px; border: 2px solid #ffd34a; background: rgba(255, 211, 74, .12); color: #ffd34a; font: 700 13px Verdana, sans-serif; cursor: pointer; white-space: nowrap; }
#karte .k-werkknopf.glanz { animation: skWerk 1.2s ease-in-out infinite; } @keyframes skWerk { 50% { background: rgba(255, 211, 74, .35); } }
#karte .k-werk { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); z-index: 3; width: min(640px, 94%); max-height: calc(100% - 66px); overflow: auto; padding: 12px 14px; border-radius: 14px; background: rgba(8, 12, 22, .97); border: 2px solid #ffd34a; color: #e8f2fa; }
#karte .k-werk[hidden] { display: none; } #karte .k-werk h3 { margin: 0 0 4px; font: 800 18px var(--kopf); color: #ffd34a; } #karte .k-werk .leise { margin: 0 0 8px; font-size: 12.5px; color: var(--mute); }
#karte .k-werk .zu { top: 8px; right: 8px; } #karte .k-werk h3, #karte .k-werk .leise { padding-right: 50px; }
#karte .k-werk-teile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#karte .k-werk-teile button { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-height: 64px; padding: 8px 10px; border-radius: 10px; border: 2px solid rgba(255, 211, 74, .6); background: rgba(255, 211, 74, .08); color: inherit; text-align: left; cursor: pointer; font: 12.5px Verdana, sans-serif; }
#karte .k-werk-teile button:disabled { opacity: .5; cursor: default; } #karte .k-werk-teile b { font: 800 15px var(--kopf); color: #ffd34a; } #karte .k-werk-teile i { font-style: normal; color: #ffd34a; letter-spacing: 2px; } #karte .k-werk-teile em { font-style: normal; font-weight: 700; }
@media (max-width: 520px) { #karte #kInfo { display: none; } #karte .k-kopf { gap: 8px; padding-left: 12px; } #karte .k-werk-teile { grid-template-columns: 1fr; } #karte .k-werkknopf { padding: 4px 8px; font-size: 12px; } }
#ov .ehre { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
#ov .ehr { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 10px; border: 1px solid var(--rand, #3a4656); background: rgba(0, 0, 0, .25); text-align: center; }
#ov .ehr.zu { opacity: .6; } #ov .ehr b { font: 800 13.5px var(--kopf); } #ov .ehr small { font-size: 11.5px; color: var(--mute); line-height: 1.25; }
#ov .ehr i { display: block; width: 90%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; } #ov .ehr i u { display: block; height: 100%; background: var(--akzent); }
#ov .ehr em { font-style: normal; font: 700 12px var(--kopf); }
@media (max-width: 900px) { #wahl .feldwahl:not(.stufe) .kob em { display: none; } }
#zielTafel { position: absolute; left: 14px; top: 14px; z-index: 6; max-width: min(46%, 380px); min-height: 40px; padding: 7px 12px; border-radius: 10px; border: 2px solid var(--sk-linie); background: rgba(3, 6, 13, .86); color: #e8f2fa; font: 700 13px Verdana, sans-serif; text-align: left; cursor: pointer; }
#zielTafel[hidden] { display: none; } #zielTafel.rot { border-color: var(--sk-rot); color: #ffd9cf; animation: weh .9s steps(2) infinite; } #zielTafel:disabled { cursor: default; opacity: .85; }
#tastHilfe { position: absolute; left: 14px; top: 62px; z-index: 6; display: flex; flex-wrap: wrap; gap: 6px; max-width: min(60%, 520px); pointer-events: none; }
#tastHilfe[hidden] { display: none; } #tastHilfe span { padding: 4px 8px; border-radius: 8px; background: rgba(3, 6, 13, .86); border: 1px solid var(--sk-linie); color: #e8f2fa; font: 12px Verdana, sans-serif; transition: opacity .6s; }
#tastHilfe span.ok { opacity: .35; text-decoration: line-through; } #tastHilfe kbd { display: inline-block; min-width: 1.4em; padding: 0 4px; border-radius: 4px; border: 1px solid #7a8696; border-bottom-width: 2px; background: rgba(255, 255, 255, .1); font: 700 11px Verdana, sans-serif; text-align: center; }

#steuer button.puls { animation: skPulsKnopf 1s ease-in-out infinite; } @keyframes skPulsKnopf { 50% { box-shadow: 0 0 0 6px rgba(85, 224, 209, .35); } }
#uebListe { position: absolute; right: 14px; top: 60px; z-index: 6; display: flex; flex-direction: column; gap: 3px; padding: 8px 12px; border-radius: 12px; background: rgba(3, 6, 13, .88); border: 2px solid #7dffa0; color: #e8f2fa; font: 12.5px Verdana, sans-serif; max-width: 260px; }
#uebListe[hidden] { display: none; } #uebListe b { font: 800 14px var(--kopf); color: #7dffa0; } #uebListe span::before { content: '○ '; } #uebListe span.ok { opacity: .6; } #uebListe span.ok::before { content: '● '; color: #7dffa0; } #uebListe span.jetzt { font-weight: 700; color: #7dffa0; }
#brief { position: absolute; inset: 0; z-index: 35; overflow: clip; display: flex; align-items: center; justify-content: center; background: rgba(3, 6, 13, .78); padding: 12px; }
#brief[hidden] { display: none; }
#brief .br-bild { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .55; animation: skKen 14s ease-out forwards; } @keyframes skKen { from { transform: scale(1); } to { transform: scale(1.08); } }
#brief .br-text { position: relative; z-index: 1; width: min(560px, 100%); padding: 16px 20px; border-radius: 14px; background: rgba(8, 12, 22, .9); border: 2px solid var(--sk-mond); color: #e8f2fa; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
#brief h3 { margin: 0 0 6px; font: 800 24px var(--kopf); color: var(--sk-mond); } #brief p { margin: 0 0 12px; font: 15px/1.45 Verdana, sans-serif; }
#brief .zu { position: absolute; right: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--blechKante, #7a8696); background: #252b35; color: #e8f2fa; font: 700 22px Verdana, sans-serif; cursor: pointer; }
#funk.os { border-color: #b07ad8; } #funk.os .gesicht { background-image: url(img/oberschrauber.webp?v=1); border-color: #b07ad8; }
@media (prefers-reduced-motion: reduce) { #brief .br-bild, #steuer button.puls, #zielTafel.rot { animation: none; } }
html.ruhig #brief .br-bild, html.ruhig #steuer button.puls, html.ruhig #zielTafel.rot { animation: none; }
@media (max-width: 600px) { #uebListe { right: auto; left: 14px; max-width: 62%; font-size: 12px; } }
#intro { position: fixed; inset: 0; z-index: 60; overflow: clip; background: #03060d; display: flex; flex-direction: column; justify-content: flex-end; }
#intro[hidden] { display: none; }
#intro .in-bild { position: absolute; inset: 0; background: center / cover no-repeat; } #intro .in-bild.ken { animation: skKen 8s ease-out forwards; }
#intro .in-unten { position: relative; z-index: 1; margin: 0 auto 4vh; width: min(760px, 94%); padding: 14px 18px; border-radius: 14px; background: rgba(8, 12, 22, .88); border: 2px solid var(--sk-mond); color: #e8f2fa; text-align: center; }
#intro p { margin: 0 0 10px; font: 17px/1.45 Verdana, sans-serif; } #intro .in-knoepfe { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
#intro .knopf { min-height: 44px; padding: 8px 18px; border-radius: 10px; border: 2px solid var(--sk-linie); background: rgba(85, 224, 209, .12); color: #e8f2fa; font: 700 15px Verdana, sans-serif; cursor: pointer; } #intro .knopf.haupt { background: var(--sk-linie); color: #03201d; }
#intro .zu { position: absolute; right: 14px; top: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #7a8696; background: #252b35; color: #e8f2fa; font: 700 22px Verdana, sans-serif; cursor: pointer; }
@media (max-height: 430px) { #intro p { font-size: 14px; margin-bottom: 6px; } #intro .in-unten { padding: 8px 12px; margin-bottom: 8px; } }
@media (prefers-reduced-motion: reduce) { #intro .in-bild.ken { animation: none; } }
html.ruhig #intro .in-bild.ken { animation: none; }
body.finger #zielTafel { white-space: nowrap; max-width: calc(100% - 28px); font-size: 12px; }

#ov .opt { display: grid; gap: 10px; }
#ov .opt-z { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--rand, #3a4656); background: rgba(0, 0, 0, .25); cursor: pointer; }
#ov .opt-z input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--akzent); cursor: pointer; }
#ov .opt-z b { display: block; font-size: 15px; }
#ov .opt-z small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; opacity: .85; }

#tastHilfe.weg { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
#rangLeiste { position: absolute; left: 10px; right: 10px; bottom: 4px; display: block; height: 4px; margin: 0; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
#rangLeiste u { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sk-strahl, #55e0d1), var(--gold, #ffd34a)); transition: width .5s; }
#rangLeiste.nah u { animation: skGlitz 1s ease-in-out infinite; }
@keyframes skGlitz { 50% { filter: brightness(1.8); box-shadow: 0 0 6px #ffd34a; } }
#osKopf { position: absolute; left: 0; top: 42%; z-index: 6; display: flex; align-items: center; gap: 8px; transform: translateX(-120%); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none; }
#osKopf.an { transform: translateX(10px); }
#osKopf i { flex: none; width: 58px; height: 58px; border-radius: 50%; background: url(img/oberschrauber.webp?v=1) center / cover no-repeat, #3a2a4a; border: 3px solid #b07ad8; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
#osKopf span { max-width: 190px; padding: 7px 11px; border-radius: 12px; background: rgba(6, 10, 18, .9); border: 2px solid #b07ad8; color: #f1e4ff; font: 700 13px/1.3 Verdana, sans-serif; }
#osKopf.wut i { animation: skWut .35s ease-in-out 4; }
@keyframes skWut { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-8px) rotate(-8deg); } 75% { transform: translateY(-4px) rotate(8deg); } }
body.finger #osKopf { top: 30%; } body.finger #osKopf i { width: 44px; height: 44px; } body.finger #osKopf span { font-size: 12px; max-width: 150px; }
@media (prefers-reduced-motion: reduce) { #osKopf, #osKopf.wut i, #rangLeiste.nah u { animation: none; transition: none; } }
html.ruhig #osKopf, html.ruhig #osKopf.wut i, html.ruhig #rangLeiste.nah u { animation: none; transition: none; }
