/* ════════════════════════════════════════════════════════════
   juka dojo – Designsystem (Konzept Kap. 26)
   warmes Weiß · Beige/Sand · Anthrazit · Gold/Bronze-Akzent
   ruhiges Grün (auf Kurs) · Orange (beachten) · Rot (intern)
   ════════════════════════════════════════════════════════════ */
:root {
    --weiss:        #f5f5f6;   /* heller, neutraler Hintergrund */
    --sand:         #ececee;   /* helle graue Fläche */
    --sand-tief:    #d7d8dc;   /* Rahmen-Grau */
    --anthrazit:    #232427;   /* dunkles Anthrazit */
    --anthrazit-60: #6c6e73;
    --gold:         #ff7200;   /* Akzent (Orange) */
    --gold-tief:    #d96000;   /* dunkler Akzent (Hover) */
    --gruen:        #4f8a5b;   /* auf Kurs */
    --gelb:         #e0a020;   /* beobachten (Gelb, klar getrennt vom Orange) */
    --rot:          #c0392b;   /* Handlungsbedarf */
    --gruen-bg:     #e6f0e8;
    --gelb-bg:      #fbf1d8;
    --rot-bg:       #f7e2de;
    --karte:        #ffffff;
    --schatten:     0 2px 12px rgba(43, 42, 40, .07);
    --radius:       16px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: var(--font);
    background: var(--weiss);
    color: var(--anthrazit);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* ── Marke ──────────────────────────────────────────────── */
.marke { font-weight: 700; letter-spacing: .04em; display: inline-flex; align-items: center; }
.marke .dojo { color: var(--gold); }
.brand-logo { height: 30px; width: 30px; border-radius: 8px; margin-right: .5rem; flex: none; }
.login-logo { width: 76px; height: 76px; border-radius: 20px; display: block; margin: 0 auto 1rem; box-shadow: var(--schatten); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    font: inherit; font-weight: 600; cursor: pointer; border: none;
    border-radius: 12px; padding: .7rem 1.2rem; background: var(--anthrazit);
    color: var(--weiss); transition: transform .08s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn.gold  { background: var(--gold); }
.btn.gold:hover { background: var(--gold-tief); }
.btn.ghost { background: transparent; color: var(--anthrazit); border: 1px solid var(--sand-tief); }
.btn:disabled { opacity: .5; cursor: default; }

/* ── Ampel ──────────────────────────────────────────────── */
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.dot.gruen  { background: var(--gruen); }
.dot.gelb { background: var(--gelb); }
.dot.rot    { background: var(--rot); }
.pill {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
}
.pill.gruen  { background: var(--gruen-bg);  color: var(--gruen); }
.pill.gelb { background: var(--gelb-bg); color: var(--gold-tief); }
.pill.rot    { background: var(--rot-bg);    color: var(--rot); }
.pill.pausiert { background: var(--sand); color: var(--anthrazit-60); }

/* ── Erster Check-in / Pausiert ──────────────────────────── */
.kunde-karte .seit { font-size: .76rem; color: var(--anthrazit-60); margin-top: .1rem; }
.kunde-karte.pausiert { opacity: .68; }
.detail-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.seit-info {
    font-size: .85rem; color: var(--anthrazit-60); background: var(--sand);
    padding: .5rem .75rem; border-radius: 10px; margin-bottom: .9rem;
}
.seit-info b { color: var(--anthrazit); }

/* ── v7: Spaltenansicht je Betreuer ──────────────────────── */
.betreuer-spalten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; align-items: start; }
.betreuer-spalten .spalte { background: var(--sand); border-radius: 14px; padding: .6rem; display: flex; flex-direction: column; gap: .6rem; }
.spalte-kopf { font-weight: 700; padding: .3rem .4rem; display: flex; justify-content: space-between; align-items: center; }
.spalte-zahl { background: var(--karte); color: var(--anthrazit-60); border-radius: 999px; padding: .05rem .5rem; font-size: .78rem; }
#spaltenBtn.aktiv { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ── v7: Leitungs-Hinweis-Banner (Betreuer-Wechsel) ──────── */
.hinweis-banner { background: var(--gelb-bg); border: 1px solid #ead9a8; border-radius: 12px; padding: .7rem .9rem; margin-bottom: 1rem; }
.hinweis-head { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.hinweis-head .btn { margin-left: auto; }
.hinweis-liste { list-style: none; margin: .5rem 0 0; padding: 0; font-size: .85rem; }
.hinweis-liste li { padding: .25rem 0; border-top: 1px solid #ead9a8; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.hinweis-liste .badge { background: var(--karte); border-radius: 999px; padding: .03rem .5rem; font-size: .74rem; color: var(--anthrazit-60); }
.hinweis-liste .when { margin-left: auto; color: var(--anthrazit-60); font-size: .76rem; }

/* ── v7: Vertretungs-Zeile, Fokus-Verlauf, Ziel-Block ────── */
.hinweis-zeile { margin-top: .5rem; padding: .45rem .6rem; background: var(--gelb-bg); border-radius: 9px; font-size: .85rem; }
.fokus-aktuell { font-weight: 600; }
.fokus-verlauf { margin-top: .5rem; font-size: .85rem; }
.fokus-verlauf summary { cursor: pointer; color: var(--anthrazit-60); }
.fokus-liste { list-style: none; margin: .4rem 0 0; padding: 0; }
.fokus-liste li { padding: .25rem 0; border-top: 1px solid var(--sand); }
.fokus-liste .when, .fokus-liste .von { color: var(--anthrazit-60); font-size: .78rem; }
.ziel-block { background: var(--gelb-bg); }

/* ── Layout: Login ──────────────────────────────────────── */
.login-wrap {
    min-height: 100%; display: grid; place-items: center; padding: 1.5rem;
    background: linear-gradient(160deg, var(--weiss), var(--sand));
}
.login-card {
    background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten);
    padding: 2.2rem; width: 100%; max-width: 380px;
}
.login-card h1 { font-size: 1.4rem; margin-bottom: .3rem; }
.login-card p.sub { color: var(--anthrazit-60); margin-bottom: 1.5rem; font-size: .95rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.field input {
    width: 100%; font: inherit; padding: .7rem .9rem; border-radius: 10px;
    border: 1px solid var(--sand-tief); background: var(--weiss);
}
.field input:focus { outline: 2px solid var(--gold); border-color: transparent; }
.checkrow { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem; font-size: .9rem; }
.fehler { color: var(--rot); font-size: .88rem; margin-top: .8rem; min-height: 1.2em; }

/* ── Layout: App-Header ─────────────────────────────────── */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.3rem; background: var(--karte); box-shadow: var(--schatten);
    position: sticky; top: 0; z-index: 10;
}
.topbar .marke { font-size: 1.15rem; }
.topbar .actions { display: flex; gap: .6rem; align-items: center; }
.container { max-width: 1100px; margin: 0 auto; padding: 1.3rem; }

/* ── Trainer-Dashboard: Kundenkarten ────────────────────── */
.filterbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; }
.filterbar .count { color: var(--anthrazit-60); font-size: .9rem; margin-left: auto; }
.kunden-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.kunde-karte {
    background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten);
    padding: 1.1rem; cursor: pointer; border-left: 5px solid var(--sand-tief);
    transition: transform .1s;
}
.kunde-karte:hover { transform: translateY(-2px); }
.kunde-karte.gruen  { border-left-color: var(--gruen); }
.kunde-karte.gelb { border-left-color: var(--gelb); }
.kunde-karte.rot    { border-left-color: var(--rot); }
.kunde-karte .kopf { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.kunde-karte .avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--sand);
    display: grid; place-items: center; font-weight: 700; color: var(--gold-tief); flex: none;
}
.kunde-karte .name { font-weight: 700; }
.kunde-karte .trainer { font-size: .8rem; color: var(--anthrazit-60); }
.saeule { display: flex; align-items: center; gap: .55rem; padding: .35rem 0; font-size: .9rem; }
.saeule .label { width: 92px; color: var(--anthrazit-60); flex: none; }
.saeule .wert { font-weight: 600; }

