@font-face { font-family: Tomorrow; font-weight: 500; font-display: swap; src: url(/fonts/tomorrow-500.woff2) format("woff2"); }
@font-face { font-family: Tomorrow; font-weight: 600; font-display: swap; src: url(/fonts/tomorrow-600.woff2) format("woff2"); }

:root {
  --bg: #e0e8f4;
  --bg-leiste: #ececea;
  --bg-karte: #f2f2f0;
  --rand: #c6c6c2;
  --text: #101e39;
  --text-leise: #132642;
  --akzent: #2563eb;
  --fehler: #c62828;
  --radius: 0;
  --schraege: 10px;
  --schrift-titel: Tomorrow, "Segoe UI", sans-serif;
  --schrift-text: Tomorrow, "Segoe UI", sans-serif;
  --schrift-mono: Tomorrow, "Segoe UI", sans-serif;
  --leiste-breite: 264px;
  --glas: linear-gradient(120deg, rgb(255 255 255 / .74), rgb(239 246 255 / .44) 44%, rgb(255 255 255 / .54));
  --glas-stark: rgb(245 250 255 / .68);
  --glas-rand: rgb(255 255 255 / .82);
  --glas-schatten: 0 14px 38px rgb(16 49 111 / .13);
  --glas-blur: blur(3px) saturate(150%);
  --robot-frame: #7fa6eb;
  --robot-face: #d7e8ff;
  --robot-eye: #3b67b3;
  --abstand: 16px;
}
:root[data-modus="dunkel"] {
  --bg: #080f22; --bg-leiste: #112344; --bg-karte: #1c2534;
  --rand: #5273a0; --text: #f1f6ff; --text-leise: #e0eafd; --fehler: #ff9a9a;
  --glas: linear-gradient(120deg, rgb(30 47 87 / .78), rgb(15 29 62 / .68) 44%, rgb(29 49 90 / .73));
  --glas-stark: rgb(14 34 72 / .76);
  --glas-rand: rgb(193 225 255 / .35); --glas-schatten: 0 14px 38px rgb(0 6 25 / .32);
  --robot-frame: #89bdff; --robot-face: #123a80; --robot-eye: #e3f4ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--schrift-text); font-weight: 500; }
h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 600; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
.mitte { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.login-box { display: grid; gap: 12px; width: min(360px, 100%); padding: 32px 24px; text-align: center; justify-items: center; }
.login-box h1 { margin: 0; text-transform: uppercase; }
.login-box .leise { font-size: 13px; color: var(--text-leise); margin: 0; }
.feld { width: 100%; padding: 12px; border-radius: 0; border: 1px solid var(--glas-rand); background: var(--glas-stark); color: var(--text); font: inherit; }
.knopf { width: 100%; padding: 12px 20px; border: 0; border-radius: 0; background: var(--akzent); color: #fff; font-family: var(--schrift-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--schraege)), calc(100% - var(--schraege)) 100%, 0 100%); }
.knopf.zweit { background: var(--glas-stark); color: var(--text); border: 1px solid var(--glas-rand); margin-top: 8px; clip-path: none; }
.fehlerzeile { color: var(--fehler); min-height: 1.5em; margin: 0; }
.leise { color: var(--text-leise); }
.label { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--schrift-mono); font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.label::before { content: ""; width: 7px; height: 7px; background: var(--akzent); flex: none; }

/* Hintergrund */
.hintergrund { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: linear-gradient(135deg, #e4e4e2 15%, #e0e6f1 58%, #d1e0f8 100%); }
.kleks { position: absolute; border-radius: 50%; filter: blur(20px); opacity: .75; background: radial-gradient(ellipse at 40% 35%, rgb(37 99 235 / .36) 0%, rgb(37 99 235 / .06) 45%, transparent 72%); }
.k1 { width: 520px; height: 420px; left: 180px; bottom: -160px; border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%; }
.k2 { width: 200px; height: 200px; right: 60px; top: -50px; }
.k3 { width: 380px; height: 300px; right: -80px; bottom: 40px; border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%; }
.k4 { width: 140px; height: 140px; left: 300px; top: 60px; }
.k5 { width: 70px; height: 70px; left: 46%; top: 46%; }
.robo-glow { position: absolute; left: calc(50% + 140px); top: 60%; width: 640px; height: 640px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgb(37 99 235 / .12), transparent 62%); }
.robo-hg { position: absolute; left: calc(50% + 140px); top: 60%; width: 380px; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 30px 40px rgb(0 0 0 / .25)); opacity: .22; }
#laden, #login, #app { position: relative; z-index: 1; }

/* Glas */
#leiste, .held, .zelle, #inhalt:not(.ist-uebersicht), dialog, .login-box, .resetknopf, .menueknopf { background: var(--glas); border: 1px solid var(--glas-rand); box-shadow: var(--glas-schatten), inset 0 1px 0 var(--glas-rand); backdrop-filter: var(--glas-blur); -webkit-backdrop-filter: var(--glas-blur); }
dialog { background: var(--glas-stark); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glas: rgb(255 255 255 / .82); --glas-stark: rgb(255 255 255 / .9); }
  :root[data-modus="dunkel"] { --glas: #171e2b; --glas-stark: #232f42; }
}

/* Aufbau */
#app { display: grid; grid-template-columns: var(--leiste-breite) 1fr; gap: var(--abstand); padding: var(--abstand); height: 100dvh; overflow: hidden; position: relative; }
#leiste { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: 0; gap: 0; }
.menueknopf { display: none; }
#inhalt { grid-column: 2; min-width: 0; min-height: 0; overflow: hidden; padding: 32px 40px; }
#inhalt.ist-uebersicht { padding: 0; display: grid; grid-template-rows: auto 1fr; gap: var(--abstand); }

/* Seitenleiste */
.leiste-block { padding: 14px 16px; border-bottom: 1px solid var(--glas-rand); display: grid; gap: 8px; }
.leiste-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.leiste-kopf img { flex: none; }
.leiste-kopf .titel { flex: none; }
.leiste-kopf .modus-auswahl { position: static; flex: none; width: 54px; height: 28px; margin-left: -2px; align-self: center; }
.leiste-kopf .modus-auswahl button { width: 26px; height: 26px; padding: 0; }
.leiste-kopf .modus-auswahl svg { width: 14px; height: 14px; }
.titel { flex: 1; background: none; border: 0; padding: 4px; cursor: pointer; font-family: var(--schrift-titel); font-size: 16px; font-weight: 600; line-height: 1.1; text-transform: uppercase; text-align: left; }
.leiseknopf { background: none; border: 0; padding: 4px 8px; color: var(--text-leise); cursor: pointer; font-size: 18px; }
.suche { position: relative; }
.suche .feld { padding: 8px 12px; background: var(--glas-stark); border: 1px solid var(--glas-rand); }
#kategorien { display: grid; gap: 2px; }
.zeile { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; border-radius: 0; padding: 7px 8px; text-align: left; cursor: pointer; }
.zeile:hover { background: var(--glas-stark); }
.zeile.aktiv { background: var(--akzent); color: #fff; }
.zeile .anzahl { color: var(--text-leise); font-family: var(--schrift-mono); font-size: 13px; }
.zeile.aktiv .anzahl { color: #fff; }
.neues { flex: 1; min-height: 0; overflow: hidden; }
.neues p { margin: 0; }
.leiste-fuss { border-top: 1px solid var(--glas-rand); padding: 14px 16px; display: grid; gap: 2px; }
.status { margin: 4px 8px 0; font-family: var(--schrift-mono); font-size: 11px; text-transform: uppercase; color: var(--text-leise); }

/* Kategorie-Seite */
.eintrag-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--abstand); align-content: start; overflow-y: auto; min-height: 0; }
.eintrag-kachel { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; overflow: hidden; }
.eintrag-kachel:hover { border-color: var(--text); }
.eintrag-bild { position: relative; width: 100%; aspect-ratio: 16 / 9; flex: none; background: var(--glas); border: 1px solid var(--glas-rand); display: grid; place-items: center; overflow: hidden; }
.eintrag-bild svg { width: 48px; height: 48px; }
.eintrag-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eintrag-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eintrag-lead { color: var(--text-leise); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.leer { color: var(--text-leise); margin: 0; }

/* Hauptfläche */
#inhalt h1 { margin: 0 0 8px; font-family: var(--schrift-titel); font-size: 36px; }
#inhalt.ist-uebersicht h1 { text-transform: uppercase; }
.lead { color: var(--text-leise); margin: 0 0 24px; }
#inhalt:not(.ist-uebersicht) { display: grid; grid-template-rows: auto 1fr; gap: var(--abstand); }
.detail-kopf { min-width: 0; }
.raster { display: grid; grid-template-columns: 1fr 1fr; gap: var(--abstand); min-height: 0; }
.spalte { display: grid; gap: var(--abstand); min-height: 0; min-width: 0; }
.spalte-links { grid-template-rows: auto auto minmax(180px, 1fr); }
.spalte-rechts { grid-template-rows: auto auto auto minmax(120px, 1fr); }
.untere-reihe { container-type: size; display: grid; grid-template-columns: min(calc((100cqh - 64px) * 16 / 9 + 34px), 60%) minmax(0, 1fr); gap: var(--abstand); min-height: 0; min-width: 0; }
.rahmen { display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; overflow: hidden; border: 1px solid var(--glas-rand); border-radius: 0; padding: 12px 16px 20px; background: var(--glas-stark); }
.rahmen h3 { margin: 0; }
.rahmen p { margin: 0; color: var(--text-leise); }
.rahmen p, .rahmen li { font-size: 16px; line-height: 1.5; }
.schilder { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.kachel-video { height: 100%; }
.video-flaeche { flex: 1 1 auto; min-height: 0; width: auto; max-width: 100%; align-self: flex-start; aspect-ratio: 16 / 9; background: var(--bg-leiste); border: 1px solid var(--rand); display: grid; place-items: center; font-family: var(--schrift-mono); font-size: 11px; color: var(--text-leise); }
.kachel-prompts.klickbar { cursor: pointer; }
.befehle { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; overflow: hidden; }
code { font-family: var(--schrift-mono); }
.befehle code, .prompt-liste code { font-size: 13px; padding: 1px 6px; background: var(--glas); border: 1px solid var(--glas-rand); color: var(--text); }
.rahmen .hinweis { margin-top: auto; font-family: var(--schrift-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-leise); }
.install-feld { display: flex; align-items: center; gap: 8px; }
.install-feld code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; padding: 4px 8px; background: var(--glas); border: 1px solid var(--glas-rand); }
#verbinden-inhalt { display: grid; gap: 12px; }
#verbinden-inhalt .label { margin: 0; }
#verbinden-inhalt .leise { margin: 4px 0 0; font-size: 13px; }
#verbinden-inhalt .leiseknopf { justify-self: start; padding: 0; font-size: 13px; text-decoration: underline; }
#verbinden-dialog .install-feld { align-items: stretch; margin-top: 6px; }
#verbinden-dialog .install-feld code { flex: 1 1 auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
#verbinden-dialog .install-feld .knopf { width: auto; flex: none; padding: 8px 16px; }
.rahmen .knopf, .prompt-liste .knopf { width: auto; padding: 8px 16px; flex: none; }
.verweis-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.verweis-zeile b { color: var(--text); }
.verweis { font-family: var(--schrift-mono); font-size: 12px; padding: 2px 8px; border: 1px solid var(--akzent); background: var(--glas-stark); color: var(--text); text-decoration: none; }
a.verweis:hover { background: var(--akzent); }
.verweis.aus { opacity: .6; }
.schild { font-family: var(--schrift-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--glas-rand); background: var(--glas-stark); color: var(--text-leise); }
.schild:first-child { color: var(--text); }
ul.punkte, ol.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
ul.punkte li { color: var(--text-leise); }
ul.punkte li, .update-punkte li { position: relative; padding-left: 14px; }
ul.punkte li::before, .update-punkte li::before { content: ""; position: absolute; left: 0; top: calc(.75em - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--akzent); }
ol.schritte li { color: var(--text-leise); }
.rahmen b, .rahmen strong { color: var(--text); }
ol.schritte .nr { font-family: var(--schrift-mono); font-size: 12px; color: var(--akzent); }

/* Übersicht */
.held { position: relative; padding: 36px 40px 18px; }
.held h1 { margin: 0; padding: 0; font-size: clamp(44px, 6.4vw, 104px); line-height: .95; text-transform: uppercase; white-space: nowrap; }
.unterzeile { display: flex; gap: 24px; margin-top: 16px; }
.eck::before, .eck::after { content: ""; position: absolute; top: 8px; width: 7px; height: 7px; background: var(--akzent); }
.eck::before { left: 8px; }
.eck::after { right: 8px; }
.unten { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: var(--abstand); min-height: 0; }
.zelle { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: hidden; }
.zelle .lead { font-size: 18px; max-width: 32ch; margin: 0; color: var(--text); }
.zahlen { display: grid; gap: 2px; font-family: var(--schrift-mono); font-size: 13px; color: var(--text-leise); }
.zahlen b { color: var(--text); font-weight: 500; }
.zelle .knopf { width: auto; align-self: flex-start; }

/* Dialoge */
dialog { width: min(480px, calc(100% - 32px)); border-radius: 0; color: var(--text); }
dialog::backdrop { background: rgb(20 20 20 / .35); }
dialog h2 { margin: 0; }
.dialog-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
#prompts-dialog { width: min(640px, calc(100% - 32px)); }
#video-dialog { width: min(960px, calc(100% - 32px)); }
.prompt-liste { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.prompt-liste li { display: flex; align-items: center; gap: 12px; }
.prompt-liste .leise { flex: 1; min-width: 0; }
.resetknopf { position: fixed; top: 10px; right: 10px; z-index: 40; width: 34px; height: 34px; border-radius: 0; color: var(--text-leise); font-size: 18px; line-height: 1; cursor: pointer; }
.resetknopf:hover { color: var(--text); }
#wunsch-text { resize: none; }
#wunsch-speichern { margin-top: 8px; }
.wunsch-bild { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; }
.wunsch-bild .leiseknopf { padding: 0; font-size: 13px; text-decoration: underline; }
#wunsch-vorschau { flex: 0 0 100%; max-width: 100%; max-height: 180px; object-fit: contain; border: 1px solid var(--glas-rand); }
#wunsch-text.zieht { border-color: var(--akzent); }
#wunsch-liste img { display: block; max-width: 100%; max-height: 120px; object-fit: contain; margin-top: 4px; border: 1px solid var(--glas-rand); }
#wunsch-liste { list-style: none; padding: 0; }
#wunsch-liste li { padding: 8px 0; border-bottom: 1px solid var(--glas-rand); display: flex; gap: 8px; align-items: baseline; }
.loeschen { margin-left: auto; background: none; border: 0; color: var(--text-leise); font-size: 20px; cursor: pointer; }

/* Handy: Seite darf scrollen, Leiste als Menü */
@media (max-width: 799px) {
  html, body { height: auto; overflow: auto; }
  #app { display: block; height: auto; overflow: visible; padding: 0; }
  .menueknopf { display: block; position: fixed; top: 8px; left: 8px; z-index: 30; border-radius: 0; padding: 4px 12px; cursor: pointer; }
  #leiste { position: fixed; top: 0; bottom: 0; left: 0; width: min(var(--leiste-breite), 85vw); z-index: 25; transform: translateX(-100%); background: var(--glas-stark); }
  #app.menue-offen #leiste { transform: none; }
  #inhalt { overflow: visible; margin: 56px 16px 16px; padding: 24px 16px; }
  #inhalt h1 { padding-right: 48px; }
  #inhalt.ist-uebersicht { margin: 56px 16px 16px; padding: 0; display: grid; gap: var(--abstand); }
  #inhalt:not(.ist-uebersicht) { display: block; }
  .detail-kopf { margin-bottom: var(--abstand); }
  .raster { display: flex; flex-direction: column; gap: var(--abstand); }
  .spalte, .untere-reihe { display: contents; container-type: normal; }
  .rahmen { overflow: visible; }
  .k-was { order: 1; }
  .k-schritte { order: 2; }
  .k-wann { order: 3; }
  .k-vorteil { order: 4; }
  .k-gut { order: 5; }
  .kachel-prompts { order: 6; }
  .kachel-video { order: 7; height: auto; }
  .kachel-install { order: 8; }
  .video-flaeche { flex: none; width: 100%; height: auto; max-width: none; }
  .held { padding: 64px 16px 16px; }
  .held h1 { font-size: 13vw; white-space: normal; }
  .unten { grid-template-columns: 1fr; gap: var(--abstand); }
  .zelle { padding: 24px 16px; }
  .robo-glow { left: 50%; top: 55%; width: 420px; height: 420px; }
  .robo-hg { left: 50%; top: 55%; width: 240px; }
}

/* Übersicht: Rahmen mit Listen */
.rahmen-liste, .update-punkte { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.rahmen-liste a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 4px 0; color: var(--text); text-decoration: none; }
.rahmen-liste a:hover .name { text-decoration: underline; }
.rahmen-liste .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rahmen-liste .kat { flex: none; font-family: var(--schrift-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-leise); }
.rahmen .update-titel { margin-top: 6px; color: var(--text); font-weight: 600; }
.rahmen .update-meta { font-family: var(--schrift-mono); font-size: 11px; text-transform: uppercase; }
.update-punkte li { color: var(--text-leise); font-size: 14px; }

/* AI Blog */
.blog-zelle { overflow: hidden; }
.blog-vorschau { list-style: none; margin: 0; padding: 0; display: grid; }
.blog-vorschau li { padding: 12px 0; border-top: 1px solid var(--glas-rand); }
.blog-vorschau li:first-child { border-top: 0; padding-top: 0; }
.blog-vorschau a, .blog-karte { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-decoration: none; color: inherit; }
.vorschau-titel { font-size: 18px; font-weight: 600; color: var(--text); }
.blog-vorschau a:hover .vorschau-titel { text-decoration: underline; }
.vorschau-teaser { font-size: 14px; color: var(--text-leise); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vorschau-meta { font-family: var(--schrift-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-leise); }
.blog-zelle .knopf { margin-top: auto; text-decoration: none; }
@media (max-height: 760px) {
  .vorschau-teaser { -webkit-line-clamp: 1; line-clamp: 1; }
}
.blog-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--abstand); align-content: start; overflow-y: auto; min-height: 0; }
.blog-karte { overflow: hidden; }
.blog-karte:hover { border-color: var(--text); }
.blog-karte .vorschau-teaser { -webkit-line-clamp: 3; line-clamp: 3; }
.gebiete { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: var(--abstand); min-height: 0; flex: 1 1 auto; }
.gebiet-kachel { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-decoration: none; color: inherit; min-height: 0; overflow: hidden; }
.gebiet-kachel:nth-child(4) { grid-column: 2 / span 2; }
.gebiet-kachel:nth-child(5) { grid-column: 4 / span 2; }
.gebiet-kachel:hover { border-color: var(--text); }
.gebiet-bild { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; aspect-ratio: 16 / 9; background: var(--bg-leiste); border: 1px solid var(--rand); display: grid; place-items: center; text-align: center; padding: 8px; font-family: var(--schrift-mono); font-size: 11px; color: var(--text-leise); overflow: hidden; }
.gebiet-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-kopf .lead { margin: 0; }
.zurueck { font-family: var(--schrift-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-leise); text-decoration: none; }
.zurueck:hover { color: var(--text); }
.detail-kopf .zurueck { display: inline-block; margin-bottom: 4px; }
.bericht { overflow-y: auto; min-height: 0; }
.bericht-text { width: 100%; max-width: 720px; margin: 0 auto; display: grid; gap: 20px; }
.bericht-text h2 { font-size: 22px; font-weight: 600; color: var(--text); margin: 8px 0 0; }
.bericht-text > p { font-size: 17px; line-height: 1.65; color: var(--text-leise); margin: 0; }
.bericht-text > p.bericht-teaser { font-size: 20px; font-weight: 500; color: var(--text); }
.bericht-text .rahmen { overflow: visible; }
.bericht-text .fuer-dich { border-left: 3px solid var(--akzent); }
.bericht-text a { color: var(--text); }
.bericht-text .verweis { text-decoration: none; }
.kanal { color: var(--text-leise); }
@media (max-width: 799px) {
  .blog-karten { grid-template-columns: 1fr; overflow: visible; }
  .eintrag-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .gebiete { grid-template-columns: 1fr; grid-auto-rows: auto; flex: none; }
  .gebiet-kachel, .gebiet-kachel:nth-child(4), .gebiet-kachel:nth-child(5) { grid-column: auto; }
  .gebiet-bild { flex: none; }
  .bericht { overflow: visible; }
}

/* AI Lab: manuelle Darstellung, auf allen Ansichten erreichbar. */
:root[data-modus="dunkel"] .hintergrund { background: linear-gradient(135deg, #141820 15%, #1a273b 58%, #1b345d 100%); }
.feld::placeholder { color: var(--text-leise); opacity: 1; }
.modus-auswahl { position: fixed; top: 16px; right: 32px; z-index: 40; display: flex; width: 82px; border: 1px solid var(--glas-rand); background: var(--glas-stark); backdrop-filter: var(--glas-blur); }
.modus-auswahl button { display: grid; place-items: center; width: 40px; height: 36px; padding: 8px; border: 0; background: transparent; color: var(--text-leise); cursor: pointer; }
.modus-auswahl button[aria-pressed="true"] { background: var(--akzent); color: #fff; }
.modus-auswahl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
button:focus-visible, a:focus-visible, .feld:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }
.resetknopf { top: 16px; right: 122px; height: 38px; }
.detail-kopf { padding-right: 68px; }
.verbinden-auswahl { display: flex; gap: 4px; margin-bottom: 16px; }
.verbinden-auswahl button { flex: 1; min-width: 0; border: 1px solid var(--glas-rand); background: var(--glas); padding: 8px; cursor: pointer; }
.verbinden-auswahl button[aria-selected="true"] { background: var(--akzent); color: #fff; }
@media (min-width: 800px) and (max-height: 780px) {
  .zeile { padding-top: 3px; padding-bottom: 3px; }
  .blog-zelle { padding: 20px 24px; gap: 10px; }
  .blog-vorschau li { padding: 8px 0; }
  .blog-vorschau .vorschau-titel { font-size: 16px; line-height: 1.4; }
}
@media (max-width: 799px) {
  .modus-auswahl { top: 12px; right: 16px; }
  .modus-auswahl button { height: 40px; }
  .resetknopf { top: 12px; right: 106px; height: 42px; }
  .detail-kopf { padding-right: 0; }
  #inhalt h1 { padding-right: 0; overflow-wrap: anywhere; }
}

/* Deep Blue: bestätigte Glasflächen und statische Hintergrundformen. */
.hintergrund { background: linear-gradient(116deg, transparent 40%, rgb(211 232 255 / .30) 52%, transparent 63%), linear-gradient(128deg, #e0e8f4 0%, #8da9e4 45%, #2751bd 100%); }
:root[data-modus="dunkel"] .hintergrund { background: linear-gradient(116deg, transparent 40%, rgb(100 166 255 / .17) 52%, transparent 63%), linear-gradient(128deg, #080f22, #203f80 45%, #315ccc); }
.hintergrund-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.kleks { opacity: .28; filter: blur(40px); }
.robo-glow { background: radial-gradient(circle, rgb(150 212 255 / .34), transparent 65%); }
.robo-hg { left: calc(50% + 140px); top: 61%; width: 430px; opacity: .72; filter: drop-shadow(0 14px 28px rgb(25 67 147 / .12)); }
:root[data-modus="dunkel"] .robo-hg { opacity: .62; }
.robot-frame { fill: var(--robot-frame); }
.robot-face { fill: var(--robot-face); }
.robot-eye { fill: var(--robot-eye); }
.robot-grid { stroke: var(--robot-frame); opacity: .20; }
.rahmen, .feld { background: var(--glas-stark); }
#leiste, .held, .zelle, #inhalt:not(.ist-uebersicht), dialog, .login-box { box-shadow: var(--glas-schatten), inset 0 1px 0 rgb(255 255 255 / .46), inset 1px 0 0 rgb(255 255 255 / .18); }
#inhalt .zelle, .held { border-top-color: rgb(255 255 255 / .9); }
:root[data-modus="dunkel"] #inhalt .zelle, :root[data-modus="dunkel"] .held { border-top-color: rgb(201 232 255 / .52); }
.rahmen-liste { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.rahmen-liste li, .rahmen-liste a { min-width: 0; }
.rahmen-liste .name { flex: 1; }
.tiefen-formen { position: absolute; inset: 0; pointer-events: none; }
.raum-kugel { position: absolute; border-radius: 50%; }
.kugel-blau { width: 188px; height: 188px; left: 12%; bottom: 11%; background: radial-gradient(circle at 31% 24%, #e6f8ff 0%, #88c6ff 11%, #3b8ef4 36%, #174cbb 67%, #142963 100%); box-shadow: inset -15px -18px 28px rgb(5 30 94 / .28), inset 6px 6px 17px rgb(231 249 255 / .7), 14px 24px 38px rgb(12 44 111 / .22); }
.kugel-glas { width: 248px; height: 248px; right: -65px; top: 28%; border: 1px solid rgb(219 245 255 / .85); background: radial-gradient(ellipse at 29% 23%, rgb(249 255 255 / .9) 0%, rgb(168 226 255 / .62) 14%, rgb(74 151 249 / .40) 34%, rgb(48 94 212 / .30) 59%, rgb(166 215 255 / .74) 90%, rgb(238 252 255 / .8) 100%); box-shadow: inset 10px 8px 24px rgb(221 250 255 / .6), inset -12px -18px 22px rgb(17 58 165 / .38), 14px 24px 38px rgb(12 44 111 / .20); }
.kugel-gold { width: 116px; height: 116px; left: 71%; top: -37px; background: radial-gradient(circle at 32% 25%, #fff7d2 0%, #ffe5a2 15%, #e9ae4c 43%, #b97520 76%, #704013 100%); box-shadow: inset 5px 5px 14px rgb(255 250 222 / .7), inset -12px -12px 18px rgb(131 65 9 / .24), 10px 18px 28px rgb(56 37 14 / .18); }
.gold-bogen { position: absolute; width: 470px; height: 330px; right: -90px; bottom: -115px; transform: rotate(-12deg); overflow: visible; filter: drop-shadow(8px 19px 21px rgb(78 49 14 / .20)); }
.glas-band { position: absolute; width: 660px; height: 280px; left: -190px; top: -90px; transform: rotate(9deg); opacity: .75; }
:root[data-modus="dunkel"] .kugel-gold { opacity: .92; }
:root[data-modus="dunkel"] .kugel-glas { opacity: .8; }
@media (max-width: 799px) {
 .kugel-blau { width: 136px; height: 136px; left: -76px; bottom: 13%; }
 .kugel-glas { width: 176px; height: 176px; right: -72px; top: 30%; }
 .kugel-gold { width: 80px; height: 80px; left: auto; right: -20px; top: 15%; }
 .gold-bogen { width: 350px; height: 260px; right: -134px; bottom: -95px; }
 .glas-band { width: 440px; height: 220px; left: -245px; top: -76px; }
}

@media (max-width: 799px) {
  .robo-hg { left: 54%; top: 52%; width: 300px; opacity: .70; }
  :root[data-modus="dunkel"] .robo-hg { opacity: .66; }
  .robo-glow { left: 50%; top: 52%; width: 420px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glas: #e5efff; --glas-stark: #eff5ff; }
  :root[data-modus="dunkel"] { --glas: #162d53; --glas-stark: #1b3762; }
}
