/* ---- Cookie-Consent: ALTER Aufbau (02.11.2026, @user-Wunsch) — zweistufig:
   Grundansicht «Mehr Infos» (Textlink links) + «Annehmen» (dunkler Button
   rechts, Hover = Akzent); Details (Kategorie-Schalter + «Nur notwendige»/
   «Auswahl speichern») öffnen sich unter «Mehr Infos». Optik wie v2.3
   (26.10.): Fenster min(400px, 100%), Cream/Line/6px, Fraunces/Space
   Grotesk, Schalter an = Moss. Native <dialog>-Hülle des Equal-Choices-
   Reworks bleibt (Fokus-Handling/Esc), alles Visuelle liegt auf
   .iv-consent-float-card mit Fallback-Werten — dadurch rendert das Fenster
   auf allen Seiten identisch, unabhängig von Seiten-CSS (Tailwind etc.). ---- */
.iv-consent-float{box-sizing:border-box;position:fixed;inset:0;width:min(400px,calc(100% - 24px));max-width:none;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);margin:auto;padding:0;border:0;background:transparent;color:#14110F}
.iv-consent-float::backdrop{background:#14110F40}
.iv-consent-float:not([open]){display:none}
.iv-consent-float *{box-sizing:border-box}
.iv-consent-float-card{background:var(--cream,#FBF8F1);border:1px solid var(--line,#D9D0BF);border-radius:6px;box-shadow:0 24px 48px -16px rgba(20,17,15,.42);padding:24px 26px 22px;overflow-y:auto;overscroll-behavior:contain;text-align:left;font:16px/1.55 'Space Grotesk',system-ui,sans-serif;animation:ivConsentIn .4s cubic-bezier(.2,.7,.2,1)}
@keyframes ivConsentIn{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:none}}
.iv-consent-kicker{margin:0 0 6px;font-family:'Space Grotesk',system-ui,sans-serif;font-size:.62rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--accent,#C44F2C)}
.iv-consent-title{margin:0 0 8px;font-family:Fraunces,Georgia,serif;font-size:1.3rem;font-weight:600;line-height:1.15;color:var(--ink,#14110F)}
.iv-consent-text{margin:0 0 16px;font-size:.82rem;line-height:1.55;color:#3A3530}
.iv-consent-link{color:var(--accent,#C44F2C);text-decoration:underline;text-underline-offset:2px}
.iv-consent-link:hover{color:var(--accent-deep,#8C3216)}

/* Aktionszeile: Textlink links, Primärbutton rechts (wie CMP-Beispiel v2.3) */
.iv-consent-actions{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
/* display:flex überschreibt sonst das hidden-Attribut (Stufenwechsel!) */
.iv-consent-actions[hidden]{display:none}
.iv-consent-btn{padding:.7rem 1.4rem;font-family:'Space Grotesk',system-ui,sans-serif;font-size:.85rem;font-weight:600;border-radius:4px;cursor:pointer;background:var(--ink,#14110F);color:var(--cream,#FBF8F1);border:1px solid var(--ink,#14110F);transition:background-color .3s ease,color .3s ease,border-color .3s ease,transform .2s ease}
.iv-consent-btn:active{transform:translateY(1px)}
.iv-consent-btn--accept:hover{background:var(--accent,#C44F2C);border-color:var(--accent,#C44F2C);color:var(--cream,#FBF8F1)}
.iv-consent-more{background:none;border:none;padding:.3rem 0;font-family:'Space Grotesk',system-ui,sans-serif;font-size:.85rem;font-weight:600;color:#3A3530;text-decoration:underline;text-underline-offset:3px;cursor:pointer;transition:color .25s ease}
.iv-consent-more:hover{color:var(--accent,#C44F2C)}

/* Zweite Stufe: Detail-Einstellungen */
.iv-consent-details[hidden]{display:none}
.iv-consent-details{animation:ivConsentDetailsIn .3s cubic-bezier(.2,.7,.2,1)}
@keyframes ivConsentDetailsIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* Kategorien-Zeilen mit Schaltern */
.iv-consent-rows{margin:0 0 1rem}
.iv-consent-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.55rem 0}
.iv-consent-row+.iv-consent-row{border-top:1px solid var(--line,#D9D0BF)}
.iv-consent-row-text{display:flex;flex-direction:column;gap:1px;min-width:0}
.iv-consent-row-label{font-family:'Space Grotesk',system-ui,sans-serif;font-size:.85rem;font-weight:600;color:var(--ink,#14110F)}
.iv-consent-row-desc{font-size:.75rem;line-height:1.4;color:#5D554F}

/* Marke-Schalter (44×24, an = Moss, gesperrt = Moss 55 %) */
.iv-consent-switch{position:relative;display:inline-block;flex:0 0 auto;width:44px;height:24px;cursor:pointer}
.iv-consent-switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.iv-consent-switch input:disabled{cursor:default}
.iv-consent-switch input:focus-visible+.iv-consent-switch-track{outline:2px solid var(--accent,#C44F2C);outline-offset:2px}
.iv-consent-switch-track{position:absolute;inset:0;border-radius:999px;background:var(--line,#D9D0BF);box-shadow:inset 0 0 0 1px rgba(20,17,15,.08);transition:background .25s ease;pointer-events:none}
.iv-consent-switch-track::after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--cream,#FBF8F1);border:1px solid rgba(20,17,15,.12);box-shadow:0 1px 3px rgba(20,17,15,.25);transition:transform .25s cubic-bezier(.2,.7,.2,1)}
.iv-consent-switch input:checked+.iv-consent-switch-track{background:var(--moss,#2A3A2E)}
.iv-consent-switch input:checked+.iv-consent-switch-track::after{transform:translateX(20px)}
.iv-consent-switch input:disabled+.iv-consent-switch-track{opacity:.55}

.iv-consent-float :focus-visible{outline:3px solid #8C3216;outline-offset:3px}
.iv-consent-legal{display:flex;flex-wrap:wrap;gap:0 14px;margin:14px 0 0;font-size:13px}
.iv-consent-legal a{color:#5D554F;text-decoration:underline;text-underline-offset:3px}

@media(max-width:480px){
  .iv-consent-float-card{padding:18px 16px 16px}
  .iv-consent-actions{flex-direction:column-reverse;align-items:stretch}
  .iv-consent-btn{width:100%}
  .iv-consent-row{gap:.75rem}
}
@media(forced-colors:active){
  .iv-consent-switch-track{border:2px solid ButtonText}
  .iv-consent-switch input:checked+.iv-consent-switch-track{background:Highlight}
  .iv-consent-switch-track::after{background:ButtonText}
}
