/* TONWERK · Einwilligung + Newsletter (tonwerk-site v0.5, Aufbau aus ARKADE SALZBURG, Farben und Schrift TONWERK).
   Variablen aus dem Bricks-Framework (--tw-*), Ersatzwerte, falls sie fehlen. */

/* ---------- Einwilligung (includes/consent.php) ---------- */
/* Karte unten links, beide Entscheidungs-Buttons gleich gewichtet (keine Vorauswahl, kein Hervorheben von „Alle“) */
.tw-consent { position: fixed; left: 20px; bottom: 20px; z-index: 9999; width: min(460px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto;
	background: #fff; color: var(--tw-ink, #15181f); font-family: var(--tw-f-body, "Helvetica Neue", Helvetica, Arial, sans-serif); font-size: 14px; line-height: 1.55;
	border-top: 3px solid var(--tw-blue, #22428e);
	box-shadow: 0 1px 2px rgba(10, 20, 50, .06), 0 12px 28px -10px rgba(10, 20, 50, .22), 0 32px 64px -24px rgba(10, 20, 50, .3);
	opacity: 0; translate: 0 16px; transition: opacity .35s ease, translate .45s cubic-bezier(.2, .7, .2, 1); }
.tw-consent[hidden] { display: none; }
.tw-consent:focus { outline: none; }
.tw-consent.is-open { opacity: 1; translate: 0 0; }
.tw-consent__in { padding: 24px 26px 22px; }
.tw-consent__eyebrow { margin: 0 0 6px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--tw-blue, #22428e); }
.tw-consent__title { margin: 0 0 10px; font-family: var(--tw-f-display, inherit); font-size: 21px; font-weight: 600; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; color: var(--tw-blue, #22428e); }
.tw-consent__text { margin: 0; color: var(--tw-muted, #586070); }
.tw-consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tw-consent__cats { margin-top: 16px; border-top: 1px solid var(--tw-line, #d6dae2); }
.tw-consent__cat { padding: 14px 0; border-bottom: 1px solid var(--tw-line, #d6dae2); }
.tw-consent__cat label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.tw-consent__cat input, .tw-nl__consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tw-consent__box { width: 16px; height: 16px; flex: none; border: 1px solid var(--tw-blue, #22428e); display: grid; place-items: center; }
.tw-consent__cat input:checked + .tw-consent__box { background: var(--tw-blue, #22428e); }
.tw-consent__cat input:checked + .tw-consent__box::after { content: ""; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 1.5px 1.5px; rotate: -45deg; translate: 0 -1px; }
.tw-consent__cat input:disabled + .tw-consent__box { opacity: .45; }
.tw-consent__cat input:focus-visible + .tw-consent__box { outline: 2px solid var(--tw-blue, #22428e); outline-offset: 2px; }
.tw-consent__cat strong { font-weight: 600; }
.tw-consent__cat em { font-style: normal; font-size: 12px; color: var(--tw-muted, #586070); }
.tw-consent__cat p { margin: 6px 0 0 26px; font-size: 13px; color: var(--tw-muted, #586070); }
.tw-consent__cat ul { margin: 8px 0 0 26px; padding: 0; list-style: none; font-size: 12px; color: var(--tw-muted, #586070); }
.tw-consent__cat li + li { margin-top: 6px; }
.tw-consent__cat li span { display: block; }
.tw-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 20px; }
.tw-consent__btn { flex: 1 1 0; font: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; white-space: nowrap;
	padding: 13px 12px; background: none; color: var(--tw-blue, #22428e); border: 1px solid var(--tw-blue, #22428e); border-radius: var(--tw-radius, 2px); cursor: pointer; transition: background .2s, color .2s; }
/* Füllung nur bei Maus-Hover; Fokus (auch der automatische beim Öffnen) nur als Umrandung, damit kein Knopf vorgewählt wirkt (v0.5.1) */
.tw-consent__btn:hover { background: var(--tw-blue, #22428e); color: #fff; }
.tw-consent__btn:focus-visible, .tw-consent__link:focus-visible { outline: 2px solid var(--tw-blue, #22428e); outline-offset: 3px; }
.tw-consent__btn[hidden] { display: none; }
.tw-consent__btn--save { flex-basis: 100%; order: 4; }
.tw-consent__link { order: 3; flex-basis: 100%; text-align: left; font: inherit; font-size: 13px; background: none; border: 0; padding: 4px 0; color: var(--tw-muted, #586070); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 520px) { .tw-consent { left: 0; bottom: 0; width: 100%; max-height: 85vh; } .tw-consent__in { padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .tw-consent { transition: none; translate: none; } }

/* ---------- Newsletter [tw_newsletter] (im Footer auf Tiefblau) ---------- */
.tw-nl { width: 100%; max-width: 760px; color: #fff; }
.tw-nl__titel { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.tw-nl__text { margin: 0 0 16px; }
.tw-nl__fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.tw-nl__field { flex: 2 1 240px; display: flex; flex-direction: column; gap: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.tw-nl__field--small { flex: 1 1 160px; }
.tw-nl__field input { font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; padding: 13px 14px; border: 1px solid rgba(255, 255, 255, .55); background: transparent; color: #fff; border-radius: var(--tw-radius, 2px); }
.tw-nl__field input::placeholder { color: rgba(255, 255, 255, .45); }
.tw-nl__field input:focus { outline: 2px solid var(--tw-blue-light, #c9d4f1); outline-offset: 1px; border-color: #fff; }
.tw-nl__btn { flex: 0 0 auto; font: inherit; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: 15px 24px;
	background: #fff; color: var(--tw-blue-deep, #172e66); border: 1px solid #fff; border-radius: var(--tw-radius, 2px); cursor: pointer; transition: background .2s, color .2s; }
.tw-nl__btn:hover, .tw-nl__btn:focus-visible { background: var(--tw-blue-light, #c9d4f1); border-color: var(--tw-blue-light, #c9d4f1); }
.tw-nl__btn[disabled] { opacity: .6; cursor: wait; }
.tw-nl__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tw-nl__consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .8); cursor: pointer; }
.tw-nl__consent .tw-consent__box { margin-top: 2px; border-color: currentColor; }
.tw-nl__consent input:checked + .tw-consent__box { background: #fff; }
.tw-nl__consent input:checked + .tw-consent__box::after { content: ""; width: 8px; height: 4px; border: solid var(--tw-blue-deep, #172e66); border-width: 0 0 1.5px 1.5px; rotate: -45deg; translate: 0 -1px; }
.tw-nl__consent input:focus-visible + .tw-consent__box { outline: 2px solid var(--tw-blue-light, #c9d4f1); outline-offset: 2px; }
.tw-nl__consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tw-nl__msg { min-height: 1.5em; margin: 12px 0 0; font-size: 15px; }
.tw-nl__msg.is-error { color: #ffb4a8; }
.tw-nl.is-done .tw-nl__fields, .tw-nl.is-done .tw-nl__consent { display: none; }
