/* =========================================================================
   Klaro! Dark-Theme – abgestimmt auf das Design der Konzer-Auto-Teile-Seite.
   Überschreibt die CSS-Variablen aus css/klaro.css.
   ========================================================================= */
.klaro {
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --title-font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-size: 15px;

  --border-radius: 14px;
  --border-style: solid;
  --border-width: 1px;

  /* Flächen / Hintergründe */
  --dark1: #141a27;   /* Modal-/Notice-Hintergrund */
  --dark2: #1c2434;   /* Kartenflächen innerhalb des Modals */
  --dark3: #26304380; /* Trennlinien / dezente Flächen */

  /* Text */
  --light1: #eef2f8;  /* Haupttext / Titel */
  --light2: #9aa6bd;  /* Sekundärtext */
  --light3: #6b7688;  /* gedimmter Text */

  --white1: #ffffff;
  --white2: #eef2f8;
  --white3: #9aa6bd;

  /* Primär-Button (Akzeptieren) – Markenrot */
  --green1: #e0322d;
  --green2: #c62824;
  --green3: #ffffff;

  /* Sekundär (Toggle "an") – Markenblau */
  --blue1: #2b7ee6;
  --blue2: #2b7ee6;

  --button-text-color: #ffffff;
  --box-shadow-color: rgba(0, 0, 0, 0.5);
}

/* Notice-Box: klare Kante, Tiefe, zur Seite passend */
.klaro .cookie-notice:not(.cookie-modal-notice) {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -10px 40px -12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.klaro .cookie-notice .cn-body p,
.klaro .cookie-modal .cm-body p {
  color: var(--light2);
}

.klaro .cookie-notice a,
.klaro .cookie-modal a {
  color: #6facff;
}

/* Titel in Head-Schrift + Großbuchstaben-Anmutung wie die Seite */
.klaro .cookie-modal .cm-header h1,
.klaro .cookie-notice .cn-body h1 {
  font-family: var(--title-font-family);
  letter-spacing: 0.02em;
}

/* Buttons: runde Pill-Form wie die Seiten-Buttons */
.klaro .cm-btn,
.klaro .cn-buttons button {
  border-radius: 999px;
  font-family: var(--title-font-family);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.klaro .cm-btn:hover,
.klaro .cn-buttons button:hover {
  transform: translateY(-2px);
}

.klaro .cm-btn.cm-btn-success,
.klaro .cn-buttons .cm-btn-success {
  box-shadow: 0 10px 30px -12px rgba(224, 50, 45, 0.5);
}

/* "Ablehnen"/dezenter Button als Ghost-Style */
.klaro .cm-btn.cn-decline,
.klaro .cn-buttons .cn-decline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--light1);
}

/* Fokus-Sichtbarkeit (A11y) */
.klaro .cm-btn:focus-visible,
.klaro .cn-buttons button:focus-visible {
  outline: 3px solid #2b7ee6;
  outline-offset: 3px;
}

/* =========================================================================
   Platzhalter für die geblockte Karte (vor Einwilligung)
   ========================================================================= */
.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(43, 126, 230, 0.12), transparent 60%),
    #10151f;
  border-radius: inherit;
}

.map-consent[hidden] {
  display: none;
}

.map-consent .map-consent-ico {
  font-size: 2rem;
  line-height: 1;
}

.map-consent p {
  margin: 0;
  max-width: 34ch;
  color: #9aa6bd;
  font-size: 0.95rem;
}

.map-consent .map-consent-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #e0322d, #c62824);
  box-shadow: 0 10px 30px -12px rgba(224, 50, 45, 0.5);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.map-consent .map-consent-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(224, 50, 45, 0.55);
}
.map-consent .map-consent-btn:focus-visible {
  outline: 3px solid #2b7ee6;
  outline-offset: 3px;
}

/* Footer-Link "Cookie-Einstellungen" nutzt vorhandenen footer-legal-Stil */
.footer-legal .cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal .cookie-settings-link:hover {
  color: #eef2f8;
}
