/* Consent-Panel im Marken-Nachtlook. Läuft auch auf den Karten-Seiten, die
   site.css NICHT laden — darum bewusst feste Farbwerte statt var(--…)-Tokens
   (Lektion AGENTS.md §6). Kein backdrop-filter: die Chromium-Flacker-Klasse
   vom 13.07.2026 (sticky + backdrop-filter) bleibt gebannt. Beide Wahl-Buttons
   sind absichtlich exakt gleich gestaltet (gleichwertige Einwilligung). */

.site-consent {
  box-sizing: border-box;
  color: #eef4ff;
  font-family: "DM Sans", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
}

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

.site-consent {
  position: fixed;
  z-index: 10000;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  width: min(30rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(53 212 232 / 32%);
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 15% 0%, rgb(0 178 194 / 14%), transparent 55%),
    linear-gradient(180deg, #0d1730 0%, #0a101f 100%);
  box-shadow:
    0 24px 70px rgb(2 6 18 / 65%),
    0 2px 0 rgb(255 255 255 / 4%) inset;
}

/* Cyan→Pink-Zierfaden als Markensignatur am oberen Rand */
.site-consent::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #00b2c2 0%, #35d4e8 45%, #ff2e88 100%);
}

.site-consent__content {
  min-height: 0;
  padding: 1.6rem 1.7rem 0.7rem;
  overflow: auto;
  overscroll-behavior: contain;
}

.site-consent__brand {
  display: block;
  width: 26px;
  height: 40px;
  margin: 0 auto 0.7rem;
}

.site-consent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.site-consent__title {
  margin: 0 0 0.6rem;
  color: #ffffff;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: center;
}

/* Kleine Themen-Zeile über dem Titel, rein dekorativ aus CSS */
.site-consent__title::before {
  content: "Datenschutz";
  display: block;
  margin-bottom: 0.55rem;
  color: #35d4e8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.site-consent__text {
  margin: 0 0 0.85rem;
  color: #c7d3e8;
  font-size: 0.9rem;
  font-weight: 400;
}

.site-consent__link {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #7fe3f2;
  font-size: 0.88rem;
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.2em;
}

.site-consent__link:hover {
  color: #b5f0f9;
}

.site-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.8rem 1.7rem 1.5rem;
  border-top: 1px solid rgb(127 227 242 / 16%);
  background: #0a101f;
  box-shadow: 0 -12px 24px rgb(2 6 18 / 28%);
}

/* Beide Auswahl-Buttons: identische Gestalt, bewusst kein Hervorheben einer Option */
.site-consent__choice {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgb(53 212 232 / 55%);
  border-radius: 999px;
  color: #f3f9ff;
  background: linear-gradient(180deg, rgb(23 51 78 / 85%), rgb(13 30 50 / 85%));
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: normal;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.site-consent__choice:hover {
  border-color: #8ee9ff;
  box-shadow: 0 0 0 1px rgb(142 233 255 / 35%), 0 8px 24px rgb(0 178 194 / 22%);
  transform: translateY(-1px);
}

.site-consent__choice:active {
  transform: translateY(0);
}

.site-consent__status {
  margin: -0.15rem 0 0.65rem;
  color: #b8c7dc;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
}

.site-consent__close {
  position: absolute;
  z-index: 2;
  top: 0.35rem;
  right: 0.35rem;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  color: #7fe3f2;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
}

.site-consent__close[hidden] {
  display: none;
}

.site-consent__close:hover {
  color: #b5f0f9;
}

/* Schwebe-Knopf entfernt (30.08.2026, Daniels Auftrag): Wiederoeffnung laeuft
   ueber die Footer-Links a[data-consent-settings], gestylt von den Footern. */
.site-consent__choice:focus-visible,
.site-consent__close:focus-visible,
.site-consent__link:focus-visible,
.site-consent__title:focus-visible {
  outline: 3px solid #8ee9ff;
  outline-offset: 3px;
}

@media (max-width: 36rem) {
  .site-consent {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: max(0.75rem, env(safe-area-inset-left));
    width: min(30rem, calc(100% - 1.5rem));
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .site-consent__content {
    padding: 1.2rem 1.05rem 0.6rem;
  }

  .site-consent__actions {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.7rem 1.05rem 1rem;
  }

}

@media (max-height: 32rem) {
  .site-consent__brand {
    display: none;
  }

  .site-consent__title::before {
    margin-bottom: 0.25rem;
  }

  .site-consent__text {
    font-size: 0.84rem;
    line-height: 1.48;
  }
}

@media (max-width: 20rem) and (max-height: 25rem) {
  .site-consent {
    right: max(0.35rem, env(safe-area-inset-right));
    bottom: max(0.35rem, env(safe-area-inset-bottom));
    left: max(0.35rem, env(safe-area-inset-left));
    width: calc(100% - 0.7rem);
    max-height: calc(100vh - 0.7rem);
    max-height: calc(100dvh - 0.7rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 12px;
  }

  .site-consent__content {
    padding: 0.7rem 0.75rem 0.4rem;
  }

  .site-consent__title {
    margin-bottom: 0.3rem;
    font-size: 1rem;
  }

  .site-consent__title::before {
    display: none;
  }

  .site-consent__status {
    margin-bottom: 0.35rem;
  }

  .site-consent__actions {
    gap: 0.4rem;
    padding: 0.45rem 0.75rem 0.65rem;
  }
}

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

  .site-consent__choice:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .site-consent,
  .site-consent__choice,
  .site-consent__close {
    border: 1px solid CanvasText;
  }

  .site-consent::before {
    background: CanvasText;
  }
}
