/* KI-Concierge (js/concierge.js, bauen/concierge.mjs). Am Rechner Pille unten rechts + Panel rechts; am Handy Symbol in der Kopfleiste + Vollbild.
   Farben nur aus den Tokens (Lagune, Tinte), keine neue Farbwelt. */
.cc-pille { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 20px 12px 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 600 15px/1 var(--f-body); cursor: pointer;
  box-shadow: 0 14px 36px -12px color-mix(in oklab, var(--a1) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.2); transition: background 0.25s, transform 0.25s; }
.cc-pille:hover { background: var(--hi); }
.cc-pille:focus-visible, .cc-kopf:focus-visible, .cc-link:focus-visible, .cc button:focus-visible, .cc a:focus-visible, .cc textarea:focus-visible, .cc input:focus-visible { outline: 3px solid var(--a1); outline-offset: 2px; }
.cc-kopf { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6); color: var(--ink); cursor: pointer; }
.cc-hinweis { margin-top: 22px; }
.cc-link { padding: 6px 0; border: 0; background: none; color: var(--ink); font: 600 15px/1.4 var(--f-body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; text-align: left; }
.cc-link:hover { color: var(--hi); }  /* --hi auf Papier hat nur 4,42:1, als Ruhefarbe zu schwach */
@media (scripting: none) { .cc-pille, .cc-kopf, .cc-hinweis { display: none !important; } }
@media (max-width: 760px) { .cc-pille { display: none; } .cc-kopf { display: inline-flex; } }
@media (min-width: 761px) { .fuss { padding-bottom: 96px; } }
html.cc-offen .cc-pille { display: none; }

.cc { position: fixed; z-index: 45; right: 20px; bottom: 20px; top: 92px; width: min(420px, calc(100vw - 40px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; border: 1px solid var(--line);
  background: color-mix(in oklab, var(--paper) 96%, #fff); box-shadow: 0 30px 80px -24px rgba(10, 40, 50, 0.45); font-family: var(--f-body); color: var(--ink); }
.cc[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .cc:not([hidden]) { animation: cc-ein 0.22s ease-out; } }
@keyframes cc-ein { from { opacity: 0; transform: translateY(12px); } }
.cc-kopfzeile { display: flex; align-items: center; gap: 10px; padding: 16px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.cc-titelzeile { flex: 1; min-width: 0; }
.cc-titelzeile h2 { font: 600 17px/1.25 var(--f-display); margin: 0; }
.cc-titelzeile p { margin: 3px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.cc-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 400 28px/1 var(--f-body); cursor: pointer; }
.cc-x:hover { background: rgba(10, 20, 22, 0.06); }
.cc-zurueck { display: none; flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 14px var(--f-body); cursor: pointer; }

.cc-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.cc-msg { max-width: 88%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.cc-msg p { margin: 0; } .cc-msg p + p, .cc-msg p + ul, .cc-msg p + ol, .cc-msg ul + p, .cc-msg ol + p { margin-top: 8px; }
.cc-msg ul, .cc-msg ol { margin: 4px 0 0; padding-left: 20px; } .cc-msg li + li { margin-top: 3px; }
.cc-msg a { color: var(--hi); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.cc-wir { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.cc-du { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.cc-status { color: var(--muted); font-size: 14px; }
@media (prefers-reduced-motion: no-preference) { .cc-status { animation: cc-puls 1.4s ease-in-out infinite; } }
@keyframes cc-puls { 50% { opacity: 0.45; } }

.cc-vorschlaege { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 10px; }
.cc-vorschlaege[hidden] { display: none; }
.cc-chip { min-height: 40px; padding: 8px 14px; border: 1px solid color-mix(in oklab, var(--a1) 45%, var(--line)); border-radius: 999px; background: #fff; color: var(--ink); font: 500 14px/1.2 var(--f-body); cursor: pointer; text-align: left; }
.cc-chip:hover { border-color: var(--hi); color: var(--hi); }

.cc-eingabe { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.cc-eingabe:focus-within { border-color: var(--a1); }
.cc-eingabe textarea { flex: 1; min-height: 40px; max-height: 140px; padding: 9px 0; border: 0; resize: none; background: transparent; color: var(--ink); font: 400 16px/1.4 var(--f-body); }
.cc-eingabe textarea:focus { outline: none; }
.cc-senden { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer; }
.cc-senden:hover { background: var(--hi); } .cc-senden:disabled { opacity: 0.45; cursor: default; }
.cc-recht { margin: 8px 16px 14px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.cc-recht a, .cc-neu { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.cc-neu { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

.cc-karte { align-self: stretch; margin: 2px 0 6px; padding: 16px; border-radius: 18px; border: 1px solid color-mix(in oklab, var(--a1) 55%, var(--line)); background: #fff; display: flex; flex-direction: column; gap: 10px; }
.cc-karte h3 { margin: 0; font: 600 16px/1.3 var(--f-display); }
.cc-karte-hinweis { margin: 0; font-size: 13px; color: var(--muted); }
.cc-feld { display: flex; flex-direction: column; gap: 4px; }
.cc-feld label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cc-feld input, .cc-feld textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--f-body); }
.cc-feld textarea { resize: vertical; }
.cc-ok { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.cc-ok input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); }
.cc-meldung { margin: 0; min-height: 1px; font-size: 13px; color: var(--ink-2); }
.cc-meldung:empty { display: none; }
.cc-karte .btn { align-self: flex-start; }
.cc .fo-honig { position: absolute; left: -9999px; width: 1px; height: 1px; }
.cc-gesendet { font-size: 15px; font-weight: 600; color: var(--ink); }

@media (max-width: 760px) {
  .cc { inset: 0; top: 0; right: 0; bottom: 0; width: 100%; z-index: 70; border: 0; border-radius: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
  .cc-zurueck { display: inline-flex; align-items: center; }
  .cc-x { display: none; }
  .cc-kopfzeile { padding-left: 12px; }
  html.cc-offen, html.cc-offen body { overflow: hidden; }
}