/* ── Detail-Panel ───────────────────────────────────────── */
.overlay {
    position: fixed; inset: 0; background: rgba(43,42,40,.45);
    display: none; place-items: center; z-index: 50; padding: 1rem;
}
.overlay.show { display: grid; }
.panel {
    background: var(--weiss); border-radius: var(--radius); width: 100%; max-width: 560px;
    max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.panel .ph { padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; background: var(--weiss); border-bottom: 1px solid var(--sand); }
.panel .pb { padding: 1.4rem; }
.panel h2 { font-size: 1.25rem; }
.x { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--anthrazit-60); }
.block { background: var(--karte); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; box-shadow: var(--schatten); }
.block h3 { font-size: .95rem; margin-bottom: .6rem; display: flex; gap: .5rem; align-items: center; }
.timeline { list-style: none; }
.timeline li { display: flex; gap: .7rem; padding: .5rem 0; border-bottom: 1px solid var(--sand); font-size: .9rem; }
.timeline li:last-child { border-bottom: none; }
.timeline .when { color: var(--anthrazit-60); width: 110px; flex: none; font-size: .82rem; }

/* ── Scanner ────────────────────────────────────────────── */
#reader { width: 100%; border-radius: 12px; overflow: hidden; }
.scan-result { text-align: center; padding: 1.5rem; }
.scan-result .big { font-size: 1.4rem; font-weight: 700; margin: .5rem 0; }

