/* Kundenseiten im blauen Design (19.11.2026, Marco: "bitte noch im neuen blauen design bauen. darauf bitte immer achten",
   docs/kundenseite-blau.md Abschnitt A)

   EIN gemeinsames Stylesheet fuer alle Kundenseiten: Projektbereich (/datenraum, layouts/portal.blade.php), geteilte Planung
   (/geteilt), Vollmacht-Zugang, Impressum/Datenschutz und die Website-Anfrage (anfrage/website/layout.blade.php).
   Vorbild ist die Mail resources/views/mail/anfrage.blade.php: Kopfband Tiefblau #0f3b66 mit Logo und weissem Titel, darunter
   der gelbe Streifen, hellblauer Seitengrund, Inhalt in weissen Karten, gelbe Pille als Hauptknopf, Fuss mit den
   Firmenangaben aus App\Support\MailAbsender::fusszeile(). Schrift wie in der Mail (Arial/Helvetica), nichts von fremden
   Servern. Handy zuerst: alles ist fuer 390 px gebaut, breitere Schirme bekommen nur mehr Luft.

   Partner-Portale (Geruestbauer, Dachdecker) und EnerPath-Kaeuferraeume laden diese Datei nicht (layouts/portal.blade.php).

   Farben stehen als Variablen (--k-*), die alten Namen aus app.css (--ink, --muted, --line, --blue ...) zeigen auf dieselben
   Werte - so folgen auch die Seiten-eigenen Styles (datenraum.css, Planungsseite) dem Design und dem Dunkelmodus. */

:root {
    --k-tief: #0f3b66;          /* Kopfband, Ueberschriften */
    --k-gelb: #ffd317;          /* Streifen, Hauptknopf */
    --k-gelb-dunkel: #f2c500;
    --k-grund: #eaf1f8;         /* Seitengrund */
    --k-karte: #ffffff;
    --k-text: #1f2933;
    --k-leise: #4b5563;
    --k-leise2: #5b6b7a;
    --k-linie: #d9e5f2;
    --k-link: #2469af;
    --k-akzent: #2469af;        /* Zwischentitel, Symbole */
    --k-kasten: #f6f9fc;        /* Hinweis-Kasten hell */
    --k-kasten2: #e8f1fa;       /* Hinweis-Kasten blau */
    --k-kasten-linie: #bcd4ec;
    --k-warn: #fff8dc;          /* Warnung dezent gelb */
    --k-warn-linie: #f1d58a;
    --k-warn-text: #5c4200;
    --k-ok: #1e6b3a;
    --k-ok-bg: #e3f3e8;
    --k-ok-linie: #9fd3b4;
    --k-rot: #a3221b;
    --k-rot-bg: #fdecea;
    --k-feld: #ffffff;          /* Eingabefelder */
    --k-feld-linie: #9fb3c8;
    --k-auf-blau: #ffffff;      /* Schrift auf blauen Flaechen */
    --k-band-text: #d9e5f2;
    --k-band-ober: #a5d7f3;
    --k-schatten: 0 1px 2px rgba(15, 59, 102, 0.06), 0 10px 28px -18px rgba(15, 59, 102, 0.35);
    --k-radius: 16px;
    --k-schrift: Arial, 'Helvetica Neue', Helvetica, sans-serif;

    /* alte Namen aus app.css auf die neuen Werte */
    --ink: var(--k-text);
    --muted: var(--k-leise);
    --bg: var(--k-grund);
    --line: var(--k-linie);
    --blue: #2469af;
    --blue-dark: var(--k-tief);
    --sky: #2f7fc8;
    --sky-light: var(--k-kasten2);
    --sun: var(--k-gelb);
    --link: var(--k-link);
    color-scheme: light dark;
}

/* Dunkelmodus wie in der Mail */
@media (prefers-color-scheme: dark) {
    :root {
        --k-grund: #0b1c2d;
        --k-karte: #12283e;
        --k-text: #e8eef5;
        --k-leise: #a9b8c8;
        --k-leise2: #a9b8c8;
        --k-linie: #2c4864;
        --k-link: #a5d7f3;
        --k-akzent: #a5d7f3;
        --k-kasten: #1b3550;
        --k-kasten2: #1b3550;
        --k-kasten-linie: #2c4864;
        --k-warn: #3a3214;
        --k-warn-linie: #6b5a1c;
        --k-warn-text: #f3e2a6;
        --k-ok: #8fd6a8;
        --k-ok-bg: #173b2a;
        --k-ok-linie: #2f6a48;
        --k-rot: #f3a59f;
        --k-rot-bg: #3d1d1d;
        --k-feld: #0f2236;
        --k-feld-linie: #46698c;
        --k-schatten: 0 1px 2px rgba(0, 0, 0, 0.3);
        --blue: #6fb0ea;
        --blue-dark: #a5d7f3;
        --sky: #6fb0ea;
    }
}

