.consent-open { overflow: hidden; }
.consent-layer { position: fixed; inset: 0; z-index: 5000; font-family: 'Work Sans', sans-serif; }
.consent-layer-banner { display: flex; align-items: flex-end; padding: 20px; pointer-events: none; }
.consent-banner {
  width: min(1180px, 100%); margin: 0 auto; padding: 26px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
  background: #ffffff; color: #07111f; border: 1px solid rgba(7,17,31,.14); border-radius: 16px;
  box-shadow: 0 20px 70px rgba(0,0,0,.28); pointer-events: auto;
}
.consent-copy { max-width: 700px; }
.consent-kicker { display: block; margin-bottom: 8px; color: #1a4e8c; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.consent-banner h2, .consent-settings h2 { margin: 0 0 10px; color: #07111f; font-size: clamp(24px, 3vw, 34px); line-height: 1.08; letter-spacing: -.03em; }
.consent-banner p, .consent-settings p { margin: 0; color: rgba(7,17,31,.68); line-height: 1.6; }
.consent-banner a, .consent-settings a { display: inline-block; margin-top: 10px; color: #1a4e8c; text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.consent-button {
  min-height: 46px; padding: 12px 18px; border: 1px solid #1a4e8c; border-radius: 8px;
  background: transparent; color: #1a4e8c; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .14s ease;
}
.consent-button:hover { background: rgba(26,78,140,.08); }
.consent-button:active { transform: scale(.98); }
.consent-button.consent-accept, .consent-button.consent-save { background: #1a4e8c; color: #ffffff; }
.consent-button.consent-accept:hover, .consent-button.consent-save:hover { background: #0f2744; }
.consent-layer-banner .consent-button { background: transparent; color: #1a4e8c; }
.consent-layer-banner .consent-button:hover { background: rgba(26,78,140,.08); color: #1a4e8c; }
.consent-backdrop { position: absolute; inset: 0; background: rgba(7,17,31,.7); backdrop-filter: blur(5px); }
.consent-layer-settings { display: grid; place-items: center; padding: 20px; }
.consent-settings {
  position: relative; width: min(680px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  padding: 28px; background: #ffffff; color: #07111f; border-radius: 16px; box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.consent-settings-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.consent-close { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid rgba(7,17,31,.16); border-radius: 50%; background: transparent; color: #07111f; font-size: 26px; line-height: 1; cursor: pointer; }
.consent-intro { margin-bottom: 22px !important; }
.consent-option { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid rgba(7,17,31,.12); cursor: pointer; }
.consent-option strong { display: block; margin-bottom: 4px; font-size: 16px; }
.consent-option p { font-size: 14px; }
.consent-option.is-required { cursor: default; }
.consent-option.is-required > span { color: #1a4e8c; font-size: 13px; font-weight: 600; }
.consent-option input { position: absolute; opacity: 0; pointer-events: none; }
.consent-switch { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #c8ced6; transition: background .2s ease; }
.consent-switch::after { content: ''; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #ffffff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s ease; }
.consent-option input:checked + .consent-switch { background: #1a4e8c; }
.consent-option input:checked + .consent-switch::after { transform: translateX(20px); }
.consent-option input:focus-visible + .consent-switch { outline: 2px solid #c4a04a; outline-offset: 3px; }
.consent-note { padding-top: 16px; border-top: 1px solid rgba(7,17,31,.12); font-size: 13px; }
.consent-settings .consent-actions { margin-top: 24px; }
.consent-footer-button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; opacity: .65; }
.consent-footer-button:hover { opacity: 1; }
.consent-button:focus-visible, .consent-close:focus-visible, .consent-footer-button:focus-visible { outline: 2px solid #c4a04a; outline-offset: 3px; }
.consent-banner:focus-visible, .consent-settings:focus-visible { outline: none; }
/* Banner: deutlich kompakter als der Einstellungen-Dialog, damit es nicht
   die Seite dominiert. Kicker/Überschrift/Text sind eigens verkleinert. */
.consent-banner { padding: 16px 20px; gap: 20px; }
.consent-banner .consent-kicker { margin-bottom: 4px; font-size: 10px; }
.consent-banner h2 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.01em; }
.consent-banner p { font-size: 13px; line-height: 1.5; }
.consent-banner a { margin-top: 2px; font-size: 13px; }
.consent-banner .consent-button { min-height: 38px; padding: 8px 14px; font-size: 13px; }
@media (max-width: 760px) {
  .consent-layer-banner { padding: 8px; align-items: flex-end; }
  .consent-banner { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; max-height: calc(100vh - 16px); overflow: auto; }
  .consent-banner .consent-kicker { display: none; }
  .consent-banner h2 { font-size: 15px; }
  .consent-banner p { font-size: 12.5px; }
  .consent-actions { justify-content: stretch; gap: 8px; }
  .consent-banner .consent-button { width: 100%; min-height: 40px; padding: 8px 12px; }
  .consent-settings { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .consent-button, .consent-switch, .consent-switch::after { transition: none; }
}
