/* ─── Lokale Fonts (Museo Slab) ─────────────────────────────────────── */
@font-face {
	font-family: 'museo-slab';
	src: url('../fonts/Museo_Slab_300.otf') format('opentype');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'museo-slab';
	src: url('../fonts/Museo_Slab_300italic.otf') format('opentype');
	font-weight: 300;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'museo-slab';
	src: url('../fonts/Museo_Slab_500.otf') format('opentype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'museo-slab';
	src: url('../fonts/Museo_Slab_700.otf') format('opentype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

img {
	border: 30px solid #ffffff;
}

@media (max-width: 768px) {
	img {
		border-width: 24px;
	}
}

@media (max-width: 480px) {
	img {
		border-width: 16px;
	}
}

/* ─── Design Tokens ─────────────────────────────────────────────────── */
:root {
	/* Schrift */
	--font: 'museo-slab', Georgia, serif;

	/* Gewichte */
	--fw-light:   300;
	--fw-medium:  500;
	--fw-bold:    700;

	/* Typografie-Skala (WCAG: Fließtext mind. 17px) */
	--text-xs:    0.875rem;   /*  14px */
	--text-sm:    1rem;       /*  16px */
	--text-base:  1.125rem;   /*  18px – Fließtext */
	--text-lg:    1.375rem;   /*  22px – H4 */
	--text-xl:    1.75rem;    /*  28px – H3 */
	--text-2xl:   2.25rem;    /*  36px – H2 */
	--text-3xl:   3rem;       /*  48px – H1 */

	/* Zeilenabstände (WCAG: mind. 1.5 für Fließtext) */
	--leading-tight:  1.2;
	--leading-snug:   1.4;
	--leading-body:   1.65;   /* Fließtext */

	/* Laufweiten */
	--tracking-tight:  -0.01em;
	--tracking-normal:  0;
	--tracking-wide:    0.04em;

	/* Farben */
	--color-text:       #ffffff;
	--color-text-muted: rgba(255, 255, 255, 0.7);
	--color-bg:         #1a1a1a;
	--color-link:       #ffffff;
	--color-link-hover: rgba(255, 255, 255, 0.75);
	--color-focus:      #ffdd57;  /* sichtbarer Fokus-Ring, WCAG AA */
}

/* ─── Basis ──────────────────────────────────────────────────────────── */
html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font);
	font-weight: var(--fw-light);
	font-size: var(--text-base);
	line-height: var(--leading-body);
	letter-spacing: var(--tracking-normal);
	color: var(--color-text);
	background-color: var(--color-bg);
	background-image: url('../images/background.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	min-height: 100vh;
}

/* ─── Barrierefreiheit ───────────────────────────────────────────────── */
/* Fokus-Ring für Tastaturnutzer */
:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 3px;
}

/* Skip-to-content Link */
.skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	background: var(--color-focus);
	color: #000;
	font-weight: var(--fw-medium);
	padding: 0.5rem 1rem;
	text-decoration: none;
	z-index: 9999;
}
.skip-link:focus {
	top: 1rem;
}

/* Versteckt, aber für Screen Reader sichtbar */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ─── Typografie ─────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font);
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
}

h1 {
	font-size: var(--text-3xl);
	font-weight: var(--fw-bold);
}

h2 {
	font-size: var(--text-2xl);
	font-weight: var(--fw-bold);
}

h3 {
	font-size: var(--text-xl);
	font-weight: var(--fw-medium);
}

h4 {
	font-size: var(--text-lg);
	font-weight: var(--fw-medium);
}

h5, h6 {
	font-size: var(--text-base);
	font-weight: var(--fw-medium);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
}

p {
	font-size: var(--text-base);
	font-weight: var(--fw-light);
	line-height: var(--leading-body);
	max-width: 68ch;   /* optimale Zeilenlänge für Lesbarkeit */
}

p + p {
	margin-top: 1.25em;
}

/* ─── Inhaltsabstände (entry-content) ───────────────────────────────── */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 2.5em;
	margin-bottom: 0.6em;
}

.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child {
	margin-top: 0;
}

.entry-content p + h2,
.entry-content p + h3,
.entry-content p + h4 {
	margin-top: 3em;
}

.entry-content ul,
.entry-content ol {
	margin: 1.25em 0;
	padding-left: 1.5em;
}

.entry-content li {
	margin-bottom: 0.4em;
	line-height: var(--leading-body);
}

.entry-content a {
	text-underline-offset: 3px;
}

/* Seitentitel Abstand */
.entry-content {
	margin-top: 2rem;
}

/* Bilder */
.entry-content figure {
	margin: 2rem 0;
}

.entry-content .alignfull {
	margin-left: calc(-3rem);
	margin-right: calc(-3rem);
	max-width: none;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	display: block;
}