/* ---------- Grundgeruest ---------- */
html { -webkit-text-size-adjust: 100%; }
body.k-seite { margin: 0; background: var(--k-grund); color: var(--k-text); font-family: var(--k-schrift); font-size: 1rem; line-height: 1.5; overflow-x: hidden; }
.k-seite *, .k-seite *::before, .k-seite *::after { box-sizing: border-box; }
.k-seite a { color: var(--k-link); }
.k-seite h1, .k-seite h2, .k-seite h3 { color: var(--k-tief); }
@media (prefers-color-scheme: dark) { .k-seite h1, .k-seite h2, .k-seite h3 { color: var(--k-text); } }
.k-seite .muted { color: var(--k-leise); }
.k-seite img, .k-seite svg, .k-seite video { max-width: 100%; }
.k-seite :focus-visible { outline: 3px solid var(--k-gelb); outline-offset: 2px; border-radius: 4px; }
.k-seite button, .k-seite input, .k-seite select, .k-seite textarea { font-family: inherit; }
.k-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* (03.12.2026, Marco: "In der Kundenansicht des EMS haben sich die Farben und Layouts geaendert. Man kann es kaum lesen.")
   Seiten, die hell gebaut sind (EMS-Bereich mit festen Farben, Live-Grafik, Diagrammen), setzen per
   @section('seitenklasse', 'k-hell') die hellen Werte zurueck - sonst kommt im Dunkelmodus helle Schrift auf weisse Karten.
   k-breit gibt Uebersichten mit Diagrammen die Breite, fuer die sie gebaut sind (1040 px statt 860 px). */
body.k-seite.k-hell {
    color-scheme: light;
    --k-grund: #eaf1f8; --k-karte: #ffffff; --k-text: #1f2933; --k-leise: #4b5563; --k-leise2: #5b6b7a; --k-linie: #d9e5f2;
    --k-link: #2469af; --k-akzent: #2469af; --k-kasten: #f6f9fc; --k-kasten2: #e8f1fa; --k-kasten-linie: #bcd4ec;
    --k-warn: #fff8dc; --k-warn-linie: #f1d58a; --k-warn-text: #5c4200; --k-ok: #1e6b3a; --k-ok-bg: #e3f3e8; --k-ok-linie: #9fd3b4;
    --k-rot: #a3221b; --k-rot-bg: #fdecea; --k-feld: #ffffff; --k-feld-linie: #9fb3c8;
    --k-schatten: 0 1px 2px rgba(15, 59, 102, 0.06), 0 10px 28px -18px rgba(15, 59, 102, 0.35);
    --blue: #2469af; --blue-dark: #0f3b66; --sky: #2f7fc8;
    --ink: var(--k-text); --muted: var(--k-leise); --bg: var(--k-grund); --line: var(--k-linie); --sky-light: var(--k-kasten2); --link: var(--k-link);
}
/* :where haelt die Spezifitaet niedrig, damit eigene Farben wie der weisse Titel der Live-Karte gewinnen */
@media (prefers-color-scheme: dark) { body.k-seite:where(.k-hell) h1, body.k-seite:where(.k-hell) h2, body.k-seite:where(.k-hell) h3 { color: var(--k-tief); } }
.k-seite.k-breit main.portal-container, .k-seite.k-breit .portal-container, .k-seite.k-breit .k-band-innen { max-width: 1040px; }

