/* ===== COOKIE-BANNER (CookieConsent v3) im techmacherOS-Look =====
   Kleine Karte unten links über der Taskleiste, wie ein kleines Systemfenster: Acryl-Hintergrund,
   feine Linie, Website-Schriften, Grün als Akzent. Beide Buttons gleichwertig. */
#cc-main {
  --cc-font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cc-bg: rgba(16, 12, 48, 0.96);
  --cc-primary-color: #FFFFFF;
  --cc-secondary-color: #C7C4E0;
  --cc-btn-primary-bg: #00FF6C;
  --cc-btn-primary-color: #062012;
  --cc-btn-primary-border-color: #00FF6C;
  --cc-btn-primary-hover-bg: #45FF93;
  --cc-btn-primary-hover-color: #062012;
  --cc-btn-primary-hover-border-color: #45FF93;
  --cc-btn-secondary-bg: rgba(255, 255, 255, 0.08);
  --cc-btn-secondary-color: #FFFFFF;
  --cc-btn-secondary-border-color: rgba(255, 255, 255, 0.16);
  --cc-btn-secondary-hover-bg: rgba(255, 255, 255, 0.15);
  --cc-btn-secondary-hover-color: #FFFFFF;
  --cc-btn-secondary-hover-border-color: rgba(255, 255, 255, 0.28);
  --cc-btn-border-radius: 10px;
  --cc-modal-border-radius: 18px;
  --cc-separator-border-color: rgba(255, 255, 255, 0.09);
  --cc-toggle-on-bg: #00FF6C;
  --cc-toggle-off-bg: #2B2468;
  --cc-toggle-readonly-bg: #1F1950;
  --cc-toggle-on-knob-bg: #062012;
  --cc-toggle-off-knob-bg: #C7C4E0;
  --cc-toggle-readonly-knob-bg: #8B87AE;
  --cc-link-color: #45FF93;
  --cc-footer-bg: rgba(255, 255, 255, 0.03);
  --cc-footer-color: #8B87AE;
  --cc-footer-border-color: rgba(255, 255, 255, 0.09);
  --cc-overlay-bg: rgba(11, 8, 38, 0.55);
  --cc-pm-toggle-border-radius: 999px;
  /* Kategorie-Bloecke in den Einstellungen: dunkel statt hellgrau, sonst ist der weisse Titel unlesbar */
  --cc-cookie-category-block-bg: rgba(255, 255, 255, 0.06);
  --cc-cookie-category-block-border: rgba(255, 255, 255, 0.10);
  --cc-cookie-category-block-hover-bg: rgba(255, 255, 255, 0.10);
  --cc-cookie-category-block-hover-border: rgba(255, 255, 255, 0.16);
  --cc-cookie-category-expanded-block-bg: rgba(255, 255, 255, 0.04);
  --cc-cookie-category-expanded-block-hover-bg: rgba(255, 255, 255, 0.08);
  --cc-modal-margin: 20px;
  color-scheme: dark;
}

