/**
 * EWT+ Verein — Frontend
 *
 * Farbwahl nach WCAG 2.1 AA (eCH-0059):
 *   --blue-deep  #1F4E85 auf Weiss      8.4:1  Text und Links
 *   --orange-ink #B4530A auf Weiss      5.1:1  Akzenttext auf hellem Grund
 *   --orange     #FF8C42 auf --ink      5.3:1  Akzenttext auf dunklem Grund
 *   --ink-soft   #5A6B7B auf --paper    5.3:1  Fliesstext zweiter Ordnung
 * Das helle Markenblau #3A7BC8 erreicht auf Weiss nur 3.6:1 und wird
 * deshalb ausschliesslich für Flächen, Rahmen und Linien verwendet,
 * niemals für Text.
 *
 * Mobile first: die Grundregeln gelten für das Telefon, Breiteres kommt
 * über min-width dazu.
 */

:root {
	--blue: #3A7BC8;
	--blue-deep: #1F4E85;
	--blue-wash: #EAF1F9;
	--orange: #FF8C42;
	--orange-ink: #B4530A;
	--orange-wash: #FFF0E5;
	--ink: #203748;
	--ink-soft: #5A6B7B;
	--paper: #F7F9FC;
	--white: #fff;
	--line: #DCE6F2;
	--line-strong: #B9CCE4;
	--line-control: #5B84B2; /* 3.9:1 auf Weiss – Rahmen von Bedienelementen */
	--step: 1;
	--display: "Bricolage Grotesque", Georgia, serif;
	--body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 11px;
	--menu-width: 60%;
}

.ewtv * { box-sizing: border-box; }
.ewtv { font-family: var(--body); font-size: calc(17px * var(--step)); line-height: 1.65; color: var(--ink); }
.ewtv img { display: block; max-width: 100%; }
.ewtv a { color: var(--blue-deep); text-underline-offset: 3px; }
.ewtv h1, .ewtv h2, .ewtv h3, .ewtv h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -.015em; font-weight: 700; margin: 0; }
.ewtv h1 { font-size: 2.05rem; }
.ewtv h2 { font-size: 1.55rem; }
.ewtv h3 { font-size: 1.15rem; }
.ewtv p { margin: 0 0 1rem; }

.ewtv-wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 20px; }
.ewtv-eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-deep); display: block; margin-bottom: .65rem; }

.ewtv :focus-visible,
.ewtv-menu :focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 3px; border-radius: 4px; }

.ewtv .ewtv-skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 200; }
.ewtv .ewtv-skip:focus { left: 12px; top: 12px; }

.ewtv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopfleiste ---------- */
.ewtv-topbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.ewtv-topbar-in { display: flex; align-items: center; gap: 8px; min-height: 66px; padding: 8px 16px; max-width: 1060px; margin: 0 auto; }
.ewtv-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; }
.ewtv-brand img { width: 44px; height: 44px; flex: 0 0 auto; }
.ewtv-brand-name { font-family: var(--display); font-weight: 700; font-size: 1.06rem; line-height: 1.1; white-space: nowrap; }
.ewtv-brand-claim { font-size: .7rem; color: var(--ink-soft); white-space: nowrap; }

