/* ===========================================================================
 * ak-consent.css  —  Styling für ak-consent.js
 * Brand-agnostisch: NUR die CSS-Variablen unten pro Kunde überschreiben.
 * =========================================================================== */
#ak-consent {
  /* ---- Brand-Tokens (hier je Landingpage anpassen) ---- */
  --akc-bg:        #ffffff;
  --akc-fg:        #1f2a26;   /* Fließtext / Überschrift        */
  --akc-muted:     #5b6b64;   /* Beschreibungstext              */
  --akc-accent:    #059265;   /* Primär-Button / aktiver Schalter (Beispiel: Physio-Grün) */
  --akc-accent-fg: #ffffff;   /* Text auf Primär-Button         */
  --akc-line:      #e4ece8;   /* Rahmen / Trennlinien           */
  --akc-ghost-bg:  #f4f8f6;   /* Sekundär-Button-Fläche         */
  --akc-radius:    16px;
  --akc-shadow:    0 18px 50px rgba(15,30,25,.18);
  --akc-overlay:   rgba(15,25,20,.55);

  font-family: inherit;
  color: var(--akc-fg);
}
#ak-consent[aria-hidden="true"] { display: none; }

/* ---- Banner (unten fixiert) --------------------------------------------- */
#ak-consent .akc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2147483000;
  margin: 0 auto; max-width: 920px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  background: var(--akc-bg); border: 1px solid var(--akc-line);
  border-radius: var(--akc-radius); box-shadow: var(--akc-shadow);
  padding: 20px 22px;
  animation: akc-in .28s cubic-bezier(.22,.61,.36,1);
}
#ak-consent .akc-banner-txt { flex: 1 1 340px; min-width: 260px; }

/* ---- Modal (granulare Einstellungen) ------------------------------------ */
#ak-consent .akc-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  background: var(--akc-overlay); backdrop-filter: saturate(120%) blur(2px);
  animation: akc-fade .2s ease;
}
#ak-consent .akc-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%);
  z-index: 2147483001; width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); overflow: auto;
  background: var(--akc-bg); border-radius: var(--akc-radius);
  box-shadow: var(--akc-shadow); padding: 26px 26px 22px;
  animation: akc-in .28s cubic-bezier(.22,.61,.36,1);
}

/* ---- Typo --------------------------------------------------------------- */
#ak-consent .akc-title { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.25; font-weight: 700; }
#ak-consent .akc-body  { margin: 0 0 10px; font-size: .92rem; line-height: 1.55; color: var(--akc-muted); }
#ak-consent .akc-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
#ak-consent .akc-links a { font-size: .82rem; color: var(--akc-muted); text-decoration: underline; }
#ak-consent .akc-links a:hover { color: var(--akc-fg); }

/* ---- Kategorien --------------------------------------------------------- */
#ak-consent .akc-cats { margin: 14px 0 6px; }
#ak-consent .akc-cat { padding: 12px 0; border-top: 1px solid var(--akc-line); }
#ak-consent .akc-cat:first-child { border-top: 0; }
#ak-consent .akc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#ak-consent .akc-cat-name { font-weight: 600; font-size: .95rem; }
#ak-consent .akc-cat-desc { margin: 6px 0 0; font-size: .84rem; line-height: 1.5; color: var(--akc-muted); }

/* ---- Schalter ----------------------------------------------------------- */
#ak-consent .akc-switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: 0 0 auto; }
#ak-consent .akc-switch input { opacity: 0; width: 0; height: 0; }
#ak-consent .akc-slider {
  position: absolute; inset: 0; cursor: pointer; background: #cfd8d3;
  border-radius: 999px; transition: background .2s ease;
}
#ak-consent .akc-slider::before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
#ak-consent .akc-switch input:checked + .akc-slider { background: var(--akc-accent); }
#ak-consent .akc-switch input:checked + .akc-slider::before { transform: translateX(18px); }
#ak-consent .akc-switch--locked .akc-slider { opacity: .55; cursor: not-allowed; }

/* ---- Buttons ------------------------------------------------------------ */
#ak-consent .akc-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
#ak-consent .akc-banner .akc-actions { margin-top: 0; flex: 0 0 auto; }
#ak-consent .akc-btn {
  appearance: none; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600; line-height: 1;
  padding: 12px 18px; border-radius: 999px; transition: transform .12s ease, filter .15s ease, background .15s ease;
}
#ak-consent .akc-btn:active { transform: translateY(1px); }
#ak-consent .akc-btn--primary { background: var(--akc-accent); color: var(--akc-accent-fg); }
#ak-consent .akc-btn--primary:hover { filter: brightness(1.05); }
#ak-consent .akc-btn--ghost { background: var(--akc-ghost-bg); color: var(--akc-fg); border-color: var(--akc-line); }
#ak-consent .akc-btn--ghost:hover { filter: brightness(.98); }
#ak-consent .akc-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--akc-accent) 45%, transparent); outline-offset: 2px; }

/* ---- Motion / Responsive ------------------------------------------------ */
@keyframes akc-in   { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes akc-fade { from { opacity: 0; } to { opacity: 1; } }
#ak-consent .akc-modal { transform: translate(-50%,-50%); } /* nach Anim korrekt zentriert */

@media (max-width: 640px) {
  #ak-consent .akc-banner { flex-direction: column; align-items: stretch; padding: 18px; }
  #ak-consent .akc-actions { justify-content: stretch; }
  #ak-consent .akc-btn { flex: 1 1 auto; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  #ak-consent .akc-banner, #ak-consent .akc-modal, #ak-consent .akc-overlay { animation: none; }
}
