/* puclic/css/citastyle.css */
/* Cita Custom Styles mt-8 font-inter antialiased bg-slate-900 text-slate-200 tracking-tight*/
:root {
  /* Override Frappe's Inter font-stack — CRYPTON TARGET: 'Poppins' */
  --font-stack: 'Lato', Arial, Helvetica, sans-serif;

  /* Legacy accent palette - migrated to cyan */
  --pro-purple: #22d3ee;       /* cyan-400 */
  --pro-purple-dark: #0891b2;  /* cyan-600 */
  --pro-purple-muted: #67e8f9; /* cyan-300 */

  /* Core neutrals */
  --cita-white: #ffffff;
  --cita-charcoal-50: #f8fafc;
  --cita-charcoal-100: #e2e8f0;
  --cita-charcoal-150: #e5e7eb;
  --cita-charcoal-200: #d1d5db;
  --cita-charcoal-250: #cbd5e1;
  --cita-charcoal-300: #a9b7c8;
  --cita-charcoal-350: #9ca3af;
  --cita-charcoal-400: #94a3b8;
  --cita-charcoal-500: #64748b;
  --cita-charcoal-600: #475569;
  --cita-charcoal-700: #334155;
  --cita-charcoal-800: #1f2937;
  --cita-charcoal-850: #12172b;
  --cita-charcoal-900: #0f172a;
  --cita-charcoal-950: #020617;

  /* Cyan / teal energy */
  --cita-cyan-300: #67e8f9;
  --cita-cyan-400: #38bdf8;
  --cita-cyan-500: #06b6d4;
  --cita-teal-300: #5eead4;
  --cita-teal-400: #14b8a6;
  --cita-teal-500: #0d9488;
  --cita-mint-200: #33ffe4;
  --cita-mint-300: #8be9de;

  /* Azure / blue palette */
  --cita-azure-400: #60a5fa;
  --cita-azure-500: #3b82f6;
  --cita-azure-600: #2563eb;

  /* Status colors */
  --cita-success-500: #4caf50;
  --cita-success-400: #34d399;
  --cita-error-500: #f44336;
  --cita-danger-400: #f87171;
  --cita-info-500: #2196f3;
  --cita-warning-400: #fbbf24;
  --cita-warning-foreground: #0b1220;
  --cita-ink: #0b1220;
  --cita-lime-400: #22c55e;

  /* Radius tokens (all < 0.75rem) */
  --cita-radius-xs: 0.25rem;
  --cita-radius-sm: 0.375rem;
  --cita-radius-md: 0.5rem;
  --cita-radius-lg: 0.65rem;
  --cita-radius-xl: 0.7rem;

  /* ========================================
     DESIGN SYSTEM TOKENS
     ======================================== */

  /* Shadow System - 4 levels (sm, md, lg, xl) */
  --cita-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --cita-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --cita-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --cita-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Glow variants for interactive elements */
  --cita-shadow-glow-cyan: 0 0 20px rgb(6 182 212 / 0.3);
  --cita-shadow-glow-amber: 0 0 20px rgb(251 191 36 / 0.3);

  /* Typography Scale (based on 1rem = 16px, following 1.25 ratio) */
  --cita-text-xs: 0.75rem;     /* 12px */
  --cita-text-sm: 0.875rem;    /* 14px */
  --cita-text-base: 1rem;      /* 16px */
  --cita-text-lg: 1.125rem;    /* 18px */
  --cita-text-xl: 1.25rem;     /* 20px */
  --cita-text-2xl: 1.5rem;     /* 24px */
  --cita-text-3xl: 1.875rem;   /* 30px */
  --cita-text-4xl: 2.25rem;    /* 36px */
  --cita-text-5xl: 3rem;       /* 48px */

  /* Spacing Scale (8px grid) */
  --cita-space-1: 0.25rem;     /* 4px */
  --cita-space-2: 0.5rem;      /* 8px */
  --cita-space-3: 0.75rem;     /* 12px */
  --cita-space-4: 1rem;        /* 16px */
  --cita-space-5: 1.25rem;     /* 20px */
  --cita-space-6: 1.5rem;      /* 24px */
  --cita-space-8: 2rem;        /* 32px */
  --cita-space-10: 2.5rem;     /* 40px */
  --cita-space-12: 3rem;       /* 48px */
  --cita-space-16: 4rem;       /* 64px */
}

