/**
 * klaro-custom.css — Design-Anpassung von Klaro an die Krypto-Chris-Marke (Grasgrün #7ed957, Azurblau #253238).
 * Lädt NACH klaro.css. Nutzt Klaros eigene CSS-Variablen wo möglich (robuster gegen
 * Updates der Bibliothek), ergänzt gezielt harte Overrides für Layout, gleichwertige
 * Buttons und die verbindliche Bottom-Positionierung.
 *
 * CI-REGEL: auf Grün (#7ed957) steht IMMER dunkler Text (#253238), niemals Weiß.
 */

/* ============================================================
   FARB-/FONT-VARIABLEN — auf die Krypto-Chris-Marke (Grasgrün #7ed957, Azurblau #253238) gemappt
============================================================ */
.klaro {
  --dark1: #253238;                     /* Haupt-Hintergrund (Balken + Modal) */
  --dark2: #34464e;                     /* Ränder, Footer-Trenner, Modal-Header */
  --dark3: rgba(247, 247, 244, 0.55);   /* gedämpfter Text */
  --light1: #f7f7f4;                    /* Haupttext auf dunklem Grund */
  --light2: rgba(126, 217, 87, 0.2);    /* dezente Trennlinien (Grün, gedimmt) */
  --light3: rgba(247, 247, 244, 0.5);
  --green1: #7ed957;                    /* Akzent / aktive Schalter (Chris-Grün) */
  --green2: #7ed957;
  --green3: #6cc646;                    /* Fokus-Ring */
  --white2: rgba(247, 247, 244, 0.15);
  --white3: rgba(247, 247, 244, 0.3);
  --button-text-color: #253238;         /* dunkler Text auf grünem Button */
  --border-radius: 14px;
  --border-width: 1px;
  --border-style: solid;
  --font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --title-font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-size: 14px;
}

/* ============================================================
   BANNER — dezenter Balken über die volle Breite, IMMER UNTEN
   Klaros Standardposition (teils oben bzw. als kleine Ecken-Box) wird hier auf ALLEN
   Endgeräten — Mobile, Tablet, Desktop — bewusst und ausdrücklich auf "unten am
   Bildschirmrand" überschrieben. Nicht die Voreinstellung übernehmen (Vorgabe).
============================================================ */
.klaro .cookie-notice:not(.cookie-modal-notice) {
  top: auto !important;
  bottom: 0 !important;
  border-top: 1px solid rgba(126, 217, 87, 0.3);
}
/* Mobile & Tablet */
@media (max-width: 1023px) {
  .klaro .cookie-notice:not(.cookie-modal-notice) {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border-style: none;
    border-top: 1px solid rgba(126, 217, 87, 0.3);
    /* Safe-Area auf iPhones mit Home-Indicator — Buttons bleiben antippbar */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    max-height: 85vh;
    overflow-y: auto;
  }
}
/* Desktop */
@media (min-width: 1024px) {
  .klaro .cookie-notice:not(.cookie-modal-notice) {
    top: auto !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: 0 -4px 20px rgba(37, 50, 56, 0.35) !important;
  }
}
.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
}
.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body p {
  font-size: 14px;
  line-height: 1.55;
}

/* ============================================================
   BUTTONS — "Akzeptieren", "Ablehnen" und "Einstellungen" gleichwertig
   (gleiche Größe, gleiches Gewicht, gleiche Ebene — Pflicht)
============================================================ */
/* !important nötig: Klaro injiziert zur Laufzeit zusätzlich sein eigenes Default-CSS
   inline (nach unseren <link>-Stylesheets) — bei gleicher Selektor-Spezifität würde
   das sonst je nach Ladereihenfolge unsere Farben/Ränder wieder überschreiben. */
.klaro .cm-btn {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px 22px !important;
  border-radius: 999px !important;
  min-height: 48px !important;
  line-height: 1.2 !important;
  transition: transform 0.15s ease, background 0.15s ease;
}
.klaro .cm-btn:hover { transform: translateY(-1px); }