/* ── Kunden-App ─────────────────────────────────────────── */
.kunde-app { max-width: 480px; margin: 0 auto; padding: 1.3rem; }
.gruss-card {
    background: linear-gradient(150deg, var(--gold), var(--gold-tief)); color: #fff;
    border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.2rem;
}
.gruss-card h1 { font-size: 1.3rem; font-weight: 700; margin-bottom: .3rem; }
.gruss-card .botschaft { opacity: .95; }
.status-row { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.status-tile { flex: 1; background: var(--karte); border-radius: 12px; padding: 1rem; text-align: center; box-shadow: var(--schatten); }
.status-tile .zahl { font-size: 1.6rem; font-weight: 700; color: var(--gold-tief); }
.status-tile .cap { font-size: .8rem; color: var(--anthrazit-60); }
.qr-card { background: var(--karte); border-radius: var(--radius); padding: 1.5rem; text-align: center; box-shadow: var(--schatten); margin-bottom: 1.2rem; }
.qr-card h2 { font-size: 1rem; margin-bottom: .3rem; }
.qr-card p { font-size: .85rem; color: var(--anthrazit-60); margin-bottom: 1rem; }
#qrcode { display: inline-block; padding: .8rem; background: #fff; border-radius: 12px; }
.daily { background: var(--karte); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--schatten); }
.daily h2 { font-size: 1rem; margin-bottom: .8rem; }
.daily-item { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--sand); }
.daily-item:last-child { border-bottom: none; }
.daily-item input { width: 20px; height: 20px; accent-color: var(--gold); }
.streak { font-size: .8rem; font-weight: 700; color: var(--gold-tief); background: var(--gelb-bg); padding: .2rem .6rem; border-radius: 999px; }

.empty { text-align: center; color: var(--anthrazit-60); padding: 3rem 1rem; }

/* ════════════════════════════════════════════════════════════
   8-Wochen-Auswertung (Trainingshäufigkeit + Gewichtsverlauf)
   ════════════════════════════════════════════════════════════ */
.auswertung { display: grid; gap: 1rem; }
.chart-card { background: var(--karte); border-radius: 14px; padding: 1.1rem; box-shadow: var(--schatten); }
.chart-card .chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.chart-card .chart-head h3 { font-size: .98rem; display: flex; gap: .5rem; align-items: center; }
.chart-summary { font-size: .82rem; color: var(--anthrazit-60); }

/* Balkendiagramm Trainingshäufigkeit */
.wochen-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: .5rem; }
.wbar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; justify-content: flex-end; }
.wbar .bar {
    width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; min-height: 4px;
    background: var(--sand-tief); transition: height .3s; position: relative;
}
.wbar .bar.gruen { background: var(--gruen); }
.wbar .bar.gelb  { background: var(--gelb); }
.wbar .bar.rot   { background: var(--rot); opacity: .55; }
.wbar .bar .n { position: absolute; top: -1.1rem; left: 0; right: 0; text-align: center; font-size: .72rem; font-weight: 700; color: var(--anthrazit); }
.wbar .wk { font-size: .68rem; color: var(--anthrazit-60); }

