/* =====================================================================
   AI Station – ruhiges System-Design (hell/dunkel), Raster 4/8 px
   Klassen und IDs entsprechen 1:1 der App-Logik (app.js) – nur Optik.
   ===================================================================== */
:root {
  color-scheme: light dark;
  --bg: #F5F5F7; --flaeche: #FFFFFF; --flaeche2: #F2F2F7; --flaeche3: #E5E5EA;
  --text: #1D1D1F; --text2: #6E6E73; --text3: #8E8E93;
  --linie: rgba(60,60,67,.14); --trenner: rgba(128,128,128,.2);
  --akzent: #007AFF; --akzent-weich: rgba(0,122,255,.12); --akzent-text: #0066D6;
  --ok: #248A3D; --ok-punkt: #34C759; --warn: #C93400; --warn-punkt: #FF9500; --rot: #D70015; --rot-punkt: #FF3B30;
  --glas: rgba(255,255,255,.72); --seg-bg: rgba(118,118,128,.12); --seg-an: #FFFFFF;
  --schatten: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06);
  --schatten-klein: 0 1px 2px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --code-bg: #F2F2F7; --term-bg: #1C1C1E; --term-text: #F2F2F7;
  --r-knopf: 0; --r-karte: 0; --r-panel: 0; --r-bubble: 0; --r-eingabe: 0;
  --ease: cubic-bezier(.25,.1,.25,1); --dauer: 240ms;
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Kompatibilität: alte Variablen, die die App-Logik noch verwendet */
  --orange: var(--akzent); --hell: var(--text2); --leise: var(--text2); --weiss: var(--text);
  /* Netzwerk-Kurve (RGB-Tripel) */
  --kurve-rein: 48,176,199; --kurve-raus: 0,122,255; --gitter: rgba(128,128,128,.16);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --flaeche: #1C1C1E; --flaeche2: #2C2C2E; --flaeche3: #3A3A3C;
    --text: #F5F5F7; --text2: #AEAEB2; --text3: #8E8E93;
    --linie: rgba(84,84,88,.55); --trenner: rgba(128,128,128,.28);
    --akzent: #0A84FF; --akzent-weich: rgba(10,132,255,.20); --akzent-text: #409CFF;
    --ok: #30D158; --ok-punkt: #30D158; --warn: #FF9F0A; --warn-punkt: #FF9F0A; --rot: #FF453A; --rot-punkt: #FF453A;
    --glas: rgba(28,28,30,.72); --seg-bg: rgba(118,118,128,.24); --seg-an: #3A3A3C;
    --schatten: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --schatten-klein: 0 1px 2px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.3);
    --code-bg: #2C2C2E; --kurve-raus: 10,132,255; --kurve-rein: 100,210,255; --gitter: rgba(160,160,170,.14);
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 400 15px/1.47 var(--schrift); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--akzent-weich); }
a { color: var(--akzent-text); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 0; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
h1 span { display: none; }
h2 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.005em; color: var(--text); }
h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.leise { color: var(--text2); } .klein { font-size: 13px; }
code { font: 13px var(--mono); background: var(--code-bg); padding: 1px 6px; border-radius: 0; }
.tab[hidden], [hidden] { display: none !important; }
.ic { flex: none; display: block; }

/* ---------- Kopfzeile (Glas) */
.kopf { position: sticky; top: 0; z-index: 30; height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 24px;
  background: var(--glas); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--trenner); }
.marke { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--text); text-decoration: none; }
.marke img { height: 28px; width: auto; display: block; filter: brightness(0); opacity: .86; }
@media (prefers-color-scheme: dark) { .marke img { filter: none; opacity: 1; } }
.marke-trenner { width: 1px; height: 20px; background: var(--trenner); }
.marke b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.marke small { display: none; }
#wer { font-size: 13px; color: var(--text2); }
/* Umschalter Chat / Code oben rechts (wie in der Claude-App) */
.modus { display: inline-flex; gap: 2px; padding: 2px; background: var(--seg-bg); }
.modus button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 28px; padding: 0; border: 0; border-radius: 0;
  background: none; color: var(--text2); cursor: pointer; transition: background var(--dauer) var(--ease), color var(--dauer) var(--ease); }
.modus button svg { width: 18px; height: 18px; }
.modus button:hover { color: var(--text); filter: none; }
.modus button.an { background: var(--seg-an); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.modus button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
.kopf button.leer { border: 0; background: none; padding: 8px; font-size: 13px; font-weight: 400; color: var(--akzent-text); border-radius: 0; }
.kopf button.leer:hover { background: var(--seg-bg); }

main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px; }
footer { text-align: center; padding: 16px; font-size: 12px; color: var(--text3); }

/* ---------- Formulare & Knöpfe */
label { display: block; margin: 0 0 16px; font-size: 13px; font-weight: 500; color: var(--text2); }
input, select, textarea { font: 15px var(--schrift); color: var(--text); }
input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 0; border: 1px solid var(--linie);
  background: var(--flaeche); outline: none; transition: border-color var(--dauer) var(--ease), box-shadow var(--dauer) var(--ease); }
