/* AMATH Consent 1.2.0 – eigene, gekapselte Gestaltung passend zu Stöckl. */
.amath-consent {
    --consent-ink: #f4efe9;
    --consent-muted: #d0c8bf;
    --consent-bg: #20211f;
    --consent-panel: #2a2b28;
    --consent-accent: #c8a596;
    --consent-border: rgba(200, 165, 150, .32);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--consent-ink);
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
}
.amath-consent *, .amath-consent *::before, .amath-consent *::after { box-sizing: border-box; }
.amath-consent [hidden] { display: none !important; }
.amath-consent__banner {
    position: fixed;
    z-index: 10050;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 48px));
    max-height: calc(100dvh - 48px);
    overflow: auto;
    overscroll-behavior: contain;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 260px;
    align-items: start;
    gap: 22px;
    padding: 28px 30px;
    background: linear-gradient(130deg, #292a27 0%, #1f201e 75%);
    border: 1px solid var(--consent-border);
    border-top: 2px solid var(--consent-accent);
    border-radius: 18px;
    box-shadow: 0 18px 70px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .04) inset;
    animation: amath-consent-enter .32s ease-out both;
}
.amath-consent__mark {
    width: 46px;
    height: 46px;
    border: 1px solid var(--consent-border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--consent-accent);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 25px;
    font-style: italic;
    margin-top: 5px;
}
.amath-consent .amath-consent__eyebrow {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--consent-accent);
    margin: 0 0 9px;
    font-size: 10px;
    line-height: 1.6;
    font-weight: 600;
    letter-spacing: .17em;
    text-transform: uppercase;
}
.amath-consent .amath-consent__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(23px, 2.4vw, 30px);
    line-height: 1.18;
    font-weight: 400;
    color: var(--consent-ink);
    letter-spacing: -.025em;
    margin: 0 0 13px;
    text-wrap: balance;
}
.amath-consent .amath-consent__description {
    color: var(--consent-muted);
    font-size: 13px;
    line-height: 1.65;
    margin: 0;
    max-width: 65ch;
}
.amath-consent .amath-consent__hint {
    font-size: 11px;
    line-height: 1.6;
    color: var(--consent-muted);
    margin: 12px 0 0;
}
.amath-consent__side { align-self: center; min-width: 0; }
.amath-consent__actions { display: grid; gap: 9px; }
.amath-consent .amath-consent__button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid var(--consent-accent);
    border-radius: 8px;
    background: var(--consent-accent);
    color: #191a18;
    font: 600 12px/1.4 Arial, Helvetica, sans-serif;
    letter-spacing: .02em;
    text-transform: none;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
    box-shadow: none;
    width: 100%;
    white-space: normal;
}
.amath-consent .amath-consent__button:hover { background: #dfbdad; border-color: #dfbdad; }
.amath-consent .amath-consent__button--outline { color: var(--consent-ink); background: transparent; border-color: #74746b; }
.amath-consent .amath-consent__button--outline:hover { background: #363732; border-color: var(--consent-accent); }
.amath-consent__legal { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 13px; }
.amath-consent .amath-consent__legal a { font-size: 11px; line-height: 1.6; color: var(--consent-muted); text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.amath-consent .amath-consent__legal a:hover { color: #fff; }
.amath-consent__reopen {
    appearance: none;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 12px 4px;
    min-height: 44px;
    cursor: pointer;
}
.amath-consent :focus-visible, .amath-consent__reopen:focus-visible { outline: 3px solid #ebc5ac; outline-offset: 4px; }
.amath-consent__dialog {
    position: fixed;
    inset: 0;
    width: min(640px, calc(100% - 32px));
    max-width: 640px;
    max-height: calc(100dvh - 32px);
    padding: 0;
    margin: auto;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--consent-border);
    border-radius: 18px;
    background: var(--consent-bg);
    color: var(--consent-ink);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .5);
}
.amath-consent__dialog::backdrop { background: rgba(11, 13, 12, .73); backdrop-filter: blur(5px); }
.amath-consent__dialog:not([open]) { display: none; }
.amath-consent__panel { padding: 28px 30px; }
.amath-consent__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.amath-consent .amath-consent__close {
    appearance: none;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    background: transparent;
    color: var(--consent-ink);
    border: 1px solid var(--consent-border);
    border-radius: 50%;
    font: 25px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
}
.amath-consent .amath-consent__close:hover { background: #35362f; }
.amath-consent__category { background: var(--consent-panel); border: 1px solid var(--consent-border); border-radius: 10px; padding: 17px; margin-top: 18px; }
.amath-consent__category-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.amath-consent__category h3, .amath-consent__category-label { font: 600 14px/1.5 Arial, Helvetica, sans-serif; letter-spacing: 0; margin: 0; color: var(--consent-ink); }
.amath-consent__category-label { cursor: pointer; }
.amath-consent__category p { margin: 10px 0 0; font-size: 12px; line-height: 1.65; color: var(--consent-muted); }
.amath-consent__category p.amath-consent__details { font-size: 11px; }
.amath-consent__pill { flex: 0 0 auto; font-size: 10px; color: #e5d5c9; border: 1px solid #666359; padding: 3px 9px; border-radius: 30px; }
.amath-consent input.amath-consent__switch {
    appearance: auto;
    width: 22px;
    height: 22px;
    min-width: 22px;
    accent-color: var(--consent-accent);
    cursor: pointer;
    margin: 0;
    padding: 0;
}
.amath-consent input.amath-consent__switch:disabled { opacity: .5; cursor: not-allowed; }
.amath-consent__settings-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.amath-consent .amath-consent__notice { padding: 12px; border-left: 2px solid var(--consent-accent); margin-top: 14px; font-size: 12px; color: var(--consent-muted); }
.amath-consent__sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; margin: -1px !important; padding: 0 !important; border: 0 !important; }
@keyframes amath-consent-enter { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 900px) {
    .amath-consent__banner { grid-template-columns: 38px minmax(0, 1fr); gap: 16px; padding: 23px; }
    .amath-consent__mark { width: 36px; height: 36px; font-size: 21px; }
    .amath-consent__side { grid-column: 1 / -1; }
    .amath-consent__actions { display: flex; flex-wrap: wrap; }
    .amath-consent__actions .amath-consent__button { flex: 1 1 145px; width: auto; }
}
@media (max-width: 520px) {
    .amath-consent__banner { width: calc(100% - 24px); bottom: max(12px, env(safe-area-inset-bottom)); max-height: calc(100dvh - 24px); padding: 20px; gap: 10px; border-radius: 14px; grid-template-columns: 1fr; }
    .amath-consent__mark { display: none; }
    .amath-consent .amath-consent__title { font-size: 25px; }
    .amath-consent .amath-consent__description { font-size: 12px; }
    .amath-consent__actions { display: grid; grid-template-columns: 1fr; margin-top: 6px; }
    .amath-consent__actions .amath-consent__button { width: 100%; }
    .amath-consent__panel { padding: 20px; }
    .amath-consent__settings-actions { grid-template-columns: 1fr; }
    .amath-consent__category-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .amath-consent__banner { animation: none; }
    .amath-consent * { transition: none !important; }
}

/* Zusätzlicher technischer Datenschutzhinweis; bestehende Inhalts-IDs bleiben gleich. */
#datenschutz-cookie-auswahl .container { max-width: 900px; }
#datenschutz-cookie-auswahl h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 22px; }
#datenschutz-cookie-auswahl p { max-width: 78ch; margin-bottom: 20px; }