/* Beispiel Verwendung */
.bg-pro-purple {
  background-color: var(--pro-purple);
}


  body[data-cita-page] {
    font-family: var(--font-sans);
    /* CRYPTON TARGET: font-weight: 400; font-size: 1rem; letter-spacing: normal; line-height: 1.5; */
    font-weight: 450;
    font-size: 1.0625rem;
    letter-spacing: 0.03em;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    font-variant-ligatures: common-ligatures;
    font-variant-numeric: proportional-nums;
    background: var(--cita-bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--cita-text-primary);
    overflow-x: hidden;
  }

  h1, h2, h3, h4, h5, h6,
  .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-montserrat);
    /* CRYPTON TARGET: font-weight: 500; letter-spacing: normal; line-height: 1.3;
       CRYPTON SCALE: h1 35px, h2 30px, h3 25px, h4 20px, h5 15px, h6 14px */
    font-weight: var(--heading-weight, 700);
    letter-spacing: 0.03em;
    margin-top: 0;
    margin-bottom: 0.75em;
    line-height: 1.1;
  }

  .h1 { font-size: 2.75rem; }
  .h2 { font-size: 2.25rem; }
  .h3 { font-size: 1.875rem; }
  .h4 { font-size: 1.5rem; }
  .h5 { font-size: 1.25rem; }
  .h6 { font-size: 1.125rem; }

  @media (min-width: 768px) {
    .h1 { font-size: 3.5rem; }
    .h2 { font-size: 2.75rem; }
    .h3 { font-size: 2.25rem; }
  }

  /* CRYPTON TARGET: p { font-weight: 400; font-size: 0.9375rem; letter-spacing: normal;
     line-height: 1.6667; margin-bottom: 1.25rem; color: var(--cita-text-muted); } */
  p {
    font-family: var(--font-sans);
    font-weight: 450;
    letter-spacing: 0.03em;
    line-height: 1.7;
    margin-bottom: 0.75em;
    color: var(--cita-text-primary);
  }

  /* CRYPTON TARGET: ul,ol,li,etc { font-weight: 400; letter-spacing: normal; line-height: 1.5; } */
  ul, ol, li, label, span, div, input, textarea {
    font-family: var(--font-sans);
    font-weight: 450;
    letter-spacing: 0.03em;
    line-height: 1.7;
  }

  /* ═══════════════════════════════════════════════════════════════════
     CRYPTON DESIGN TARGETS (für spätere per-page Migration)
     Diese Styles werden NICHT global aktiviert sondern über
     crypton-overrides.css per <link> Tag auf migrierten Seiten geladen.

     Inline Elements: strong { font-weight: 600; color: #fff }, small { 13px, muted },
       p a { color: cyan, hover: white }, li { margin-bottom: 8px },
       code { navy bg, cyan text, 3px radius }, pre { navy bg, 5px radius },
       mark { amber bg 20% }, ::selection { cyan 30% }

     Inputs: background rgba(10,31,58,0.5), border none, radius 5px, font 13px/300
     Checkbox: custom SVG checkmark, cyan bg on :checked
     Links: a { transition 0.2s }, a:hover { color: cyan }
     Scrollbar: 6px, navy track, blue-gray thumb, cyan on hover
     HR: 0.5px solid #3E526C
     ═══════════════════════════════════════════════════════════════════ */


  .toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    padding: 12px 20px;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-20px);
    z-index: 9999;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.toast.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}