.ewtv-ctrl { display: flex; align-items: center; gap: 4px; }
.ewtv-ctrl > span { font-size: .72rem; color: var(--ink-soft); }
.ewtv-ctrl button {
	font-family: var(--body); background: var(--white); border: 1px solid var(--line-control);
	color: var(--ink); height: 40px; min-width: 40px; padding: 0 8px;
	border-radius: 9px; cursor: pointer; line-height: 1;
}
.ewtv-ctrl button[aria-pressed="true"] { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.ewtv-lang button { font-size: .85rem; font-weight: 600; }
.ewtv-ts-a { font-size: .8rem; }
.ewtv-ts-b { font-size: 1rem; }
.ewtv-ts-c { font-size: 1.2rem; }

/* Grosse Burger-Taste, auf allen Breiten sichtbar. */
.ewtv-burger {
	display: flex; align-items: center; gap: 8px;
	height: 46px; padding: 0 14px 0 12px;
	background: var(--ink); color: #fff; border: 0; border-radius: 10px;
	font-family: var(--body); font-size: .95rem; font-weight: 600; cursor: pointer;
}
.ewtv-burger svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.ewtv-burger-text { display: none; }

/* ---------- Schubladen-Menü ---------- */
.ewtv-scrim {
	position: fixed; inset: 0; background: rgba(32, 55, 72, .55);
	opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 80;
}
.ewtv-scrim.is-open { opacity: 1; visibility: visible; }

.ewtv-menu {
	position: fixed; top: 0; left: 0; bottom: 0;
	width: var(--menu-width); min-width: 280px;
	background: var(--white); z-index: 90;
	transform: translateX(-100%); transition: transform .28s ease;
	display: flex; flex-direction: column;
	box-shadow: 0 0 40px rgba(32, 55, 72, .25);
	overflow-y: auto;
}
.ewtv-menu.is-open { transform: translateX(0); }
.ewtv-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.ewtv-menu-head strong { font-family: var(--display); font-size: 1.2rem; }
.ewtv-menu-close {
	width: 46px; height: 46px; border: 1px solid var(--line-control); background: var(--white);
	border-radius: 10px; cursor: pointer; display: grid; place-items: center;
}
.ewtv-menu-close svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.ewtv-menu nav { padding: 8px 12px 20px; }
.ewtv-menu nav a {
	display: block; padding: 15px 12px; text-decoration: none; color: var(--ink);
	font-weight: 600; font-size: 1.1rem; border-radius: 9px; border-bottom: 1px solid var(--line);
}
.ewtv-menu nav a:last-child { border-bottom: 0; }
.ewtv-menu nav a:hover { background: var(--blue-wash); }
.ewtv-menu-foot { margin-top: auto; padding: 16px 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); }

/* ---------- Hero ---------- */
.ewtv-hero { padding: 38px 0 34px; background: linear-gradient(var(--white), var(--paper)); }
.ewtv-hero h1 { margin-bottom: .7rem; }
.ewtv-hero p { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 1.4rem; }

.ewtv-btn {
	display: block; width: 100%; text-align: center; padding: 15px 20px; border-radius: var(--radius);
	font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent;
	font-family: var(--body); cursor: pointer;
}
.ewtv .ewtv-btn-primary { background: var(--blue-deep); color: #fff; }
.ewtv .ewtv-btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line-control); margin-top: 10px; }

/* ---------- Angebote ---------- */
.ewtv-paths { padding: 34px 0 10px; background: var(--paper); }
.ewtv-card {
	background: var(--white); border: 1px solid var(--line); border-radius: 14px;
	padding: 22px 20px; margin-bottom: 14px; border-top: 4px solid var(--blue);
	display: flex; flex-direction: column;
}
.ewtv-card.is-accent { border-top-color: var(--orange); }
.ewtv-card-for { font-size: .75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: .35rem; }
.ewtv-card h3 { margin-bottom: .5rem; }
.ewtv-card p { color: var(--ink-soft); margin-bottom: .9rem; }
.ewtv-meta { font-size: .85rem; background: var(--blue-wash); padding: 9px 12px; border-radius: 8px; margin-bottom: 1rem; }
.ewtv-card.is-accent .ewtv-meta { background: var(--orange-wash); }

/* Aktionstaste mittig am unteren Kartenrand. */
.ewtv-card-action { margin-top: auto; display: flex; justify-content: center; }
.ewtv-card-action .ewtv-more {
	display: inline-block; font-weight: 600; text-decoration: none; color: var(--blue-deep);
	padding: 11px 22px; border: 1px solid var(--line-control); border-radius: var(--radius);
	background: var(--white); text-align: center;
}
.ewtv-card-action .ewtv-more:hover { background: var(--blue-wash); }

