/* ─── Cookie-Consent · kompakte Liquid-Glass-Karte (DS-33) ──────────
   Kein Full-Width-Bottom-Bar mehr (verdeckte den Funnel-Content).
   Stattdessen kleine frosted-Glas-Karte unten LINKS — kollidiert nie
   mit den Toggles (unten rechts) und nie mit dem zentrierten CTA.
   DSGVO/TTDSG-konform: Consent-Wahl vor GTM/Cal.com-Load. */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: auto;
  max-width: 360px;
  z-index: 99999;
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s;
  /* frosted glass — opak genug für Lesbarkeit über beliebigem Content */
  background: linear-gradient(180deg, rgba(248, 246, 243, 0.80), rgba(240, 237, 233, 0.72));
  backdrop-filter: blur(30px) saturate(185%);
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  border: 1px solid rgba(150, 120, 90, 0.22);
  border-radius: var(--r-xl, 24px); /* konzentrisch zu den 999px-Pill-Buttons + 16px padding */
  padding: 1rem 1.1rem 1.05rem;
  /* Glas-Fase: obere Lichtkante + untere Tiefe + 3-tier-Schatten (schwebt, wirkt dick) */
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1.5px 2px rgba(90, 60, 20, 0.10),
    0 1px 1px rgba(0,0,0,.06),
    0 14px 40px -10px rgba(60, 40, 15, 0.22),
    0 4px 12px -6px rgba(0, 0, 0, 0.12);
}
[data-theme="dark"] #cookie-banner {
  background: linear-gradient(180deg, rgba(28, 23, 19, 0.78), rgba(20, 16, 13, 0.72));
  border-color: rgba(212, 137, 74, 0.26);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1.5px 2px rgba(0,0,0,.35),
    0 1px 1px rgba(0,0,0,.3),
    0 16px 44px -10px rgba(0, 0, 0, 0.6),
    0 4px 12px -6px rgba(0, 0, 0, 0.4);
}
#cookie-banner.cb-visible { transform: translateY(0); opacity: 1; }
/* Specular-Lichtfang (geteilte Glas-DNA) */
#cookie-banner::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(135% 90% at 8% -12%, rgba(255,255,255,.30), transparent 46%),
    radial-gradient(70% 60% at 112% 116%, rgba(255,255,255,.07), transparent 60%);
}
#cookie-banner .cb-inner { position: relative; z-index: 1; }

.cb-inner {
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: stretch;
}
.cb-text {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #4a4540;
  margin: 0;
}
[data-theme="dark"] .cb-text { color: rgba(240, 236, 232, 0.84); }
.cb-text a { color: var(--a, #9b6722); text-decoration: underline; }

.cb-actions {
  display: flex;
  gap: 0.5rem;
}
/* EINE Button-Form: pillen-rund (999px), Größe S — siehe theme.css */
.cb-deny, .cb-accept {
  flex: 1;
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  min-height: 40px;
  transition: filter 0.15s, background 0.15s, border-color 0.15s;
}
/* Ablehnen = Ghost-Glas mit Fase (gleiche Glas-DNA wie seg-toggle/btn-ghost) */
.cb-deny {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--t1, #131110) 8%, transparent) 0%,
    color-mix(in srgb, var(--t1, #131110) 3%, transparent) 100%);
  border: 1px solid color-mix(in srgb, var(--t1, #131110) 18%, transparent);
  color: var(--t2, #5a5450);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .cb-deny {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.25);
}
.cb-deny:hover { border-color: color-mix(in srgb, var(--t1, #131110) 32%, transparent); }
/* Akzeptieren = Orange-Liquid-Glass — EXAKT dieselbe Formel wie Analyse-CTA/Button-Familie
   (durchscheinender Amber-Tint + Fase + Sheen). Bewusst KEIN eigenes backdrop-filter:
   im gefrosteten Banner unsichtbar und auf iOS nur eine weitere eckige Leak-Quelle. */
.cb-accept {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--a, oklch(67% 0.14 52)) 78%, white 12%) 0%,
    color-mix(in srgb, var(--a, oklch(67% 0.14 52)) 92%, transparent) 100%);
  border: 1px solid color-mix(in srgb, var(--a, oklch(67% 0.14 52)) 70%, transparent);
  color: #0c0b0f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 6px 18px color-mix(in srgb, var(--a, oklch(67% 0.14 52)) 30%, transparent),
    0 2px 5px rgba(0, 0, 0, 0.07);
}
.cb-accept::before {
  content: ""; position: absolute; left: 1px; right: 1px; top: 1px; height: 44%;
  border-radius: 999px 999px 40% 40% / 999px 999px 100% 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.1) 55%, transparent);
  pointer-events: none;
}
html[data-theme="dark"] .cb-accept {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--a, oklch(73% 0.13 58)) 82%, white 10%) 0%,
    color-mix(in srgb, var(--a, oklch(73% 0.13 58)) 94%, transparent) 100%);
  color: #1a0d02;
}
.cb-accept:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Mobile: Platz für die Toggle-Spalte (unten rechts) lassen */
@media (max-width: 600px) {
  #cookie-banner {
    left: 10px;
    right: 88px;
    max-width: none;
    bottom: 12px;
    padding: 0.85rem 0.95rem 0.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  #cookie-banner { transition: opacity 0.3s; transform: none; }
}