.toast.error {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fda4af;
}
.toast.info {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #67e8f9;
}
.toast.warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}
.toast.loading {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #67e8f9;
}
.toast .toast-icon {
    flex-shrink: 0;
    width: 22px; height: 22px;
    display: inline-block;
}
.toast .toast-text {
    flex: 1 1 auto;
    color: inherit;
}
  .toast .toast-close {
    background: none; border: none; color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem; margin-left: 0.75rem; cursor: pointer;
    transition: color .15s;
}
  .toast .toast-close:hover { color: #fff; }
.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
@media (max-width: 639.98px) {
    .toast {
        width: calc(100vw - 2rem);
        max-width: none;
        right: 1rem;
        left: 1rem;
    }
}


    @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .animate-fadeInDown {
    animation: fadeInDown 0.3s ease-out;
  }
  
/* ENDE Toast */


 /* --- CITA EVENT CARD (Optimiert Juli 2025) --- */

/* Card Container */
.event-card {
  position: relative;
  border-radius: var(--cita-radius-md);
  overflow: hidden;
  min-height: 370px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 4px 24px 0 rgba(17,22,39,0.13);
  display: flex;
  flex-direction: column;
  transition: box-shadow .16s, transform .14s;
  margin: 0;
}

.event-card:hover {
  box-shadow: 0 10px 36px 0 rgba(20,32,54,0.18);
  transform: translateY(-2px) scale(1.012);
}

/* Lesbarkeits-Overlay */
.event-card > .absolute.inset-0,
.event-card .event-card-overlay {
  background: linear-gradient(0deg, rgba(18,23,43,0.85) 62%, rgba(18,23,43,0.42) 86%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* --- BADGES-ZEILE --- */
.event-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.44rem;
  padding: 1.12rem 1.19rem 0 1.19rem;
  min-height: 2.1rem;
  z-index: 2;
  position: relative;
}

/* Glass Badge */
.glass-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(18,23,43,0.75);
  border-radius: 0.28rem;
  padding: 0.33em 0.94em;
  font-size: 1.01rem;
  font-weight: 500;
  letter-spacing: 0.014em;
  border: 1px solid rgba(105,110,148,0.12);
  color: var(--cita-ice-100);
  box-shadow: 0 1.5px 8px 0 rgba(18,19,28,0.06);
  margin: 0;
  max-width: 100%;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: background .15s;
}

/* Spezielle Badge Varianten */
.badge-type, .badge-status, .tickets-badge, .soldout, .badge.highlight {
  font-size: 0.99rem;
  font-weight: 600;
  border-radius: 0.28rem;
  padding: 0.33em 0.92em;
  background: rgba(100,110,140, 0.15);
  color: var(--cita-ice-300);
  border: none;
  letter-spacing: 0.01em;
  box-shadow: none;
}
.badge.highlight {
  background: linear-gradient(90deg, var(--cita-warning-400) 10%, var(--cita-rose-400) 100%);
  color: var(--cita-peach-100);
}
.soldout {
  background: var(--cita-rose-500-alpha);
  color: var(--cita-white);
}
.tickets-badge {
  background: rgba(21, 183, 158, 0.13);
  color: var(--cita-mint-200);
}

/* --- CONTENT --- */
.event-card .relative.z-10, .event-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 1.09rem 1.19rem 1.09rem 1.19rem;
  gap: 1.11rem;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* Maximal 2 Zeilen anzeigen */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.2em;
  max-height: 3.8em;
  margin-bottom: 0.72rem;
  margin-top: 0;
  width: 100%;
  letter-spacing: 0.09em;
  font-weight: 400;
}


/* Headline-Block (nur so breit wie nötig, Abstände, kein Overflow) */
.event-card .glass-badge {
  margin-bottom: 0.37rem;
  max-width: 95vw;
  padding: 0.43em 1.15em;
  border-radius: 0.32rem;
  font-size: 1.13rem;
  letter-spacing: 0.042em;
}

.event-card .glass-badge h3,
.event-card .glass-badge .event-title {
  font-family: var(--font-montserrat, Montserrat), Arial, sans-serif;
  font-size: 1.17rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--cita-ice-50);
  line-height: 1.19;
  text-shadow: 0 1px 8px color-mix(in srgb, var(--cita-charcoal-850) 46%, transparent);
  margin: 0;
  padding: 0;
  max-width: 70vw;
  word-break: break-word;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) {
  .event-card .glass-badge h3, .event-card .glass-badge .event-title {
    font-size: 1.17rem;
    letter-spacing: 0.08em;
    max-width: 35vw;


    font-weight: 600;
    letter-spacing: 0.08em;
    
  }
}