input:focus { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-weich); }
input::placeholder, textarea::placeholder { color: var(--text3); }
button { font: 500 15px var(--schrift); border-radius: 0; padding: 8px 16px; cursor: pointer; border: 1px solid transparent;
  background: var(--flaeche2); color: var(--text); transition: background var(--dauer) var(--ease), filter var(--dauer) var(--ease), transform 120ms var(--ease); }
button:hover { filter: brightness(1.04); }
button:active { transform: scale(.98); }
button:disabled { opacity: .45; cursor: default; transform: none; }
button.los, button.los-klein { background: var(--akzent); color: #fff; font-weight: 600; }
button.los { width: 100%; margin-top: 8px; padding: 12px; }
button.los:hover, button.los-klein:hover { filter: brightness(1.08); }
button.leer { background: var(--flaeche2); color: var(--text); }
button.leer:hover { background: var(--flaeche3); filter: none; }
button.klein { padding: 4px 12px; font-size: 13px; border-radius: 0; }
button.symbol { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border-radius: 0;
  background: none; color: var(--akzent-text); }
button.symbol:hover { background: var(--seg-bg); filter: none; }
#pw-zurueck { width: 100%; margin-top: 8px; }
.meld { min-height: 1.4em; margin: 12px 0 0; font-size: 13px; color: var(--rot); }
.meld.ok { color: var(--ok); }
.pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 0; font-size: 12px; font-weight: 500; background: var(--flaeche2); color: var(--text2); }
.pill.ok { background: rgba(52,199,89,.16); color: var(--ok); } .pill.rot { background: rgba(255,59,48,.14); color: var(--rot); }
.pill.warn { background: rgba(255,149,0,.16); color: var(--warn); }
.fehler { background: rgba(255,59,48,.12); color: var(--rot); padding: 12px 16px; border-radius: 0; font-weight: 500; }
.hinweisbanner { background: rgba(255,149,0,.12); color: var(--text); padding: 12px 16px; border-radius: 0; margin: 0 0 16px; font-size: 13px; }
.mitte { text-align: center; padding: 64px 0; }

/* ---------- Anmelden / Passwort */
.box { max-width: 400px; margin: 8vh auto 0; background: var(--flaeche); border-radius: 0; padding: 32px; box-shadow: var(--schatten); }
.box h1 { margin-bottom: 24px; }

