/* ==========================================================================
   consent.css – Cookie-Consent-Banner
   SPEC_Cookie_Consent_v1.1 §7.3
   Konsistent mit style.css (Arial, #333 / #e8e8e8 / #f4f4f4).
   Fixierter Bar → kein Layout-Shift (S-4). Kein Inline-Style (TA-2).
   ========================================================================== */

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #ffffff;
  color: #222;
  border-top: 3px solid #333;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
}

.consent[hidden] {
  display: none;
}

.consent__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.consent__title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.consent__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.consent__text a,
.consent__cat-desc a {
  color: #1a4b8b;
  text-decoration: underline;
}

.consent__dnt {
  margin: 0 0 1rem;
  padding: 0.6rem 0.8rem;
  background: #eef2f7;
  border-left: 4px solid #1a4b8b;
  font-size: 0.9rem;
}

/* ---- Aktionen -------------------------------------------------------- */

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.consent__btn {
  font-family: inherit;
  font-size: 1rem;
  min-height: 44px;                 /* Touch-Target (S-2) */
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid #333;
}

/* M-3: "Akzeptieren" und "Ablehnen" visuell identisch. */
.consent__btn--primary {
  background: #333;
  color: #fff;
}

.consent__btn--primary:hover {
  background: #111;
  border-color: #111;
}

.consent__btn--link {
  background: transparent;
  color: #333;
  border-color: transparent;
  text-decoration: underline;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.consent__btn--link:hover {
  color: #000;
}

.consent__btn:focus-visible {
  outline: 3px solid #1a4b8b;
  outline-offset: 2px;
}

/* ---- Einstellungen (Ebene 2) ---------------------------------------- */

.consent__level--2 {
  margin-top: 1rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

.consent__level--2[hidden] {
  display: none;
}

.consent__cats {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.consent__cat {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.consent__cat-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: bold;
  min-height: 44px;
}

.consent__cat-label input {
  width: 1.15rem;
  height: 1.15rem;
}

.consent__cat-name {
  font-size: 1rem;
}

.consent__cat-desc {
  margin: 0.35rem 0 0 1.75rem;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}

/* ---- Responsiv ------------------------------------------------------- */

@media (max-width: 600px) {
  .consent__inner {
    padding: 1rem;
  }
  .consent__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .consent__btn {
    width: 100%;
  }
}

/* ---- Reduced Motion / Kontrast-Fallback ----------------------------- */

@media (prefers-reduced-motion: reduce) {
  .consent {
    transition: none;
  }
}
