
.consent {
  --cs-blau: var(--accent, #026CDF);
  --cs-blau-dunkel: #0147B1;
  --cs-text: var(--ink, #2b3033);
  --cs-nebentext: #61686c;
  --cs-linie: #dbe3ea;
  --cs-flaeche: #ffffff;
  --cs-schrift: 'Source Sans Pro', 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  box-sizing: border-box;
  background: var(--cs-flaeche);
  border-top: 1px solid var(--cs-linie);
  box-shadow: 0 6px 18px rgba(43, 48, 51, .08);
  color: var(--cs-text);
  font-family: var(--schrift, var(--cs-schrift));
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: left;
  animation: consent-ein 200ms ease-out;
}

.consent[hidden] { display: none; }

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

.consent__innen {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.consent .consent__inhalt { max-width: 72ch; }

.consent .consent__titel {
  font-weight: 700;
  color: var(--cs-text);
}

.consent .consent__text,
.consent .consent__stand {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--cs-text);
}

.consent .consent__stand { color: var(--cs-nebentext); }
.consent .consent__stand[hidden] { display: none; }

.consent .consent__verweis {
  color: var(--cs-blau);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 120ms ease;
}
.consent .consent__verweis:hover { color: var(--cs-blau-dunkel); }

.consent .consent__knoepfe {
  display: flex;
  gap: 0.5rem;
}

.consent .consent__knopf {
  flex: 1 1 0;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--cs-blau);
  color: #ffffff;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(43, 48, 51, .08);
  transition: background-color 120ms ease;
}
.consent .consent__knopf:hover,
.consent .consent__knopf:active { background: var(--cs-blau-dunkel); }

.consent .consent__knopf:focus-visible,
.consent .consent__verweis:focus-visible {
  outline: 3px solid #026CDF;
  outline-offset: 2px;
}

@media (max-width: 40rem) {
  .consent__innen {
    padding: 0.5rem 1rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    gap: 0.5rem;
  }
  .consent .consent__knopf { padding: 0.5rem 0.75rem; font-size: 1rem; }
}

@media (min-width: 56rem) {
  .consent__innen {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
  .consent .consent__knoepfe { flex: 0 0 auto; }
  .consent .consent__knopf { flex: 0 0 auto; min-width: 11rem; }
}

html.consent-offen body { padding-bottom: var(--consent-hoehe, 0px); }

[data-consent-oeffnen] {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
[data-consent-oeffnen][hidden] { display: none; }
[data-consent-oeffnen]:focus-visible {
  outline: 3px solid #026CDF;
  outline-offset: 2px;
}

@keyframes consent-ein {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .consent,
  .consent .consent__knopf,
  .consent .consent__verweis { animation: none; transition: none; }
}