.entry-content figcaption,
.wp-element-caption {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	margin-top: 0.5rem;
	font-style: italic;
}

@media (max-width: 768px) {
	.entry-content .alignfull {
		margin-left: -1.5rem;
		margin-right: -1.5rem;
	}
}

em, i {
	font-style: italic;
	font-weight: var(--fw-light);
}

strong, b {
	font-weight: var(--fw-medium);
}

blockquote {
	font-size: var(--text-lg);
	font-weight: var(--fw-light);
	font-style: italic;
	line-height: var(--leading-snug);
	border-left: 4px solid var(--color-text-muted);
	padding-left: 1.5rem;
	margin: 2rem 0;
	color: var(--color-text-muted);
}

small, .text-small {
	font-size: var(--text-xs);
	font-weight: var(--fw-light);
}

/* ─── Links ──────────────────────────────────────────────────────────── */
a {
	color: var(--color-link);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--color-link-hover);
}

/* ─── Header ─────────────────────────────────────────────────────────── */
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 3rem;
	background-color: #ffffff;
	position: sticky;
	top: 0;
	z-index: 100;
	transition: transform 0.3s ease;
}

.site-logo img {
	height: 80px;
	width: auto;
}

/* ─── Navigation ─────────────────────────────────────────────────────── */
.primary-navigation ul {
	list-style: none;
	display: flex;
	gap: 2rem;
	align-items: center;
}

.primary-navigation a {
	position: relative;
	color: rgba(90, 15, 30, 1);
	text-decoration: none;
	font-size: var(--text-sm);
	font-weight: var(--fw-medium);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	padding-bottom: 0.25rem;
}

/* Unterstrich-Effekt beim Hover */
.primary-navigation a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: rgba(90, 15, 30, 1);
	transition: width 0.2s ease;
}

.primary-navigation a:hover::after,
.primary-navigation .current-menu-item > a::after,
.primary-navigation .current_page_item > a::after {
	width: 100%;
}

.primary-navigation a:hover {
	color: rgba(90, 15, 30, 1);
}

.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
	opacity: 1;
}

/* ─── Hamburger-Button (nur Mobile) ─────────────────────────────────── */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 2.5rem;
	height: 2.5rem;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.25rem;
	border-radius: 4px;
}

.nav-toggle__bar {
	display: block;
	width: 100%;
	height: 2px;
	background: rgba(90, 15, 30, 1);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
	transform-origin: center;
}

/* × wenn geöffnet */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ─── Hauptinhalt ────────────────────────────────────────────────────── */
.site-main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 4rem 3rem;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
/* ─── Newsletter-Block im Footer ─────────────────────────────────────── */
.newsletter-block {
	text-align: center;
	padding: 2.5rem 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 1.5rem;
}

.newsletter-heading {
	font-size: var(--text-base);
	font-weight: var(--fw-bold);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--color-text);
	margin-bottom: 0.4rem;
	max-width: none;
	text-align: center;
}

.newsletter-subheading {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	margin-bottom: 1.25rem;
	max-width: none;
	text-align: center;
}

