/* Developed by Enjyn Gruppe — https://enjyn.de */
@import url('https://fonts.eg-core.de/css2?family=Fredoka:wght@500;600;700&family=Figtree:wght@400;500;600;700;800&display=swap');

:root {
  --text: #1b1c3a;
  --text-2: #555a7d;
  --linie: #1b1c3a;
  --grund: #eef2fb;
  --karte: #ffffff;
  --flaeche: #f2f4fb;
  --leer: #dce1ef;
  --himmel-1: #8fb4ff;
  --himmel-2: #d3e3ff;
  --wiese-1: #8edb8c;
  --wiese-2: #6cc673;
  --wolke: #ffffff;
  --wolke-grau: #d9dfee;
  --sonne: #ffd23f;
  --krater: #f1c232;
  --wange: #ff8fa3;
  --stern: #fff4c2;
  --online: #2fcf8e;
  --wackelig: #ffc53d;
  --stoerung: #ff8a3d;
  --offline: #ff5a5f;
  --wartung: #4f8cff;
  --unbekannt: #b9bfd3;
  --helm: #ffd23f;
  --marke: #7a3cf2;
  --marke-hell: #ece4ff;
  --fokus: #7a3cf2;
  --auf-farbe: #1b1c3a;
  --figur-grau: #c9cddc;
  --schleier: rgba(22, 24, 56, .46);
  --radius: 22px;
  --rand: clamp(16px, 3.6vw, 56px);
  --schatten: 0 4px 0 var(--linie);
  --schatten-hoch: 0 7px 0 var(--linie);
  --federn: cubic-bezier(.34, 1.56, .64, 1);
  --weich: cubic-bezier(.22, 1, .36, 1);
  --schrift: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --titel: 'Fredoka', 'Figtree', ui-rounded, system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #eef0ff;
    --text-2: #a9aed3;
    --linie: #05061c;
    --grund: #13173a;
    --karte: #1f2352;
    --flaeche: #282d63;
    --leer: #343a74;
    --himmel-1: #0b1034;
    --himmel-2: #2a3380;
    --wiese-1: #2e7552;
    --wiese-2: #235e43;
    --wolke: #3d4591;
    --wolke-grau: #323877;
    --sonne: #ffe7a1;
    --krater: #f2d27f;
    --stern: #fff4c2;
    --online: #3ae29d;
    --wackelig: #ffd057;
    --stoerung: #ff9b52;
    --offline: #ff6b70;
    --wartung: #6aa2ff;
    --unbekannt: #9097b8;
    --marke: #8352f6;
    --marke-hell: #2c2462;
    --fokus: #b596ff;
    --figur-grau: #aeb3cb;
    --schleier: rgba(3, 4, 18, .62);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --text: #eef0ff;
  --text-2: #a9aed3;
  --linie: #05061c;
  --grund: #13173a;
  --karte: #1f2352;
  --flaeche: #282d63;
  --leer: #343a74;
  --himmel-1: #0b1034;
  --himmel-2: #2a3380;
  --wiese-1: #2e7552;
  --wiese-2: #235e43;
  --wolke: #3d4591;
  --wolke-grau: #323877;
  --sonne: #ffe7a1;
  --krater: #f2d27f;
  --stern: #fff4c2;
  --online: #3ae29d;
  --wackelig: #ffd057;
  --stoerung: #ff9b52;
  --offline: #ff6b70;
  --wartung: #6aa2ff;
  --unbekannt: #9097b8;
  --marke: #8352f6;
  --marke-hell: #2c2462;
  --fokus: #b596ff;
  --figur-grau: #aeb3cb;
  --schleier: rgba(3, 4, 18, .62);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  min-height: 100vh;
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--grund);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 10px; }

.ic { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }
.nur-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nur-mobil { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprungmarke {
  position: absolute; left: 16px; top: -60px; z-index: 1200;
  padding: 10px 16px; border: 2px solid var(--linie); border-radius: 999px;
  background: var(--karte); font-weight: 700; text-decoration: none;
}
.sprungmarke:focus { top: 16px; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .55em 1.1em;
  border: 2px solid var(--linie); border-radius: 999px;
  background: var(--karte); color: var(--text);
  font-weight: 700; font-size: .95rem; line-height: 1.1; white-space: nowrap; text-decoration: none;
  box-shadow: 0 3px 0 var(--linie);
  transition: transform .14s var(--weich), box-shadow .14s var(--weich), background-color .2s;
}
.knopf:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--linie); }
.knopf:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--linie); }
.knopf-marke { background: var(--marke); color: #fff; }
.knopf-rund { width: 44px; padding: 0; }
.knopf-rund .ic { width: 21px; height: 21px; }
.knopf-breit { width: 100%; }
.knopf[disabled] { opacity: .6; pointer-events: none; }
.text-knopf {
  border: 0; background: none; padding: 4px 2px; font-weight: 700; font-size: .88rem;
  color: var(--marke); text-decoration: underline; text-underline-offset: 3px;
}
:root[data-theme="dark"] .text-knopf { color: var(--fokus); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .text-knopf { color: var(--fokus); } }

.logo {
  display: inline-flex; align-items: center; flex: none;
  padding: 8px 16px; border: 2px solid var(--linie); border-radius: 999px;
  background: var(--karte); box-shadow: 0 3px 0 var(--linie);
  transition: transform .14s var(--weich), box-shadow .14s var(--weich);
}
.logo:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--linie); }
.logo img { width: auto; height: clamp(22px, 1.9vw, 30px); }
.logo-dunkel { display: none !important; }
:root[data-theme="dark"] .logo-hell { display: none !important; }
:root[data-theme="dark"] .logo-dunkel { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-hell { display: none !important; }
  :root:not([data-theme="light"]) .logo-dunkel { display: block !important; }
}

