/* chat.css – Hero als Chat-Oberfläche (01.12.2026 spät). Dunkle Fläche, Eingabe unten, Verlauf wie in einer KI-App.
   Status in drei festen Farben, überall gleich: grün = in Ordnung, rot = fehlt, gelb = offen. */
:root { --c-grund: #212121; --c-feld: #303030; --c-karte: #2a2a2a; --c-text: #ececec; --c-leise: rgba(236, 236, 236, 0.62); --c-ok: #34c77b; --c-fehlt: #ff5d52; --c-offen: #ffb020; }
.c-held { background: var(--c-grund); color: var(--c-text); }
.c-app { display: flex; flex-direction: column; min-height: 100svh; max-width: 760px; margin: 0 auto; padding: 92px var(--rand) 16px; }
.c-leer { order: 1; margin: auto 0; padding: 0 4px 26px; text-align: center; }
.c-leer h1 { font-size: clamp(29px, 8vw, 44px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 500; color: #fff; max-width: 11em; margin: 0 auto; }
.c-unter { margin: 14px auto 0; max-width: 22em; font-size: 16px; line-height: 1.45; color: var(--c-leise); }
.c-verlauf { order: 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; align-content: start; }
.c-vorschlaege { order: 3; display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--rand)) 10px; padding: 2px var(--rand); scrollbar-width: none; }
.c-vorschlaege::-webkit-scrollbar { display: none; }
.c-vorschlaege button { flex: 0 0 auto; height: 42px; padding: 0 16px; border-radius: 21px; border: 1px solid rgba(255, 255, 255, 0.16); background: none; color: var(--c-text); font: 400 15px/1 Switzer, sans-serif; cursor: pointer; transition: background-color 160ms ease, transform 120ms ease; }
.c-vorschlaege button:active { transform: scale(0.97); background: rgba(255, 255, 255, 0.08); }
.c-eingabe { order: 4; position: relative; display: flex; align-items: flex-end; min-height: 58px; padding: 8px 54px 8px 20px; border-radius: 29px; background: var(--c-feld); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 10px 30px rgba(0, 0, 0, 0.35); }
.c-eingabe textarea { flex: 1; min-height: 42px; max-height: 140px; padding: 10px 0; border: 0; background: none; color: #fff; font: 400 17px/1.35 Switzer, sans-serif; resize: none; outline: none; }
.c-eingabe textarea::placeholder { color: rgba(236, 236, 236, 0.5); }
.c-senden { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; transition: transform 120ms ease, opacity 160ms ease; }
.c-senden:active { transform: scale(0.92); }
.c-senden svg { width: 20px; height: 20px; fill: none; stroke: #0d0d0d; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.c-meldung { order: 5; margin-top: 8px; font-size: 14px; line-height: 1.35; color: #ff8a80; min-height: 0; }
.c-meldung:empty { display: none; }
.c-fuss { order: 6; margin-top: 10px; text-align: center; font-size: 13px; line-height: 1.35; color: var(--c-leise); }
.c-app.an .c-leer { display: none; }
.c-app.an .c-verlauf { flex: 1; padding-bottom: 18px; }
.c-app.an .c-eingabe { position: sticky; bottom: 12px; z-index: 5; }
.c-app.an .c-fuss { display: none; }

/* Nachrichten */
.c-m { opacity: 0; transform: translateY(10px); transition: opacity 360ms ease, transform 520ms var(--feder); }
.c-m.da { opacity: 1; transform: none; }
.c-m.du { justify-self: end; max-width: 86%; }
.c-blase { padding: 10px 16px; border-radius: 22px; background: var(--c-feld); color: #fff; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.c-m.ki { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.c-ich { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); display: grid; place-items: center; color: #fff; }
.c-ich svg { width: 16px; height: 16px; }
.c-inhalt { font-size: 17px; line-height: 1.5; color: var(--c-text); padding-top: 2px; }
.c-inhalt > p + p, .c-inhalt > p + div, .c-inhalt > div + p { margin-top: 10px; }
.c-inhalt b { font-weight: 600; color: #fff; }
.c-leise { color: var(--c-leise); font-size: 15px; }
.c-antwort p + p, .c-antwort p + ol, .c-antwort p + ul, .c-antwort ol + p, .c-antwort ul + p { margin-top: 10px; }
.c-antwort ol, .c-antwort ul { margin: 0; padding-left: 1.35em; }
.c-antwort li + li { margin-top: 8px; }
.c-antwort mark { background: rgba(52, 199, 123, 0.28); color: #fff; border-radius: 4px; padding: 0 3px; }
.c-antwort .c-bald { opacity: 0; transform: translateY(4px); }
.c-antwort p, .c-antwort li { transition: opacity 320ms ease, transform 420ms var(--feder); }
.c-punkte { display: inline-flex; gap: 5px; align-items: center; height: 24px; vertical-align: middle; margin-right: 10px; }
.c-punkte i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); animation: c-hupf 1.1s ease-in-out infinite; }
.c-punkte i:nth-child(2) { animation-delay: 0.15s; } .c-punkte i:nth-child(3) { animation-delay: 0.3s; }
@keyframes c-hupf { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.c-fortschritt { display: flex; gap: 10px; align-items: center; color: var(--c-leise); font-size: 15px; }
.c-ft b { color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; }
.c-kreis { flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: #fff; animation: c-dreh 0.8s linear infinite; }
@keyframes c-dreh { to { transform: rotate(360deg); } }
.c-quellen { margin-top: 12px; font-size: 14px; color: var(--c-leise); }
.c-quellen summary { cursor: pointer; display: inline-flex; height: 32px; align-items: center; padding: 0 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); list-style: none; }
.c-quellen summary::-webkit-details-marker { display: none; }
.c-quellen ul { margin: 10px 0 0; padding-left: 1.2em; }
.c-quellen li + li { margin-top: 6px; }
.c-quellen a { color: var(--c-text); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255, 255, 255, 0.3); overflow-wrap: anywhere; }
.c-herkunft { margin-top: 10px; font-size: 13px; line-height: 1.35; color: var(--c-leise); }

/* Bestätigung */
.c-karte { margin-top: 12px; display: grid; gap: 14px; padding: 16px; border-radius: 20px; background: var(--c-karte); border: 1px solid rgba(255, 255, 255, 0.1); }
.c-satz { font-size: 17px; line-height: 1.4; }
.c-felder { display: grid; gap: 12px; }
.c-felder[hidden] { display: none; }
.c-felder label { display: grid; gap: 6px; font-size: 13px; color: var(--c-leise); }
.c-felder input, .c-felder textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.16); background: #1c1c1c; color: #fff; font: 400 16px/1.35 Switzer, sans-serif; outline: none; resize: none; }
.c-felder input:focus, .c-felder textarea:focus { border-color: rgba(255, 255, 255, 0.5); }
.c-felder .fehlt { border-color: var(--c-fehlt); }
.c-frage-vorschau { font-size: 15px; line-height: 1.4; color: var(--c-text); }
.c-frage-vorschau:empty { display: none; }
.c-frage-vorschau span { display: block; margin-bottom: 4px; font-size: 13px; color: var(--c-leise); }
.c-knoepfe { display: flex; gap: 16px; align-items: center; }
.c-ja { height: 48px; padding: 0 22px; border: 0; border-radius: 24px; background: #fff; color: #0d0d0d; font: 500 16px/1 Switzer, sans-serif; cursor: pointer; transition: transform 120ms ease; }
.c-ja:active { transform: scale(0.97); } .c-ja:disabled { opacity: 0.6; }
.c-aendern { height: 48px; border: 0; background: none; color: var(--c-text); font: 400 15px/1 Switzer, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.c-fehler { font-size: 14px; color: #ff8a80; } .c-fehler:empty { display: none; }

/* Urteil und Kurzstand: drei Farben */
.c-urteil { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 18px; font-size: 16px; line-height: 1.42; }
.c-urteil.ok { background: rgba(52, 199, 123, 0.13); box-shadow: inset 0 0 0 1px rgba(52, 199, 123, 0.5); }
.c-urteil.fehlt { background: rgba(255, 93, 82, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 93, 82, 0.5); }
.c-urteil.offen { background: rgba(255, 176, 32, 0.11); box-shadow: inset 0 0 0 1px rgba(255, 176, 32, 0.5); }
.c-z { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.ok > .c-z { background: var(--c-ok); } .fehlt > .c-z { background: var(--c-fehlt); } .offen > .c-z { background: var(--c-offen); }
.c-z svg { width: 16px; height: 16px; fill: none; stroke: #0d0d0d; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.c-stand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.c-stand a { display: grid; gap: 2px; justify-items: start; padding: 12px; border-radius: 16px; color: #fff; text-decoration: none; transition: transform 120ms ease; }
.c-stand a:active { transform: scale(0.97); }
.c-stand a.ok { background: rgba(52, 199, 123, 0.13); } .c-stand a.fehlt { background: rgba(255, 93, 82, 0.12); } .c-stand a.offen { background: rgba(255, 176, 32, 0.11); }
.c-stand .c-z { width: 24px; height: 24px; margin-bottom: 6px; } .c-stand .c-z svg { width: 14px; height: 14px; }
.c-stand b { font-size: 30px; line-height: 1; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.c-stand span:last-child { font-size: 14px; color: var(--c-text); }
.c-weiter { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 26px; background: #fff; color: #0d0d0d; font-size: 16px; font-weight: 500; text-decoration: none; transition: transform 120ms ease; }
.c-weiter:active { transform: scale(0.98); }
.c-preiszeile { margin-top: 12px; } .c-preiszeile a, .c-selbst a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.c-selbst { margin-top: 10px; font-size: 15px; color: var(--c-leise); } .c-selbst a { margin-left: 10px; }

/* Film unter dem Chat */
.c-film { background: var(--dunkel, #0d0d0d); padding: 64px var(--rand) 48px; }
.c-film-kopf .x-filmsatz { margin-top: 12px; }
.c-film .x-bild { position: relative; inset: auto; top: auto; margin-top: 20px; aspect-ratio: 9 / 14; border-radius: 20px; overflow: hidden; background: #000; }
.c-film .x-bild::before, .c-film .x-bild::after { display: none; }
.c-film .x-uhr { margin-top: 14px; }
.c-film .x-held-wege { margin-top: 16px; }
@media (min-width: 900px) {
  .c-app { padding-top: 120px; }
  .c-vorschlaege { margin: 0 0 12px; padding: 2px 0; justify-content: center; flex-wrap: wrap; }
  .c-film { max-width: 1100px; margin: 0 auto; }
  .c-film .x-bild { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) { .c-m, .c-antwort p, .c-antwort li { transition: none; } .c-punkte i, .c-kreis { animation: none; } }
.c-eingabe[hidden], .c-vorschlaege[hidden] { display: none; }

/* Erklärvideo mit Ton (01.12.2026, Muster aus 09_Produktionen/2026-eigen-geo-erklaervideo) */
.c-erklaer { padding-top: 56px; padding-bottom: 28px; }
.c-erklaer-bild { margin-top: 20px; border-radius: 20px; overflow: hidden; background: #000; }
.c-erklaer-bild video { display: block; width: 100%; height: auto; background: #000; }
.c-erklaer-bild .handy { aspect-ratio: 9 / 16; }
.c-erklaer-bild .gross { display: none; aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .c-erklaer { padding-top: 96px; padding-bottom: 40px; }
  .c-erklaer .c-film-kopf, .c-erklaer-bild { max-width: 1100px; margin-left: auto; margin-right: auto; }
  .c-erklaer-bild .handy { display: none; }
  .c-erklaer-bild .gross { display: block; }
}

/* Auftrag im Chat (01.12.2026): Angebote als Antwortkarten, Kontakt als Karte, Abschluss mit nächsten Schritten */
.c-link { display: inline-block; margin-top: 2px; color: var(--c-text); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.c-wahl { display: grid; gap: 10px; margin: 14px 0 10px; }
.c-option { position: relative; display: grid; gap: 6px; width: 100%; padding: 16px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.14); background: var(--c-karte); color: var(--c-text); font: 400 15px/1.4 Switzer, sans-serif; text-align: left; cursor: pointer; transition: transform 120ms ease, border-color 160ms ease, opacity 200ms ease; }
.c-option:active { transform: scale(0.98); }
.c-option.empfohlen { border-color: rgba(255, 255, 255, 0.55); }
.c-option.leise { background: transparent; }
.c-option:disabled { cursor: default; opacity: 0.45; }
.c-option.gewaehlt { opacity: 1; border-color: #fff; }
.c-o-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.c-o-kopf b { font-size: 17px; font-weight: 600; color: #fff; }
.c-o-preis { font-size: 17px; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-o-satz { color: var(--c-leise); }
.c-option ol { margin: 2px 0 0; padding-left: 20px; display: grid; gap: 3px; }
.c-option ol li { color: var(--c-text); }
.c-zusage { margin-top: 4px; }
.c-ok-feld { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--c-leise); }
.c-ok-feld input { width: 20px; height: 20px; margin: 0; accent-color: #fff; flex: none; }
.c-schritte { margin: 14px 0 10px; padding-left: 22px; display: grid; gap: 8px; }
.c-schritte b { color: #fff; font-weight: 600; }

/* Erklärvideo im Chat (01.12.2026) */
.c-video { position: relative; margin-top: 12px; border-radius: 18px; overflow: hidden; background: #000; }
.c-video video { display: block; width: 100%; height: auto; background: #000; }
.c-video.hoch { max-width: min(100%, calc(68svh * 9 / 16)); }
.c-video.hoch video { aspect-ratio: 9 / 16; } .c-video.quer video { aspect-ratio: 16 / 9; }
.c-ton { position: absolute; top: 12px; right: 12px; height: 38px; padding: 0 16px; border: 0; border-radius: 19px; background: rgba(0, 0, 0, 0.62); color: #fff; font: 500 15px/1 Switzer, sans-serif; cursor: pointer; backdrop-filter: blur(8px); }
.c-ton[hidden] { display: none; }

/* Massnahmenplan per E-Mail im Chat (01.12.2026) */
.c-plan { gap: 10px; }
.c-planzeile { display: flex; gap: 8px; }
.c-planzeile input { flex: 1; min-width: 0; min-height: 48px; padding: 12px 14px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.16); background: #1c1c1c; color: #fff; font: 400 16px/1.35 Switzer, sans-serif; outline: none; }
.c-planzeile input:focus { border-color: rgba(255, 255, 255, 0.5); }
.c-honig { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.c-plan, .c-plan > * { min-width: 0; } .c-planzeile .c-ja { flex: none; padding: 0 18px; }