/* Weitere Infos (Location, Datum etc) */
.event-card .flex.flex-wrap.gap-2.mb-2 {
  gap: 0.44rem 0.53rem !important;
  margin-bottom: 0.63rem !important;
}

.event-card p.glass-badge {
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* Maximal 2 Zeilen anzeigen */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.7em;
  max-height: 3.8em;
  margin-bottom: 0.72rem;
  margin-top: 0;
  width: 100%;
  letter-spacing: 0.09em;
  font-weight: 400;
}


/* Beschreibung */
.event-card p.glass-badge {
  margin-bottom: 0.49rem;
  margin-top: 0;
}

/* Button-/Logo-Zeile */
.event-card .flex.items-center.gap-3.pt-1 {
  gap: 1.09rem !important;
  margin-top: 0.57rem !important;
  flex-wrap: wrap;
}

/* Sponsor-Logo */
.event-card img[alt="Sponsor"], .event-sponsor-logo {
  width: 2.09rem;
  height: 2.09rem;
  min-width: 2.09rem;
  object-fit: contain;
  border-radius: var(--cita-radius-sm);
  border: 1px solid var(--cita-charcoal-650);
  background: color-mix(in srgb, var(--cita-white) 48%, transparent);
  margin-left: .22rem;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .event-card {
    min-height: 265px;
  }
  .event-card-badges {
    padding: 0.75rem 0.67rem 0 0.67rem;
    gap: 0.23rem 0.29rem;
  }
  .event-card .relative.z-10, .event-card-content {
    padding: 0.79rem 0.65rem 0.95rem 0.65rem;
    gap: 0.62rem;
  }
  .event-card .glass-badge {
    font-size: 0.97rem !important;
    padding: 0.37em 0.9em;
  }
  .event-card .glass-badge h3, .event-card .glass-badge .event-title {
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    max-width: 92vw;
  }
}

/* Letzter Badge am Block: kein Extraabstand */
.event-card-badges .glass-badge:last-child {
  margin-right: 0 !important;
}

/* Falls .glass-badge mal overflowt */
.glass-badge {
  max-width: 100%;
  white-space: pre-line;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Profil Widget SVG Icons — Sizing jetzt via navbar.css (.nav-profile-menu .dropdown-link svg) */


  /* SVG Icons und stuff 
  main svg, main .icon, .btn svg, header svg, .start-icon svg {
    
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    min-width: 1.25rem !important;
    min-height: 1.25rem !important;
    vertical-align: middle;
    display: inline-block;
  }
  .btn svg, .flex.items-center svg, .flex.gap-2 svg { 
    margin-bottom: -2px;
  } */ /* 
  .text-xs svg, .text-xs .icon, .btn-xs svg { width: 1rem !important; height: 1rem !important; }
  section, details.group { margin-bottom: 2.5rem !important; }
  section:last-of-type { margin-bottom: 0 !important; }
  details.group[open] { box-shadow: 0 2px 12px 0 rgba(60,60,60,.10);}
  details.group { border-radius: 1rem; border-width: 1.5px;}
ENDE Event Styles + Event Slider/Carusell*/

/* Footer should sit below modals 
.footer {
  position: relative;
  z-index: 10;
}

.page-footer {
  position: relative;
  z-index: 10;
}
*/

/* Typography */
.h1 {
  @apply text-5xl font-extrabold;
}

.h2 {
  @apply text-4xl font-extrabold;
}

.h3 {
  @apply text-3xl font-extrabold;
}

.h4 {
  @apply text-2xl font-extrabold;
}

@media (width >= theme(--breakpoint-md)) {
  .h1 {
      @apply text-6xl;
  }

  .h2 {
      @apply text-5xl;
  }

  .h3 {
      @apply text-4xl;
  }
}

/* Buttons */
.btn,
.btn-sm {
  @apply text-sm font-medium inline-flex items-center justify-center border border-transparent rounded-full whitespace-nowrap transition duration-150 ease-in-out;
}

.btn {
  @apply px-4 py-1.5;
}

.btn-sm {
  @apply px-3 py-1;
}

/* Forms */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
-webkit-appearance: none;
}

