/* =====================================================================
   COOKIE-EINWILLIGUNG (Banner + Rechtstexte-Feinschliff)
   Lädt auf allen Seiten. Der Banner blockiert einwilligungspflichtige
   Dienste (Google Analytics), bis aktiv zugestimmt wurde.
   ===================================================================== */

/* ---------- Ergänzungen für die Rechtstexte ---------- */
.prose h3 {
  font-size: 1.06rem;
  font-weight: 650;
  color: var(--ink);
  margin: 1.6rem 0 0.5rem;
}
.prose-lead {
  font-size: 1.05rem !important;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin-bottom: 2rem !important;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-soft);
  border: 1px solid var(--sand-line);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}
.prose .highlight-box {
  background: var(--bg-soft);
  border: 1px solid var(--sand-line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  padding: 1rem 1.2rem;
}
/* Hinweiskästen auch im Dunkelmodus lesbar */
:root[data-theme="dark"] .prose .todo {
  background: rgba(221, 164, 92, 0.12);
  border-color: rgba(221, 164, 92, 0.5);
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .prose .todo {
    background: rgba(221, 164, 92, 0.12);
    border-color: rgba(221, 164, 92, 0.5);
    color: var(--ink);
  }
}

/* Als Text getarnter Button (für „Cookie-Einstellungen"-Links) */
.link-inline {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--terra-text);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.link-inline:hover { color: var(--terra-deep); }
.site-footer .link-inline { color: var(--on-dark-muted); font-weight: 400; text-decoration: none; }
.site-footer .link-inline:hover { color: var(--on-dark); text-decoration: underline; }

/* ---------- Banner ---------- */
.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 130%);
  z-index: 200;
  width: min(660px, calc(100vw - 32px));
  background: var(--paper);
  border: 1px solid var(--card-line);
  border-top: 3px solid var(--gold);
  border-radius: var(--r-md);
  box-shadow: 0 24px 60px -20px rgba(11, 19, 34, 0.45);
  padding: clamp(1.2rem, 3vw, 1.7rem);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), visibility 0.4s;
}
.consent-banner.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}
.consent-banner h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 560;
  color: var(--ink);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}
.consent-banner p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1.1rem;
}
.consent-banner a { color: var(--terra-text); font-weight: 600; }

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
/* Beide Optionen bewusst gleichwertig gestaltet (Vorgabe der Aufsichtsbehörden) */
.consent-actions .btn {
  flex: 1 1 190px;
  justify-content: center;
  font-size: 0.95rem;
  padding: 0.8rem 1.2rem;
}
.btn-consent-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--sand-line);
}
.btn-consent-secondary:hover {
  border-color: var(--gold);
  background: var(--bg-soft);
  transform: translateY(-2px);
}
.consent-note {
  margin: 0.9rem 0 0 !important;
  font-size: 0.8rem !important;
  color: var(--muted);
}

@media (max-width: 520px) {
  .consent-banner { bottom: 10px; padding: 1.1rem; }
  .consent-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner { transition: opacity 0.2s linear, visibility 0.2s; transform: translate(-50%, 0); }
}
