/* Einwilligungsbanner, Verhalten wie auf paketanalyse.de (LinQ-IT), Farben und Schrift im NETRIX-Stil.
   Bewusst immer hell. */
.consent-dialog { --c-bg: #ffffff; --c-ink: #041933; --c-muted: #4A5468; --c-line: #E2E7EB; --c-paper: #F4F7F9; --c-brand: #EA8F2B; --c-brand-dark: #D27C1C; --c-link: #1D4D6A; --c-ok: #2E8B57;
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1001;
  width: min(34rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; color-scheme: light; overscroll-behavior: contain;
  background: var(--c-bg); color: var(--c-ink); border-radius: 10px; box-shadow: 0 12px 40px rgba(4, 25, 51, .32);
  padding: 1.1rem 1.4rem 1rem; font: 400 .95rem/1.5 "PT Sans", ui-sans-serif, system-ui, sans-serif; text-align: left; }
.consent-dialog[hidden] { display: none !important; }
/* Halbtransparenter Schleier über der Seite, solange der Banner offen ist */
.consent-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(4, 25, 51, .55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.consent-backdrop[hidden] { display: none !important; }
html.consent-open, html.consent-open body { overflow: hidden; }
.consent__head { display: flex; align-items: center; justify-content: center; position: relative; padding-bottom: .8rem; border-bottom: 1px solid var(--c-line); margin-bottom: .9rem; }
.consent__title { margin: 0; font: 700 1.05rem/1.3 "PT Sans", ui-sans-serif, system-ui, sans-serif; text-transform: none; letter-spacing: 0; color: var(--c-ink); }
.consent__close { position: absolute; right: -.4rem; top: -.35rem; width: 2rem; height: 2rem; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--c-ink); border-radius: 4px; }
.consent__close:hover { background: var(--c-paper); }
.consent__text { margin: 0 0 1rem; font-size: .88rem; color: var(--c-ink); }
.consent__cats { display: grid; gap: .5rem; margin-bottom: 1rem; }
.consent__cats[hidden] { display: none; }
.consent__cat { background: var(--c-paper); border-radius: 6px; }
.consent__cat-head { display: flex; align-items: center; gap: .75rem; padding: .65rem .9rem; cursor: pointer; list-style: none; font-weight: 700; }
.consent__cat-head::-webkit-details-marker { display: none; }
.consent__cat-head::after { content: "▾"; margin-left: .25rem; color: var(--c-muted); transition: transform .15s; }
.consent__cat[open] .consent__cat-head::after { transform: rotate(180deg); }
.consent__cat-title { margin-right: auto; }
.consent__always { font-weight: 400; font-size: .85rem; color: var(--c-ok); }
.consent__cat-text { margin: 0; padding: 0 .9rem .8rem; font-size: .85rem; color: var(--c-muted); }
.consent__switch { position: relative; display: inline-block; width: 2.4rem; height: 1.35rem; flex: none; }
.consent__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.consent__slider { position: absolute; inset: 0; background: #b9bec4; border-radius: 99px; transition: background .15s; }
.consent__slider::before { content: ""; position: absolute; left: .15rem; top: .15rem; width: 1.05rem; height: 1.05rem; background: #ffffff; border-radius: 50%; transition: transform .15s; }
.consent__switch input:checked + .consent__slider { background: var(--c-brand); }
.consent__switch input:checked + .consent__slider::before { transform: translateX(1.05rem); }
.consent__switch input:focus-visible + .consent__slider { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.consent__buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.consent__btn { min-height: 2.9rem; padding: .55rem .6rem; border-radius: 6px; border: 1px solid transparent; font: 700 .92rem/1.2 "PT Sans", ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.consent__btn[hidden] { display: none; }
.consent__btn--accept { background: var(--c-brand); color: var(--c-ink); }
.consent__btn--accept:hover { background: var(--c-brand-dark); }
.consent__btn--deny { background: #CDD3D9; color: var(--c-ink); }
.consent__btn--deny:hover { background: #BCC3CA; }
.consent__btn--view { background: #ffffff; color: var(--c-ink); border-color: var(--c-line); }
.consent__btn--view:hover { background: var(--c-paper); }
.consent__btn:focus-visible, .consent__close:focus-visible, .consent__links a:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.consent__links { display: flex; justify-content: center; gap: 1rem; margin: .8rem 0 0; font-size: .85rem; }
.consent__links a { color: var(--c-link); }
/* „Einwilligung verwalten“ im Footer sieht aus wie die übrigen Footer-Links */
.footer-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: none; cursor: pointer; }
.footer-link:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .consent-dialog { width: calc(100vw - 1.5rem); padding: 1rem; }
  .consent__buttons { grid-template-columns: 1fr; }
}