.form-input,
.form-textarea,
.form-multiselect,
.form-select,
.form-checkbox,
.form-radio {
  @apply border border-transparent rounded-none focus:ring-0 focus:ring-offset-0;
}

.form-input,
.form-textarea,
.form-multiselect,
.form-select {
  @apply text-sm px-3 py-1.5 focus:border-cyan-500;
  background: var(--cita-input-bg);
  color: var(--cita-input-text);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--cita-input-placeholder);
}

.form-select {
  @apply pr-10;
}

.form-checkbox,
.form-radio {
  @apply checked:bg-cyan-500 checked:border-transparent text-cyan-600 rounded-xs focus-visible:not-checked:border-cyan-500;
  background: var(--cita-checkbox-bg);
}

.form-checkbox {
  @apply rounded-xs;
}

/* Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
display: none;
}

.no-scrollbar {
-ms-overflow-style: none;  /* IE and Edge */
scrollbar-width: none;  /* Firefox */
}

/* Cita Silver Button – Pro Level
.cita-silver-btn {
  @apply bg-gradient-to-r from-white/80 via-white to-white/80
         text-slate-900
         font-semibold
         rounded-xl
         shadow-lg
         px-5 py-2
         transition
         duration-150
         ease-in-out
         flex
         items-center
         justify-center
         gap-2
         hover:bg-white
         border border-slate-300;
  letter-spacing: 0.01em;
  font-size: 1rem;       
  
  line-height: 1.5rem;
}

.cita-silver-btn svg {
  @apply fill-slate-500 mr-1;
}

.cita-silver-btn-lg {
  @apply text-slate-900 font-bold rounded-2xl px-6 py-3
         flex items-center gap-3 justify-center
         shadow-xl border border-slate-200/70
         bg-gradient-to-r from-white/80 via-white to-white/80
         hover:bg-white transition duration-150 ease-in-out text-lg;
}
.cita-silver-btn-lg svg {
  @apply fill-slate-500 mr-2;
} 
 */
/* ------------------------------------------------------------
   Cookie Banner – Cita.Events Compact v2 (dezent & mobile-first)
   Sauber konsolidiert, ohne Funktionsverlust
------------------------------------------------------------- */

/* Sichtbarkeit / Mount-Helpers */
.cita-cookie-banner[hidden] { display: none !important; }

.cita-cookie-banner {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;              /* wird unten freigeschaltet */
  transition: opacity .2s ease;
  overscroll-behavior: none;         /* kein Scroll-Bubbling ins Dokument */
}
.cita-cookie-banner.is-visible { opacity: 1; pointer-events: auto; }

/* Backdrop (dezent) */
.cita-cookie-backdrop {
  position: absolute;
  inset: 0;
  background: var(--cita-cookie-backdrop);
  backdrop-filter: saturate(110%) blur(6px);
  z-index: 0;
}

/* Panel: Bottom-Sheet auf Mobile, Dialog auf Desktop */
.cita-cookie-sheet {
  position: relative;
  width: min(660px, 100%);
  max-height: min(86vh, 600px);
  background: var(--cita-cookie-sheet-bg);
  color: var(--cita-text-primary);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: 0 22px 60px rgba(3, 7, 18, .55);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;                  /* Desktop: Body kann intern scrollen */
  overscroll-behavior: contain;      /* verhindert Scroll-Bubbling */
  contain: layout paint;
  z-index: 1;
}

/* Stabilere Höhe mit dvh */
@supports (height: 100dvh) {
  .cita-cookie-sheet { max-height: min(86dvh, 600px); }
}

/* Desktop-Zentrierung */
@media (min-width: 960px) {
  .cita-cookie-banner { align-items: center; }
  .cita-cookie-sheet  { max-height: 80vh; }
}