/* Gewichts-Sparkline (SVG) */
.weight-chart { position: relative; }
.weight-chart svg { width: 100%; height: 130px; display: block; }
.weight-legend { display: flex; justify-content: space-between; font-size: .78rem; color: var(--anthrazit-60); margin-top: .4rem; }

/* Ampel-Zusammenfassung (zwei große Kacheln) */
.ampel-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.ampel-tile { border-radius: 14px; padding: 1rem; text-align: center; color: #fff; }
.ampel-tile.gruen { background: var(--gruen); }
.ampel-tile.gelb  { background: var(--gelb); }
.ampel-tile.rot   { background: var(--rot); }
.ampel-tile .titel { font-size: .8rem; opacity: .9; }
.ampel-tile .wert  { font-size: 1.15rem; font-weight: 700; margin-top: .2rem; }

/* ── Formulare (Mitglied/Trainer anlegen) ──────────────────── */
.form-grid { display: grid; gap: 1.05rem; }
.form-grid label {
    font-size: .8rem; font-weight: 600; display: block; margin-bottom: .4rem;
    color: var(--anthrazit-60); letter-spacing: .01em;
}
.form-grid input, .form-grid select, .form-grid textarea {
    width: 100%; font: inherit; padding: .7rem .85rem; border-radius: 11px;
    border: 1px solid var(--sand-tief); background: var(--karte); color: var(--anthrazit);
    transition: border-color .15s, box-shadow .15s;
}
.form-grid input::placeholder, .form-grid textarea::placeholder { color: #aeb0b5; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 114, 0, .15);
}
.form-grid textarea { resize: vertical; min-height: 64px; }
.form-grid .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .row2 > div { min-width: 0; }  /* verhindert Overflow/Verschieben (z. B. bei date-Feldern) */
.form-grid input[type="date"] { min-width: 0; max-width: 100%; }
.form-grid button[type="submit"] { margin-top: .3rem; justify-self: start; }
.form-hint { font-size: .82rem; color: var(--anthrazit-60); margin: -.2rem 0 .2rem; }
.form-ok { color: var(--gruen); font-weight: 600; }
.form-err { color: var(--rot); font-weight: 600; }
@media (max-width: 420px) { .form-grid .row2 { grid-template-columns: 1fr; } }
.form-section {
    font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--gold-tief); font-weight: 700; margin: .6rem 0 -.3rem;
    padding-bottom: .3rem; border-bottom: 1px solid var(--sand-tief);
}
.form-section:first-child { margin-top: 0; }

/* Bedarfsanalyse im Detail */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; margin-bottom: .4rem; }
.ba-row { display: flex; justify-content: space-between; gap: .5rem; font-size: .88rem; padding: .25rem 0; border-bottom: 1px dashed var(--sand-tief); }
.ba-l { color: var(--anthrazit-60); }
.ba-v { font-weight: 600; text-align: right; }
.ba-block { font-size: .9rem; line-height: 1.45; margin-top: .6rem; }
.ba-block b { color: var(--gold-tief); }
@media (max-width: 460px) { .ba-grid { grid-template-columns: 1fr; } }

/* ── Standort-Filter (Select in der Filterbar) ─────────────── */
.standort-select {
    font: inherit; padding: .5rem .8rem; border-radius: 10px;
    border: 1px solid var(--sand-tief); background: var(--karte);
}

/* ── Verwaltung (Leitung): Trainerliste ────────────────────── */
.verwaltung-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.trainer-karte { background: var(--karte); border-radius: 14px; padding: 1.1rem; box-shadow: var(--schatten); }
.trainer-karte .name { font-weight: 700; }
.trainer-karte .meta { font-size: .82rem; color: var(--anthrazit-60); margin-bottom: .6rem; }
.trainer-karte ul { list-style: none; font-size: .88rem; }
.trainer-karte li { padding: .25rem 0; border-bottom: 1px solid var(--sand); }
.trainer-karte li:last-child { border-bottom: none; }
.tabs { display: flex; gap: .5rem; margin-bottom: 1.2rem; }

