/* CoraOS – Cora für Chris · 22.10.2026
   Graphit + Signal-Orange. Schnelle, knackige Bewegung (unter 300 ms), nur transform/opacity. */
:root {
  --bg: #0c0d10;
  --bg-2: #111317;
  --flaeche: #16181d;
  --flaeche-2: #1c1f25;
  --flaeche-3: #242830;
  --linie: rgba(255, 255, 255, .07);
  --linie-2: rgba(255, 255, 255, .12);
  --text: #ecebe6;
  --text-2: #a7a9ae;
  --text-3: #6d7077;
  --akzent: #ff7a2f;
  --akzent-2: #ffb07f;
  --akzent-hauch: rgba(255, 122, 47, .12);
  --gut: #3ad6a0;
  --schlecht: #ff5a6e;
  --warn: #ffc94a;
  --info: #7cc4ff;
  --radius: 14px;
  --radius-s: 10px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --schrift: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Code', monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14.5px/1.5 var(--schrift);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
  overflow: hidden;
}
/* feines Korn + Lichtfleck oben links: Tiefe ohne Kitsch */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(255, 122, 47, .07), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(124, 196, 255, .04), transparent 60%);
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#app { position: relative; z-index: 1; height: 100%; }
::selection { background: var(--akzent); color: #1a0d05; }
a { color: var(--akzent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.leise { color: var(--text-2); }
.ganz-leise { color: var(--text-3); }
.plus { color: var(--gut); }
.minus { color: var(--schlecht); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--flaeche-3); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Knöpfe & Eingaben ---------- */
button { font: inherit; color: inherit; }
.knopf {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 38px; padding: 0 16px; border-radius: var(--radius-s);
  border: 1px solid var(--linie-2); background: var(--flaeche-2); color: var(--text);
  font-weight: 500; cursor: pointer; user-select: none; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}
.knopf:active { transform: scale(0.97); }
.knopf.haupt { background: var(--akzent); border-color: transparent; color: #1c0e04; font-weight: 600; }
.knopf.geist { background: transparent; border-color: transparent; color: var(--text-2); }
.knopf.klein { height: 30px; padding: 0 11px; font-size: 13px; }
.knopf.rund { width: 38px; padding: 0; }
.knopf[disabled] { opacity: .5; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .knopf:hover { background: var(--flaeche-3); }
  .knopf.haupt:hover { background: #ff8a47; }
  .knopf.geist:hover { background: var(--flaeche-2); color: var(--text); }
}
.feld { display: grid; gap: 6px; margin-bottom: 14px; }
.feld > span { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
input, textarea, select {
  font: inherit; color: var(--text); width: 100%;
  background: var(--bg-2); border: 1px solid var(--linie-2); border-radius: var(--radius-s);
  padding: 10px 12px; outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input:focus, textarea:focus, select:focus { border-color: rgba(255, 122, 47, .6); box-shadow: 0 0 0 3px var(--akzent-hauch); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
.code-eingabe { font-family: var(--mono); font-size: 26px; letter-spacing: .4em; text-align: center; padding: 14px; }

/* ---------- Login / Einrichtung ---------- */
.eingang { height: 100%; display: grid; place-items: center; padding: 24px; }
.eingang-karte {
  width: min(420px, 100%); padding: 34px 30px 28px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(28, 31, 37, .92), rgba(20, 22, 27, .92));
  border: 1px solid var(--linie-2);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .04);
  animation: auftauchen 420ms var(--ease-out) both;
}
.eingang-karte h1 { font: 400 40px/1.05 var(--serif); font-style: italic; margin: 18px 0 6px; letter-spacing: -.02em; }
.eingang-karte p.unter { color: var(--text-2); margin: 0 0 24px; }
.eingang-karte .fehler { min-height: 20px; color: var(--schlecht); font-size: 13px; margin: -4px 0 10px; }
.eingang-karte .knopf.haupt { width: 100%; height: 44px; }
.qr { background: #ecebe6; border-radius: 14px; padding: 12px; width: 196px; margin: 4px auto 14px; }
.qr img, .qr svg { display: block; width: 100%; height: auto; }
.geheim-text { font-family: var(--mono); font-size: 12px; text-align: center; color: var(--text-2); word-break: break-all; margin-bottom: 18px; }
.schritte { display: flex; gap: 6px; margin-bottom: 4px; }
.schritte i { height: 3px; flex: 1; border-radius: 3px; background: var(--flaeche-3); }
.schritte i.an { background: var(--akzent); }

/* Logo: Ring + Mond (Cora umkreist dich) */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.logo-zeichen { width: 30px; height: 30px; position: relative; flex: none; }
.logo-zeichen::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 3px solid var(--akzent); }
.logo-zeichen::after { content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #ffd9bf; top: 50%; left: 50%; margin: -4.5px; transform: rotate(-45deg) translateX(13px); animation: umlauf 9s linear infinite; }
.logo.gross .logo-zeichen { width: 54px; height: 54px; }
.logo.gross .logo-zeichen::before { inset: 7px; border-width: 5px; }
.logo.gross .logo-zeichen::after { width: 14px; height: 14px; margin: -7px; transform: rotate(-45deg) translateX(24px); animation-name: umlauf-gross; }
@keyframes umlauf { from { transform: rotate(-45deg) translateX(13px); } to { transform: rotate(315deg) translateX(13px); } }
@keyframes umlauf-gross { from { transform: rotate(-45deg) translateX(24px); } to { transform: rotate(315deg) translateX(24px); } }
.logo b { font-weight: 700; }
.logo span { color: var(--akzent); }

/* ---------- Rahmen ---------- */
.rahmen { display: grid; grid-template-columns: 232px 1fr; height: 100%; }
.leiste {
  border-right: 1px solid var(--linie); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px;
  background: rgba(12, 13, 16, .6); backdrop-filter: blur(10px); min-height: 0; overflow-y: auto;
}
.leiste .logo { padding: 4px 10px 18px; }
.leiste-titel { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); padding: 14px 12px 6px; font-weight: 600; }
.nav {
  display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 10px; color: var(--text-2);
  cursor: pointer; position: relative; font-weight: 500; text-decoration: none !important;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out);
}
.nav:active { transform: scale(0.98); }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav.aktiv { background: var(--flaeche-2); color: var(--text); }
.nav.aktiv::before { content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--akzent); }
@media (hover: hover) and (pointer: fine) { .nav:hover { background: var(--flaeche); color: var(--text); } }
.nav .zahl { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--akzent); color: #1c0e04; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.leiste-fuss { margin-top: auto; padding-top: 14px; display: grid; gap: 8px; }
.verbindung { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px; background: var(--flaeche); font-size: 12.5px; color: var(--text-2); }
.punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.punkt.an { background: var(--gut); box-shadow: 0 0 0 0 rgba(58, 214, 160, .5); animation: pulsieren 2.4s ease-out infinite; }
.punkt.aus { background: var(--schlecht); }
@keyframes pulsieren { 0% { box-shadow: 0 0 0 0 rgba(58, 214, 160, .45); } 70% { box-shadow: 0 0 0 8px rgba(58, 214, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(58, 214, 160, 0); } }

.haupt { min-width: 0; min-height: 0; overflow-y: auto; position: relative; }
.seite { padding: 34px 40px 60px; max-width: 1240px; margin: 0 auto; }
.seite.voll { max-width: none; padding: 0; height: 100%; }
.kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.kopf h1 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -.025em; }
.kopf p { margin: 6px 0 0; color: var(--text-2); }
.gruss { font: 400 46px/1.02 var(--serif); font-style: italic; letter-spacing: -.025em; margin: 0; }
.gruss em { color: var(--akzent); font-style: italic; }

/* Seitenwechsel: kurz, nur Deckkraft + 6px */
.einblenden { animation: auftauchen 260ms var(--ease-out) both; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.staffel > * { animation: auftauchen 300ms var(--ease-out) both; }
.staffel > *:nth-child(2) { animation-delay: 40ms; } .staffel > *:nth-child(3) { animation-delay: 80ms; }
.staffel > *:nth-child(4) { animation-delay: 120ms; } .staffel > *:nth-child(5) { animation-delay: 160ms; }
.staffel > *:nth-child(6) { animation-delay: 200ms; } .staffel > *:nth-child(n+7) { animation-delay: 230ms; }

/* ---------- Karten & Raster ---------- */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px 20px; position: relative; }
.karte h3 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: .01em; display: flex; align-items: center; gap: 8px; }
.karte h3 .rechts { margin-left: auto; }
.raster { display: grid; gap: 14px; }
.raster.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.raster.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.raster.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster.k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster.haupt-neben { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.kennzahl .wert { font: 600 30px/1.1 var(--mono); letter-spacing: -.03em; }
.kennzahl .label { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; font-weight: 500; }
.kennzahl .unter { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.anklickbar { cursor: pointer; transition: transform 160ms var(--ease-out), border-color 160ms ease; }
.anklickbar:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .anklickbar:hover { border-color: var(--linie-2); } }
.leer { text-align: center; color: var(--text-3); padding: 34px 10px; }
.leer .serif { display: block; font-size: 24px; color: var(--text-2); margin-bottom: 4px; }
.marke { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--flaeche-3); color: var(--text-2); }
.marke.gut { background: rgba(58, 214, 160, .12); color: var(--gut); }
.marke.schlecht { background: rgba(255, 90, 110, .12); color: var(--schlecht); }
.marke.akzent { background: var(--akzent-hauch); color: var(--akzent-2); }

/* Mini-Diagramme */
.spark { width: 100%; height: 44px; display: block; overflow: visible; }
.spark path.linie { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.spark path.flaeche { opacity: .14; }
.balken { display: flex; align-items: flex-end; gap: 5px; height: 90px; }
.balken i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--flaeche-3); min-height: 3px; transform-origin: bottom; animation: wachsen 420ms var(--ease-out) both; }
.balken i.heute { background: var(--akzent); }
@keyframes wachsen { from { transform: scaleY(0.15); } to { transform: none; } }

/* ---------- Chat ---------- */
.chat { display: grid; grid-template-columns: 260px 1fr; height: 100%; }
.kanal-liste { border-right: 1px solid var(--linie); padding: 22px 12px; overflow-y: auto; }
.kanal-liste h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 10px 16px; }
.kanal {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; cursor: pointer;
  transition: background-color 140ms ease, transform 140ms var(--ease-out);
}
.kanal:active { transform: scale(0.98); }
.kanal.aktiv { background: var(--flaeche-2); }
@media (hover: hover) and (pointer: fine) { .kanal:hover { background: var(--flaeche); } .kanal.aktiv:hover { background: var(--flaeche-2); } }
.kanal .ikon { width: 34px; height: 34px; border-radius: 10px; background: var(--flaeche-2); display: grid; place-items: center; font-size: 17px; }
.kanal.aktiv .ikon { background: var(--flaeche-3); }
.kanal b { display: block; font-weight: 600; font-size: 14px; }
.kanal small { display: block; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.kanal .zahl { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--akzent); color: #1c0e04; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.verlauf-bereich { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.chat-kopf { display: flex; align-items: center; gap: 12px; padding: 16px 26px; border-bottom: 1px solid var(--linie); }
.chat-kopf b { font-size: 16px; }
.chat-kopf .rechts { margin-left: auto; display: flex; gap: 6px; }
.nachrichten { flex: 1; overflow-y: auto; padding: 22px 26px 10px; display: flex; flex-direction: column; gap: 2px; }
.tag-trenner { align-self: center; font-size: 11.5px; color: var(--text-3); background: var(--flaeche); padding: 3px 10px; border-radius: 20px; margin: 14px 0 10px; }
.blase-reihe { display: flex; gap: 10px; align-items: flex-end; max-width: 78%; }
.blase-reihe.ich { align-self: flex-end; flex-direction: row-reverse; }
.blase-reihe + .blase-reihe:not(.folge) { margin-top: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.avatar.cora { background: radial-gradient(circle at 35% 30%, #ffb07f, #ff7a2f 55%, #c4491a); color: #1c0e04; }
.avatar.chris { background: var(--flaeche-3); color: var(--text); }
.blase-reihe.folge .avatar { visibility: hidden; height: 0; }
.blase {
  padding: 9px 13px; border-radius: 16px; background: var(--flaeche-2); border: 1px solid var(--linie);
  word-wrap: break-word; overflow-wrap: anywhere; min-width: 0;
}
.blase-reihe.ich .blase { background: #2a1a10; border-color: rgba(255, 122, 47, .22); }
.blase.wichtig { border-color: rgba(255, 90, 110, .45); box-shadow: 0 0 0 3px rgba(255, 90, 110, .08); }
.blase p { margin: 0 0 6px; } .blase p:last-child { margin-bottom: 0; }
.blase h1, .blase h2, .blase h3 { font-size: 15px; margin: 8px 0 4px; } .blase h1:first-child, .blase h2:first-child { margin-top: 0; }
.blase ul, .blase ol { margin: 4px 0; padding-left: 20px; }
.blase code { font-family: var(--mono); font-size: 12.5px; background: rgba(0, 0, 0, .3); padding: 1px 5px; border-radius: 5px; }
.blase .zeit { font-size: 11px; color: var(--text-3); margin-top: 3px; text-align: right; font-family: var(--mono); }
.blase-reihe.neu { animation: blase-rein 280ms var(--ease-out) both; }
@keyframes blase-rein { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.tippt { height: 22px; padding: 0 26px; font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.tippt i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); animation: hupf 1s ease-in-out infinite; }
.tippt i:nth-child(2) { animation-delay: .15s; } .tippt i:nth-child(3) { animation-delay: .3s; }
@keyframes hupf { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.eingabe { display: flex; gap: 10px; padding: 12px 26px 22px; align-items: flex-end; }
.eingabe textarea { resize: none; min-height: 46px; max-height: 180px; border-radius: 14px; padding: 12px 14px; line-height: 1.45; }
.eingabe .knopf.haupt { height: 46px; width: 46px; padding: 0; border-radius: 14px; }
.eingabe .knopf.haupt svg { width: 20px; height: 20px; }

/* ---------- Märkte ---------- */
.kurs-karte .oben { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 4px; }
.kurs-karte .symbol { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.kurs-karte .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kurs-karte .preis { font: 600 24px/1.1 var(--mono); letter-spacing: -.03em; margin: 10px 0 2px; }
.kurs-karte .aenderung { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.preis.blitz-plus { animation: blitz-plus 900ms ease-out; } .preis.blitz-minus { animation: blitz-minus 900ms ease-out; }
@keyframes blitz-plus { 0% { color: var(--gut); } 100% { color: var(--text); } }
@keyframes blitz-minus { 0% { color: var(--schlecht); } 100% { color: var(--text); } }
.suchfeld { position: relative; }
.treffer { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; background: var(--flaeche-2); border: 1px solid var(--linie-2); border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6); transform-origin: top center; animation: popover 180ms var(--ease-out) both; }
@keyframes popover { from { opacity: 0; transform: scale(0.97) translateY(-4px); } to { opacity: 1; transform: none; } }
.treffer div { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.treffer div:hover, .treffer div.aktiv { background: var(--flaeche-3); }
.treffer .mono { color: var(--akzent-2); font-size: 12.5px; min-width: 76px; }

/* ---------- Server ---------- */
.server-karte .zeile { display: flex; align-items: center; gap: 10px; }
.server-karte b { font-size: 15px; }
.server-karte .ms { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.server-karte .rolle { font-size: 12.5px; color: var(--text-3); margin: 4px 0 12px 18px; }
.puls { display: flex; gap: 2px; height: 26px; align-items: flex-end; }
.puls i { flex: 1; background: var(--gut); opacity: .55; border-radius: 1px; min-height: 2px; }
.puls i.weg { background: var(--schlecht); opacity: .9; height: 100% !important; }

/* ---------- Kleinteile ---------- */
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--flaeche-3); border: 1px solid var(--linie-2); border-radius: 12px; padding: 11px 15px; max-width: 360px; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .6); display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.toast.rein { animation: toast-rein 320ms var(--ease-out) both; }
.toast.raus { opacity: 0; transform: translateX(16px); }
.toast.fehler { border-color: rgba(255, 90, 110, .4); }
.toast b { display: block; font-size: 13px; }
.toast small { color: var(--text-2); display: block; max-height: 60px; overflow: hidden; }
@keyframes toast-rein { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.schalter { position: relative; width: 40px; height: 23px; flex: none; }
.schalter input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.schalter i { position: absolute; inset: 0; border-radius: 20px; background: var(--flaeche-3); transition: background-color 180ms ease; }
.schalter i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform 200ms var(--ease-out); }
.schalter input:checked + i { background: var(--akzent); }
.schalter input:checked + i::after { transform: translateX(17px); }
.einstellung { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.einstellung:last-child { border-bottom: 0; }
.einstellung div { flex: 1; } .einstellung b { display: block; font-weight: 550; } .einstellung small { color: var(--text-3); }
.bald { display: grid; place-items: center; text-align: center; min-height: 60vh; color: var(--text-2); }
.bald .serif { font-size: 40px; color: var(--text); display: block; margin-bottom: 8px; }
.ladebalken { position: fixed; top: 0; left: 0; height: 2px; background: var(--akzent); z-index: 200; width: 0; transition: width 300ms var(--ease-out), opacity 300ms ease; }

/* Handy */
.menue-knopf, .unten-leiste { display: none; }
@media (max-width: 860px) {
  body { font-size: 15px; }
  .rahmen { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .leiste { display: none; }
  .unten-leiste { display: flex; justify-content: space-around; border-top: 1px solid var(--linie); background: rgba(12, 13, 16, .92); backdrop-filter: blur(14px); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .unten-leiste .nav { flex-direction: column; gap: 3px; font-size: 10.5px; padding: 6px 4px; flex: 1; }
  .unten-leiste .nav.aktiv::before { display: none; }
  .unten-leiste .nav .zahl { position: absolute; top: 0; right: 18%; margin: 0; min-width: 17px; height: 17px; font-size: 10px; }
  .seite { padding: 22px 16px 40px; }
  .gruss { font-size: 36px; }
  .raster.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raster.k3, .raster.k2, .raster.haupt-neben { grid-template-columns: minmax(0, 1fr); }
  .chat { grid-template-columns: 1fr; }
  .chat .kanal-liste { display: none; }
  .chat.liste-offen .kanal-liste { display: block; }
  .chat.liste-offen .verlauf-bereich { display: none; }
  .chat-kopf, .nachrichten, .eingabe { padding-left: 14px; padding-right: 14px; }
  .blase-reihe { max-width: 90%; }
  .menue-knopf { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .einblenden, .staffel > *, .blase-reihe.neu, .toast.rein { animation: none !important; }
}

/* Log-Kanal als Zeitleiste */
.nachrichten.als-log { gap: 0; padding-left: 34px; }
.log-zeile { display: grid; grid-template-columns: 52px 14px 1fr; gap: 12px; align-items: start; padding: 7px 0; position: relative; }
.log-zeile::before { content: ''; position: absolute; left: 70px; top: 0; bottom: 0; width: 1px; background: var(--linie-2); }
.log-zeit { font: 12px/1.6 var(--mono); color: var(--text-3); text-align: right; padding-top: 1px; }
.log-punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--flaeche-3); border: 2px solid var(--akzent); margin-top: 6px; position: relative; z-index: 1; justify-self: center; }
.log-punkt.wichtig { border-color: var(--schlecht); background: var(--schlecht); }
.log-text { color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.log-text p { margin: 0; } .log-text strong { color: var(--text); }
.log-zeile.neu { animation: blase-rein 260ms var(--ease-out) both; }
.nachrichten.als-log .tag-trenner { margin-left: -34px; }
.knopf svg { width: 16px; height: 16px; flex: none; }