/* Mobile: Bottom-Sheet + Scroll gehört dem Panel (nicht dem Body) */
@media (max-width: 959px) {
  .cita-cookie-banner { align-items: flex-end; }
  .cita-cookie-sheet {
    width: 100%;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -16px 40px rgba(0, 0, 0, .45);
    max-height: 92vh;
    overflow: auto !important;
  }
  .cita-cookie-body {
    overflow: visible !important;    /* keine innere Scrollbar */
    max-height: none !important;
  }
  @supports (height: 100dvh) {
    .cita-cookie-sheet { max-height: 92dvh; }
  }
}

/* Header kompakt */
.cita-cookie-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}
.cita-cookie-brand { display: flex; align-items: center; gap: 8px; }
.cita-cookie-logo {
  width: 28px; height: 28px; border-radius: var(--cita-radius-sm);
  background: color-mix(in srgb, var(--cita-teal-500) 14%, transparent);
  padding: 4px;
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--cita-teal-500) 60%, transparent);
}
.cita-cookie-badge {
  font-size: 11px; line-height: 1; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  background: color-mix(in srgb, var(--cita-cyan-500) 12%, transparent); color: var(--cita-mint-300);
  border-radius: var(--cita-radius-sm); padding: 4px 6px;
  border: 1px solid color-mix(in srgb, var(--cita-cyan-500) 22%, transparent);
}
.cita-cookie-titles h2 { font-size: 16px; font-weight: 700; margin: 0 0 2px; }
.cita-cookie-titles p  { font-size: 13px; line-height: 1.55; margin: 0; color: var(--cita-text-secondary); }

/* Body (Desktop kann intern scrollen) */
.cita-cookie-body { overflow-y: auto; }

/* Highlight (Altersbestätigung) */
.cita-cookie-highlight {
  border-radius: var(--cita-radius-lg);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--cita-cyan-500) 8%, transparent),
    color-mix(in srgb, var(--cita-azure-400) 5%, transparent));
  border: 1px solid color-mix(in srgb, var(--cita-teal-350) 22%, transparent);
  padding: 12px; margin: 6px 0;
  min-block-size: 140px;            /* writing-mode safe */
}
.cita-cookie-highlight h3 { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.cita-cookie-highlight p  { color: var(--cita-text-secondary); margin: 0; line-height: 1.55; font-size: 13px; }
.cita-cookie-age { margin-top: 10px; }

/* Optionen-Grid (2 Spalten ab md) */
.cita-cookie-options {
  display: grid; gap: 10px; margin: 0; padding: 0; list-style: none;
}
@media (min-width: 768px) {
  .cita-cookie-options { grid-template-columns: 1fr 1fr; }
}

/* Option Card */
.cita-cookie-option {
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--cita-cookie-option-bg);
  border: 1px solid var(--cita-cookie-option-border);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .06);
  display: grid; gap: 6px;
}
.cita-cookie-option-header {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 2px;
}
.cita-cookie-option-header h3,
.cita-cookie-option-header label { font-size: 14px; font-weight: 600; margin: 0; }
.cita-cookie-chip {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 6px; padding: 3px 6px;
  color: var(--cita-ice-200);
  background: rgba(148, 163, 184, .16);
  border: 1px solid rgba(148, 163, 184, .25);
}
.cita-cookie-option p { margin: 0; color: var(--cita-text-muted); line-height: 1.55; font-size: 12.5px; }