/* ---------- Termine ---------- */
.ewtv-dates { padding: 30px 0; background: var(--paper); }
.ewtv-sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 1.1rem; }
.ewtv-event {
	display: flex; gap: 14px; background: var(--white); border: 1px solid var(--line);
	border-radius: 12px; padding: 14px; margin-bottom: 10px; align-items: flex-start;
}
.ewtv-event[hidden] { display: none; }
.ewtv-date { flex: 0 0 66px; text-align: center; background: var(--blue-wash); border-radius: 9px; padding: 8px 0; }
.ewtv-date b { display: block; font-family: var(--display); font-size: 1.3rem; line-height: 1; color: var(--blue-deep); }
.ewtv-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-deep); }
.ewtv-event h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.ewtv-event p { font-size: .88rem; color: var(--ink-soft); margin-bottom: .5rem; }
.ewtv-seats { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--orange-ink); background: var(--orange-wash); padding: 3px 10px; border-radius: 999px; margin-bottom: .5rem; }
.ewtv-seats.is-full { color: #fff; background: var(--ink); }
.ewtv .ewtv-mini {
	display: inline-block; font-size: .9rem; font-weight: 600; padding: 10px 18px;
	border: 1px solid var(--line-control); border-radius: 9px; text-decoration: none;
	color: var(--ink); background: var(--paper); cursor: pointer; font-family: var(--body);
}
.ewtv-mini[disabled] { opacity: .6; cursor: not-allowed; }
.ewtv-toggle-dates {
	display: block; width: 100%; margin-top: 6px; padding: 13px 18px;
	background: var(--white); border: 1px solid var(--line-control); border-radius: var(--radius);
	font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--blue-deep); cursor: pointer;
}
.ewtv-free-note { font-size: .9rem; color: var(--ink-soft); margin-top: .8rem; }