/* ── Alltagshilfen / KI ────────────────────────────────────── */
.hilfe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.hilfe-card {
    font: inherit; cursor: pointer; border: none; border-radius: 16px;
    padding: 1.1rem 1rem; text-align: center; font-weight: 700; color: var(--anthrazit);
    box-shadow: var(--schatten); display: flex; flex-direction: column; align-items: center; gap: .6rem;
    transition: transform .12s, box-shadow .12s; position: relative; overflow: hidden;
}
.hilfe-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(43,42,40,.12); }
.hilfe-card:active { transform: scale(.98); }
.hilfe-card .ic {
    font-size: 1.7rem; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
/* Farbwelt je Karte (passt zu Orange-Akzent + warmen/neutralen Tönen) */
.hilfe-card[data-hilfe="rezept"]     { background: #fff1e6; }
.hilfe-card[data-hilfe="rezept"] .ic { background: #ffe0c7; }
.hilfe-card[data-hilfe="restaurant"]     { background: #e9f2ec; }
.hilfe-card[data-hilfe="restaurant"] .ic { background: #d4e8da; }
.hilfe-card[data-hilfe="einkauf"]     { background: #f6efe0; }
.hilfe-card[data-hilfe="einkauf"] .ic { background: #ecdfc4; }
.hilfe-card[data-hilfe="coach"]     { background: #eceef2; }
.hilfe-card[data-hilfe="coach"] .ic { background: #dde1e8; }

/* ── Erinnerungen (hochwertige Karten + Toggle) ────────────── */
.rem-card { background: var(--karte); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--schatten); margin-top: 1.2rem; }
.rem-card h2 { font-size: 1rem; margin-bottom: 1rem; }
.rem-frei { font-weight: 500; font-size: .72rem; color: var(--gold-tief); background: var(--gelb-bg); padding: .15rem .5rem; border-radius: 999px; margin-left: .3rem; vertical-align: middle; }
.rem-row { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; }
.rem-ic { font-size: 1.5rem; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.rem-ic.trinken  { background: #e6f0fb; }
.rem-ic.mahlzeit { background: #fff1e6; }
.rem-main { flex: 1; min-width: 0; }
.rem-title { font-weight: 700; }
.rem-sub { font-size: .82rem; color: var(--anthrazit-60); }

/* Toggle-Switch */
.switch { position: relative; display: inline-block; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; cursor: pointer; background: var(--sand-tief); border-radius: 999px; transition: .25s; }
.switch .slider::before { content: ""; position: absolute; height: 24px; width: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .slider { background: var(--gold); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* Konfig-Bereiche */
.rem-konfig { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--anthrazit-60); padding: .2rem 0 .8rem 60px; }
.rem-select { font: inherit; padding: .45rem .7rem; border-radius: 10px; border: 1px solid var(--sand-tief); background: var(--weiss); font-weight: 600; color: var(--anthrazit); }
.rem-zeiten { padding: .2rem 0 .6rem 60px; }
.rem-tipp { font-size: .82rem; color: var(--gold-tief); margin-bottom: .55rem; font-weight: 600; }
.zeit-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.zeit-chips .mz-zeit {
    font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--anthrazit);
    padding: .55rem .8rem; border-radius: 12px; border: 2px solid var(--sand-tief);
    background: var(--weiss); cursor: pointer; transition: border-color .15s, background .15s;
}
.zeit-chips .mz-zeit:hover { border-color: var(--gold); }
.zeit-chips .mz-zeit:focus { outline: none; border-color: var(--gold); background: #fff7f0; }
.rem-status { font-size: .82rem; color: var(--anthrazit-60); margin: .6rem 0 .2rem; }
#remTest { margin-top: .3rem; font-size: .9rem; }
.ki-result {
    white-space: pre-wrap; line-height: 1.55; margin-top: 1rem; padding: 1rem;
    background: var(--sand); border-radius: 12px; font-size: .92rem;
}
/* Chat */
.chat { display: flex; flex-direction: column; gap: .5rem; max-height: 50vh; overflow-y: auto; padding: .3rem; margin-bottom: .8rem; }
.bubble { max-width: 82%; padding: .6rem .8rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; white-space: pre-wrap; }
.bubble.user { align-self: flex-end; background: var(--gold); color: #fff; border-bottom-right-radius: 4px; }
.bubble.ai   { align-self: flex-start; background: var(--sand); color: var(--anthrazit); border-bottom-left-radius: 4px; }
.chat-input { display: flex; gap: .5rem; }
.chat-input input { flex: 1; font: inherit; padding: .65rem .8rem; border-radius: 10px; border: 1px solid var(--sand-tief); background: var(--weiss); }