/* Toggle – Größe & Optik (inkl. Variablen für Akzentfarben) */
.cita-cookie-toggle {
  /* Größe */
  --cb-w: 40px;      /* Breite */
  --cb-h: 22px;      /* Höhe */
  --cb-pad: 3px;     /* seitlicher Innenabstand */
  --cb-thumb: 16px;  /* Thumb-Durchmesser */

  /* Akzent/Farben (einfach anpassbar) */
  --tgl-on:  var(--cita-teal-500); /* Teal/Jade */
  --tgl-on-2: var(--cita-teal-400); /* hellerer Partner */

  position: relative;
  width: var(--cb-w);
  height: var(--cb-h);
  min-height: auto;  /* Überschreibt globale Touch-Target Regel aus organizer-hub.css */
  min-width: auto;
  border-radius: calc(var(--cb-h) / 2);
  border: 1px solid rgba(148, 163, 184, .38);
  background: var(--cita-cookie-toggle-bg);
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  transition: border .18s ease, background .18s ease;
}
.cita-cookie-toggle:focus-visible {
  outline: 2px solid rgba(94, 234, 212, .85);
  outline-offset: 2px;
}
.cita-cookie-toggle-track,
.cita-cookie-toggle-thumb { pointer-events: none; position: absolute; }
.cita-cookie-toggle-track {
  inset: 0; border-radius: inherit;
  background: var(--cita-cookie-toggle-track);
  transition: background .18s ease, opacity .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cita-cookie-toggle-thumb {
  top: 50%; left: 0; translate: 0 -50%;
  width: var(--cb-thumb); height: var(--cb-thumb);
  transform: translateX(var(--cb-pad));
  background: var(--cita-charcoal-100);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.cita-cookie-toggle-thumb::after { /* kleines Check-Icon (sichtbar im ON-State) */
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 10px; height: 10px; opacity: 0; transition: opacity .18s ease;
  background: currentColor; color: var(--cita-ink);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%23000" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') no-repeat center / contain;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%23000" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') no-repeat center / contain;
}
.cita-cookie-toggle:hover { border-color: rgba(148,163,184,.5); }
.cita-cookie-toggle:hover .cita-cookie-toggle-track { box-shadow: inset 0 0 0 1px rgba(148,163,184,.08); }
.cita-cookie-toggle:active .cita-cookie-toggle-thumb { transform: translateX(var(--cb-pad)) scale(.96); }

/* Toggle ON – unterstützt Klasse & ARIA */
.cita-cookie-toggle.is-on,
.cita-cookie-toggle[aria-checked="true"] {
  background: var(--tgl-on) !important;
  border-color: var(--tgl-on) !important;
}
.cita-cookie-toggle.is-on .cita-cookie-toggle-track,
.cita-cookie-toggle[aria-checked="true"] .cita-cookie-toggle-track {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--tgl-on-2) 80%, transparent),
    color-mix(in srgb, var(--tgl-on)   85%, transparent)
  );
}
.cita-cookie-toggle.is-on .cita-cookie-toggle-thumb,
.cita-cookie-toggle[aria-checked="true"] .cita-cookie-toggle-thumb {
  transform: translateX(calc(var(--cb-w) - var(--cb-thumb) - var(--cb-pad)));
  background: var(--cita-charcoal-50);
  box-shadow: 0 1px 2px rgba(2,6,23,.3);
}
.cita-cookie-toggle.is-on .cita-cookie-toggle-thumb::after,
.cita-cookie-toggle[aria-checked="true"] .cita-cookie-toggle-thumb::after { opacity: .9; }

