/* Cookie-Banner flugausgleich.de
   Fixiert am unteren Rand: der Banner steht ausserhalb des Textflusses und
   verschiebt darum kein Layout (kein CLS). Kontraste sind auf mindestens
   4.5:1 geprueft, siehe consent-README.md. */

.fa-consent {
  --fa-consent-bg: #0f1e30;
  --fa-consent-line: #2c4560;
  --fa-consent-fg: #eaf1f8;
  --fa-consent-strong: #ffffff;
  --fa-consent-btn-bg: #f6f9fc;
  --fa-consent-btn-bg-hover: #dce7f2;
  --fa-consent-btn-fg: #0b1826;
  --fa-consent-ring: #ffd166;
  --fa-consent-max: 1160px;

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  box-sizing: border-box;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--fa-consent-bg);
  border-top: 1px solid var(--fa-consent-line);
  box-shadow: 0 -8px 28px rgba(3, 12, 22, .35);
  color: var(--fa-consent-fg);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
}

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

.fa-consent *,
.fa-consent *::before,
.fa-consent *::after {
  box-sizing: inherit;
}

.fa-consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  max-width: var(--fa-consent-max);
  margin: 0 auto;
}

.fa-consent__copy {
  flex: 1 1 420px;
  min-width: 0;
}

.fa-consent__title {
  margin: 0 0 4px;
  color: var(--fa-consent-strong);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.fa-consent__title:focus {
  outline: none;
}

.fa-consent__title:focus-visible {
  outline: 3px solid var(--fa-consent-ring);
  outline-offset: 3px;
}

.fa-consent__text {
  margin: 0;
  max-width: 74ch;
}

.fa-consent__link {
  color: var(--fa-consent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fa-consent__link:hover {
  text-decoration-thickness: 2px;
}

.fa-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

/* Beide Schaltflaechen sind bewusst gleich gestaltet: Ablehnen muss nach
   TTDSG genauso leicht sein wie Zustimmen. Bitte nicht eine davon abschwaechen. */
.fa-consent__btn {
  appearance: none;
  min-height: 44px;
  min-width: 168px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--fa-consent-btn-bg);
  color: var(--fa-consent-btn-fg);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.fa-consent__btn:hover {
  background: var(--fa-consent-btn-bg-hover);
}

.fa-consent__btn:focus {
  outline: none;
}

.fa-consent__btn:focus-visible {
  outline: 3px solid var(--fa-consent-ring);
  outline-offset: 3px;
}

.fa-consent__btn:active {
  transform: translateY(1px);
}

@media (max-width: 640px) {
  .fa-consent {
    font-size: 14px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    max-height: 80vh;
    overflow-y: auto;
  }

  .fa-consent__inner {
    gap: 12px;
  }

  .fa-consent__actions {
    width: 100%;
  }

  .fa-consent__btn {
    flex: 1 1 100%;
  }
}

/* Bewusst ohne Einblend-Animation: WebKit drosselt Animationen in Hintergrund-
   Tabs, der Banner blieb dabei auf opacity 0 stehen und war nicht bedienbar.
   Ein Einwilligungsbanner muss immer sofort sichtbar sein. */