.klaro .cm-btn.cm-btn-success,
.klaro .cm-btn.cm-btn-danger,
.klaro .cm-btn.cm-btn-info {
  border: 1.5px solid #7ed957 !important;
}
/* "Akzeptieren" — gelb mit DUNKLEM Text (nie Weiß auf Grün) */
.klaro .cm-btn.cm-btn-success {
  background-color: #7ed957 !important;
  color: #253238 !important;
}
.klaro .cm-btn.cm-btn-success:hover { background-color: #6cc646 !important; }

/* "Ablehnen" — gleiche Größe/Gewicht, nur andere Flächenwirkung */
.klaro .cm-btn.cm-btn-danger {
  background-color: transparent !important;
  color: #7ed957 !important;
}
.klaro .cm-btn.cm-btn-danger:hover { background-color: rgba(126, 217, 87, 0.12) !important; }

.klaro .cm-btn.cm-btn-info {
  background-color: transparent !important;
  color: #7ed957 !important;
}
.klaro .cm-btn.cm-btn-info:hover { background-color: rgba(126, 217, 87, 0.12) !important; }

.klaro .cm-link {
  color: rgba(247, 247, 244, 0.7) !important;
  text-decoration: underline;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* "Einstellungen" (cn-learn-more) ist von Haus aus nur ein Text-Link — hier bewusst zu
   einem dritten, gleichwertigen Button aufgewertet (Pflicht: Akzeptieren/Ablehnen/
   Einstellungen gleich groß, gleiches Gewicht, gleiche Ebene, keine Text-Link-Optik). */
.klaro .cn-learn-more {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px 22px !important;
  border-radius: 999px !important;
  min-height: 48px !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  border: 1.5px solid rgba(247, 247, 244, 0.35) !important;
  color: #f7f7f4 !important;
  transition: transform 0.15s ease, border-color 0.15s ease;
  flex-grow: 0 !important;
}
.klaro .cn-learn-more:hover {
  transform: translateY(-1px);
  border-color: #7ed957 !important;
  color: #7ed957 !important;
}

/* Die drei Buttons (Akzeptieren / Ablehnen / Einstellungen) gleichrangig nebeneinander.
   Auf schmalen Screens umbrechen sie und füllen die Breite — Touch-Ziele bleiben groß. */
.klaro .cn-buttons,
.klaro .cn-ok {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start !important;
  align-items: center !important;
}
.klaro .cn-ok > * { margin-top: 0 !important; }
@media (max-width: 560px) {
  .klaro .cn-buttons { width: 100%; }
  .klaro .cn-buttons .cm-btn,
  .klaro .cn-learn-more { flex: 1 1 100% !important; }
}

/* ============================================================
   EINSTELLUNGEN-MODAL — dunkles Panel im Seiten-CI, abgerundet
============================================================ */
.klaro .cookie-modal .cm-modal.cm-klaro {
  border: 1px solid rgba(126, 217, 87, 0.28) !important;
  border-radius: 20px !important;
  background-color: #253238 !important;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}
.klaro .cookie-modal .cm-modal .cm-header h1,
.klaro .cookie-modal .cm-modal .cm-header h2 {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 700 !important;
}
@media (min-width: 660px) {
  .klaro .cookie-modal .cm-modal.cm-klaro { border-radius: 20px !important; }
}
.klaro .cookie-modal .cm-modal .cm-header,
.klaro .cookie-modal .cm-modal .cm-footer {
  border-color: rgba(126, 217, 87, 0.22) !important;
}
.klaro .cookie-modal .cm-btn.cm-btn-success-var {
  background-color: #7ed957 !important;
  color: #253238 !important;
}
/* Aktiver Umschalter im Modal — gelb, dunkler Punkt */
.klaro .cookie-modal .cm-list-input:checked + .cm-list-label .slider {
  background-color: #7ed957 !important;
}