/* MailPoet-Formular im Footer – dezentes Inline-Layout */
.newsletter-block .mailpoet_form {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.newsletter-block .mailpoet_text,
.newsletter-block .mailpoet_email {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 4px;
	color: #fff;
	font-family: var(--font);
	font-size: var(--text-sm);
	padding: 0.5rem 0.75rem;
	min-width: 220px;
}

.newsletter-block .mailpoet_text::placeholder,
.newsletter-block .mailpoet_email::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.newsletter-block .mailpoet_text:focus,
.newsletter-block .mailpoet_email:focus {
	outline: 3px solid var(--color-focus);
	outline-offset: 2px;
	border-color: transparent;
}

.newsletter-block .mailpoet_submit {
	background: #ffffff;
	border: 1px solid rgba(90, 15, 30, 0.5);
	border-radius: 4px;
	color: rgba(90, 15, 30, 1);
	font-family: var(--font);
	font-size: var(--text-sm);
	font-weight: var(--fw-medium);
	padding: 0.5rem 1.25rem;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.newsletter-block .mailpoet_submit:hover {
	background: rgba(90, 15, 30, 0.1);
}

.newsletter-block .mailpoet_submit:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 2px;
}

/* ─── Front-page Hero ────────────────────────────────────────────────── */
.front-hero {
	width: 100%;
	display: flex;
	justify-content: flex-start;
}

.front-hero__img {
	display: block;
	max-width: 100%;
	max-height: 600px;
	width: auto;
	height: auto;
}

.front-page__title {
	font-size: var(--text-3xl);
	font-weight: var(--fw-bold);
	margin-bottom: 1.5rem;
}

.front-content {
	padding-top: 2.5rem;
	padding-bottom: 3rem;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
	position: relative;
	padding: 1.5rem 2rem;
	font-size: var(--text-xs);
	color: var(--color-text-muted);
}

.site-footer__logo {
	position: absolute;
	bottom: 1.5rem;
	right: 2rem;
}

.site-footer__logo img {
	height: 450px;
	width: auto;
	display: block;
	border: none;
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
}

.footer-navigation {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.footer-navigation a {
	color: var(--color-text-muted);
	text-decoration: none;
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-wide);
}

.footer-navigation a:hover {
	color: var(--color-text);
}

@media (max-width: 1000px) {
	.site-footer__logo {
		position: static;
		display: flex;
		justify-content: center;
		padding: 1.5rem 0;
	}
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	:root {
		--text-3xl: 2.25rem;
		--text-2xl: 1.75rem;
		--text-xl:  1.375rem;
	}

	.site-header {
		flex-wrap: wrap;
		gap: 1rem;
		padding: 1.25rem 1.5rem;
		position: relative;
	}

	.nav-toggle {
		display: flex;
	}

	.primary-navigation {
		width: 100%;
		overflow: hidden;
		max-height: 0;
		opacity: 0;
		transition: max-height 0.3s ease, opacity 0.3s ease;
	}

	.primary-navigation.is-open {
		max-height: 400px;
		opacity: 1;
	}

	.primary-navigation ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 0.5rem 0 1rem;
	}

	.primary-navigation li {
		width: 100%;
		border-top: 1px solid rgba(90, 15, 30, 0.15);
	}

	.primary-navigation a {
		display: block;
		padding: 0.75rem 0;
	}

	.primary-navigation a::after {
		display: none;
	}

	.primary-navigation .current-menu-item > a,
	.primary-navigation .current_page_item > a {
		padding-left: 0.75rem;
		border-left: 3px solid rgba(90, 15, 30, 1);
	}

	.site-main {
		padding: 2rem 1.5rem;
	}
}

/* ─── Veranstaltungen: Archiv-Liste ─────────────────────────────────────── */
:root {
	--color-plakat-bg:     rgba(90, 15, 30, 0.82);   /* Plakat-Rot, leicht transparent */
	--color-plakat-border: rgba(255, 255, 255, 0.18);
	--color-trennzeichen:  rgba(255, 255, 255, 0.4);
}

.veranstaltungen-header {
	max-width: 800px;
	margin: 0 auto 3rem;
	text-align: center;
}

.veranstaltungen-titel {
	font-size: var(--text-3xl);
	font-weight: var(--fw-bold);
	letter-spacing: var(--tracking-tight);
	line-height: var(--leading-tight);
	margin-bottom: 0.75rem;
}

.veranstaltungen-jahr {
	display: inline-block;
	font-size: 1.1em;
}

.veranstaltungen-ort {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	line-height: var(--leading-snug);
	max-width: none;
}

.veranstaltungen-monat {
	max-width: 800px;
	margin: 0 auto 2.5rem;
}

.monat-label {
	font-size: var(--text-sm);
	font-weight: var(--fw-medium);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--color-text-muted);
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--color-plakat-border);
	margin-bottom: 0;
}

.veranstaltungen-gruppe,
.veranstaltungen-liste {
	list-style: none;
}

.veranstaltung-item {
	display: grid;
	grid-template-columns: 4rem auto 1fr;
	align-items: baseline;
	gap: 0 1rem;
	padding: 1.1rem 1.5rem;
	background: var(--color-plakat-bg);
	border-bottom: 1px solid var(--color-plakat-border);
	transition: background 0.15s ease;
}

.veranstaltung-item:first-child {
	border-radius: 4px 4px 0 0;
}

.veranstaltung-item:last-child {
	border-bottom: none;
	border-radius: 0 0 4px 4px;
}

.veranstaltung-item:hover {
	background: rgba(110, 20, 40, 0.92);
}

.veranstaltung-item.vergangen {
	opacity: 0.5;
}

.veranstaltung-datum-col {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: var(--leading-snug);
}

.datum-tag {
	font-size: var(--text-xl);
	font-weight: var(--fw-bold);
	line-height: 1;
}

.datum-uhrzeit {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	font-weight: var(--fw-medium);
	letter-spacing: var(--tracking-wide);
	white-space: nowrap;
}

.veranstaltung-trennzeichen {
	color: var(--color-trennzeichen);
	font-weight: var(--fw-light);
	font-size: var(--text-lg);
	align-self: start;
	margin-top: 0.1rem;
	user-select: none;
}

.veranstaltung-inhalt {
	min-width: 0;
}

.veranstaltung-titel {
	font-size: var(--text-base);
	font-weight: var(--fw-bold);
	line-height: var(--leading-snug);
	margin: 0;
}

