/* Letzte Cleaning Prüfung: 02.10.2026 */
/* Letztes Cleaning: - */
/* Cookie- und Speicherabfrage (AL-20260929-21), Skript: assets/js/cookie-einwilligung.js.
   Seit AL-20261001-31 in confacAI-Farben: erst eine kompakte Karte
   unten rechts (sperrt die Seite nicht), über "Cookie-Einstellungen" ein Fenster mit einer
   Karte je Kategorie. Akzeptieren und Ablehnen stehen auf der ersten Ebene gleich leicht
   erreichbar untereinander. Eigenständig gestaltet, damit sie auf Werbeseite, Rechtstexten
   und Workspace gleich aussieht. */
/* Die Karte nutzt die Portalschriften; viele Seiten (Werbeseite, Rechtstexte) laden die
   Schriftvorlage sonst nicht und fielen auf Arial zurück (AL-20261012-09). */
@import url("confacai-schriften.css?v=1");
:root {
  --cf-cookie-rot: #ff2347;
  --cf-cookie-rot-hell: #ff3d5c;
  --cf-cookie-flaeche: #16171e;
  --cf-cookie-karte: #1e2028;
  --cf-cookie-grau: #2b2e38;
  --cf-cookie-rand: #2f323d;
  --cf-cookie-text: #b7bdca;
  --cf-cookie-hell: #f3f5f9;
}
html.cf-cookie-offen { overflow: hidden; }
.cf-cookie {
  position: fixed;
  z-index: 2147483000;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-text-size-adjust: 100%;
}
.cf-cookie [hidden] { display: none !important; }
.cf-cookie a { color: var(--cf-cookie-hell); text-decoration: underline; text-underline-offset: 2px; }
.cf-cookie a:hover { color: #fff; }

/* --- Ebene 1: Karte unten rechts ------------------------------------------------------------ */
.cf-cookie[data-ebene="hinweis"] { right: 24px; bottom: 24px; width: min(400px, calc(100vw - 32px)); }
.cf-cookie-karte {
  box-sizing: border-box;
  border: 1px solid var(--cf-cookie-rand);
  border-radius: 16px;
  background: var(--cf-cookie-flaeche);
  color: var(--cf-cookie-hell);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  text-align: left;
}
.cf-cookie-hinweis { padding: 20px 20px 18px; max-height: calc(100dvh - 48px); overflow: auto; }
.cf-cookie-titel { margin: 0 0 10px; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.25; }
.cf-cookie-text { margin: 0; color: var(--cf-cookie-text); font-size: 13.5px; line-height: 1.55; }
.cf-cookie-anfrage { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--cf-cookie-rot); border-radius: 4px; background: rgba(255, 35, 71, .1); color: #ffd5dc; font-size: 13.5px; line-height: 1.5; }
.cf-cookie-links { margin: 10px 0 0; color: #7f8697; font-size: 12px; }
.cf-cookie-links a { color: #cfd4df; }
.cf-cookie-knoepfe { display: grid; gap: 8px; margin-top: 16px; }
.cf-cookie-knopf {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 700 14px/1.2 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cf-cookie-knopf svg { width: 18px; height: 18px; fill: currentColor; }
.cf-cookie-zulassen { background: var(--cf-cookie-rot); color: #fff; }
.cf-cookie-zulassen:hover { background: var(--cf-cookie-rot-hell); }
.cf-cookie-ablehnen { background: var(--cf-cookie-grau); color: var(--cf-cookie-hell); }
.cf-cookie-ablehnen:hover { background: #363a46; }
.cf-cookie-einstellen { border-color: var(--cf-cookie-rand); background: transparent; color: var(--cf-cookie-hell); }
.cf-cookie-einstellen:hover { border-color: #4a4f5d; background: rgba(255, 255, 255, .03); }

/* --- Ebene 2: Einstellungsfenster ------------------------------------------------------------- */
.cf-cookie[data-ebene="einstellungen"] {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(3, 4, 8, .72);
}
.cf-cookie-fenster { width: min(640px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 20px 18px 18px; }
.cf-cookie-fensterkopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cf-cookie-zu {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin: -4px -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cf-cookie-hell);
  cursor: pointer;
}
.cf-cookie-zu svg { width: 20px; height: 20px; fill: currentColor; }
.cf-cookie-zu:hover { background: rgba(255, 255, 255, .07); }
.cf-cookie-fenster > .cf-cookie-text { font-size: 14px; }
.cf-cookie-auswahl { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 14px; }
.cf-cookie-klein { min-height: 30px; padding: 5px 12px; border-radius: 7px; background: var(--cf-cookie-grau); color: var(--cf-cookie-hell); font-size: 12.5px; }
.cf-cookie-klein:hover { background: #363a46; }
.cf-cookie-gruppen { display: grid; gap: 10px; }
.cf-cookie-gruppe { padding: 14px 16px 15px; border-radius: 12px; background: var(--cf-cookie-karte); }
.cf-cookie-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cf-cookie-name { color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.cf-cookie-immer { color: #8c93a3; font-size: 12px; }
.cf-cookie-mehr {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 5px 8px 5px 11px;
  border-radius: 7px;
  background: var(--cf-cookie-grau);
  color: var(--cf-cookie-hell) !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}
.cf-cookie-mehr svg { width: 15px; height: 15px; fill: currentColor; }
.cf-cookie-mehr:hover { background: #363a46; }
.cf-cookie-gruppentext { margin: 0; color: var(--cf-cookie-text); font-size: 13.5px; line-height: 1.55; }
.cf-cookie-ohne { margin: 8px 0 0; color: #7c8393; font-size: 13px; line-height: 1.5; }
.cf-cookie-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.cf-cookie-fuss .cf-cookie-links { margin: 0; }
.cf-cookie-speichern { background: var(--cf-cookie-rot); color: #fff; }
.cf-cookie-speichern:hover { background: var(--cf-cookie-rot-hell); }

/* Schalter: Regler vor dem Namen */
.cf-cookie-schalter { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.cf-cookie-schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cf-cookie-regler { position: relative; width: 34px; height: 19px; border-radius: 999px; background: #474b57; transition: background .15s ease; }
.cf-cookie-regler::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.cf-cookie-schalter input:checked + .cf-cookie-regler { background: var(--cf-cookie-rot); }
.cf-cookie-schalter input:checked + .cf-cookie-regler::after { transform: translateX(15px); }
.cf-cookie-schalter input:disabled + .cf-cookie-regler { opacity: .75; cursor: default; }
.cf-cookie-schalter input:focus-visible + .cf-cookie-regler { outline: 2px solid #fff; outline-offset: 2px; }

.cf-cookie-knopf:focus-visible, .cf-cookie-zu:focus-visible, .cf-cookie a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Handy: Karte unten über die volle Breite, Fenster von unten */
@media (max-width: 520px) {
  .cf-cookie[data-ebene="hinweis"] { right: 0; bottom: 0; left: 0; width: auto; }
  .cf-cookie-hinweis { border-radius: 16px 16px 0 0; padding: 18px 16px 16px; }
  .cf-cookie[data-ebene="einstellungen"] { align-items: end; padding: 0; }
  .cf-cookie-fenster { max-height: 92dvh; border-radius: 16px 16px 0 0; padding: 18px 14px 16px; }
  .cf-cookie-knopf { min-height: 46px; }
  .cf-cookie-fuss { flex-direction: column-reverse; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .cf-cookie-regler, .cf-cookie-regler::after, .cf-cookie-knopf { transition: none; } }
