/* ═════════════════════════════════════════════════════════════════════
   COOKIE-BANNER + COOKIE-EINSTELLUNGEN – auf allen Seiten geladen
   Eigenständiges, dezent-humorvolles Element im bestehenden Corporate Design.
   Wichtig: exakt gleiche Dark-Mode-Absicherung wie Header/Footer/Formulare
   (explizite background-color + !important + color-scheme: light only),
   damit ein Handy im Dark Mode den Banner nicht abdunkelt/verfärbt.
   ═════════════════════════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  padding: clamp(1rem, 3vw, 1.5rem) var(--gutter) calc(clamp(1rem, 3vw, 1.5rem) + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  /* Erscheint animiert von unten, verschwindet wieder nach unten aus dem Weg – rein visuell,
     ohne Layout-Sprung (position: fixed liegt ausserhalb des Dokumentflusses). Das eigentliche
     Ein-/Ausblenden aus der Barrierefreiheits-/Tab-Reihenfolge übernimmt das [hidden]-Attribut
     (siehe consent.js), die Klasse .cookie-banner--closing steuert nur die Animation kurz davor. */
  transform: translateY(0);
  opacity: 1;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner--closing {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner__panel {
  width: 100%;
  max-width: 40rem;
  padding: clamp(1.25rem, 3.5vw, 1.75rem) clamp(1.25rem, 3.5vw, 1.75rem);
  border-radius: var(--radius-l);
  background: var(--white);
  background-color: #ffffff !important;
  color: var(--ink);
  color-scheme: light only;
  border: 1px solid rgba(33, 43, 91, .12);
  box-shadow: 0 24px 60px -20px rgba(33, 43, 91, .35);
}

.cookie-banner__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(1.125rem, 2.6vw, 1.375rem);
  color: var(--blue-dark);
  margin-bottom: .5rem;
}
.cookie-banner__text {
  color: var(--ink-soft);
  font-size: .9375rem;
  max-width: 34rem;
}

.cookie-banner__actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
/* Beide Buttons bewusst gleich gross, gleich geformt und in derselben Reihe
   (bzw. gleichbreit gestapelt auf sehr schmalen Screens) – keine Möglichkeit
   soll optisch bevorzugt oder benachteiligt wirken. */
.cookie-banner__btn {
  flex: 1 1 auto;
  min-width: 9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .8rem 1.5rem;
  border-radius: var(--radius-s);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.cookie-banner__btn--accept {
  border: 2px solid var(--pink);
  background: var(--pink);
  background-color: #E91E63 !important;
  color: var(--white);
}
.cookie-banner__btn--accept:hover { background: var(--blue-dark); background-color: #212B5B !important; border-color: var(--blue-dark); }

.cookie-banner__btn--decline {
  border: 2px solid var(--blue-dark);
  background: var(--white);
  background-color: #ffffff !important;
  color: var(--blue-dark);
}
.cookie-banner__btn--decline:hover { background: #F2F8FE; background-color: #F2F8FE !important; }

.cookie-banner__more {
  flex: 1 1 100%;
  margin-top: .35rem;
  font-size: .8125rem;
}
.cookie-banner__more a {
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--blue-light);
  text-decoration-thickness: 2px;
  text-underline-offset: .25em;
}

@media (min-width: 560px) {
  .cookie-banner__panel { display: flex; align-items: flex-start; gap: 1.5rem; }
  .cookie-banner__body { flex: 1 1 auto; }
  .cookie-banner__actions { margin-top: 1.25rem; flex-wrap: nowrap; flex-direction: column; min-width: 11rem; }
  .cookie-banner__more { margin-top: .5rem; }
}
@media (min-width: 720px) {
  .cookie-banner__panel { align-items: center; }
  .cookie-banner__actions { flex-direction: row; flex-wrap: wrap; }
  .cookie-banner__btn { min-width: 8rem; }
}

/* Dezenter, linkähnlicher Button im Footer, um die einmal getroffene
   Cookie-Entscheidung jederzeit wieder zu öffnen und zu ändern. Optisch
   nicht von den echten Links (Impressum/Datenschutz) zu unterscheiden. */
.footer-linklike {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.footer-linklike:hover { text-decoration: underline; text-decoration-color: var(--blue-light); text-decoration-thickness: 2px; text-underline-offset: .25em; }

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