/* Hinweis für fehlende Altersbestätigung */
.cita-cookie-age-hint {
  color: var(--cita-warning, #fbbf24);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 12px;
  padding: 10px 14px;
  text-align: center;
  width: 100%;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
}
.cita-cookie-age-hint[hidden] { display: none; }

/* Actions: kompakt, sticky am Fuß auf Mobile */
.cita-cookie-actions { margin-top: 8px; }
.cita-cookie-actions .cita-cookie-view {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
@media (max-width: 960px) {
  .cita-cookie-actions {
    position: sticky; bottom: 0;
    background: var(--cita-cookie-actions-bg);
    padding-top: 8px;
  }
}

/* Buttons – kantig & dezent (leichtere Schrift) */
.cita-cookie-btn {
  border-radius: var(--cita-radius-sm);
  font-weight: 400;
  font-size: 13px;
  padding: 10px 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--cita-text-primary);
  cursor: pointer;
  letter-spacing: .01em;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.cita-cookie-btn:focus-visible { outline: 2px solid rgba(34, 211, 238, .7); outline-offset: 2px; }
.cita-cookie-btn-primary {
  background: var(--cita-charcoal-100); color: var(--cita-ink); border-color: var(--cita-charcoal-250);
  box-shadow: 0 10px 22px -14px rgba(203, 213, 225, .8);
}
.cita-cookie-btn-primary:hover { transform: translateY(-1px); }
.cita-cookie-btn-outline { border-color: var(--cita-charcoal-700); background: transparent; color: var(--cita-text-primary); }
.cita-cookie-btn-outline:hover { background: var(--cita-cookie-btn-outline-hover); }
.cita-cookie-btn-secondary { background: var(--cita-cookie-btn-secondary-bg); color: var(--cita-text-primary); border-color: var(--cita-charcoal-800); }
.cita-cookie-btn-secondary:hover { filter: brightness(1.05); }
.cita-cookie-btn-ghost { background: transparent; color: var(--cita-charcoal-300); border-color: transparent; }
.cita-cookie-btn-ghost:hover { background: rgba(148, 163, 184, .08); }
.cita-cookie-btn[disabled],
.cita-cookie-btn[aria-disabled="true"] { cursor: not-allowed; opacity: .55; pointer-events: none; }

/* Legal-Absatz (Datenschutzerklärung etc.) */
.cita-cookie-legal {
  margin: 10px 2px 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--cita-text-muted);
}
.cita-cookie-legal a {
  color: var(--cita-mint-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cita-cookie-legal a:hover { text-decoration-thickness: 2px; }
.cita-cookie-legal a:focus-visible {
  outline: 2px solid rgba(34, 211, 238, .7);
  outline-offset: 2px;
  border-radius: 3px;
}

/* View-Helfer (nutzt [hidden] im HTML) */
.cita-cookie-view[hidden] { display: none !important; }

/* Responsive Feinschliff */
@media (max-width: 639px) {
  .cita-cookie-sheet { gap: 10px; padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); }
  .cita-cookie-titles h2 { font-size: 15px; }
  .cita-cookie-titles p  { font-size: 13px; }
  .cita-cookie-option { padding: 10px 12px; }
  .cita-cookie-actions .cita-cookie-view { justify-content: stretch; }
  .cita-cookie-actions .cita-cookie-view .cita-cookie-btn { flex: 1 1 100%; text-align: center; }
}
@media (max-width: 480px) {
  .cita-cookie-banner { padding: .75rem .75rem .5rem; }
  .cita-cookie-sheet  { border-radius: 12px 12px 0 0; }
}
@media (max-width: 380px) {
  .cita-cookie-option { padding: 8px 10px; }
  .cita-cookie-highlight { padding: 10px; min-block-size: 128px; }
}

/* Touch-Optimierung (größere Hit-Targets) */
@media (pointer: coarse) {
  .cita-cookie-toggle { --cb-w: 44px; --cb-h: 24px; --cb-thumb: 18px; }
  .cita-cookie-toggle .cita-cookie-toggle-thumb { transform: translateX(var(--cb-pad)); }
  .cita-cookie-toggle.is-on .cita-cookie-toggle-thumb,
  .cita-cookie-toggle[aria-checked="true"] .cita-cookie-toggle-thumb {
    transform: translateX(calc(var(--cb-w) - var(--cb-thumb) - var(--cb-pad)));
  }
  .cita-cookie-btn { padding: 12px 16px; font-size: 14px; }
}

/* Entrance-Animation (respect reduced motion) */
.cita-cookie-banner.is-visible .cita-cookie-sheet { animation: cb-pop .18s ease-out; }
@keyframes cb-pop {
  from { transform: translateY(8px) scale(.99); opacity: .98; }
  to   { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cita-cookie-banner.is-visible .cita-cookie-sheet { animation: none !important; }
}

/* ========================================
   ACCESSIBILITY: Reduced Motion Support
   ======================================== */

/* Global reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Disable all transitions globally */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Cookie banner specific */
  .cita-cookie-banner,
  .cita-cookie-toggle-thumb,
  .cita-cookie-toggle-track,
  .cita-cookie-btn {
    transition: none !important;
  }

  /* Cards and interactive elements */
  .glass-panel,
  .cita-card,
  .event-card,
  .kpi-card,
  [data-hover-effect] {
    transform: none !important;
    transition: none !important;
  }

  /* Loaders and spinners - keep minimal indication */
  .spinner,
  .loading-indicator,
  [data-loading] {
    animation: none !important;
  }
}

/* Body-Lock (optional, falls du den Hintergrund komplett sperren willst) */
body.cookie-open { overflow: hidden; }