/* Ebene 1: kompakte Karte, sitzt über der Taskleiste (56 px, am Handy 68 px) */
#cc-main .cm--box {
  max-width: 380px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 255, 108, 0.12);
  -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4);
}
#cc-main .cm--bottom { margin-bottom: 56px; }
#cc-main .cm__body { padding: 14px 16px 12px; }
#cc-main .cm__texts { padding: 0; }
/* Titel wie eine Fensterzeile: grüner Punkt davor, Display-Schrift */
#cc-main .cm__title {
  font-family: 'Space Grotesk', var(--cc-font-family); font-size: 16px; line-height: 1.2; letter-spacing: -0.01em;
  padding-left: 0; min-height: 26px; display: flex; align-items: center; gap: 9px;
}
#cc-main .cm__title::before {
  content: ""; width: 9px; height: 9px; border-radius: 999px; flex: none;
  background: #00FF6C; box-shadow: 0 0 10px rgba(0, 255, 108, 0.6);
}
#cc-main .cm__desc { font-size: 13.5px; line-height: 1.45; color: #C7C4E0; padding: 6px 0 0; }
#cc-main .cm__footer, #cc-main .cm__links { justify-content: flex-start; text-align: left; }
#cc-main .cm__links { padding-left: 0 !important; padding-right: 0 !important; }
#cc-main .cm__link-group { margin: 0 !important; justify-content: flex-start !important; }
/* Akzeptieren und Nur-notwendige nebeneinander, gleich groß; „Einstellungen“ als Textlink darunter */
#cc-main .cm__btns { padding: 10px 0 0; gap: 6px; border-top: 0; }
#cc-main .cm__btn-group { display: flex; flex-direction: row; gap: 8px; }
#cc-main .cm__btn, #cc-main .cm__btn:first-child { flex: 1 1 0; height: 40px; min-height: 40px; padding: 0 10px; font-size: 14px; font-weight: 700; line-height: 1.1; }
#cc-main .cm__btn[data-role="all"] { box-shadow: 0 6px 22px -6px rgba(0, 255, 108, 0.55); }
#cc-main .cm__btn[data-role="show"] {
  flex: none !important; height: auto !important; min-height: 0; padding: 4px 0 0; align-self: flex-start;
  background: none; border: 0; box-shadow: none; color: #45FF93; font-size: 13px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
#cc-main .cm__btn[data-role="show"]:hover { background: none; color: #FFFFFF; }
#cc-main .cm__btn + .cm__btn { margin: 0 !important; }
#cc-main .cm__btn-group + .cm__btn { margin: 6px 0 0 !important; }
#cc-main .cm__footer { padding: 7px 16px 8px; font-size: 12.5px; }
#cc-main .cm__footer a { font-weight: 600; color: #C7C4E0; }
#cc-main .cm__footer a:hover { color: #FFFFFF; }

/* Ebene 2: Einstellungen */
#cc-main .pm { max-width: 520px; border: 1px solid rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); }
#cc-main .pm__title { font-family: 'Space Grotesk', var(--cc-font-family); font-size: 18px; letter-spacing: -0.01em; }
#cc-main .pm__section-title { font-size: 14.5px; }
#cc-main .pm__section-desc { font-size: 13.5px; line-height: 1.5; color: #C7C4E0; }
#cc-main .pm__btn { min-height: 42px; font-weight: 700; }
#cc-main .pm__section--toggle .pm__section-title { color: #FFFFFF; }

@media (max-width: 860px) {
  #cc-main .cm--bottom { margin-bottom: 68px; }
}
@media (max-width: 640px) {
  #cc-main { --cc-modal-margin: 8px; }
  #cc-main .cm--box { max-width: none; }
  /* auch am Handy beide Buttons nebeneinander; die Bibliothek stapelt sie per !important, daher ebenfalls !important */
  #cc-main .cm { width: calc(100vw - 16px) !important; max-width: 380px !important; }
  #cc-main .cm__btns { border-top: 0 !important; padding: 10px 16px 0 !important; }
  #cc-main .cm__btn-group { flex-direction: row !important; gap: 8px; }
  #cc-main .cm__btn + .cm__btn { margin: 0 !important; }
  #cc-main .cm__btn-group + .cm__btn { margin: 6px 0 0 !important; }
  #cc-main .cm__btn, #cc-main .cm__btn:first-child { flex: 1 1 0 !important; width: auto; }
  #cc-main .cm__title, #cc-main .cm__desc { padding-left: 16px !important; padding-right: 16px !important; }
  #cc-main .cm__btn[data-role="show"] { width: 100% !important; text-align: left !important; justify-content: flex-start !important; }
  #cc-main .cm__footer { justify-content: flex-start !important; text-align: left !important; padding-left: 16px !important; }
  #cc-main .cm__links { padding-left: 0 !important; padding-right: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  #cc-main .cm, #cc-main .pm { transition-duration: 1ms !important; }
}