/* Kopfband: Tiefblau, Logo auf weisser Platte (wie in der Mail), Titel weiss, darunter der gelbe Streifen */
.k-band { background: #0f3b66; color: #fff; }
.k-band-innen { max-width: 860px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.k-band-logo { flex: none; display: block; line-height: 0; }
.k-band-logo img { display: block; width: 58px; height: auto; border-radius: 10px; }
.k-band-text { min-width: 0; flex: 1 1 0; }
.k-band-logo.k-band-produkt img { width: auto; height: 52px; border-radius: 0; }
@media (max-width: 480px) { .k-band-logo.k-band-produkt img { height: 40px; } }
.k-band-ober-rechts { text-align: right; }
@media (max-width: 480px) { .k-band-ober-rechts { display: none; } }
.k-band-ober { margin: 0; font-size: 11px; line-height: 1.4; letter-spacing: 1px; text-transform: uppercase; font-weight: bold; color: var(--k-band-ober); }
.k-band-titel { margin: 2px 0 0; font-size: 19px; line-height: 1.25; font-weight: bold; color: #fff; }
.k-band-rechts { flex: none; margin-left: auto; }
.k-band-rechts a { color: #fff; font-weight: bold; text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; }
.k-band-rechts a:hover { text-decoration: underline; }
.k-streifen { height: 5px; background: #ffd317; }
@media (min-width: 640px) {
    .k-band-innen { padding: 18px 20px; gap: 18px; }
    .k-band-logo img { width: 72px; }
    .k-band-titel { font-size: 22px; }
}
/* schmaler Schirm: Telefonnummer der Website-Strecke in eine eigene Zeile */
@media (max-width: 520px) {
    .k-band-innen { flex-wrap: wrap; }
    .k-band-rechts { flex-basis: 100%; margin-left: 0; }
    .k-band-rechts a { min-height: 32px; font-size: 13px; }
}

/* Inhalt */
.k-seite main.portal-container, .k-seite .portal-container { max-width: 860px; margin: 0 auto; padding: 16px 16px 32px; }
@media (min-width: 640px) { .k-seite main.portal-container, .k-seite .portal-container { padding: 22px 20px 40px; } }

/* Fuss wie in der Mail: Firmenangaben, Impressum, Datenschutz */
.k-fuss { max-width: 860px; margin: 0 auto; padding: 8px 16px 36px; text-align: center; color: var(--k-leise); font-size: 13px; line-height: 1.6; }
.k-fuss p { margin: 0 0 6px; }
.k-fuss a { color: var(--k-leise); text-decoration: underline; }
.k-fuss .k-fuss-kontakt { font-size: 15px; color: var(--k-text); margin-bottom: 10px; }
.k-fuss .k-fuss-kontakt a { color: var(--k-link); font-weight: bold; }

/* ---------- Karten ---------- */
.k-seite .panel, .k-karte { background: var(--k-karte); border-radius: var(--k-radius); box-shadow: var(--k-schatten); border: 0; color: var(--k-text); }
.k-karte { padding: 20px 16px; margin: 0 0 16px; }
@media (min-width: 640px) { .k-karte { padding: 24px 28px; } }
.k-seite .panel { padding: 18px 16px; }
@media (min-width: 640px) { .k-seite .panel { padding: 22px 26px; } }

/* Hinweise */
.k-hinweis { background: var(--k-kasten2); border: 1px solid var(--k-kasten-linie); border-radius: 12px; padding: 12px 14px; color: var(--k-text); }
.k-hinweis.leise { background: var(--k-kasten); border-color: var(--k-linie); }
.k-warnung { background: var(--k-warn); border: 1px solid var(--k-warn-linie); border-radius: 12px; padding: 12px 14px; color: var(--k-warn-text); }
.k-zwischentitel { margin: 0 0 6px; font-size: 12px; line-height: 1.4; letter-spacing: 1px; text-transform: uppercase; font-weight: bold; color: var(--k-akzent); }

/* ---------- Knoepfe ----------
   Hauptknopf = gelbe Pille mit tiefblauer fetter Schrift; Nebenknopf = weiss mit blauer Umrandung und Schrift.
   Am Handy stehen eigenstaendige Knoepfe ueber die volle Breite. */
.k-seite .btn, .k-knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; text-align: center;
    min-height: 48px; padding: 0.75rem 1.5rem; margin-top: 1rem;
    background: var(--k-gelb); color: #0f3b66; border: 2px solid var(--k-gelb); border-radius: 100px;
    font: inherit; font-size: 1rem; font-weight: bold; line-height: 1.25; text-decoration: none; cursor: pointer;
    box-shadow: 0 6px 16px -10px rgba(15, 59, 102, 0.55);
}
.k-seite .btn:hover, .k-knopf:hover { background: var(--k-gelb-dunkel); border-color: var(--k-gelb-dunkel); color: #0f3b66; text-decoration: none; }
.k-seite a.btn, .k-seite a.btn:visited { color: #0f3b66; }
.k-seite .btn-secondary, .k-seite .btn.dr-ghost, .k-seite .btn.dr-zurueck, .k-seite .btn.dr-mail, .k-knopf.neben {
    background: var(--k-karte); color: var(--k-link); border: 2px solid var(--k-link); box-shadow: none;
}
.k-seite a.btn.btn-secondary, .k-seite a.btn.dr-ghost, .k-seite a.btn.dr-mail { color: var(--k-link); }
.k-seite .btn-secondary:hover, .k-seite .btn.dr-ghost:hover, .k-seite .btn.dr-zurueck:hover, .k-seite .btn.dr-mail:hover, .k-knopf.neben:hover { background: var(--k-kasten2); color: var(--k-link); border-color: var(--k-link); }
.k-seite .btn-danger { background: var(--k-karte); color: var(--k-rot); border-color: var(--k-rot); box-shadow: none; }
.k-seite .btn-danger:hover { background: var(--k-rot-bg); color: var(--k-rot); }
.k-seite .btn.btn-go, .k-seite .btn.dr-go { background: var(--k-gelb); color: #0f3b66; border-color: var(--k-gelb); }
.k-seite .btn.btn-go:hover, .k-seite .btn.dr-go:hover { background: var(--k-gelb-dunkel); }
.k-seite .btn.small { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.92rem; margin: 0; }
.k-seite .btn[disabled], .k-seite .btn:disabled { opacity: 0.55; cursor: default; }
.k-seite .linklike, .k-seite .btn-link { background: none; border: 0; padding: 0; color: var(--k-link); text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 560px) {
    /* eigenstaendige Knoepfe volle Breite (nicht die kleinen in Zeilen) */
    .k-seite .btn:not(.small):not(.k-knopf-schmal) { width: 100%; }
}

/* ---------- Formulare ---------- */
.k-seite input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), .k-seite select, .k-seite textarea {
    background: var(--k-feld); color: var(--k-text); border: 1px solid var(--k-feld-linie); border-radius: 10px;
}
.k-seite input:focus, .k-seite select:focus, .k-seite textarea:focus { outline: 3px solid rgba(36, 105, 175, 0.25); border-color: var(--k-link); }
.k-seite input[type=checkbox], .k-seite input[type=radio] { accent-color: #2469af; }
.k-seite label { color: var(--k-text); }

/* Rueckmeldung nach dem Absenden: Band oben (statt Toast unten rechts) */
.k-seite .flash { position: static; max-width: none; margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; font-weight: bold; font-size: 1rem; background: var(--k-ok-bg); border: 2px solid var(--k-ok-linie); color: var(--k-ok); box-shadow: none; }

/* Badges, Tabellen, Dateien */
.k-seite .badge { background: var(--k-kasten2); color: var(--k-akzent); }
.k-seite .task-table td, .k-seite .task-table th { border-bottom-color: var(--k-linie); }
.k-seite table { max-width: 100%; }
.k-seite hr { border: 0; border-top: 1px solid var(--k-linie); }
.k-seite .ticket-msg { background: var(--k-kasten); border-left-color: var(--k-link); }
.k-seite .ticket-msg.kunde { background: var(--k-warn); border-left-color: var(--k-gelb); }
.k-seite .photo-slot { border-color: var(--k-feld-linie); background: var(--k-karte); }
.k-seite .photo-slot.has-photo { border-color: var(--k-ok-linie); background: var(--k-ok-bg); }
.k-seite .zahlung-block { border-color: var(--k-linie); }

/* Fortschrittsbalken in Blau/Gelb */
.k-balken { height: 8px; border-radius: 99px; background: var(--k-linie); overflow: hidden; }
.k-balken > i { display: block; height: 100%; background: linear-gradient(90deg, #2469af, #ffd317); border-radius: 99px; }

/* ---------- Teilen-Link (portal/_teilen) ---------- */
.k-teilen { margin: 12px 0 0; }
.k-teilen-box { background: var(--k-kasten2); border: 1px solid var(--k-kasten-linie); border-radius: 12px; padding: 14px; }
.k-teilen-box p { margin: 0 0 8px; }
.k-teilen-zeile { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.k-teilen-zeile input { flex: 1 1 14rem; min-width: 0; font-size: 0.9rem; padding: 0.6rem 0.7rem; min-height: 44px; }
.k-teilen-zeile .btn { margin: 0; }
.k-teilen dialog { border: 0; border-radius: var(--k-radius); padding: 0; width: min(92vw, 480px); background: var(--k-karte); color: var(--k-text); box-shadow: 0 24px 60px -18px rgba(15, 59, 102, 0.55); }
.k-teilen dialog::backdrop { background: rgba(11, 28, 45, 0.5); }
.k-teilen .k-dialog-kopf { background: #0f3b66; color: #fff; padding: 16px 18px 14px; border-bottom: 5px solid #ffd317; }
.k-teilen .k-dialog-kopf h3 { margin: 0; color: #fff; font-size: 1.15rem; }
.k-teilen .k-dialog-inhalt { padding: 16px 18px 18px; }
.k-teilen .k-dialog-inhalt ul { margin: 8px 0 12px; padding-left: 1.2rem; }
.k-teilen .k-dialog-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.k-teilen .k-dialog-knoepfe .btn { margin: 0; flex: 1 1 10rem; }
.k-teilen .checkline { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; margin: 6px 0; }
.k-teilen .checkline input { width: 22px; height: 22px; flex: none; margin-top: 1px; }

/* ---------- Website-Anfrage (anfrage/website/*) ----------
   Die Strecke hat eigene Klassennamen (.rahmen, .karte, .knopf, .oberzeile); sie stehen hier, weil body.k-web sie traegt. */
body.k-web {
    font-size: 1.0625rem; line-height: 1.6;
    /* Namen der Website-Strecke (formular, _feld) auf die gemeinsamen Farben */
    --blau: var(--k-link); --blau-dunkel: var(--k-tief); --gelb: var(--k-gelb); --text: var(--k-text); --leise: var(--k-leise);
    --grau: var(--k-grund); --linie: var(--k-feld-linie); --weiss: var(--k-karte); --fehler: var(--k-rot); --ok: var(--k-ok); --radius: 14px;
}
@media (prefers-color-scheme: dark) { body.k-web { --blau-dunkel: #a5d7f3; } }
.k-web h1 { font-size: clamp(1.55rem, 5.5vw, 2.2rem); font-weight: bold; line-height: 1.2; margin: 0 0 0.5em; text-wrap: balance; }
.k-web h2 { font-size: 1.2rem; font-weight: bold; line-height: 1.3; margin: 0 0 0.5em; }
.k-web p { margin: 0 0 1em; }
.k-web .rahmen { width: 100%; max-width: 52rem; margin: 0 auto; padding: 0 16px; }
.k-web main { padding: 22px 0 36px; }
.k-web .oberzeile { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--k-akzent); font-weight: bold; margin-bottom: 0.3rem; }
.k-web .karte { background: var(--k-karte); border-radius: var(--k-radius); padding: 20px 16px; margin: 0 0 16px; box-shadow: var(--k-schatten); }
@media (min-width: 720px) { .k-web .karte { padding: 26px 30px; } }
.k-web .knopf { display: inline-flex; align-items: center; justify-content: center; background: var(--k-gelb); color: #0f3b66; border: 2px solid var(--k-gelb); border-radius: 100px; padding: 0.8rem 1.6rem; font: inherit; font-weight: bold; text-decoration: none; cursor: pointer; min-height: 48px; box-shadow: 0 6px 16px -10px rgba(15, 59, 102, 0.55); }
.k-web .knopf:hover { background: var(--k-gelb-dunkel); border-color: var(--k-gelb-dunkel); color: #0f3b66; }
.k-web .knopf[disabled] { opacity: 0.6; cursor: wait; }
@media (max-width: 560px) { .k-web .knopf { width: 100%; } }
.k-web .sprungmarke { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--k-gelb); color: #0f3b66; padding: 10px 16px; border-radius: 8px; font-weight: bold; }
.k-web .sprungmarke:focus { top: 12px; }
.k-web .nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.k-web.eingebettet main { padding-top: 8px; }

/* Teilen-Feld: <details> mit Knopf als Kopf (19.11.2026, Abschnitt C) */
.k-teilen-feld { margin-top: 10px; }
.k-teilen-feld > summary { list-style: none; }
.k-teilen-feld > summary::-webkit-details-marker { display: none; }
.k-teilen-feld[open] > summary { background: var(--k-kasten2); }
.k-teilen .k-teilen-box + .k-teilen-feld { margin-top: 10px; }

/* Chat (21.11.2026): Chatbot der Kundenseiten, partials/chatbot.blade.php + js/chatbot.js. Blau/Gelb wie die Mails. */
.k-chat { position: fixed; right: 16px; bottom: 16px; z-index: 50; font-family: var(--k-schrift); color: var(--k-text); }
.k-chat-auf { display: inline-flex; align-items: center; gap: 8px; background: var(--k-gelb); color: #0f3b66; border: 2px solid var(--k-gelb); border-radius: 100px; padding: 0.7rem 1.2rem; font: inherit; font-weight: bold; cursor: pointer; min-height: 48px; box-shadow: 0 8px 22px -8px rgba(15, 59, 102, 0.6); }
.k-chat-auf:hover { background: var(--k-gelb-dunkel); border-color: var(--k-gelb-dunkel); }
.k-chat-fenster { display: flex; flex-direction: column; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 32px)); background: var(--k-karte); border-radius: var(--k-radius); box-shadow: 0 18px 48px -12px rgba(15, 59, 102, 0.55); overflow: hidden; border: 1px solid var(--k-linie); }
.k-chat-fenster[hidden], .k-chat-auf[hidden], .k-chat-rr[hidden], .k-chat-eingabe[hidden], .k-chat-fehler[hidden] { display: none; }
.k-chat-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; background: var(--k-tief); color: var(--k-auf-blau); padding: 12px 14px; border-bottom: 4px solid var(--k-gelb); }
.k-chat-kopf strong { display: block; font-size: 1rem; }
.k-chat-kopf span { display: block; font-size: 0.78rem; color: var(--k-band-text); margin-top: 2px; }
.k-chat-zu { background: none; border: 0; color: var(--k-auf-blau); font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 4px; min-width: 32px; min-height: 32px; }
.k-chat-verlauf { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--k-grund); }
.k-chat-blase { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 0.93rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.k-chat-bot { align-self: flex-start; background: var(--k-karte); border: 1px solid var(--k-linie); border-bottom-left-radius: 4px; }
.k-chat-ich { align-self: flex-end; background: var(--k-tief); color: var(--k-auf-blau); border-bottom-right-radius: 4px; }
.k-chat-titel { display: block; color: var(--k-akzent); font-size: 0.82rem; margin-bottom: 3px; }
.k-chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.k-chat-chip { background: var(--k-kasten2); color: var(--k-tief); border: 1px solid var(--k-kasten-linie); border-radius: 100px; padding: 6px 12px; font: inherit; font-size: 0.85rem; cursor: pointer; text-align: left; }
.k-chat-chip:hover { background: var(--k-kasten-linie); }
.k-chat-eingabe { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--k-linie); background: var(--k-karte); }
.k-chat-eingabe input, .k-chat-rr input, .k-chat-rr select { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--k-text); background: var(--k-feld); border: 2px solid var(--k-feld-linie); border-radius: 10px; padding: 9px 10px; box-sizing: border-box; }
.k-chat-eingabe input:focus, .k-chat-rr input:focus, .k-chat-rr select:focus { outline: 3px solid var(--k-gelb); outline-offset: 1px; }
.k-chat-senden { background: var(--k-gelb); color: #0f3b66; border: 2px solid var(--k-gelb); border-radius: 100px; padding: 8px 16px; font: inherit; font-weight: bold; cursor: pointer; }
.k-chat-text { background: none; border: 0; color: var(--k-link); font: inherit; font-size: 0.85rem; text-decoration: underline; cursor: pointer; padding: 4px; }
.k-chat-fuss { margin: 0; padding: 2px 10px 8px; text-align: center; background: var(--k-karte); }
.k-chat-rr { padding: 10px 12px; background: var(--k-karte); border-top: 1px solid var(--k-linie); overflow-y: auto; max-height: 60%; }
.k-chat-rr p { margin: 0 0 8px; }
.k-chat-rr label { display: block; font-size: 0.85rem; font-weight: bold; margin-bottom: 8px; }
.k-chat-rr label input, .k-chat-rr label select { display: block; width: 100%; margin-top: 3px; font-weight: normal; }
.k-chat-klein { font-size: 0.78rem; color: var(--k-leise); }
.k-chat-fehler { background: var(--k-rot-bg); color: var(--k-rot); border-radius: 8px; padding: 8px 10px; font-size: 0.85rem; }
.k-chat-knoepfe { display: flex; align-items: center; gap: 10px; }
.k-chat-honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) { .k-chat { right: 8px; bottom: 8px; } .k-chat-fenster { width: calc(100vw - 16px); height: min(75vh, calc(100vh - 16px)); } }
@media print { .k-chat { display: none; } }
