/* Privatsphäre-Dialog — eigene Datei, damit style.css bei paralleler Arbeit
   an der Website unberührt bleibt.

   Der Dialog SPERRT die Seite: Hintergrund unscharf, Seite nicht scrollbar,
   und es gibt keinen Weg daran vorbei außer einer der beiden Entscheidungen.
   Ablehnen („Nur notwendige") ist dabei bewusst genauso leicht erreichbar wie
   Zustimmen — eine Ablehnung darf nicht schwerer sein als eine Zustimmung. */

.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17,17,16,0.55);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: consent-auf 0.35s ease both;
}
.consent-overlay[hidden] { display: none; }
@keyframes consent-auf { from { opacity: 0; } to { opacity: 1; } }

/* Solange der Dialog offen ist, darf die Seite dahinter nicht scrollen. */
body.consent-offen { overflow: hidden; }

.consent-box {
  background: #fff;
  color: var(--ink, #111110);
  border-radius: 22px;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(17,17,16,0.28);
  animation: consent-hoch 0.4s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes consent-hoch {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.consent-kopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 38px 0;
}
.consent-kopf h2 {
  font-family: var(--font-display, sans-serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink, #111110);
}
/* Das Kreuz ist gleichbedeutend mit „Nur notwendige akzeptieren" — es
   verwirft also nichts, sondern trifft die datensparsame Entscheidung. */
.consent-schliessen {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line, #ddd9d1);
  background: #fff;
  color: var(--ink, #111110);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.consent-schliessen:hover { background: var(--paper-soft, #ece8e1); }

.consent-text { padding: 18px 38px 0; }
.consent-text p {
  font-size: 1rem;
  line-height: 1.65;
  color: #3a3a37;
  margin: 0 0 14px;
}

.consent-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 38px 0; }
.consent-chip {
  border: 1px solid var(--line, #ddd9d1);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.88rem;
  color: #56564f;
}

.consent-links { display: flex; gap: 22px; padding: 22px 38px 26px; }
.consent-links a {
  font-size: 0.95rem;
  color: var(--ink, #111110);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Einstellungen — erst nach Klick auf „Einstellungen" sichtbar. */
.consent-optionen { padding: 0 38px 8px; }
.consent-optionen[hidden] { display: none; }
.consent-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line, #ddd9d1);
}
.consent-option h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink, #111110);
}
.consent-option p { font-size: 0.9rem; color: #56564f; margin: 0; line-height: 1.55; }

/* Schalter */
.consent-schalter {
  flex: 0 0 auto;
  position: relative;
  width: 46px;
  height: 26px;
  margin-top: 2px;
}
.consent-schalter input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.consent-bahn {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d5d2cb;
  transition: background 0.2s ease;
  pointer-events: none;
}
.consent-bahn::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.consent-schalter input:checked + .consent-bahn { background: var(--accent, #a56f34); }
.consent-schalter input:checked + .consent-bahn::after { transform: translateX(20px); }
.consent-schalter input:disabled + .consent-bahn { background: var(--accent, #a56f34); opacity: 0.45; }
.consent-schalter input:focus-visible + .consent-bahn { outline: 2px solid var(--accent, #a56f34); outline-offset: 3px; }

.consent-fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  padding: 22px 38px 30px;
  border-top: 1px solid var(--line, #ddd9d1);
  background: #fbfaf7;
  border-radius: 0 0 22px 22px;
}
.consent-knopf {
  border-radius: 999px;
  padding: 15px 26px;
  font-family: var(--font-display, sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.consent-knopf.ist-hell { background: #fff; color: var(--ink, #111110); border-color: var(--line, #ddd9d1); }
.consent-knopf.ist-hell:hover { background: var(--paper-soft, #ece8e1); }
.consent-knopf.ist-dunkel { background: var(--ink, #111110); color: #fff; }
.consent-knopf.ist-dunkel:hover { background: #33332f; }
.consent-knopf.ist-akzent { background: var(--accent, #a56f34); color: #fff; }
.consent-knopf.ist-akzent:hover { background: #8d5d2a; }

/* Fußzeilen-Link „Privatsphäre-Einstellungen" — muss dauerhaft erreichbar
   sein, sonst lässt sich eine erteilte Entscheidung nie widerrufen. */
.consent-neu-oeffnen {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .consent-overlay { padding: 14px; align-items: flex-end; }
  .consent-box { border-radius: 18px; }
  .consent-kopf { padding: 24px 22px 0; }
  .consent-kopf h2 { font-size: 1.35rem; }
  .consent-text, .consent-chips, .consent-links, .consent-optionen { padding-left: 22px; padding-right: 22px; }
  .consent-fuss { padding: 18px 22px 22px; border-radius: 0 0 18px 18px; }
  /* Auf dem Telefon untereinander und volle Breite — nebeneinander würden
     die drei langen Beschriftungen sonst umbrechen und die Reihe zerreißen. */
  .consent-knopf { width: 100%; }
}