/* ---------- Karten & Listen */
.karte { background: var(--flaeche); border-radius: 0; padding: 20px; box-shadow: var(--schatten); }
.karte + .karte { margin-top: 16px; } .kacheln .karte + .karte { margin-top: 0; }
.titel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin: 8px 0 24px; }
.titel #host { margin-right: auto; font-size: 13px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kachel h2 { font-size: 13px; font-weight: 500; color: var(--text2); margin: 0 0 4px; }
.kachel .wert { font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kachel .info { font-size: 13px; color: var(--text2); margin-top: 4px; min-height: 1.5em; }
.balken { height: 6px; border-radius: 0; background: var(--flaeche2); overflow: hidden; margin-top: 12px; }
.balken i { display: block; height: 100%; background: var(--ok-punkt); border-radius: 0; transition: width 400ms var(--ease); }
.balken i.warn { background: var(--warn-punkt); } .balken i.rot { background: var(--rot-punkt); } .balken i.or { background: var(--akzent); }
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 500; color: var(--text2); padding: 8px; border-bottom: 1px solid var(--linie); }
td { padding: 8px; border-bottom: 1px solid var(--linie); vertical-align: top; } tr:last-child td { border-bottom: 0; }
td.r { text-align: right; font-variant-numeric: tabular-nums; color: var(--text2); white-space: nowrap; }
table.jobs button { margin: 0 0 0 4px; }
.termkopf { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .termkopf h2 { margin: 0 auto 0 0; }

/* ---------- Haupt-Reiter als Segment-Steuerung */
.reiter { position: relative; display: inline-flex; gap: 0; padding: 2px; margin: 0 0 24px; border-radius: 0; background: var(--seg-bg); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.reiter::-webkit-scrollbar { display: none; }
.reiter-marke { position: absolute; top: 2px; bottom: 2px; left: 0; width: 0; border-radius: 0; background: var(--seg-an); box-shadow: var(--schatten-klein);
  transition: transform 300ms var(--ease), width 300ms var(--ease), opacity 200ms var(--ease); pointer-events: none; }
.reiter button { position: relative; z-index: 1; flex: none; border: 0; background: none; padding: 6px 16px; border-radius: 0; font-size: 13px; font-weight: 500;
  color: var(--text2); white-space: nowrap; transition: color var(--dauer) var(--ease); }
.reiter button:hover { color: var(--text); filter: none; }
.reiter button.an { color: var(--text); font-weight: 600; }
.reiter button[hidden] { display: none; }
.reiter button { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; }
.ri { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 0; color: #fff; flex: none;
  box-shadow: none; transition: background-color 160ms var(--ease); }
.ri svg { width: 14px; height: 14px; }
.reiter button:hover .ri { transform: none; }
.reiter button.an .ri { box-shadow: none; outline: 2px solid currentColor; outline-offset: -2px; outline-color: rgba(255,255,255,.35); }
.ri-chat    { background: #0A6CFF; }
.ri-jobs    { background: #F2600C; }
.ri-term    { background: #111418; color: #8ce99a; }
.ri-station { background: #0E9F6E; }
.ri-mcp     { background: #C9572B; }
.ri-gh      { background: #24292F; }
.reiter button { --x: 0; }
@media (prefers-reduced-motion: reduce) { .ri { transition: none; } .reiter button:hover .ri { transform: none; } }

/* ---------- KI-Chat: Seitenleiste + Verlauf */
#t-chat { position: relative; }
.chat { position: relative; display: grid; grid-template-columns: 260px 1fr; gap: 0; height: calc(100vh - 52px - 24px - 66px - 48px); min-height: 520px;
  background: var(--flaeche); border-radius: 0; box-shadow: var(--schatten); overflow: hidden; }
.chats { display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 12px 8px; border-right: 1px solid var(--trenner);
  background: var(--glas); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.chats-kopf { display: flex; align-items: center; gap: 4px; padding: 0 4px; }
.suche { position: relative; flex: 1; margin: 0; color: var(--text3); }
.suche .ic { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); }
.suche input { margin: 0; height: 32px; padding: 4px 8px 4px 28px; font-size: 13px; border: 0; border-radius: 0; background: var(--seg-bg); }
.suche input:focus { box-shadow: 0 0 0 3px var(--akzent-weich); }
.k-liste { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.k-eintrag { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 12px; border-radius: 0; cursor: pointer; font-size: 13px; color: var(--text);
  transition: background 160ms var(--ease); }
.k-eintrag:hover { background: var(--seg-bg); }
.k-eintrag.an { background: var(--akzent); color: #fff; }
.k-eintrag span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-eintrag button { border: 0; background: none; padding: 2px 6px; font-size: 12px; color: inherit; opacity: 0; border-radius: 0; }
.k-eintrag:hover button, .k-eintrag button:focus-visible { opacity: .7; } .k-eintrag button:hover { opacity: 1; background: rgba(128,128,128,.2); }
.k-eintrag button.sicher { opacity: 1; color: var(--rot); } .k-eintrag.an button.sicher { color: #fff; }
.k-eintrag.laeuft span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 0; background: var(--akzent); vertical-align: 2px; animation: puls 1.4s var(--ease) infinite; }
.k-eintrag.an.laeuft span::before { background: #fff; }
.liste-eintrag { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 12px; border: 0; border-radius: 0; background: none;
  font-size: 13px; font-weight: 400; color: var(--text); text-align: left; }
.liste-eintrag .ic { color: var(--akzent); } .liste-eintrag:hover { background: var(--seg-bg); filter: none; }
.k-online { padding: 8px 12px 0; border-top: 1px solid var(--trenner); font-size: 12px; color: var(--text2); }
.k-online h4 { margin: 0 0 4px; font-size: 12px; font-weight: 500; color: var(--text2); }
.k-online div { display: flex; align-items: center; gap: 6px; padding: 2px 0; white-space: nowrap; overflow: hidden; }
.k-online i { width: 7px; height: 7px; border-radius: 0; background: var(--ok-punkt); flex: none; }
.k-online i.schreibt { background: var(--akzent); animation: puls 1.4s var(--ease) infinite; }
.k-online span { color: var(--text3); overflow: hidden; text-overflow: ellipsis; }

.chatmain { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--flaeche); }
button.seite-knopf { display: none; position: absolute; top: 8px; left: 8px; z-index: 3; }
.verlauf { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 16px; padding: 24px max(24px, calc((100% - 760px) / 2)) 16px; scroll-behavior: smooth; }
.hinweis-leer { margin: auto; text-align: center; color: var(--text2); max-width: 480px; }
.hinweis-leer h1 { font-size: 28px; margin-bottom: 8px; color: var(--text); }
.hinweis-leer h1 span { display: inline; }
.beispiele { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.beispiel { font-size: 13px; font-weight: 400; padding: 8px 16px; border-radius: 0; background: var(--flaeche2); color: var(--text); text-align: left; }
.beispiel:hover { background: var(--flaeche3); filter: none; }

/* Nachrichten */
.msg { line-height: 1.55; animation: erscheinen 260ms var(--ease); }
@keyframes erscheinen { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.msg.du { align-self: flex-end; max-width: min(80%, 560px); background: var(--akzent); color: #fff; padding: 8px 16px; border-radius: 0;
  border-bottom-right-radius: 0; white-space: pre-wrap; word-break: break-word; }
.msg.ki { align-self: stretch; width: 100%; max-width: 720px; font-size: 15px; }
.msg.ki .text { word-break: break-word; }
.msg.ki .text p { margin: 0 0 12px; } .msg.ki .text p:last-child { margin-bottom: 0; }
.msg.ki .text h3, .msg.ki .text h4 { margin: 20px 0 8px; font-size: 17px; font-weight: 600; color: var(--text); }
.msg.ki .text ul, .msg.ki .text ol { margin: 4px 0 12px; padding-left: 24px; } .msg.ki .text li { margin-bottom: 4px; }
.msg.ki .text a { color: var(--akzent-text); text-decoration: none; } .msg.ki .text a:hover { text-decoration: underline; }
.msg.ki .text code { font-size: 13px; }
.msg.ki .text table { margin: 8px 0 12px; font-size: 13px; border: 1px solid var(--linie); border-radius: 0; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.msg.ki .text th { background: var(--flaeche2); }
.msg.ki .text blockquote { margin: 8px 0; padding: 4px 16px; border-left: 3px solid var(--flaeche3); color: var(--text2); }
pre.code { margin: 8px 0 12px; padding: 12px 16px; overflow: auto; background: var(--code-bg); border-radius: 0; }
pre.code code { background: none; padding: 0; font: 13px/1.55 var(--mono); color: var(--text); white-space: pre; }
.msg.alt { opacity: .5; } .msg.alt:hover { opacity: .85; }

/* Werkzeug-/Denk-Chips */
.chip { display: block; margin: 4px 0; font-size: 13px; border-radius: 0; background: var(--flaeche2); }
.chip summary { cursor: pointer; padding: 6px 12px; color: var(--text2); list-style: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 0; }
.chip summary:hover { color: var(--text); }
.chip summary::-webkit-details-marker { display: none; }
.chip summary b { color: var(--text); font-weight: 600; margin-right: 6px; }
.chip pre { margin: 0; padding: 8px 12px; border-top: 1px solid var(--linie); max-height: 260px; overflow: auto; white-space: pre-wrap; font: 12px/1.5 var(--mono); color: var(--text2); }
.chip.denken summary b { color: var(--akzent-text); }
.laeuft::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 0; background: var(--text3); vertical-align: 1px; animation: puls 1.4s var(--ease) infinite; }
.k-eintrag.laeuft::after { display: none; }

/* Denk-Status */
.laeufer { display: flex; align-items: baseline; gap: 8px; margin: 4px 0; font-size: 13px; color: var(--text2); }
.laeufer[hidden] { display: none; }
.laeufer .stern { width: 8px; height: 8px; border-radius: 0; background: var(--akzent); font-size: 0; color: transparent; align-self: center; animation: puls 1.4s var(--ease) infinite; }
.laeufer .wort { font-weight: 500; background: linear-gradient(90deg, var(--text3) 0%, var(--text3) 35%, var(--text) 50%, var(--text3) 65%, var(--text3) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: schimmer 2.2s linear infinite; }
.laeufer .info { color: var(--text3); font-size: 12px; font-variant-numeric: tabular-nums; }
@keyframes schimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes puls { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.tokens { margin-top: 8px; font-size: 12px; color: var(--text3); font-variant-numeric: tabular-nums; }
.vorschlag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 12px; padding: 8px 12px; border-radius: 0; background: var(--akzent-weich); font-size: 13px; }
.vorschlag button { padding: 4px 12px; border-radius: 0; background: var(--akzent); color: #fff; font-size: 13px; }
.kontext-frage { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; border-radius: 0; background: var(--akzent-weich); font-size: 13px; }
.kontext-frage > div:first-child { flex: 1 1 320px; }
.kf-knoepfe { display: flex; gap: 8px; }
.kontext-frage button { font-size: 13px; padding: 6px 12px; }
.kontext-frage button.ja { background: var(--akzent); color: #fff; }
.kompr-trenner { align-self: stretch; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); padding: 8px 0; margin: 8px 0; font-size: 13px; }
.kompr-trenner summary { cursor: pointer; color: var(--akzent-text); font-weight: 500; }
.kompr-trenner .text { margin-top: 8px; padding: 12px 16px; background: var(--flaeche2); border-radius: 0; }

/* ---------- Eingabe (schwebende Karte) */
.k-form { padding: 8px max(16px, calc((100% - 760px) / 2)) 16px; }
.k-box { position: relative; padding: 8px 8px 8px 8px; border-radius: 0; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten);
  transition: border-color var(--dauer) var(--ease), box-shadow var(--dauer) var(--ease); }
@media (prefers-color-scheme: dark) { .k-box { background: var(--flaeche2); } }
.k-box:focus-within { border-color: var(--akzent); box-shadow: var(--schatten), 0 0 0 3px var(--akzent-weich); }
.k-form textarea { display: block; width: 100%; resize: none; max-height: 220px; padding: 4px 8px; border: 0; background: transparent; font: 15px/1.47 var(--schrift); outline: none; }
.k-box-fuss { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.k-tipp { flex: 1; font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-clip { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 0;
  background: none; color: var(--text2); }
.k-clip:hover { background: var(--seg-bg); color: var(--text); filter: none; }
.k-senden { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 0;
  background: var(--akzent); color: #fff; transition: transform 120ms var(--ease), background var(--dauer) var(--ease); }
.k-senden:hover { filter: brightness(1.08); } .k-senden:active { transform: scale(.92); }
.k-senden.stopp { background: var(--text); color: var(--flaeche); }
#k-datei-in { display: none !important; }
.k-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding: 0 4px; }
#k-status { margin-left: auto; font-size: 12px; color: var(--text3); }
/* Modell-Pop-up */
.modellwahl { position: relative; }
.modellwahl select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.modell-knopf { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px 0 12px; border-radius: 0; background: none; font-size: 13px; font-weight: 600; color: var(--text); }
.modell-knopf:hover { background: var(--seg-bg); filter: none; }
.modell-knopf .ic { width: 14px; height: 14px; color: var(--text2); }
.modell-menue { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 10; min-width: 280px; padding: 4px; border-radius: 0; background: var(--glas);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--trenner); box-shadow: var(--schatten);
  animation: aufklappen 180ms var(--ease); transform-origin: bottom left; }
@keyframes aufklappen { from { opacity: 0; transform: scale(.96) translateY(4px); } to { opacity: 1; transform: none; } }
.modell-menue button { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding: 8px 12px; border: 0; border-radius: 0; background: none; text-align: left; }
.modell-menue button b { font-size: 13px; font-weight: 600; } .modell-menue button small { font-size: 12px; color: var(--text2); }
.modell-menue button:hover, .modell-menue button:focus-visible { background: var(--akzent); color: #fff; outline: none; filter: none; }
.modell-menue button:hover small, .modell-menue button:focus-visible small { color: rgba(255,255,255,.85); }
.modell-menue button.an b::after { content: " ✓"; }
/* Toggle-Chips */
.sw { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; margin: 0; padding: 0 12px; border-radius: 0; font-size: 13px; font-weight: 500;
  color: var(--text2); background: var(--seg-bg); cursor: pointer; user-select: none; transition: background var(--dauer) var(--ease), color var(--dauer) var(--ease); }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.sw:hover { color: var(--text); }
.sw:has(input:checked) { background: var(--akzent-weich); color: var(--akzent-text); }
.sw:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 2px; }
.sw.aus { opacity: .4; cursor: default; }
.sw .ic { width: 14px; height: 14px; }

/* Anhänge, Projekte, GitHub-Pop-up */
.k-anh { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; }
.anh { position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 280px; padding: 6px 32px 6px 6px; border-radius: 0; background: var(--flaeche2); color: var(--text); text-decoration: none; font-size: 13px; }
.anh.mit-dl { padding-right: 6px; } .anh.mit-dl:hover { background: var(--flaeche3); }
.anh.projekt { background: var(--akzent-weich); color: var(--akzent-text); padding-left: 12px; }
.anh-auf { position: absolute; inset: 0 44px 0 0; border-radius: 0; }
.anh-dl { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: 4px; border-radius: 0; background: var(--akzent-weich); color: var(--akzent-text); }
.anh-dl:hover { background: var(--akzent); color: #fff; }
.anh.laedt .anh-sym { animation: puls 1.2s var(--ease) infinite; } .anh.fehler small { color: var(--rot); }
.anh-sym, .dk-sym { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 0; font: 600 9px/1 var(--schrift); letter-spacing: .02em; color: #fff; background: #8E8E93; }
.anh-sym.pdf, .dk-sym.pdf { background: #FF3B30; } .anh-sym.doc, .dk-sym.doc { background: #007AFF; } .anh-sym.xls { background: #34C759; }
.anh-sym.ppt { background: #FF9500; } .anh-sym.bild { background: #AF52DE; } .anh-sym.zip { background: #8E8E93; } .anh-sym.mail { background: #30B0C7; }
.anh-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.anh-txt b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anh-txt small { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anh-weg { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; padding: 0; border: 0; border-radius: 0; background: var(--flaeche3); color: var(--text2); font-size: 13px; line-height: 1; }
.anh-weg:hover { color: var(--text); }
.msg.du .anh-liste { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; white-space: normal; }
.msg.du .anh { background: rgba(255,255,255,.2); color: #fff; } .msg.du .anh small { color: rgba(255,255,255,.8); }
.datei-karte { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px; border-radius: 0; background: var(--flaeche2); max-width: 520px; }
.dk-sym { width: 40px; height: 48px; border-radius: 0; font-size: 10px; }
.dk-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dk-txt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dk-txt small { color: var(--text2); font-size: 12px; }
.dk-knoepfe { display: flex; gap: 8px; flex: none; }
.dk-knoepfe .knopf { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 0; background: var(--flaeche); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; }
.dk-knoepfe .knopf:hover { filter: brightness(.97); }
.dk-knoepfe .knopf.haupt { background: var(--akzent); color: #fff; }
.datei-bild { margin: 12px 0; max-width: 560px; }
.datei-bild img { display: block; width: 100%; max-height: 420px; object-fit: cover; object-position: top; border-radius: 0; background: #fff; }
.datei-bild .datei-karte { margin-top: 0; border-radius: 0; max-width: none; }
.datei-video { margin: 12px 0; max-width: 640px; }
.datei-video video { display: block; width: 100%; max-height: 480px; background: #000; border-radius: 0; }
.datei-video .datei-karte { margin-top: 0; border-radius: 0; max-width: none; }
.k-drop { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: var(--akzent-weich);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 2px dashed var(--akzent); border-radius: 0; pointer-events: none; }
.k-drop div { font-size: 17px; font-weight: 600; color: var(--akzent-text); }
.k-gh { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 8px); z-index: 5; max-height: 280px; overflow: auto; padding: 4px; border-radius: 0;
  background: var(--glas); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--trenner); box-shadow: var(--schatten); }
.k-gh button { display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 0; background: none; text-align: left; font-size: 13px; }
.k-gh button:hover, .k-gh button.an { background: var(--akzent); color: #fff; filter: none; }
.k-gh small { color: var(--text3); margin-left: 6px; } .k-gh button:hover small { color: rgba(255,255,255,.8); }
.k-gh p { margin: 8px 12px; font-size: 12px; color: var(--text2); }

/* ---------- Gedächtnis-Dialog */
dialog { width: min(680px, 92vw); max-height: 80vh; padding: 24px; border: 0; border-radius: 0; background: var(--flaeche); color: var(--text); box-shadow: var(--schatten); }
dialog::backdrop { background: rgba(0,0,0,.3); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog[open] { animation: erscheinen 240ms var(--ease); }
.mem-liste { max-height: 52vh; overflow: auto; margin: 12px 0; }
.mem-eintrag { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--linie); font-size: 13px; }
.mem-eintrag span { flex: 1; } .mem-eintrag small { color: var(--text3); white-space: nowrap; }

/* ---------- Jobs, Agenten, Berichte */
.joblog { max-height: 420px; overflow: auto; margin: 12px 0 0; padding: 12px 16px; background: var(--term-bg); color: var(--term-text); border-radius: 0;
  font: 12px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; }
.bericht { border-top: 1px solid var(--linie); padding: 12px 0; } .bericht:first-child { border-top: 0; }
.bericht .kopf { position: static; height: auto; padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.bericht .kopf b { color: var(--akzent-text); }
.bericht .text p { margin: 0 0 8px; }
.neu-marke { background: var(--akzent); color: #fff; border-radius: 0; font-size: 11px; font-weight: 600; padding: 1px 8px; margin-left: 6px; }

/* ---------- Terminal (bleibt dunkel) */
.term { margin-bottom: 16px; }
#xterm { height: 520px; margin-top: 8px; padding: 12px 0 12px 12px; background: var(--term-bg); border-radius: 0; overflow: hidden; }
#xterm .xterm { height: 100%; } #xterm .xterm-viewport { background: var(--term-bg) !important; }
#xterm .xterm-rows { font-family: var(--mono) !important; }
.term.voll { position: fixed; inset: 0; z-index: 50; margin: 0; border-radius: 0; display: flex; flex-direction: column; background: var(--flaeche); }
.term.voll #xterm { flex: 1; height: auto; } .term.voll p { display: none; }
/* Bereich Code */
.codekopf { flex-wrap: wrap; }
.codefeld { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--text2); }
.codefeld select, .codefeld input { height: 28px; padding: 0 8px; font-size: 13px; border: 1px solid var(--linie); background: var(--flaeche); border-radius: 0; }
.codefeld input { width: 150px; }
#xcode { height: 560px; margin-top: 8px; padding: 12px 0 12px 12px; background: var(--term-bg); overflow: hidden; }
#xcode .xterm { height: 100%; } #xcode .xterm-viewport { background: var(--term-bg) !important; }
#xcode .xterm-rows { font-family: var(--mono) !important; }
.term.voll #xcode { flex: 1; height: auto; }
body.voll { overflow: hidden; }

/* ---------- AI-Station-Werte, Netz */
.karte.netz { margin-bottom: 16px; }
.netz-kopf { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; } .netz-kopf h2 { margin: 0; }
.netz-kopf .klein:last-child { margin-left: auto; }
.netz-wert { font-size: 13px; color: var(--text2); } .netz-wert b { font-size: 17px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.netz-wert.rein b { color: rgb(var(--kurve-rein)); } .netz-wert.raus b { color: rgb(var(--kurve-raus)); }
#n-kurve { width: 100%; height: 160px; display: block; border-radius: 0; background: var(--flaeche2); }
#n-ifs { margin: 8px 0 0; }
.netz-log { max-height: 340px; overflow: auto; }
#n-log td { font-variant-numeric: tabular-nums; } #n-log td.ok { color: var(--ok); }
#n-log tr.neu td { animation: n-neu 2s var(--ease); }
@keyframes n-neu { from { background: var(--akzent-weich); } to { background: transparent; } }

/* ---------- MCP-Link, GitHub */
.mcp { margin-bottom: 16px; }
.mcpzeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.mcpzeile input { flex: 1; min-width: 240px; margin: 0; font: 13px var(--mono); background: var(--flaeche2); border-color: transparent; }
.gh-liste { display: grid; gap: 8px; margin-top: 16px; }
.gh-p { padding: 12px 16px; border-radius: 0; background: var(--flaeche2); }
.gh-p h3 { margin: 0 0 2px; font-size: 15px; } .gh-p h3 a { color: var(--text); text-decoration: none; } .gh-p h3 a:hover { color: var(--akzent-text); }
.gh-p .gh-meta { font-size: 13px; color: var(--text2); margin: 2px 0 8px; }
.gh-p .gh-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.gh-p .gh-knoepfe button.leer { background: var(--flaeche); }
.gh-st { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 0; background: var(--flaeche3); color: var(--text2); margin-left: 8px; vertical-align: 2px; }
.gh-st.bereit { background: rgba(52,199,89,.16); color: var(--ok); } .gh-st.Fehler { background: rgba(255,59,48,.14); color: var(--rot); } .gh-st.laedt { background: rgba(255,149,0,.16); color: var(--warn); }
.gh-hilfe { margin-top: 16px; padding: 16px; border-radius: 0; background: var(--flaeche2); }
.gh-hilfe h3 { margin: 0 0 8px; }
.gh-hilfe ol { margin: 0 0 8px; padding-left: 20px; font-size: 13px; line-height: 1.55; } .gh-hilfe li { margin-bottom: 8px; }

/* ---------- Responsiv */
@media (max-width: 900px) {
  main { padding: 16px; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - 52px - 16px - 62px - 32px); }
  .chats { position: absolute; z-index: 25; top: 0; bottom: 0; left: 0; width: 280px; transform: translateX(-104%);
    transition: transform 280ms var(--ease), visibility 280ms; visibility: hidden; box-shadow: var(--schatten); border-radius: 0; }
  .chats.offen { transform: none; visibility: visible; }
  button.seite-knopf { display: inline-flex; }
  .verlauf { padding-top: 48px; }
  .msg.du { max-width: 88%; }
}
@media (max-width: 600px) {
  .kopf { padding: 0 16px; gap: 8px; } #b-pw, .marke-trenner { display: none; }
  .k-tipp { visibility: hidden; } #xterm { height: 420px; }
  .datei-karte { flex-wrap: wrap; } .dk-knoepfe { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .laeufer .wort { color: var(--text2); background: none; }
}

/* Connectoren */
.ri-con { background: #5149D6; }
.ri-roblox { background: #1c1c1e; width: 40px; height: 40px; }
.ri-roblox svg { width: 24px; height: 24px; }
.con-liste { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.con-karte { border-radius: 0; padding: 16px 18px; background: var(--flaeche2); }
.con-kopf { display: flex; align-items: center; gap: 12px; }
.con-titel { flex: 1; display: flex; flex-direction: column; } .con-titel b { font-size: 16px; }
.con-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.knopf-link { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 0; background: var(--akzent); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 13.5px; }
.knopf-link:hover { filter: brightness(1.08); }

.mcp-hinweis { margin: 14px 0 4px; padding: 10px 14px; border-radius: 0; font-size: 13.5px;
  background: color-mix(in srgb, #d97757 14%, transparent); border: 1px solid color-mix(in srgb, #d97757 35%, transparent); }
.mcp-hinweis b:first-child { color: #c2623f; }
@media (prefers-color-scheme: dark) { .mcp-hinweis b:first-child { color: #f0a07d; } }
.gh-hilfe ul { margin: 6px 0 0; padding-left: 20px; } .gh-hilfe ul li { margin: 4px 0; }

/* Admin-Konsole im Reiter */
.ri-admin { background: #D7261B; }
.admin-rahmen { display: block; width: 100%; height: calc(100vh - 170px); min-height: 560px; border: 0; border-radius: 0; background: var(--bg); box-shadow: var(--schatten); }

/* Kopieren-Knöpfe */
.msg { position: relative; }
.kopier, .kopier-code { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 0; cursor: pointer;
  background: var(--flaeche2); color: var(--text2); opacity: 0; transition: opacity 150ms var(--ease), background 150ms var(--ease), color 150ms var(--ease); }
.kopier:hover, .kopier-code:hover { color: var(--text); background: var(--flaeche3); }
.kopier.ok, .kopier-code.ok { color: var(--ok); opacity: 1; }
.msg:hover > .kopier, pre.code:hover > .kopier-code, .kopier:focus-visible, .kopier-code:focus-visible { opacity: 1; }
.msg.du > .kopier { position: absolute; left: -36px; top: 50%; transform: translateY(-50%); }
.msg.ki > .kopier { position: static; margin-top: 6px; }
pre.code { position: relative; }
pre.code > .kopier-code { position: absolute; top: 6px; right: 6px; background: color-mix(in srgb, var(--flaeche3) 85%, transparent); }
@media (hover: none) { .kopier, .kopier-code { opacity: .75; } .msg.du > .kopier { left: -32px; } }

/* Tickets */
.ticket-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 0; background: var(--rot); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.ticket-badge[hidden] { display: none; }
.tick-form { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.tick-form input, .tick-form textarea { width: 100%; box-sizing: border-box; }
.tick-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tick-eintrag { padding: 12px 0; border-bottom: 1px solid var(--linie); font-size: 13px; }
.tick-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .tick-kopf small { color: var(--text3); margin-left: auto; }
.tick-text { margin: 6px 0; white-space: pre-wrap; color: var(--text2); }
.tick-antwort { margin: 6px 0; padding: 8px 12px; border-radius: 0; background: var(--seg-bg); white-space: pre-wrap; }
.tick-antwort small { display: block; margin-top: 4px; color: var(--text3); }

/* ===== Eckiges Design (01.12.): keine Abrundungen, auch nicht in Inline-Styles ===== */
*, *::before, *::after { border-radius: 0; }

/* ===== Fußzeile: Website von socva ===== */
footer.fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 12px 24px; border-top: 1px solid var(--linie); }
.fuss-socva { display: inline-flex; align-items: center; gap: 8px; color: var(--text2); text-decoration: none; font-size: 12px; }
.fuss-socva .socva-logo { display: block; height: 20px; width: auto; }
.socva-logo .m { fill: none; stroke: #1F5BD8; stroke-width: 3.4; stroke-linecap: square; stroke-linejoin: miter; }
.socva-logo .w { fill: #14234B; font: 800 15.5px/1 "Segoe UI", Arial, Helvetica, sans-serif; letter-spacing: -.2px; }
@media (prefers-color-scheme: dark) { .socva-logo .m { stroke: #4C8DFF; } .socva-logo .w { fill: #F5F5F7; } }
.fuss-socva:hover { color: var(--text); }
.fuss-socva:hover .socva-logo { opacity: .85; }

/* ===== Modell-Empfehlungen ===== */
.modell-menue .gut { display: block; margin-top: 2px; font-size: 12px; color: var(--text2); }
.modell-menue .gut strong { color: var(--text); font-weight: 600; }
.modell-menue .faust { margin: 4px 0 0; padding: 8px 12px; border-top: 1px solid var(--linie); font-size: 12px; line-height: 1.45; color: var(--text2); }
.modell-tipp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--akzent); background: var(--akzent-weich); font-size: 13px; color: var(--text); }
.modell-tipp[hidden] { display: none; }
.modell-tipp .mt-text { flex: 1 1 260px; }
.modell-tipp button { padding: 4px 12px; font-size: 13px; }
.modell-tipp .mt-weg { border: 0; background: none; color: var(--text2); padding: 4px 6px; }
.modell-menue button:hover .gut, .modell-menue button:focus-visible .gut, .modell-menue button:hover .gut strong, .modell-menue button:focus-visible .gut strong { color: rgba(255,255,255,.9); }

/* Original-socva-Logo in der Fußzeile (aus Socva-Odoo-erklaert.pdf, eingebettet) */
.fuss-socva .socva-original { display: block; width: 84px; height: 20px; background: no-repeat left center / contain; background-image: url("data:image/png;base64,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"); }
@media (prefers-color-scheme: dark) { .fuss-socva .socva-original { background-image: url("data:image/png;base64,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"); } }

/* Alle Rechner (Reiter AI Station) */
.ri-studio { background: #D9468F; }
.rechner-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 12px; }
.rechner { background: var(--flaeche2); padding: 14px 16px; }
.rechner.aus { opacity: .75; }
.rechner .r-titel { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.rechner .r-mess { margin-top: 10px; }
.rechner .r-mess .balken { margin-top: 4px; }
.rechner .r-kopf { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text2); }
.rechner .r-kopf b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.rechner .r-dienste { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }

/* Studio */
.studio-form textarea { width: 100%; box-sizing: border-box; margin: 12px 0; font: inherit; padding: 10px 12px; background: var(--flaeche2); color: var(--text); border: 1px solid var(--linie, transparent); resize: vertical; }
.studio-art { display: inline-flex; gap: 0; background: var(--flaeche2); padding: 3px; }
.studio-art button { border: 0; background: none; padding: 6px 18px; font-weight: 500; color: var(--text2); cursor: pointer; }
.studio-art button.an { background: var(--flaeche); color: var(--text); font-weight: 600; }
.studio-optionen { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 12px; font-size: 13px; color: var(--text2); }
.studio-optionen label { display: inline-flex; align-items: center; gap: 6px; }
.studio-optionen label.breit { flex: 1 1 260px; } .studio-optionen label.breit input { flex: 1; }
.studio-optionen select, .studio-optionen input[type=number], .studio-optionen input[type=text] { font: inherit; padding: 4px 8px; background: var(--flaeche2); color: var(--text); border: 1px solid var(--linie, transparent); }
.studio-optionen input[type=number] { width: 110px; }
.studio-form .knopfzeile { display: flex; align-items: center; gap: 12px; }
.st-auftrag { display: grid; grid-template-columns: 60px 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--flaeche2); font-size: 13px; }
.st-auftrag span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.st-kachel { margin: 0; background: var(--flaeche2); }
.st-kachel img, .st-kachel video { display: block; width: 100%; height: 220px; object-fit: cover; background: #000; }
.st-kachel figcaption { padding: 6px 8px; }
.st-dl { float: right; color: var(--akzent); text-decoration: none; font-weight: 500; } .st-dl:hover { text-decoration: underline; }

.st-live { display: flex; flex-direction: column; min-width: 220px; }
.st-live-zeile { display: flex; justify-content: space-between; gap: 12px; }
.st-uhr { font-variant-numeric: tabular-nums; color: var(--akzent); font-weight: 600; }
.st-live .balken { margin-top: 6px; }

.st-refs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; }
#st-ref-liste { display: contents; }
.st-ref { display: inline-flex; align-items: center; gap: 6px; background: var(--flaeche2); padding: 3px 4px 3px 3px; font-size: 13px; }
.st-ref img { width: 34px; height: 34px; object-fit: cover; }
.st-ref.fehler { color: var(--rot-punkt); }
.st-gpu { margin-top: 4px; font-variant-numeric: tabular-nums; }

/* Grafik-PC (RTX) an/aus */
.rtx { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 9px; border-radius: 999px; margin-left: auto; margin-right: 10px; background: rgba(127,127,127,.12); white-space: nowrap; }
.rtx i { width: 8px; height: 8px; border-radius: 50%; background: #999; display: inline-block; }
.rtx.an i { background: #2ecc71; box-shadow: 0 0 6px #2ecc71; }
.rtx.aus i { background: #e74c3c; }
.st-rtx-aus { border-left: 4px solid #e74c3c; padding: 10px 14px; margin-bottom: 12px; }
