/* ==========================================================================
   Veranstaltungs-Theme – eigenständiges, dunkles Design
   Systemschriften (keine externen Requests, DSGVO-freundlich)
   Akzentfarbe pro Location über die CSS-Variable --loc
   ========================================================================== */

:root {
	color-scheme: dark;
	--bg: #0d0d11;
	--bg-2: #15151b;
	--bg-3: #1e1e27;
	--line: #2d2d39;
	--fg: #f4f4f7;
	--muted: #a9a9b8;
	--accent: #ffb400;
	--accent-ink: #15120a;
	--danger: #ff6b6b;
	--ok: #51cf66;
	--loc: var(--accent);
	--radius: 14px;
	--max: 1200px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font: 1rem/1.6 var(--font);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.main { flex: 1 0 auto; padding-bottom: 3rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffd166; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }
address { font-style: normal; margin-bottom: 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.wrap--narrow { max-width: 820px; }
.muted { color: var(--muted); }
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link {
	position: absolute; left: .5rem; top: -4rem; z-index: 100; background: var(--accent); color: var(--accent-ink);
	padding: .6rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: .5rem; }

/* ---- Buttons --------------------------------------------------------------- */
.btn {
	display: inline-block; padding: .7rem 1.2rem; border: 2px solid var(--accent); border-radius: 999px;
	background: var(--accent); color: var(--accent-ink); font: 700 .95rem/1.2 var(--font); text-decoration: none;
	text-align: center; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #ffc933; border-color: #ffc933; color: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-3); border-color: var(--muted); color: var(--fg); }
.btn--small { padding: .45rem .9rem; font-size: .85rem; }
.btn--large { padding: .9rem 1.7rem; font-size: 1.05rem; }

/* ---- Header & Navigation ------------------------------------------------------ */
.site-header { background: var(--bg-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar { background: #000; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: flex-end; gap: 1.2rem; padding-top: .35rem; padding-bottom: .35rem; }
.topbar__link { color: var(--muted); text-decoration: none; }
.topbar__link:hover { color: var(--fg); }
.topbar__link--cta { color: var(--accent); font-weight: 700; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.2rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--fg); }
.brand__logo { max-height: 48px; width: auto; }
.brand__text { font: 800 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav__item { position: relative; }
.nav__item > a {
	display: block; padding: .7rem .8rem; color: var(--fg); text-decoration: none; font-weight: 600; border-radius: 8px;
}
.nav__item > a:hover, .nav__item.is-active > a { color: var(--accent); }
.nav__item.is-active > a { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px 8px 0 0; }
.nav__sub {
	list-style: none; margin: 0; padding: .4rem; position: absolute; left: 0; top: 100%; min-width: 14rem;
	background: var(--bg-3); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 14px 30px rgba(0, 0, 0, .5); display: none;
}
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { display: block; }
.nav__sub a { display: block; padding: .5rem .8rem; color: var(--fg); text-decoration: none; border-radius: 8px; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--bg); color: var(--accent); }

.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; width: 2.9rem; height: 2.9rem; cursor: pointer; color: var(--fg); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 1.4rem; height: 2px; background: currentColor; position: relative; margin: 0 auto; content: "";
}
.nav-toggle__bars::before { position: absolute; top: -7px; left: 0; }
.nav-toggle__bars::after { position: absolute; top: 7px; left: 0; }

@media (max-width: 980px) {
	.nav-toggle { display: inline-block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); max-height: calc(100vh - 6rem); overflow: auto; }
	.nav-open .nav { display: block; }
	.nav__list { flex-direction: column; padding: .5rem 1rem 1rem; gap: 0; }
	.nav__item > a { padding: .8rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav__item.is-active > a { box-shadow: none; }
	.nav__sub { display: block; position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 .4rem 1rem; }
	.nav__sub a { padding: .45rem .4rem; color: var(--muted); }
}

/* ---- Breadcrumb ----------------------------------------------------------------- */
.breadcrumb { padding: 1rem 0 .2rem; font-size: .85rem; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumb a { color: var(--muted); }

/* ---- Hero / Sektionen ---------------------------------------------------------------- */
.hero { padding: clamp(2.5rem, 8vw, 5rem) 0 2rem; background: radial-gradient(1200px 400px at 80% -20%, rgba(255, 180, 0, .18), transparent 60%), var(--bg); }
.hero__title { margin-bottom: .3em; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.section { padding: 2.2rem 0; }
.section--flush { padding-left: 0; padding-right: 0; }
.section--accent { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 1rem; }
.section__title { margin-bottom: 1rem; border-left: 5px solid var(--accent); padding-left: .7rem; }
.section__more { margin-top: 1.5rem; }
.page-head { padding: 1.2rem 0 1rem; }
.page-head h1 { margin-bottom: .4em; }

/* ---- Heute ---------------------------------------------------------------------------- */
.today-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.today-card { background: var(--bg-2); border: 1px solid var(--line); border-top: 4px solid var(--loc); border-radius: var(--radius); padding: 1rem; overflow: hidden; }
.today-card__loc { font-size: 1rem; color: var(--loc); margin-bottom: .6rem; }
.today-card__loc a { color: inherit; text-decoration: none; }
.today-card__img { display: block; margin: 0 -1rem .8rem; }
.today-card__img img { width: 100%; aspect-ratio: 14 / 9; object-fit: cover; }
.today-card__img--dim img { opacity: .45; }
.today-card__title { font: 700 1.2rem/1.25 var(--display); text-transform: uppercase; margin-bottom: .3rem; }
.today-card__title a { color: var(--fg); text-decoration: none; }
.today-card__title a:hover { color: var(--loc); }
.today-card__meta, .today-card__more { color: var(--muted); font-size: .92rem; margin-bottom: .4rem; }
.today-card__empty { color: var(--muted); }

/* ---- Event-Karten --------------------------------------------------------------------- */
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ev-card { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.ev-card:hover { transform: translateY(-3px); border-color: var(--loc); }
.ev-card.is-cancelled { opacity: .7; }
.ev-card.is-cancelled .ev-card__title a { text-decoration: line-through; }
.ev-card__img { display: block; background: var(--bg-3); border-bottom: 3px solid var(--loc); }
.ev-card__img img, .ev-card__ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.ev-card__ph { background: linear-gradient(135deg, var(--bg-3), var(--bg)); }
.ev-card__body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.ev-card__date { font-weight: 700; color: var(--loc); margin-bottom: .3rem; font-size: .92rem; }
.ev-card__title { margin: 0 0 .3rem; font-size: 1.2rem; }
.ev-card__title a { color: var(--fg); text-decoration: none; }
.ev-card__title a:hover { color: var(--loc); }
.ev-card__support { color: var(--muted); font-size: .92rem; margin-bottom: .3rem; }
.ev-card__meta { color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.ev-card__actions { margin: auto 0 0; padding-top: .8rem; display: flex; flex-wrap: wrap; gap: .5rem; }

.badges { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid var(--loc); color: var(--loc); }
.tag { display: inline-block; padding: .1rem .5rem; border-radius: 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; background: var(--bg-3); }
.tag--alert { background: var(--danger); color: #1a0000; }

/* ---- Filter & Liste ----------------------------------------------------------------------- */
.filters { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.chip { display: inline-block; padding: .4rem 1rem; border-radius: 999px; border: 2px solid var(--loc); color: var(--fg); text-decoration: none; font-weight: 600; }
.chip:hover { background: var(--bg-3); color: var(--fg); }
.chip.is-active { background: var(--loc); color: var(--accent-ink); }
.filters__row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; }
.result-count { color: var(--muted); }
.month { margin-bottom: 2rem; }
.month__title { border-bottom: 1px solid var(--line); padding-bottom: .4rem; margin-bottom: 1rem; }
.empty { padding: 2rem; text-align: center; background: var(--bg-2); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; padding: 0; margin: 2rem 0 0; }
.pager a, .pager span { display: inline-block; min-width: 2.4rem; padding: .45rem .8rem; text-align: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--fg); }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* ---- Event-Detail --------------------------------------------------------------------------------- */
.event { display: grid; gap: 2rem; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding: 1rem 0 2rem; }
.event__img, .event__ph { width: 100%; border-radius: var(--radius); border-bottom: 5px solid var(--loc); background: var(--bg-2); }
.event__ph { aspect-ratio: 3 / 2; }
.event__title { margin-bottom: .2em; }
.event__support { font-size: 1.15rem; color: var(--muted); }
.facts { margin: 1.2rem 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.social-links { list-style: none; margin: 1rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.social-links a { display: inline-block; padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); text-decoration: none; font-size: .9rem; }
.social-links a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 800px) { .event { grid-template-columns: 1fr; } }

/* ---- Location ------------------------------------------------------------------------------------------ */
.location-hero { position: relative; border-bottom: 5px solid var(--loc); background: var(--bg-2); overflow: hidden; }
.location-hero__bg { position: absolute; inset: 0; }
.location-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.location-hero__inner { position: relative; padding-top: clamp(2.5rem, 8vw, 5rem); padding-bottom: clamp(2rem, 6vw, 3.5rem); }
.location-hero h1 { color: var(--loc); }
.two-col { display: grid; gap: 2rem; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); padding: 2rem 0; align-items: start; }
.two-col--form { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 800px) { .two-col, .two-col--form { grid-template-columns: 1fr; } }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.card__title { font-size: 1.1rem; margin-top: .2em; }
.link-list { list-style: none; padding: 0; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: .5rem 0; text-decoration: none; }

/* ---- Inhalte ---------------------------------------------------------------------------------------------- */
.prose { max-width: 70ch; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: 10px; }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile__link { display: block; height: 100%; padding: 1.2rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--fg); transition: border-color .15s ease, transform .15s ease; }
.tile__link:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile__title { display: block; font: 700 1.2rem/1.2 var(--display); text-transform: uppercase; color: var(--accent); }
.tile__text { display: block; margin-top: .4rem; color: var(--muted); font-size: .92rem; }

.gallery { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery a { display: block; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.gallery img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.04); }

.faq__item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .6rem; }
.faq__item summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; float: right; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__item .prose { padding: 0 1.2rem 1rem; }

.files { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.files li { border-bottom: 1px solid var(--line); }
.files a { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem .2rem; text-decoration: none; color: var(--fg); }
.files a:hover .files__name { color: var(--accent); }
.files__name { font-weight: 600; }
.files__meta { color: var(--muted); font-size: .88rem; white-space: nowrap; }

.ticket-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.ticket-row { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1rem; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-left: 5px solid var(--loc); border-radius: var(--radius); padding: .9rem 1rem; }
.ticket-row.is-cancelled { opacity: .65; }
.ticket-row__date { text-align: center; line-height: 1; }
.ticket-row__day { display: block; font: 800 2rem/1 var(--display); color: var(--loc); }
.ticket-row__month { display: block; text-transform: uppercase; font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.ticket-row__title { font-weight: 700; font-size: 1.1rem; margin: 0 0 .15rem; }
.ticket-row__title a { color: var(--fg); text-decoration: none; }
.ticket-row__meta { color: var(--muted); font-size: .9rem; margin: 0 0 .4rem; }
@media (max-width: 600px) { .ticket-row { grid-template-columns: 3.6rem 1fr; } .ticket-row__cta { grid-column: 1 / -1; } }

/* ---- Formulare & Hinweise ------------------------------------------------------------------------------------ */
.form { max-width: 640px; }
.field { margin-bottom: 1rem; }
.field--inline { margin: 0; }
.field__label { display: block; font-weight: 600; margin-bottom: .3rem; }
input[type="text"], input[type="email"], select, textarea {
	width: 100%; padding: .7rem .8rem; background: var(--bg); color: var(--fg); border: 2px solid var(--line);
	border-radius: 10px; font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
.field--inline select { min-width: 12rem; }
.field--check { display: flex; gap: .7rem; align-items: flex-start; }
.field--check input { margin-top: .35rem; width: 1.2rem; height: 1.2rem; flex: none; accent-color: var(--accent); }
.alert { padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 1.2rem; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert--ok { border-color: var(--ok); }
.alert--error { border-color: var(--danger); }

/* ---- Lightbox ---------------------------------------------------------------------------------------------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; color: var(--fg); }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.lightbox__img { max-width: 94vw; max-height: 80vh; width: auto; height: auto; border-radius: 8px; }
.lightbox__cap { margin: 0; text-align: center; color: var(--muted); }
.lightbox__bar { display: flex; gap: .5rem; justify-content: center; margin-top: .5rem; }
.lightbox__btn { background: var(--bg-3); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; cursor: pointer; font: inherit; }
.lightbox__btn:hover { border-color: var(--accent); }

/* ---- Footer ------------------------------------------------------------------------------------------------------- */
.site-footer { background: #000; border-top: 1px solid var(--line); margin-top: auto; padding-top: 2.5rem; color: var(--muted); }
.site-footer a { color: var(--fg); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer__title { font: 700 1rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--fg); margin-bottom: .6rem; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: .35rem; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; padding-top: 1rem; padding-bottom: 1.5rem; border-top: 1px solid var(--line); font-size: .88rem; }
.footer__bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
