/* Loreni – minimalistische Oberfläche (Web & Android). Farben: #102A55 (Leiste), #DDE6F2 (Gesprächsfeld) */
:root { --navy: #102a55; --hell: #dde6f2; --grau: #5d6f8c; color-scheme: light; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #fff; color: var(--navy); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.kopf { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; padding-top: max(16px, env(safe-area-inset-top)); }
.marke { font-weight: 700; font-size: 24px; letter-spacing: -.01em; }
.modus { font-size: 14px; color: var(--grau); background: #eef1f6; border-radius: 999px; padding: 4px 12px; }
main { min-height: 50vh; }

/* Unten: Leiste | Gesprächsfeld | Knöpfe – unten bündig, damit das Feld beim Vergrößern nach oben wächst */
.dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(18px, env(safe-area-inset-bottom));
        display: flex; align-items: flex-end; gap: 16px; width: min(1360px, calc(100vw - 32px)); z-index: 10; }
.dock #leiste { flex: none; }
.dock .feld { flex: 1 1 auto; min-width: 440px; }
.knoepfe { display: flex; flex-direction: column; gap: 8px; height: var(--tb-hoehe, 96px); justify-content: flex-end; }
.avatar { flex: none; height: calc(var(--tb-hoehe, 96px) + 10px); width: auto; margin-left: -6px; pointer-events: none; user-select: none; filter: drop-shadow(0 4px 10px rgba(16,42,85,.2)); }
@media (max-width: 1300px) { .avatar { display: none; } }
.zahnrad { width: 40px; height: 40px; border-radius: 12px; border: 1px solid #dfe4ec; background: #fff; color: var(--navy); font-size: 18px; cursor: pointer; }

dialog { border: 0; border-radius: 18px; padding: 22px 24px; width: min(640px, 94vw); max-height: 86vh; overflow: auto; box-shadow: 0 20px 60px rgba(16,42,85,.3); }
dialog::backdrop { background: rgba(16,42,85,.35); }

/* Schmale Fenster/Handy: Gesprächsfeld über der Leiste */
@media (max-width: 1140px) {
  .dock { flex-direction: column-reverse; align-items: stretch; gap: 10px; width: calc(100vw - 24px); }
  .dock #leiste { align-self: center; }
  .knoepfe { position: absolute; right: 0; top: -48px; height: auto; }
}