/* ---------- Haltung ---------- */
.ewtv-stance { background: var(--ink); color: #fff; padding: 36px 0; }
.ewtv-stance h2 { color: #fff; margin-bottom: 1.3rem; }
.ewtv-stance-item { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.ewtv-stance-item h3 { color: var(--orange); font-size: 1.05rem; margin-bottom: .3rem; }
.ewtv-stance-item p { color: #D9E1E8; font-size: .97rem; margin: 0; }

/* ---------- Mitmachen ---------- */
.ewtv-join { padding: 34px 0; background: var(--paper); }
.ewtv-join-item {
	background: var(--white); border: 1px solid var(--line); border-radius: 12px;
	padding: 20px; margin-bottom: 12px; display: flex; flex-direction: column;
}
.ewtv-join-item h3 { margin-bottom: .3rem; }
.ewtv-join-item p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1rem; }

/* ---------- Formulare ---------- */
.ewtv-forms { background: var(--blue-wash); padding: 34px 0; }
.ewtv-form-block { max-width: 640px; }
.ewtv-form-block + .ewtv-form-block { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line-strong); }
.ewtv-form-block > p { color: var(--ink-soft); }
.ewtv-req-hint { font-size: .85rem; color: var(--ink-soft); }
.ewtv-field { display: block; margin-bottom: 14px; }
.ewtv-field > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.ewtv-field input, .ewtv-field select, .ewtv-field textarea {
	width: 100%; padding: 13px 14px; border: 1px solid var(--line-control);
	border-radius: 10px; font-family: var(--body); font-size: 1rem;
	background: var(--white); color: var(--ink);
}
.ewtv-field textarea { min-height: 110px; resize: vertical; }
.ewtv-field input[aria-invalid="true"], .ewtv-field select[aria-invalid="true"], .ewtv-field textarea[aria-invalid="true"] { border-color: #A8261B; border-width: 2px; }
.ewtv-field-error { display: block; color: #A8261B; font-size: .85rem; font-weight: 600; margin-top: 4px; }
.ewtv-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink); margin-bottom: 14px; }
.ewtv-check input { width: 24px; height: 24px; flex: 0 0 auto; margin-top: 2px; }
.ewtv-hp { position: absolute; left: -9999px; }
.ewtv-note { margin-top: 12px; font-size: .95rem; font-weight: 600; }
.ewtv-note.is-ok { color: #17603A; }
.ewtv-note.is-error { color: #A8261B; }

/* ---------- Dokumente ---------- */
.ewtv-doc {
	display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
	background: var(--white); border: 1px solid var(--line); border-radius: 12px;
	padding: 16px 18px; margin-bottom: 10px;
}
.ewtv-doc-missing { font-size: .88rem; color: var(--ink-soft); font-style: italic; }

/* ---------- Fussbereich ---------- */
.ewtv-footer { background: var(--white); border-top: 1px solid var(--line); padding: 30px 0 24px; }
.ewtv-fbrand { display: flex; align-items: center; gap: 10px; margin-bottom: .8rem; }
.ewtv-fbrand img { width: 34px; height: 34px; }
.ewtv-fbrand b { font-family: var(--display); font-size: 1rem; }
.ewtv-footer p { font-size: .9rem; color: var(--ink-soft); }
.ewtv-fcols { display: grid; gap: 20px; margin-bottom: 20px; }
.ewtv-fcols h4 { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: .5rem; }
.ewtv-fcols a { display: block; font-size: .93rem; padding: 6px 0; text-decoration: none; color: var(--ink-soft); }
.ewtv-fcols a:hover { color: var(--blue-deep); text-decoration: underline; }
.ewtv-legal { border-top: 1px solid var(--line); padding-top: 14px; font-size: .82rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Textseiten ---------- */
.ewtv-prose { padding: 34px 0 40px; background: var(--paper); }
.ewtv-prose h2 { margin: 1.8rem 0 .6rem; }
.ewtv-prose h3 { margin: 1.4rem 0 .4rem; }
.ewtv-prose ul { margin: 0 0 1rem 1.2rem; }
.ewtv-prose li { margin-bottom: .4rem; }

/* ---------- Ab Tablet ---------- */
@media (min-width: 720px) {
	.ewtv { font-size: calc(18px * var(--step)); }
	.ewtv h1 { font-size: 2.9rem; }
	.ewtv h2 { font-size: 2rem; }
	.ewtv-wrap { max-width: 1060px; padding: 0 32px; }
	.ewtv-topbar-in { padding: 8px 32px; min-height: 78px; gap: 10px; }
	.ewtv-burger-text { display: inline; }
	.ewtv-ctrl button { height: 42px; min-width: 42px; }

	.ewtv-hero { padding: 64px 0 56px; }
	.ewtv-hero-text { max-width: 660px; }
	.ewtv-hero .ewtv-btn { display: inline-block; width: auto; }
	.ewtv .ewtv-btn-ghost { margin-top: 0; margin-left: 10px; }

	.ewtv-paths { padding: 56px 0 20px; }
	.ewtv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.ewtv-card { margin-bottom: 0; }

	.ewtv-dates, .ewtv-join { padding: 52px 0; }
	.ewtv-stance { padding: 56px 0; }
	.ewtv-stance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
	.ewtv-stance-item { border-top: 2px solid rgba(255, 255, 255, .28); }
	.ewtv-join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
	.ewtv-join-item { margin-bottom: 0; }
	.ewtv-join-item .ewtv-card-action { margin-top: auto; }

	.ewtv-forms { padding: 60px 0; }
	.ewtv-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
	.ewtv-fcols { grid-template-columns: 2fr 1fr 1fr 1fr; }
	.ewtv-toggle-dates { width: auto; }
	.ewtv-menu nav { padding: 12px 28px 24px; }
	.ewtv-menu nav a { font-size: 1.3rem; padding: 18px 14px; }
	.ewtv-menu-head { padding: 22px 28px; }
	.ewtv-menu-foot { padding: 20px 28px; }
}

/* ---------- Sehr kleine Geräte ---------- */
@media (max-width: 460px) {
	.ewtv-brand-claim { display: none; }
	.ewtv-ctrl > span { display: none; }
	.ewtv-ctrl button { min-width: 36px; height: 38px; padding: 0 6px; }
	.ewtv-burger { padding: 0 10px; height: 44px; }
	.ewtv-topbar-in { gap: 6px; padding: 8px 12px; }
	.ewtv-brand img { width: 38px; height: 38px; }
	.ewtv-brand { gap: 8px; }
	.ewtv-brand-name { font-size: .98rem; }
}

@media (prefers-reduced-motion: reduce) {
	.ewtv-menu, .ewtv-scrim { transition: none; }
}