.veranstaltung-titel a {
	text-decoration: none;
	color: var(--color-text);
}

.veranstaltung-titel a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.veranstaltung-untertitel {
	font-size: var(--text-sm);
	font-weight: var(--fw-light);
	color: var(--color-text-muted);
	margin-top: 0.2rem;
	line-height: var(--leading-snug);
	max-width: none;
}

/* ─── Vergangene Veranstaltungen: Tabs ──────────────────────────────────── */
.keine-veranstaltungen {
	text-align: center;
	color: var(--color-text-muted);
	padding: 2rem 0;
}

.vergangene-section {
	max-width: 800px;
	margin: 4rem auto 0;
	padding-top: 3rem;
	border-top: 1px solid var(--color-plakat-border);
}

.vergangene-titel {
	font-size: var(--text-sm);
	font-weight: var(--fw-medium);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin-bottom: 1.25rem;
}

.jahr-tabs {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.jahr-tab {
	background: none;
	border: 1px solid var(--color-plakat-border);
	color: var(--color-text-muted);
	font-family: var(--font);
	font-size: var(--text-sm);
	font-weight: var(--fw-medium);
	letter-spacing: var(--tracking-wide);
	padding: 0.35rem 1rem;
	border-radius: 2px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.jahr-tab:hover {
	color: var(--color-text);
	border-color: rgba(255, 255, 255, 0.4);
}

.jahr-tab.is-active {
	background: var(--color-plakat-bg);
	border-color: rgba(255, 255, 255, 0.4);
	color: var(--color-text);
}

.jahr-panel {
	display: none;
}

.jahr-panel.is-active {
	display: block;
}

/* ─── Veranstaltung: Hero-Bild ───────────────────────────────────────────── */
.veranstaltung-hero {
	position: relative;
	width: 100%;
	min-height: 60vh;
	background-image:
		linear-gradient(
			to bottom,
			rgba(20, 5, 10, 0.35) 0%,
			rgba(20, 5, 10, 0.75) 60%,
			rgba(20, 5, 10, 0.97) 100%
		),
		var(--hero-bg);
	background-size: cover;
	background-position: center top;
	display: flex;
	align-items: flex-end;
}

.veranstaltung-hero-inhalt {
	padding-top: 6rem;
	padding-bottom: 3rem;
}

/* ─── Veranstaltung: Einzelansicht ──────────────────────────────────────── */
.veranstaltung-single {
	max-width: 700px;
}

.veranstaltung-single--mit-bild {
	background: rgba(20, 5, 10, 0.97);
	padding-top: 2.5rem;
}

.zurueck-link {
	display: inline-block;
	font-size: var(--text-sm);
	font-weight: var(--fw-medium);
	color: var(--color-text-muted);
	text-decoration: none;
	margin-bottom: 2rem;
	letter-spacing: var(--tracking-wide);
}

.zurueck-link:hover {
	color: var(--color-text);
}

.veranstaltung-single-header {
	margin-bottom: 2rem;
}

/* Im Hero wird der Header ohne eigenen Abstand oben dargestellt */
.veranstaltung-single-header--hero {
	margin-top: 1.5rem;
	margin-bottom: 0;
}

.veranstaltung-single-datum {
	font-size: var(--text-sm);
	font-weight: var(--fw-medium);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin-bottom: 0.5rem;
	max-width: none;
}

.veranstaltung-single-titel {
	font-size: var(--text-2xl);
	font-weight: var(--fw-bold);
	margin-bottom: 0.75rem;
	line-height: var(--leading-snug);
}

.veranstaltung-single-untertitel {
	font-size: var(--text-base);
	color: var(--color-text-muted);
	max-width: none;
	line-height: var(--leading-snug);
}

.veranstaltung-beschreibung {
	margin: 2rem 0;
}

.veranstaltung-single-footer {
	border-top: 1px solid var(--color-plakat-border);
	padding-top: 1.5rem;
	margin-top: 3rem;
}

.eintritt-hinweis {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	max-width: none;
	line-height: var(--leading-snug);
}

/* ─── Responsive: Einzelansicht ─────────────────────────────────────────── */
@media (max-width: 768px) {
	.veranstaltung-hero {
		min-height: 50vh;
	}

	.veranstaltung-single-titel {
		font-size: var(--text-xl);
	}
}

/* ─── Responsive: Veranstaltungen ───────────────────────────────────────── */
@media (max-width: 768px) {
	.veranstaltung-item {
		grid-template-columns: 3rem auto 1fr;
		gap: 0 0.6rem;
		padding: 0.9rem 1rem;
	}

	.datum-tag {
		font-size: var(--text-lg);
	}

	.veranstaltungen-titel {
		font-size: var(--text-2xl);
	}
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