.buehne {
  --huegel: clamp(96px, 15svh, 168px);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: min(100svh, 1120px);
  background: linear-gradient(180deg, var(--himmel-1) 0%, var(--himmel-2) 78%);
  border-bottom: 3px solid var(--linie);
}
.buehne[data-wetter="regen"] { --himmel-1: #93a6cf; --himmel-2: #d0d9ec; }
.buehne[data-wetter="sturm"] { --himmel-1: #6b7699; --himmel-2: #aeb8d2; --wolke: #c7cde0; }
:root[data-theme="dark"] .buehne[data-wetter="regen"],
:root[data-theme="dark"] .buehne[data-wetter="sturm"] { --himmel-1: #080b24; --himmel-2: #1c2256; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .buehne[data-wetter="regen"],
  :root:not([data-theme="light"]) .buehne[data-wetter="sturm"] { --himmel-1: #080b24; --himmel-2: #1c2256; }
}

.himmel { position: absolute; inset: 0; z-index: 1; pointer-events: none; container-type: inline-size; }

.kopf {
  position: relative; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(18px, env(safe-area-inset-top)) var(--rand) 14px;
}
.kopf-aktionen { display: flex; align-items: center; gap: 10px; }

.botschaft {
  position: relative; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  margin-block: auto; padding: 28px var(--rand) 18px; text-align: center;
}
.schlagzeile {
  max-width: 14ch;
  font-family: var(--titel); font-weight: 700;
  font-size: clamp(2.5rem, 1rem + 5.2vw, 6.6rem);
  line-height: 1.02; letter-spacing: .01em;
  color: #fff;
  -webkit-text-stroke: .13em var(--linie);
  paint-order: stroke fill;
  text-shadow: 0 .075em 0 var(--linie);
  text-wrap: balance;
  /* Umrandung, Schatten und Unterlängen ragen über den Textrahmen hinaus; ohne Abstand klebt die Statuszeile daran */
  margin-bottom: .3em;
}
.lage {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  max-width: min(100%, 860px);
  padding: 10px 20px;
  border: 2px solid var(--linie); border-radius: 22px;
  background: var(--karte); box-shadow: 0 3px 0 var(--linie);
  font-weight: 600; font-size: clamp(.95rem, .85rem + .3vw, 1.08rem); line-height: 1.35;
}
.lage-teil { display: inline-flex; align-items: center; gap: 7px; }
.lage-punkt {
  flex: none; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--linie); background: var(--unbekannt);
}
.lage-punkt.ist-online { background: var(--online); }
.lage-punkt.ist-wackelig { background: var(--wackelig); }
.lage-punkt.ist-offline { background: var(--offline); }
.lage-punkt.ist-wartung { background: var(--wartung); }
.lage-zeit { margin-top: -8px; min-height: 1.3em; color: var(--text-2); font-weight: 600; font-size: .9rem; }

.crew {
  --figur: 58px;
  --luecke: 8px;
  position: relative; z-index: 4;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 12px calc(var(--huegel) * .79 - 7px);
}
.crew-reihe {
  display: flex; justify-content: center; align-items: flex-end; gap: var(--luecke);
  transform: translateY(calc(var(--tiefe, 0) * var(--figur) * -.06)) scale(max(.7, calc(1 - var(--tiefe, 0) * .12)));
  transform-origin: 50% 100%;
}
.crew-reihe + .crew-reihe { margin-top: calc(var(--figur) * -.66); }
.crew-figur {
  position: relative; width: var(--figur); cursor: pointer;
  transform: translateY(var(--hoehe, 0px));
  translate: 0 0;
  transition: translate .3s var(--federn);
}
.crew-figur:hover { translate: 0 -10px; }
.figur-pop { display: block; transform-origin: 50% 100%; }

.huegel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: var(--huegel); pointer-events: none; }
.huegel svg { width: 100%; height: 100%; }
.huegel .gras { fill: var(--wiese-1); stroke: var(--linie); stroke-width: 2.5; stroke-linejoin: round; }
.huegel .gras-2 { fill: var(--wiese-2); }
.huegel-schmuck { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.halm, .blume {
  position: absolute; transform: translateX(-50%); transform-origin: 50% 100%;
  animation: wiegen 3.4s ease-in-out infinite alternate; animation-delay: var(--v, 0s);
}
.halm { width: clamp(16px, 1.4vw, 24px); }
.blume { width: clamp(14px, 1.2vw, 20px); animation-duration: 4.2s; }
.halm svg, .blume svg { width: 100%; height: auto; overflow: visible; }
.halm path { fill: none; stroke: var(--linie); stroke-width: 2.2; stroke-linecap: round; }
.blume .stiel { fill: none; stroke: var(--linie); stroke-width: 2; stroke-linecap: round; }
.blume .bluete circle { fill: var(--bluete, #fff); stroke: var(--linie); stroke-width: 1.5; }
.blume .mitte { fill: var(--sonne); stroke: var(--linie); stroke-width: 1.5; }
@keyframes wiegen { from { transform: translateX(-50%) rotate(-6deg); } to { transform: translateX(-50%) rotate(6deg); } }

.weiter {
  position: absolute; left: 50%; bottom: calc(var(--huegel) * .16); z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 6px 14px 6px 18px;
  border: 2px solid var(--linie); border-radius: 999px;
  background: var(--karte); color: var(--text); box-shadow: 0 3px 0 var(--linie);
  font-weight: 700; font-size: .92rem; text-decoration: none;
  transform: translateX(-50%);
  transition: box-shadow .14s var(--weich), translate .14s var(--weich);
}
.weiter:hover { translate: 0 -1px; box-shadow: 0 4px 0 var(--linie); }
.weiter .ic { width: 18px; height: 18px; animation: nicken 1.6s ease-in-out infinite; }
@keyframes nicken { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }

.himmelskoerper {
  position: absolute; top: clamp(88px, 14svh, 160px); right: 8%;
  width: clamp(84px, 8.5vw, 150px);
  pointer-events: auto; cursor: pointer;
}
.himmelskoerper svg { width: 100%; height: auto; overflow: visible; }
.strahlen { transform-origin: 0 0; animation: drehen 48s linear infinite; }
.strahlen rect { fill: var(--sonne); stroke: var(--linie); stroke-width: 3; }
.scheibe { fill: var(--sonne); stroke: var(--linie); stroke-width: 3.5; }
.krater { fill: var(--krater); }
.strich { fill: none; stroke: var(--linie); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.tinte { fill: var(--linie); }
.wange { fill: var(--wange); opacity: .8; }
.helm { fill: #fff; stroke: var(--linie); stroke-width: 3; stroke-linejoin: round; }
.zzz { fill: var(--text); font: 700 15px var(--titel); opacity: 0; animation: zzz 5s ease-in-out infinite; }
.zzz:nth-of-type(2) { animation-delay: 1.6s; }

.wolke { position: absolute; left: 0; animation: ziehen 120s linear infinite; }
.wolke.w1 { top: var(--w1-top, 26%); display: var(--w1-zeigen, block); width: clamp(110px, 11vw, 210px); }
.wolke.w2 { top: var(--w2-top, 47%); display: var(--w2-zeigen, block); width: clamp(80px, 7vw, 132px); }
.wolke.w3 { top: var(--w3-top, 12%); display: var(--w3-zeigen, block); width: clamp(64px, 5.5vw, 104px); }
.wolke svg, .wolke-fest svg { width: 100%; height: auto; overflow: visible; }
.wolke-koerper { fill: var(--wolke); stroke: var(--linie); stroke-width: 3; stroke-linejoin: round; }
.wolke-fest { position: absolute; }
.wolke-vor-sonne { top: calc(clamp(88px, 14svh, 160px) + 44px); right: calc(8% + 36px); width: clamp(112px, 12vw, 200px); animation: schweben 7s ease-in-out infinite alternate; }
.regenwolke { top: clamp(84px, 12svh, 150px); right: 7%; width: clamp(132px, 14vw, 230px); animation: schweben 6s ease-in-out infinite alternate; }
.regenwolke.links { right: auto; left: 6%; top: calc(clamp(84px, 12svh, 150px) + 40px); width: clamp(100px, 10vw, 170px); animation-delay: -3s; }
.regenwolke .wolke-koerper { fill: var(--wolke-grau); }
.sturmwolke .wolke-koerper { fill: #8c94b3; }
:root[data-theme="dark"] .sturmwolke .wolke-koerper { fill: #2a2f63; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sturmwolke .wolke-koerper { fill: #2a2f63; } }
.tropfen-linie { stroke: #6fb6ff; stroke-width: 3.2; stroke-linecap: round; animation: regnen .9s linear infinite; }
.blitz { fill: var(--wackelig); stroke: var(--linie); stroke-width: 3; stroke-linejoin: round; opacity: 0; animation: blitzen 4.2s infinite; }
.stern { position: absolute; animation: funkeln 3.4s ease-in-out infinite; }
.stern svg { width: 100%; height: 100%; }
.stern path { fill: var(--stern); }
.voegel { position: absolute; top: var(--voegel-top, 20%); left: 0; width: clamp(40px, 3.6vw, 64px); animation: fliegen 44s linear infinite; animation-delay: -14s; }
.voegel svg { width: 100%; height: auto; overflow: visible; }
.vogel {
  fill: none; stroke: var(--linie); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  transform-box: fill-box; transform-origin: 50% 70%; animation: flattern .42s ease-in-out infinite alternate;
}
.sternschnuppe {
  position: absolute; top: 12%; left: 70%;
  width: clamp(80px, 9vw, 160px); height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--stern), transparent);
  opacity: 0; animation: schnuppe 13s ease-in infinite; animation-delay: 5s;
}

@keyframes drehen { to { transform: rotate(360deg); } }
@keyframes ziehen { from { transform: translateX(-240px); } to { transform: translateX(calc(100cqw + 40px)); } }
@keyframes schweben { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes regnen { from { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(16px); opacity: 0; } }
@keyframes blitzen { 0%, 84%, 100% { opacity: 0; } 86%, 91% { opacity: 1; } 88.5% { opacity: .25; } }
@keyframes funkeln { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: .9; } 100% { opacity: 0; transform: translate(10px, -18px); } }
@keyframes fliegen { from { transform: translate(-100px, 0); } 45% { transform: translate(45cqw, -28px); } to { transform: translate(calc(100cqw + 100px), 14px); } }
@keyframes flattern { to { transform: scaleY(.35); } }
@keyframes schnuppe {
  0% { opacity: 0; transform: translate(0, 0) rotate(-24deg); }
  1% { opacity: 1; }
  6% { opacity: 0; transform: translate(-420px, 188px) rotate(-24deg); }
  100% { opacity: 0; transform: translate(-420px, 188px) rotate(-24deg); }
}

.figur { display: block; }
.figur svg { width: 100%; height: auto; overflow: visible; }
.figur-huelle { display: block; transform-origin: 50% 100%; animation: atmen 3.6s ease-in-out infinite alternate; animation-delay: var(--phase, 0s); }
.fg-koerper { stroke: var(--linie); stroke-width: 3; stroke-linejoin: round; }
.fg-schirm { stroke: var(--linie); stroke-width: 2.6; }
.fg-linie { fill: none; stroke: var(--linie); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fg-duenn { fill: none; stroke: var(--linie); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fg-tinte { fill: var(--linie); }
.fg-glanz { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; opacity: .75; }
.fg-schatten { fill: var(--linie); opacity: .16; }
.fg-helm { fill: var(--helm); stroke: var(--linie); stroke-width: 2.6; stroke-linejoin: round; }
.fg-tropfen { fill: #8fd0ff; stroke: var(--linie); stroke-width: 2; animation: schwitzen 2.4s ease-in infinite; }
.fg-brief { fill: #fff; stroke: var(--linie); stroke-width: 2.4; stroke-linejoin: round; }
.fg-muetze { fill: var(--marke); stroke: var(--linie); stroke-width: 2.6; stroke-linejoin: round; }
.fg-blick { transition: transform .18s ease-out; }
.fg-augen { transform-box: fill-box; transform-origin: 50% 50%; animation: blinzeln 5.6s infinite; animation-delay: var(--blinz, 0s); }
.fg-led { stroke: var(--linie); stroke-width: 1.6; animation: flackern 3.3s steps(1, end) infinite; animation-delay: var(--blinz, 0s); }
.fg-halo { transform-box: fill-box; transform-origin: 50% 50%; animation: puls 2.6s ease-out infinite; animation-delay: var(--phase, 0s); }
.ist-online .fg-schirm, .ist-online .fg-lampe, .ist-online .fg-halo { fill: var(--online); }
.ist-wackelig .fg-schirm, .ist-wackelig .fg-lampe, .ist-wackelig .fg-halo { fill: var(--wackelig); }
.ist-offline .fg-schirm, .ist-offline .fg-lampe { fill: var(--offline); }
.ist-wartung .fg-schirm, .ist-wartung .fg-lampe, .ist-wartung .fg-halo { fill: var(--wartung); }
.ist-unbekannt .fg-schirm, .ist-unbekannt .fg-lampe { fill: var(--unbekannt); }
.ist-offline .fg-rumpf { fill: var(--figur-grau) !important; }
.ist-offline .fg-halo, .ist-unbekannt .fg-halo { display: none; }
.ist-wackelig .figur-huelle { animation: zittern 2.8s ease-in-out infinite; }
.ist-offline .figur-huelle { animation: none; transform: rotate(-9deg) translateY(3px); }
.ist-offline .fg-augen, .ist-wartung .fg-augen, .ist-unbekannt .fg-augen, .ist-offline .fg-led { animation: none; }

.zb-ton { stroke: var(--linie); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.zb-linie { fill: none; stroke: var(--linie); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.zb-weissstrich { fill: none; stroke: #fff; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.zb-gelb { fill: #ffd23f; }
.zb-orange { fill: #ff8a3d; }
.zb-pink { fill: #ff6f9c; }
.zb-blau { fill: #8fd0ff; }
.zb-violett { fill: #7a3cf2; }
.zb-violett-hell { fill: #b79bff; }
.zb-gruen { fill: #2fcf8e; }
.zb-braun { fill: #c68d5e; }
.zb-weiss { fill: #fff; }
.zb-grau { fill: #c9cddc; }
.zb-tinte { fill: var(--linie); }
.zb-glas { fill-opacity: .85; }
.zb-punkt { fill: var(--linie); animation: tippen 1.2s ease-in-out infinite; }
.zb-signal { fill: none; stroke: var(--linie); stroke-width: 1.8; stroke-linecap: round; animation: senden 1.8s ease-out infinite; }
.zb-schweben { animation: schwebchen 2.6s ease-in-out infinite alternate; }
.zb-rollen { animation: rollen 3.4s ease-in-out infinite alternate; }
.zb-ohr { transform-box: fill-box; transform-origin: 50% 0; animation: wackeln 3.2s ease-in-out infinite; }
.zb-drehen { transform-box: fill-box; transform-origin: 50% 50%; animation: globus 2.8s linear infinite; }
.zb-balken { transform-box: fill-box; transform-origin: 50% 100%; animation: diagramm 2.4s ease-in-out infinite alternate; }
.ist-offline .zb-punkt, .ist-offline .zb-signal, .ist-offline .zb-schweben, .ist-offline .zb-rollen,
.ist-offline .zb-ohr, .ist-offline .zb-drehen, .ist-offline .zb-balken { animation: none; }

@keyframes atmen { from { transform: translateY(0); } to { transform: translateY(-1.8px); } }
@keyframes blinzeln { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes zittern {
  0%, 78%, 100% { transform: translateX(0); }
  82% { transform: translateX(-1.4px) rotate(-1deg); }
  86% { transform: translateX(1.4px) rotate(1deg); }
  90% { transform: translateX(-1px); }
  94% { transform: translateX(.8px); }
}
@keyframes schwitzen { 0%, 40% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(7px); opacity: 0; } }
@keyframes flackern { 0%, 100% { opacity: 1; } 11% { opacity: .3; } 13% { opacity: 1; } 46% { opacity: .3; } 48% { opacity: 1; } 50% { opacity: .3; } 52% { opacity: 1; } }
@keyframes puls { from { transform: scale(.8); opacity: .55; } to { transform: scale(2.1); opacity: 0; } }
@keyframes tippen { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-2px); } }
@keyframes senden { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes schwebchen { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes rollen { from { transform: translateX(-2.5px); } to { transform: translateX(2.5px); } }
@keyframes wackeln { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(7deg); } }
@keyframes globus { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.12); } }
@keyframes diagramm { from { transform: scaleY(.5); } to { transform: scaleY(1); } }

.inhalt, .fuss { width: min(1760px, 100% - 2 * var(--rand)); margin-inline: auto; }

.hinweise { display: grid; gap: 16px; margin-top: 36px; }
.hinweise:empty { display: none; }
.hinweis {
  overflow: hidden;
  border: 2px solid var(--linie); border-radius: var(--radius);
  background: var(--karte); box-shadow: var(--schatten);
}
.hinweis::before {
  content: ''; display: block; height: 14px; border-bottom: 2px solid var(--linie);
  background: repeating-linear-gradient(-45deg, var(--wackelig) 0 14px, var(--linie) 14px 28px);
  background-size: 40px 14px; animation: band 1.6s linear infinite;
}
.hinweis.ist-geplant::before { background-image: repeating-linear-gradient(-45deg, var(--wartung) 0 14px, var(--karte) 14px 28px); animation: none; }
@keyframes band { to { background-position: 40px 0; } }
.hinweis-inhalt { display: flex; align-items: flex-start; gap: 16px; padding: 16px 20px 18px; }
.hinweis-symbol {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px;
  border: 2px solid var(--linie); border-radius: 14px; background: var(--wartung); color: var(--auf-farbe);
}
.hinweis-symbol .ic { width: 24px; height: 24px; }
.hinweis h2 { font-family: var(--titel); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.hinweis p { color: var(--text-2); margin-top: 4px; }
.hinweis .hinweis-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: .88rem; font-weight: 600; color: var(--text); }

.gruppen { display: grid; gap: 48px; margin-top: 48px; }
.gruppe-kopf { font-size: inherit; }
.gruppe-schalter {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 4px 4px 4px 2px; border: 0; background: none; text-align: left;
}
.gruppe-name { font-family: var(--titel); font-weight: 600; font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); line-height: 1.1; }
.gruppe-anzahl {
  display: inline-grid; place-items: center; min-width: 32px; height: 28px; padding: 0 8px;
  border: 2px solid var(--linie); border-radius: 999px; background: var(--karte);
  font-weight: 800; font-size: .85rem;
}
.gruppe-lage { margin-left: auto; color: var(--text-2); font-weight: 600; font-size: .92rem; }
.gruppe-lage.hat-problem { color: var(--text); }
.gruppe-pfeil {
  width: 34px; height: 34px; padding: 6px;
  border: 2px solid var(--linie); border-radius: 50%; background: var(--karte);
  transition: transform .3s var(--federn);
}
.gruppe-schalter[aria-expanded="false"] .gruppe-pfeil { transform: rotate(-90deg); }
.gruppe-raster {
  display: grid; gap: clamp(14px, 1.3vw, 22px); margin-top: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
}

.karte {
  position: relative; container-type: inline-size;
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 18px 18px;
  border: 2px solid var(--linie); border-radius: var(--radius);
  background: var(--karte); box-shadow: var(--schatten);
  transition:
    transform .18s var(--weich),
    box-shadow .18s var(--weich),
    opacity .5s var(--weich) var(--v, 0s),
    translate .75s var(--federn) var(--v, 0s);
}
.enthuellen .karte:not(.da) { opacity: 0; translate: 0 30px; }
.karte:hover { transform: translateY(-3px); box-shadow: var(--schatten-hoch); }
.karte:has(.karte-oeffnen:active) { transform: translateY(2px); box-shadow: 0 2px 0 var(--linie); }
.karte.ist-offline { background: color-mix(in srgb, var(--offline) 9%, var(--karte)); }
.karte.ist-wackelig { background: color-mix(in srgb, var(--wackelig) 12%, var(--karte)); }
.karte.ist-wartung { background: color-mix(in srgb, var(--wartung) 10%, var(--karte)); }
.karte.hat-gewechselt { animation: anstupsen .7s var(--federn); }
@keyframes anstupsen { 30% { transform: translateY(-6px) rotate(-.6deg); } 60% { transform: translateY(1px) rotate(.3deg); } }

.karte-oeffnen { position: absolute; inset: 0; z-index: 1; border: 0; border-radius: inherit; background: none; }
.karte-oeffnen:focus-visible { outline-offset: 4px; border-radius: var(--radius); }
.karte-kopf { display: flex; align-items: center; gap: 12px; }
.karte-figur { flex: none; width: 46px; }
.karte-titel { flex: 1; min-width: 0; }
.karte-titel h3 {
  font-family: var(--titel); font-weight: 600; font-size: 1.22rem; line-height: 1.2;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.karte-ort { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--text-2); font-size: .86rem; font-weight: 500; }
.karte-ort span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.karte-ort .ic { width: 15px; height: 15px; }
.karte-text { color: var(--text-2); font-size: .93rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.plakette {
  flex: none; display: inline-flex; align-items: center;
  padding: 3px 11px; border: 2px solid var(--linie); border-radius: 999px;
  background: var(--unbekannt); color: var(--auf-farbe);
  font-weight: 800; font-size: .78rem; letter-spacing: .01em;
}
.plakette.ist-online { background: var(--online); }
.plakette.ist-wackelig { background: var(--wackelig); }
.plakette.ist-offline { background: var(--offline); }
.plakette.ist-wartung { background: var(--wartung); }

.werte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wert { display: grid; gap: 5px; }
.wert-kopf { display: flex; justify-content: space-between; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--text-2); }
.wert-kopf strong { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.saft { height: 12px; overflow: hidden; border: 2px solid var(--linie); border-radius: 999px; background: var(--flaeche); }
.saft span { display: block; height: 100%; border-radius: 999px; background: var(--online); transition: width .8s var(--weich); }
.saft .stufe-wackelig { background: var(--wackelig); }
.saft .stufe-offline { background: var(--offline); }
.werte-knapp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: .88rem; font-weight: 600; color: var(--text-2); }
.werte-knapp > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.werte-knapp .ic { width: 17px; height: 17px; }
.werte-knapp strong { color: var(--text); font-variant-numeric: tabular-nums; }

/* Unten ausgerichtet, damit die Leisten nebeneinanderliegender Karten auf einer Höhe stehen */
.verlauf { position: relative; z-index: 2; margin-top: auto; }
.verlauf-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 7px; font-size: .8rem; font-weight: 600; color: var(--text-2); }
.verlauf-kopf strong { font-family: var(--titel); font-weight: 600; font-size: 1.08rem; color: var(--text); font-variant-numeric: tabular-nums; }
.leiste {
  display: flex; gap: 1px; height: 32px; padding: 3px;
  border: 2px solid var(--linie); border-radius: 11px; background: var(--karte);
  touch-action: pan-y; cursor: crosshair;
}
@container (min-width: 460px) { .leiste { gap: 2px; } }
.tag { flex: 1 1 0; min-width: 0; border-radius: 3px; background: var(--leer); transform-origin: 50% 100%; transition: transform .12s var(--federn); }
.tag.ok { background: var(--online); }
.tag.leicht { background: linear-gradient(var(--wackelig) 0 32%, var(--online) 32%); }
.tag.wackelig { background: var(--wackelig); }
.tag.stoerung { background: var(--stoerung); }
.tag.ausfall { background: var(--offline); }
.tag.wartung { background: var(--wartung); }
.tag.heute { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .55) 0 3px, transparent 3px 6px); }
.tag.aktiv { transform: scaleY(1.14); box-shadow: 0 0 0 1.5px var(--linie); }
.leiste.wachsen .tag { animation: wachsen .55s var(--federn) backwards; animation-delay: calc(var(--i, 0) * 5ms); }
@keyframes wachsen { from { transform: scaleY(0); } }

.abo-teaser {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px;
  margin-top: 64px; padding: 24px clamp(20px, 2.4vw, 36px);
  border: 2px solid var(--linie); border-radius: 30px;
  background: var(--marke-hell); box-shadow: var(--schatten);
}
.abo-teaser-figur { width: 78px; }
.abo-teaser h2 { font-family: var(--titel); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + .9vw, 1.9rem); line-height: 1.15; }
.abo-teaser p { color: var(--text-2); margin-top: 4px; max-width: 60ch; }

.fuss {
  display: grid; justify-items: center; gap: 14px;
  margin-top: 56px; padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 24px));
  text-align: center; color: var(--text-2); font-size: .9rem;
}
.fuss-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fuss-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 14px;
  border: 2px solid transparent; border-radius: 999px; background: none;
  color: var(--text); font-weight: 700; font-size: .92rem; text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.fuss-link:hover { border-color: var(--linie); background: var(--karte); }
.fuss-link .ic { width: 18px; height: 18px; }

.skelett-raster { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
.skelett { position: relative; overflow: hidden; height: 176px; border: 2px solid var(--linie); border-radius: var(--radius); background: var(--karte); box-shadow: var(--schatten); }
.skelett::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--leer) 70%, transparent) 50%, transparent 70%);
  animation: schimmern 1.4s linear infinite;
}
@keyframes schimmern { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.leiste-oben {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; gap: 14px;
  padding: max(8px, env(safe-area-inset-top)) var(--rand) 8px;
  border-bottom: 2.5px solid var(--linie);
  background: color-mix(in srgb, var(--karte) 90%, transparent);
  backdrop-filter: blur(10px);
  transform: translateY(-115%);
  transition: transform .4s var(--federn);
}
.leiste-oben.sichtbar { transform: none; }
.logo-klein { padding: 5px 11px; box-shadow: 0 2px 0 var(--linie); }
.logo-klein img { height: 18px; }
.oben-status { display: flex; align-items: center; gap: 9px; min-width: 0; font-family: var(--titel); font-weight: 600; font-size: 1.05rem; }
.oben-status span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.oben-aktionen { display: flex; gap: 8px; margin-left: auto; }
.oben-aktionen .knopf-rund { width: 40px; min-height: 40px; }

.fenster {
  width: min(800px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain;
  border: 2.5px solid var(--linie); border-radius: 30px;
  background: var(--karte); color: var(--text);
  box-shadow: 0 8px 0 var(--linie);
}
.fenster::backdrop { background: var(--schleier); backdrop-filter: blur(3px); }
.griff { display: none; }
.fenster-kopf {
  position: relative; display: flex; align-items: flex-end; gap: 20px;
  padding: 26px 76px 22px 28px;
  border-bottom: 2.5px solid var(--linie);
  background: linear-gradient(180deg, var(--himmel-1), var(--himmel-2));
}
.fenster-kopf::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; z-index: 0;
  background: var(--wiese-1); border-top: 2.5px solid var(--linie);
  border-radius: 60% 60% 0 0 / 100% 100% 0 0;
}
.fenster-kopf > * { position: relative; z-index: 1; }
.schliessen { position: absolute !important; top: 16px; right: 16px; z-index: 2 !important; }
.sb-figur { flex: none; width: 108px; margin-bottom: -4px; }
.sb-titel { min-width: 0; padding-bottom: 30px; }
.sb-titel h2 {
  font-family: var(--titel); font-weight: 700; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); line-height: 1.05;
  color: #fff; -webkit-text-stroke: .12em var(--linie); paint-order: stroke fill; text-shadow: 0 .06em 0 var(--linie);
  overflow-wrap: anywhere;
}
.sb-titel .plakette { margin-top: 12px; }
.fenster-rumpf { display: grid; gap: 26px; padding: 24px 28px 28px; }
.sb-text { font-size: 1.02rem; }
.abschnitt h3 { margin-bottom: 12px; font-family: var(--titel); font-weight: 600; font-size: 1.12rem; }
.fakten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fakt { min-width: 0; padding: 10px 14px; border: 2px solid var(--linie); border-radius: 16px; background: var(--flaeche); }
.fakt dt { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--text-2); }
.fakt dt .ic { width: 15px; height: 15px; }
.fakt dd { margin-top: 2px; font-weight: 700; overflow-wrap: anywhere; }
.kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kachel { display: grid; gap: 6px; padding: 12px 14px; border: 2px solid var(--linie); border-radius: 16px; background: var(--flaeche); }
.kachel-name { font-size: .78rem; font-weight: 700; color: var(--text-2); }
.kachel-wert { font-family: var(--titel); font-weight: 600; font-size: 1.55rem; line-height: 1; font-variant-numeric: tabular-nums; }
.kachel-zusatz { font-size: .78rem; font-weight: 600; color: var(--text-2); }
.quote-zeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.quote-gross { font-family: var(--titel); font-weight: 700; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.quote-text { color: var(--text-2); font-weight: 600; }
.leiste.leiste-gross { height: 64px; padding: 4px; border-radius: 14px; gap: 2px; }
.leiste-gross .tag { border-radius: 4px; }
.achse { display: flex; justify-content: space-between; margin-top: 6px; font-size: .78rem; font-weight: 600; color: var(--text-2); }
.legende { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: .8rem; font-weight: 600; color: var(--text-2); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 14px; height: 14px; border: 2px solid var(--linie); border-radius: 4px; background: var(--leer); }
.legende .ok { background: var(--online); }
.legende .leicht { background: linear-gradient(var(--wackelig) 0 32%, var(--online) 32%); }
.legende .wackelig { background: var(--wackelig); }
.legende .stoerung { background: var(--stoerung); }
.legende .ausfall { background: var(--offline); }
.legende .wartung { background: var(--wartung); }
.aktionen { display: flex; flex-wrap: wrap; gap: 12px; }

.abo-kopf { align-items: center; }
.abo-kopf .abo-figur { flex: none; width: 90px; margin-bottom: 4px; }
.abo-kopf h2 {
  font-family: var(--titel); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); line-height: 1.05;
  color: #fff; -webkit-text-stroke: .12em var(--linie); paint-order: stroke fill; text-shadow: 0 .06em 0 var(--linie);
}
.abo-kopf p { max-width: 44ch; margin-top: 8px; padding-bottom: 26px; font-weight: 600; }
.feld { display: grid; gap: 8px; min-width: 0; padding: 0; border: 0; }
.feld-name { padding: 0; font-family: var(--titel); font-weight: 600; font-size: 1.08rem; }
.feld input[type="email"] {
  width: 100%; min-height: 50px; padding: 10px 16px;
  border: 2px solid var(--linie); border-radius: 16px; background: var(--flaeche);
  font-size: 1rem; font-weight: 600; box-shadow: inset 0 3px 0 color-mix(in srgb, var(--linie) 10%, transparent);
}
.feld input[type="email"]::placeholder { color: var(--text-2); font-weight: 500; }
.feld input[type="email"]:focus-visible { outline-offset: 2px; border-radius: 16px; }
.wahl-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wahl-kopf span { font-size: .88rem; font-weight: 600; color: var(--text-2); }
.wahl-gruppe { display: grid; gap: 8px; }
.wahl-gruppe + .wahl-gruppe { margin-top: 12px; }
.wahl-gruppe-name { font-size: .8rem; font-weight: 800; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.wahl-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl { position: relative; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 13px;
  border: 2px solid var(--linie); border-radius: 999px; background: var(--karte);
  font-size: .88rem; font-weight: 700; cursor: pointer; user-select: none;
  transition: background-color .15s, transform .12s var(--federn);
}
.wahl span::before {
  content: ''; flex: none; width: 14px; height: 14px;
  border: 2px solid var(--linie); border-radius: 5px; background: var(--karte);
}
.wahl input:checked + span { background: var(--online); color: var(--auf-farbe); }
.wahl input:checked + span::before {
  background: var(--linie) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.wahl input:focus-visible + span { outline: 3px solid var(--fokus); outline-offset: 2px; }
.wahl span:active { transform: scale(.96); }
.schalter { display: flex; align-items: center; gap: 12px; min-height: 40px; font-weight: 600; cursor: pointer; }
.schalter input { position: absolute; opacity: 0; pointer-events: none; }
.schalter-bahn {
  position: relative; flex: none; width: 52px; height: 30px;
  border: 2px solid var(--linie); border-radius: 999px; background: var(--leer);
  transition: background-color .2s;
}
.schalter-bahn::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border: 2px solid var(--linie); border-radius: 50%; background: #fff;
  transition: transform .3s var(--federn);
}
.schalter input:checked + .schalter-bahn { background: var(--online); }
.schalter input:checked + .schalter-bahn::after { transform: translateX(22px); }
.schalter input:focus-visible + .schalter-bahn { outline: 3px solid var(--fokus); outline-offset: 2px; }
.formfehler { padding: 10px 14px; border: 2px solid var(--linie); border-radius: 14px; background: color-mix(in srgb, var(--offline) 22%, var(--karte)); font-weight: 700; }
.vorschau-hinweis { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--text-2); }
.vorschau-hinweis .ic { width: 18px; height: 18px; }
.abo-fertig { display: grid; justify-items: center; gap: 12px; padding: 34px 28px 32px; text-align: center; }
.abo-fertig .abo-figur { width: 112px; }
.abo-fertig h2 { font-family: var(--titel); font-weight: 700; font-size: 1.8rem; }
.abo-fertig p { max-width: 42ch; color: var(--text-2); font-weight: 600; }

.tipp {
  position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none;
  max-width: 250px; padding: 8px 12px;
  border: 2px solid var(--linie); border-radius: 14px;
  background: var(--karte); color: var(--text); box-shadow: 0 3px 0 var(--linie);
  font-size: .84rem; font-weight: 500; line-height: 1.4;
  opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s var(--weich);
}
.tipp.sichtbar { opacity: 1; transform: none; }
.tipp strong { display: block; font-weight: 800; }
.tipp::after {
  content: ''; position: absolute; left: var(--spitze, 50%); bottom: -8px; width: 12px; height: 12px;
  background: var(--karte); border-right: 2px solid var(--linie); border-bottom: 2px solid var(--linie);
  transform: translateX(-50%) rotate(45deg);
}
.tipp[data-seite="unten"]::after { bottom: auto; top: -8px; transform: translateX(-50%) rotate(225deg); }
.toast {
  position: fixed; left: 50%; bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px)); z-index: 1100;
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
  padding: 10px 18px; border: 2px solid var(--linie); border-radius: 999px;
  background: var(--karte); color: var(--text); box-shadow: 0 4px 0 var(--linie);
  font-weight: 700; font-size: .92rem;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .2s, transform .35s var(--federn);
}
.toast.sichtbar { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { width: 18px; height: 18px; }

.vorschau-leiste {
  position: fixed; left: 16px; bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px)); z-index: 900;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 14px;
  border: 2px solid var(--linie); border-radius: 999px;
  background: var(--karte); color: var(--text); box-shadow: 0 3px 0 var(--linie);
  font-size: .85rem; font-weight: 700;
}
.vorschau-leiste .ic { width: 17px; height: 17px; }
.vorschau-leiste > span { display: inline-flex; align-items: center; gap: 6px; }
.vorschau-leiste select {
  min-height: 34px; padding: 4px 30px 4px 12px;
  border: 2px solid var(--linie); border-radius: 999px;
  background: var(--flaeche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center / 14px no-repeat;
  color: var(--text); font-weight: 700; appearance: none; cursor: pointer;
}

@media (max-width: 1000px) {
  .himmelskoerper { top: 84px; right: 4%; width: 84px; }
  .wolke-vor-sonne { top: 116px; right: calc(4% + 26px); width: 108px; }
  .regenwolke { top: 80px; right: 3%; width: 140px; }
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .abo-teaser { grid-template-columns: 1fr; justify-items: center; padding: 26px 20px; text-align: center; }
  .abo-teaser p { margin-inline: auto; }
  .gruppe-lage { display: none; }
  .gruppe-pfeil { margin-left: auto; }
}
@media (max-width: 620px) {
  .nur-gross { display: none !important; }
  .nur-mobil { display: inline-flex !important; }
  .kopf { padding: max(12px, env(safe-area-inset-top)) 14px 10px; }
  .logo { padding: 6px 11px; }
  .logo img { height: 19px; }
  .kopf-aktionen { gap: 8px; }
  .kopf-aktionen .knopf-text { display: none; }
  .kopf-aktionen .knopf { width: 42px; min-height: 42px; padding: 0; }
  .botschaft { gap: 14px; padding-top: 18px; }
  .lage { flex-direction: column; gap: 2px; padding: 9px 16px; }
  .crew { padding-top: 12px; }
  .himmelskoerper { top: 72px; right: 4%; width: 62px; }
  .wolke-vor-sonne { top: 98px; right: calc(4% + 16px); width: 84px; }
  .regenwolke { top: 68px; right: 3%; width: 106px; }
  .regenwolke.links { display: none; }
  .weiter { min-height: 38px; font-size: .86rem; }
  .gruppen { gap: 36px; margin-top: 36px; }
  .karte { padding: 14px 14px 16px; }
  .leiste { height: 30px; padding: 2px; }
  .tag { border-radius: 2px; }
  .oben-status { font-size: .98rem; }
  .oben-zahl { display: none; }
  .leiste-oben .logo-klein { display: none; }
  .fenster {
    width: 100vw; max-width: 100vw; max-height: 92dvh;
    margin: auto 0 0; border-radius: 28px 28px 0 0; border-bottom: 0; box-shadow: none;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .griff {
    display: block; position: absolute; top: 8px; left: 50%; z-index: 3;
    width: 46px; height: 5px; margin-left: -23px; border-radius: 999px;
    background: var(--linie); opacity: .4;
  }
  .fenster-kopf { padding: 28px 64px 18px 18px; gap: 14px; touch-action: none; }
  .sb-figur { width: 82px; }
  .fenster-rumpf { gap: 22px; padding: 20px 18px 26px; }
  .fakten { grid-template-columns: 1fr; }
  .leiste.leiste-gross { height: 52px; gap: 1px; padding: 3px; }
  .vorschau-leiste { left: 10px; padding: 3px; }
  .vorschau-leiste > span { display: none; }
  .vorschau-leiste select { max-width: 100px; min-height: 30px; padding: 2px 24px 2px 10px; font-size: .76rem; background-position: right 7px center; }
}
@media (hover: none) {
  .crew-figur:hover { translate: 0 0; }
  .karte:hover { transform: none; box-shadow: var(--schatten); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .wolke { animation: none; transform: translateX(var(--ruhepos, 20cqw)); }
  .voegel, .sternschnuppe { display: none; }
}

.fenster-breit { width: min(980px, calc(100vw - 24px)); }
.fenster-schmal { width: min(640px, calc(100vw - 24px)); }
.fenster-klein { width: min(460px, calc(100vw - 24px)); }
.sb-titel .kopf-text { max-width: 48ch; margin-top: 8px; font-weight: 600; color: var(--text); }

.feld input:is([type="text"], [type="url"], [type="password"], [type="number"], [type="datetime-local"]),
.feld select, .feld textarea, .feld-reihe input {
  width: 100%; min-height: 46px; padding: 9px 14px;
  border: 2px solid var(--linie); border-radius: 14px;
  background: var(--flaeche); color: var(--text);
  font-size: 1rem; font-weight: 600;
  box-shadow: inset 0 3px 0 color-mix(in srgb, var(--linie) 10%, transparent);
}
.feld textarea { min-height: 88px; resize: vertical; font-weight: 500; line-height: 1.45; }
.feld select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
}
.feld :is(input, select, textarea):focus-visible { outline-offset: 2px; border-radius: 14px; }
.feld-reihe { display: flex; gap: 10px; }
.feld-reihe input { flex: 1; min-width: 0; }
.feld-paar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.reiter {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 16px 28px 2px;
}
.reiter::-webkit-scrollbar { display: none; }
.reiter [role="tab"] {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  min-height: 40px; padding: 6px 14px;
  border: 2px solid var(--linie); border-radius: 999px;
  background: var(--karte); color: var(--text); box-shadow: 0 2px 0 var(--linie);
  font-weight: 700; font-size: .9rem;
  transition: background-color .15s, transform .12s var(--weich);
}
.reiter [role="tab"] .ic { width: 17px; height: 17px; }
.reiter [role="tab"]:hover { transform: translateY(-1px); }
.reiter [role="tab"][aria-selected="true"] { background: var(--marke); color: #fff; }

.info-rumpf { gap: 0; }
.info-tafel { display: grid; gap: 12px; }
.info-tafel h3 { margin-top: 6px; font-family: var(--titel); font-weight: 600; font-size: 1.15rem; }
.info-tafel > p { max-width: 70ch; }
.info-liste { display: grid; gap: 8px; }
.info-liste > div {
  display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 4px 16px;
  padding: 10px 14px; border: 2px solid var(--linie); border-radius: 14px; background: var(--flaeche);
}
.info-liste dt { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.info-liste dd { color: var(--text-2); font-weight: 500; }
.info-farben dt i { flex: none; width: 16px; height: 16px; border: 2px solid var(--linie); border-radius: 4px; background: var(--leer); }
.info-farben .ok { background: var(--online); }
.info-farben .leicht { background: linear-gradient(var(--wackelig) 0 32%, var(--online) 32%); }
.info-farben .wackelig { background: var(--wackelig); }
.info-farben .stoerung { background: var(--stoerung); }
.info-farben .ausfall { background: var(--offline); }
.info-farben .wartung { background: var(--wartung); }
.info-figuren { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.info-figur-karte {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border: 2px solid var(--linie); border-radius: 16px; background: var(--flaeche);
}
.info-figur-karte .figur { flex: none; width: 54px; }
.info-figur-karte p { margin-top: 2px; color: var(--text-2); font-size: .9rem; }
.info-formel {
  padding: 12px 16px; border: 2px dashed var(--linie); border-radius: 14px;
  font-family: var(--titel); font-weight: 600; text-align: center;
}
.info-tabelle { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 2px solid var(--linie); border-radius: 14px; }
.info-tabelle th, .info-tabelle td { padding: 9px 14px; text-align: left; }
.info-tabelle th { background: var(--flaeche); font-size: .85rem; }
.info-tabelle td { border-top: 2px solid var(--linie); font-weight: 600; }

.willkommen-kopf { align-items: center; }
.willkommen-crew { display: flex; flex: none; align-items: flex-end; gap: 2px; margin-bottom: 4px; }
.willkommen-crew .figur { width: 52px; }
.willkommen-crew .figur:nth-child(2) { width: 62px; }
.willkommen-kopf h2 {
  font-family: var(--titel); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); line-height: 1.05;
  color: #fff; -webkit-text-stroke: .12em var(--linie); paint-order: stroke fill; text-shadow: 0 .06em 0 var(--linie);
}
.willkommen-kopf p { max-width: 40ch; margin-top: 8px; padding-bottom: 26px; font-weight: 600; }
.design-wahl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.design-option {
  display: grid; justify-items: center; gap: 4px;
  padding: 10px 10px 12px; border: 2px solid var(--linie); border-radius: 18px;
  background: var(--karte); box-shadow: 0 3px 0 var(--linie); text-align: center;
  transition: transform .14s var(--weich), background-color .15s;
}
.design-option:hover { transform: translateY(-1px); }
.design-option[aria-checked="true"] { background: var(--marke-hell); outline: 3px solid var(--marke); outline-offset: 2px; }
.design-bild { position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 4px; border: 2px solid var(--linie); border-radius: 12px; }
.design-bild::before {
  content: ''; position: absolute; top: 14%; right: 14%; width: 26%; aspect-ratio: 1;
  border: 2px solid #1b1c3a; border-radius: 50%; background: #ffd23f;
}
.design-bild::after {
  content: ''; position: absolute; left: -12%; right: -12%; bottom: -34%; height: 58%;
  border: 2px solid #1b1c3a; border-radius: 50%; background: #8edb8c;
}
.design-hell { background: linear-gradient(#8fb4ff, #d3e3ff); }
.design-dunkel { background: radial-gradient(circle at 22% 30%, #fff4c2 0 2px, transparent 3px), radial-gradient(circle at 40% 18%, #fff4c2 0 2px, transparent 3px), linear-gradient(#0b1034, #2a3380); }
.design-dunkel::before { background: #ffe7a1; }
.design-dunkel::after { background: #2e7552; }
.design-auto { background: radial-gradient(circle at 24% 30%, #ffe7a1 0 11%, transparent 11.5%), linear-gradient(115deg, #a4c3ff 50%, #141a4d 50%); }
.design-auto::before { right: auto; left: 60%; }
.design-name { font-weight: 800; }
.design-text { font-size: .8rem; font-weight: 600; color: var(--text-2); }

.widget-buehne {
  display: grid; place-items: center; min-height: 220px; padding: 24px;
  border: 2px solid var(--linie); border-radius: 18px;
  background: conic-gradient(#262b52 25%, #1d2140 0 50%, #262b52 0 75%, #1d2140 0) 0 0 / 22px 22px;
}
.widget-buehne.ist-hell { background: conic-gradient(#e4e8f4 25%, #f6f7fc 0 50%, #e4e8f4 0 75%, #f6f7fc 0) 0 0 / 22px 22px; }
.widget-buehne iframe { max-width: 100%; border: 0; background: transparent; }
.widget-einstellungen { display: grid; gap: 16px; }
.segmente { display: flex; flex-wrap: wrap; gap: 8px; }
.segment {
  min-height: 38px; padding: 6px 15px;
  border: 2px solid var(--linie); border-radius: 999px; background: var(--karte); color: var(--text);
  font-weight: 700; font-size: .88rem;
  transition: background-color .15s, transform .12s var(--federn);
}
.segment:active { transform: scale(.96); }
.segment[aria-checked="true"] { background: var(--online); color: var(--auf-farbe); }
.farben { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.farbfeld, .zahlfeld { display: flex; align-items: center; gap: 8px; }
.farbfeld input[type="text"] { flex: 1; min-width: 0; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92rem; }
.farbfeld input[type="color"] {
  flex: none; width: 46px; height: 46px; padding: 0;
  border: 2px solid var(--linie); border-radius: 12px; background: none; cursor: pointer;
}
.farbfeld input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; }
.farbfeld input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 7px; }
.farbfeld input[type="color"]::-moz-color-swatch { border: 0; border-radius: 7px; }
.zahlfeld input { max-width: 110px; }
.zahlfeld span { font-weight: 700; color: var(--text-2); }
.code-feld { display: grid; gap: 12px; padding: 14px; border: 2px solid var(--linie); border-radius: 16px; background: var(--flaeche); }
.code-feld code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.5; word-break: break-all; }
.code-feld .knopf { justify-self: start; }

.admin-abmelden { position: absolute !important; top: 18px; right: 72px; z-index: 2 !important; }
.admin-login { display: grid; gap: 14px; max-width: 440px; }
.admin-tafel { display: grid; gap: 22px; }
.admin-abschnitt { display: grid; gap: 12px; }
.admin-abschnitt h3 { font-family: var(--titel); font-weight: 600; font-size: 1.15rem; }
.admin-formular { padding: 18px; border: 2px solid var(--linie); border-radius: 18px; background: var(--flaeche); }
.admin-formular .feld :is(input:not([type="checkbox"]), select, textarea) { background: var(--karte); }
.admin-hinweis { color: var(--text-2); font-size: .9rem; font-weight: 500; }
.admin-hinweis-klein { align-self: center; color: var(--text-2); font-size: .8rem; font-weight: 600; }
.sortier-liste { display: grid; gap: 8px; padding: 0; list-style: none; }
.sortier-eintrag {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px 7px 6px; border: 2px solid var(--linie); border-radius: 14px;
  background: var(--karte); box-shadow: 0 2px 0 var(--linie); cursor: grab;
}
.sortier-eintrag.wird-gezogen { opacity: .45; cursor: grabbing; }
.griff-punkte { display: grid; flex: none; place-items: center; width: 24px; color: var(--text-2); }
.griff-punkte .ic { width: 18px; height: 18px; }
.sortier-name { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; overflow: hidden; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.sortier-knoepfe { display: flex; flex: none; gap: 6px; }
.knopf-klein { min-height: 36px; padding: .35em .85em; font-size: .85rem; box-shadow: 0 2px 0 var(--linie); }
.knopf-klein .ic { width: 17px; height: 17px; }
.knopf-rund.knopf-klein { width: 36px; padding: 0; }
.knopf-gefahr { background: var(--offline); color: var(--auf-farbe); }
.admin-marke {
  display: inline-flex; padding: 1px 8px; border: 2px solid var(--linie); border-radius: 999px;
  background: var(--marke-hell); color: var(--text); font-size: .7rem; font-weight: 800; white-space: nowrap;
}
.admin-marke.phase-laeuft { background: var(--wackelig); color: var(--auf-farbe); }
.admin-marke.phase-geplant { background: var(--wartung); color: var(--auf-farbe); }
.admin-marke.phase-vorbei { background: var(--leer); }
.admin-liste { display: grid; gap: 10px; }
.admin-eintrag {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border: 2px solid var(--linie); border-radius: 16px; background: var(--karte);
}
.admin-eintrag-text { display: grid; gap: 4px; min-width: 0; }
.admin-eintrag h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1rem; font-weight: 800; }
.admin-eintrag p { color: var(--text-2); font-size: .88rem; }
.admin-meta { display: flex; align-items: center; gap: 6px; }
.admin-meta .ic { flex: none; width: 15px; height: 15px; }
.admin-url { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .8rem !important; word-break: break-all; }
.admin-eintrag-knoepfe { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-eintrag-fake { flex-wrap: wrap; }

.frage-rumpf { display: grid; gap: 18px; padding: 26px 24px 22px; }
.frage-text { font-weight: 600; font-size: 1.02rem; }
.frage-aktionen { justify-content: flex-end; }

.teilansicht { display: none; }
.ist-teilansicht .teilansicht { display: grid; gap: 18px; margin-top: 36px; }
.ist-teilansicht :is(.gruppen, .abo-teaser, #hinweise, .nur-uebersicht, .fuss-links) { display: none !important; }
.teil-kopf { display: flex; }
.teil-karte { overflow: hidden; border: 2.5px solid var(--linie); border-radius: 28px; background: var(--karte); box-shadow: var(--schatten); }
.teil-karte .fenster-rumpf { padding: clamp(18px, 3vw, 32px); }
.crew-solo { --figur: clamp(110px, 13vw, 180px); }

@media (max-width: 620px) {
  .reiter { padding: 14px 18px 2px; }
  .feld-paar, .info-figuren { grid-template-columns: 1fr; }
  .info-liste > div { grid-template-columns: 1fr; }
  .design-wahl { gap: 8px; }
  .design-option { padding: 8px 6px 10px; }
  .farben { grid-template-columns: 1fr 1fr; }
  .admin-eintrag { flex-direction: column; }
  .admin-eintrag-knoepfe { justify-content: flex-start; }
  .admin-abmelden { top: 14px; right: 62px; }
  .willkommen-crew .figur { width: 40px; }
  .willkommen-crew .figur:nth-child(2) { width: 48px; }
  .crew-solo { --figur: 104px; }
}

.fuss-link .kurz { display: none; }

/* Muss hinter den Breiten der Fenster-Varianten stehen, sonst gewinnen diese auf dem Handy */
@media (max-width: 620px) {
  .fenster-breit, .fenster-schmal, .fenster-klein { width: 100vw; max-width: 100vw; }
  .fuss-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; width: 100%; }
  .fuss-link {
    flex-direction: column; justify-content: center; gap: 5px;
    min-width: 0; min-height: 62px; padding: 8px 2px;
    border-radius: 16px; font-size: .76rem; line-height: 1.1; text-align: center;
  }
  .fuss-link .ic { width: 22px; height: 22px; }
  .fuss-link .lang { display: none; }
  .fuss-link .kurz { display: inline; }
}
