/*
Theme Name: Grüne Jugend Landesverband
Theme URI: https://github.com/kaluang/gruenejugend-lv
Author: TAU Berlin, modified by Christian Brugger
Author URI: https://www.tau-berlin.de
Version: 2.0.5
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: gruenejugendlv
Tags: one-column, custom-menu, featured-images, block-styles, accessibility-ready
*/

/* ==========================================================================
   1. Schriften und Variablen
   ========================================================================== */

@font-face {
	font-family: "Wix Madefor Display";
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	src: url("assets/fonts/WixMadeforDisplay-SemiBold.woff2") format("woff2");
}

@font-face {
	font-family: "Wix Madefor Display";
	font-weight: 800;
	font-style: normal;
	font-display: swap;
	src: url("assets/fonts/WixMadeforDisplay-ExtraBold.woff2") format("woff2");
}

:root {
	--color-lime: #c7ff7a;
	--color-lavender: #9f88ff;
	--color-pink: #f28ade;
	--color-apricot: #ff8568;
	--color-dark: #000000;
	--color-white: #ffffff;
	--color-grey: #f2f2f2;
	--color-grey-line: rgba(0, 0, 0, 0.12);
	--color-muted: rgba(0, 0, 0, 0.6);

	--gradient-1: linear-gradient(200deg, #ff8568 14.76%, #f28ade 35.08%, #9f88ff 60.47%, #c7ff7a 85.37%);
	--gradient-2: linear-gradient(270deg, #ff8568 30.41%, #f28ade 72.5%);
	--gradient-2-mobile: linear-gradient(0deg, #ff8568 30.41%, #f28ade 72.5%);

	--font-reg: "Wix Madefor Display", Arial, Helvetica, sans-serif;
	--font-bold: "Wix Madefor Display", Arial, Helvetica, sans-serif;

	--text-s: 1rem;
	--text-base: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
	--text-m: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
	--text-l: clamp(1.5rem, 1.3rem + 0.8vw, 1.75rem);
	--text-xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
	--text-2xl: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
	--text-3xl: clamp(2.5rem, 1.8rem + 3vw, 3.75rem);

	--space-xs: 0.5rem;
	--space-s: 1rem;
	--space-m: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	--space-l: clamp(2.5rem, 1.5rem + 4vw, 5rem);
	--space-xl: clamp(3rem, 2rem + 5vw, 6.25rem);

	--wrap-max: 125rem;
	--wrap-pad: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
	--reading-max: 56rem;

	--radius: 0;
	--transition: 0.25s ease;

	/* Stellschraube für die Logo-Größe: 1 = Standard, 1.3 = 30 Prozent größer.
	   Lässt sich unter Design > Anpassen > Zusätzliches CSS überschreiben:
	   :root { --logo-scale: 1.3; } */
	--logo-scale: 1;
}

/* ==========================================================================
   2. Basis
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--color-white);
	color: var(--color-dark);
	font-family: var(--font-reg);
	font-weight: 600;
	font-size: var(--text-base);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

img,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

figure {
	margin: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--color-lavender);
	outline-offset: 3px;
}

::selection {
	background: var(--color-lime);
	color: var(--color-dark);
}

.skip-link {
	position: absolute;
	top: -100%;
	left: var(--wrap-pad);
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--color-dark);
	color: var(--color-white);
	font-family: var(--font-bold);
	font-weight: 800;
}

.skip-link:focus {
	top: 0.5rem;
}

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

/* ==========================================================================
   3. Typografie
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-bold);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 0.5em;
	hyphens: auto;
	-webkit-hyphens: auto;
	hyphenate-limit-chars: 8 4 4;
	overflow-wrap: anywhere;
}

/* Titel in Kästen: Silbentrennung, notfalls harter Umbruch, nie Überlauf. */
.topic-card__title,
.link-card__title,
.teaser__title,
.event-teaser__title,
.event-featured__title,
.person__name,
.person__role,
.banner__title,
.accordion__title,
.program__title,
.dialog__title,
.hl-list,
.month-group__title,
.split__title {
	hyphens: auto;
	-webkit-hyphens: auto;
	hyphenate-limit-chars: 8 4 4;
	overflow-wrap: anywhere;
	min-width: 0;
}

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

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

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

h4 {
	font-size: var(--text-l);
}

h5,
h6 {
	font-size: var(--text-m);
}

p {
	margin: 0 0 1.5em;
}

strong,
b {
	font-weight: 800;
}

/* Farbig hinterlegte Überschriften – das zentrale Stilmittel des Designs. */
.hl {
	background-color: var(--color-lime);
	padding: 0.12em 0.3em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	line-height: 1.35;
}

.hl--white {
	background-color: var(--color-white);
}

.hl--apricot {
	background-color: var(--color-apricot);
}

.headline-lines .hl,
.section-title.headline-lines .hl {
	display: table;
	margin-bottom: 0.15em;
}

.hl-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	font-family: var(--font-bold);
	font-weight: 800;
	font-size: var(--text-l);
}

.page-title {
	display: inline;
	font-size: var(--text-3xl);
}

.section-title {
	font-size: var(--text-2xl);
	margin-bottom: var(--space-m);
}

.section-title .hl {
	display: inline;
}

.prose > *:first-child {
	margin-top: 0;
}

.prose > *:last-child {
	margin-bottom: 0;
}

.prose a,
.entry-content > p a,
.entry-content > ul a,
.entry-content > ol a {
	font-weight: 800;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.15em;
	text-decoration-color: var(--color-lavender);
	transition: text-decoration-color var(--transition);
}

.prose a:hover,
.entry-content > p a:hover,
.entry-content > ul a:hover,
.entry-content > ol a:hover {
	text-decoration-color: var(--color-dark);
}

ul,
ol {
	padding-left: 1.4em;
	margin: 0 0 1.5em;
}

li {
	margin-bottom: 0.4em;
}

blockquote,
.wp-block-quote {
	position: relative;
	margin: var(--space-m) 0;
	padding: 0.25rem 0 0.25rem 2.25rem;
	border: 0;
	font-family: var(--font-bold);
	font-weight: 800;
	font-size: var(--text-m);
	line-height: 1.4;
}

blockquote::before,
.wp-block-quote::before {
	content: "";
	position: absolute;
	top: 0.35em;
	left: 0;
	width: 1.25rem;
	height: 1rem;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'><path fill='black' d='M9.98 0h9.21c-2.28 2.49-4.12 5.2-5.51 8.13-1.39 2.87-2.03 5.3-1.9 7.29l-2.76-2.8c2.66 0 4.88.84 6.65 2.52 1.77 1.68 2.66 3.71 2.66 6.08 0 2.49-.86 4.58-2.57 6.26C14.13 29.16 12 30 9.41 30c-2.79 0-5.07-.93-6.84-2.8C.86 25.26 0 22.77 0 19.72c0-1.99.48-4.17 1.43-6.54.95-2.43 2.15-4.8 3.61-7.1C6.56 3.77 8.2 1.74 9.98 0zm20.8 0H40c-2.28 2.49-4.12 5.2-5.51 8.13-1.39 2.87-2.03 5.3-1.9 7.29l-2.76-2.8c2.66 0 4.88.84 6.65 2.52 1.77 1.68 2.66 3.71 2.66 6.08 0 2.49-.86 4.58-2.57 6.26C34.93 29.16 32.81 30 30.21 30c-2.79 0-5.07-.93-6.84-2.8-1.71-1.93-2.57-4.42-2.57-7.48 0-1.99.48-4.17 1.43-6.54.95-2.43 2.15-4.8 3.61-7.1C27.36 3.77 29.01 1.74 30.78 0z'/></svg>") no-repeat 0 0 / contain;
}

blockquote p,
.wp-block-quote p {
	margin-bottom: 0.5em;
}

blockquote cite,
.wp-block-quote cite {
	display: block;
	font-style: normal;
	font-weight: 600;
	font-size: var(--text-s);
	color: var(--color-muted);
}

hr,
.wp-block-separator {
	border: 0;
	border-top: 2px solid var(--color-dark);
	margin: var(--space-m) 0;
}

table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
	font-size: var(--text-s);
}

th,
td {
	text-align: left;
	padding: 0.6em 0.75em;
	border-bottom: 2px solid var(--color-grey-line);
	vertical-align: top;
}

th {
	font-weight: 800;
	text-transform: uppercase;
	font-size: 0.9em;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: var(--color-grey);
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

.wrap {
	width: 100%;
	max-width: var(--wrap-max);
	margin-inline: auto;
	padding-inline: var(--wrap-pad);
}

.reading {
	width: 100%;
	max-width: var(--reading-max);
	margin-inline: auto;
}

/* Normale Inhalte (Absätze, Bilder, Listen) bleiben in der Lesespalte,
   die Sektionen der Theme-Blöcke laufen über die ganze Breite. */
.entry-content {
	margin-bottom: var(--space-l);
}

.entry-content > :not(.gj-section),
.entry-content > .gj-section--inline {
	width: calc(100% - 2 * var(--wrap-pad));
	max-width: var(--reading-max);
	margin-left: auto;
	margin-right: auto;
}

.entry-content > .gj-section:not(.gj-section--inline) {
	margin-top: var(--space-l);
	margin-bottom: var(--space-l);
}

.entry-content > .gj-section:first-child {
	margin-top: 0;
}

.entry-content > p,
.entry-content > ul,
.entry-content > ol {
	margin-bottom: 1.5em;
}

.entry-content > .wp-block-image,
.entry-content > figure {
	margin-top: var(--space-m);
	margin-bottom: var(--space-m);
}

.wp-block-image img {
	width: 100%;
}

.wp-block-image figcaption,
.wp-caption-text {
	font-size: var(--text-s);
	color: var(--color-muted);
	margin-top: 0.5em;
}

.entry-content--intro {
	margin-bottom: var(--space-m);
}

.gj-section {
	margin-top: var(--space-l);
	margin-bottom: var(--space-l);
}

.gj-section--apricot {
	background-color: var(--color-apricot);
	padding-top: var(--space-l);
	padding-bottom: var(--space-l);
}

.gj-section--grau {
	background-color: var(--color-grey);
	padding-top: var(--space-l);
	padding-bottom: var(--space-s);
}

.gj-section--inline {
	margin-top: var(--space-m);
	margin-bottom: var(--space-m);
}

.grid {
	display: grid;
	gap: var(--space-m) var(--space-s);
	grid-template-columns: 1fr;
}

.grid > * {
	min-width: 0;
}

.split {
	display: grid;
	gap: var(--space-s) var(--space-l);
	grid-template-columns: 1fr;
	margin-bottom: var(--space-m);
}

.split__title {
	font-size: var(--text-2xl);
	margin-bottom: var(--space-s);
}

.split--grau {
	padding-bottom: var(--space-m);
}

.split--grau + .split--grau {
	border-top: 2px solid var(--color-grey-line);
	padding-top: var(--space-m);
}

.section-more {
	margin-top: var(--space-m);
}

@media (min-width: 48rem) {
	.grid--2,
	.grid--3,
	.grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.grid {
		gap: var(--space-m) var(--space-m);
	}
}

@media (min-width: 62rem) {
	.split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
	}

	.split--topics {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}
}

@media (min-width: 75rem) {
	.grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ==========================================================================
   5. Kopf und Navigation
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 2;
	background: var(--gradient-1);
}

.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.site-logo {
	grid-column: 2;
	display: block;
	max-width: 100%;
}

.site-logo__img {
	/* Feste Höhe statt max-height: SVG-Logos ohne eigene Breiten- und Höhenangabe
	   (nur viewBox) hätten sonst keine Größe und blieben unsichtbar. */
	width: auto;
	/* Höhe statt max-height, sonst bleiben SVG-Logos ohne eigene Maße unsichtbar.
	   Der Wert wächst mit der Bildschirmbreite, damit auch kompakte, hohe Logos
	   auf dem Handy groß genug erscheinen. */
	height: calc(clamp(4rem, 8vw + 2rem, 6.5rem) * var(--logo-scale));
	max-width: 100%;
	object-fit: contain;
	object-position: center;
}

.site-logo__text {
	display: block;
	font-family: var(--font-bold);
	font-weight: 800;
	font-size: var(--text-xl);
	text-transform: uppercase;
	padding: 0.5rem 0;
}

/* Burger-Schalter, nur auf kleinen Bildschirmen */
.nav-burger {
	grid-column: 3;
	justify-self: end;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.nav-burger__icon {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 2.25rem;
	height: 1.6rem;
}

.nav-burger__icon span {
	display: block;
	height: 4px;
	background: var(--color-dark);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-burger[aria-expanded="true"] .nav-burger__icon span:nth-child(1) {
	transform: translateY(0.675rem) rotate(45deg);
}

.nav-burger[aria-expanded="true"] .nav-burger__icon span:nth-child(2) {
	opacity: 0;
}

.nav-burger[aria-expanded="true"] .nav-burger__icon span:nth-child(3) {
	transform: translateY(-0.675rem) rotate(-45deg);
}

/* Navigation: auf kleinen Bildschirmen ein aufklappbares Menü, sonst eine schiebbare Leiste */
.site-nav {
	position: relative;
	background: var(--color-grey);
}

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list li {
	margin: 0;
	padding: 0;
}

.site-nav__toggle {
	appearance: none;
	border: 0;
	background: none;
	cursor: pointer;
}

.site-nav__toggle .icon {
	width: 1em;
	height: 1em;
	flex: none;
	transition: transform 0.3s ease;
}

.site-nav__toggle[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

.site-nav__list a,
.site-nav__toggle {
	font-family: var(--font-bold);
	font-weight: 800;
	color: inherit;
}

.site-nav__arrow {
	display: none;
}

/* --- kleine Bildschirme: Burger-Menü --- */
@media (max-width: 47.99rem) {
	.site-nav {
		display: none;
		border-top: 2px solid rgba(0, 0, 0, 0.08);
	}

	.site-header.menu-open .site-nav {
		display: block;
	}

	.site-nav__list {
		padding: 0.25rem var(--wrap-pad) 0.75rem;
	}

	.site-nav__list > li + li {
		border-top: 2px solid rgba(0, 0, 0, 0.08);
	}

	.site-nav__list > li > a,
	.site-nav__list > li > .site-nav__toggle {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 0.75rem;
		width: 100%;
		padding: 0.9rem 0;
		font-size: var(--text-m);
		line-height: 1.2;
		text-align: left;
	}

	.site-nav__list > li.current-menu-item > a,
	.site-nav__list > li.current-menu-ancestor > a,
	.site-nav__list > li.current-menu-ancestor > .site-nav__toggle:not(.site-nav__toggle--extra) {
		box-shadow: inset 6px 0 0 var(--color-lavender);
		padding-left: 0.9rem;
	}

	/* Menüpunkt mit eigener Seite und Unterpunkten: Link und Aufklapp-Schalter nebeneinander */
	.site-nav__list > li:has(> .site-nav__toggle--extra) {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.site-nav__list > li:has(> .site-nav__toggle--extra) > a {
		flex: 1;
		width: auto;
	}

	.site-nav__list > li > .site-nav__toggle--extra {
		width: auto;
		flex: none;
		padding: 0.9rem 0.25rem 0.9rem 0.75rem;
	}

	.site-nav .sub-menu {
		display: none;
		flex-basis: 100%;
		list-style: none;
		margin: 0;
		padding: 0 0 0.5rem 1.25rem;
	}

	.site-nav li.is-open > .sub-menu {
		display: block;
	}

	.site-nav .sub-menu a {
		display: block;
		padding: 0.6rem 0;
		font-size: var(--text-base);
		line-height: 1.3;
	}

	.site-nav .sub-menu .current-menu-item > a {
		text-decoration: underline;
		text-decoration-thickness: 3px;
		text-decoration-color: var(--color-lavender);
		text-underline-offset: 0.2em;
	}
}

/* --- mittlere und große Bildschirme: schiebbare Leiste mit Überblendung --- */
@media (min-width: 48rem) {
	.nav-burger {
		display: none;
	}

	.site-nav__scroller {
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		-ms-overflow-style: none;
		cursor: grab;
	}

	.site-nav__scroller::-webkit-scrollbar {
		display: none;
	}

	.site-nav__scroller.is-dragging {
		cursor: grabbing;
		user-select: none;
	}

	.site-nav__list {
		display: flex;
		align-items: stretch;
		width: max-content;
		min-width: 100%;
		padding: 0 var(--wrap-pad);
		white-space: nowrap;
	}

	.site-nav__list > li {
		flex: none;
		position: static;
	}

	.site-nav__list > li + li {
		margin-left: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	}

	.site-nav__list > li:last-child {
		padding-right: 3rem;
	}

	.site-nav__list > li > a,
	.site-nav__list > li > .site-nav__toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.4rem;
		padding: 0.9rem 0 1rem;
		font-size: var(--text-m);
		line-height: 1;
		position: relative;
	}

	.site-nav__toggle--extra {
		min-width: 1.75rem;
		padding-left: 0;
		padding-right: 0;
		margin-left: 0.15rem;
	}

	.site-nav__list > li > a::after,
	.site-nav__list > li > .site-nav__toggle::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 6px;
		background: var(--color-lavender);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform var(--transition);
	}

	.site-nav__list > li:hover > a::after,
	.site-nav__list > li > a:focus-visible::after,
	.site-nav__list > li.current-menu-item > a::after,
	.site-nav__list > li.current-menu-ancestor > a::after,
	.site-nav__list > li.current-menu-parent > a::after,
	.site-nav__list > li.current-menu-ancestor > .site-nav__toggle:not(.site-nav__toggle--extra)::after,
	.site-nav__list > li.current-menu-parent > .site-nav__toggle:not(.site-nav__toggle--extra)::after,
	.site-nav__list > li.is-open > .site-nav__toggle:not(.site-nav__toggle--extra)::after {
		transform: scaleX(1);
	}

	/* Überblendung an den Rändern, solange dort Menüpunkte verborgen sind */
	.site-nav::before,
	.site-nav::after {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		width: 7rem;
		z-index: 2;
		pointer-events: none;
		opacity: 0;
		transition: opacity 0.2s ease;
	}

	.site-nav::before {
		left: 0;
		background: linear-gradient(to right, var(--color-grey) 50%, rgba(242, 242, 242, 0));
	}

	.site-nav::after {
		right: 0;
		background: linear-gradient(to left, var(--color-grey) 50%, rgba(242, 242, 242, 0));
	}

	.site-nav--fade-left::before,
	.site-nav--fade-right::after {
		opacity: 1;
	}

	.site-nav__arrow {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 50%;
		z-index: 3;
		width: 2.25rem;
		height: 2.25rem;
		margin-top: -1.125rem;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--color-dark);
		color: var(--color-white);
		cursor: pointer;
		transition: transform var(--transition), background-color var(--transition);
	}

	.site-nav__arrow[hidden] {
		display: none;
	}

	.site-nav__arrow:hover,
	.site-nav__arrow:focus-visible {
		background: var(--color-lavender);
		color: var(--color-dark);
	}

	.site-nav__arrow .icon {
		width: 1rem;
		height: 1rem;
	}

	.site-nav__arrow .icon path {
		fill: currentColor;
	}

	.site-nav__arrow--right {
		right: 0.75rem;
	}

	.site-nav__arrow--right .icon {
		transform: rotate(-90deg);
	}

	.site-nav__arrow--left {
		left: 0.75rem;
	}

	.site-nav__arrow--left .icon {
		transform: rotate(90deg);
	}

	.site-nav .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: var(--sub-left, var(--wrap-pad));
		z-index: 20;
		min-width: 14rem;
		max-width: calc(100vw - 2 * var(--wrap-pad));
		list-style: none;
		margin: 0;
		padding: 0.5rem 1rem;
		background: var(--color-grey);
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
		white-space: normal;
	}

	.site-nav li.is-open > .sub-menu {
		display: block;
	}

	.site-nav .sub-menu li {
		border-top: 2px solid rgba(0, 0, 0, 0.08);
	}

	.site-nav .sub-menu li:first-child {
		border-top: 0;
	}

	.site-nav .sub-menu a {
		display: block;
		padding: 0.7rem 0;
		font-size: var(--text-base);
		line-height: 1.3;
	}

	.site-nav .sub-menu a:hover,
	.site-nav .sub-menu .current-menu-item > a {
		text-decoration: underline;
		text-decoration-thickness: 3px;
		text-decoration-color: var(--color-lavender);
		text-underline-offset: 0.2em;
	}
}

/* ==========================================================================
   6. Seitenkopf, Brotkrumen, Meta
   ========================================================================== */

.site-main {
	position: relative;
	z-index: 1;
	background: var(--color-white);
	padding-top: var(--space-m);
	padding-bottom: var(--space-l);
}

.page-header {
	margin-bottom: var(--space-m);
}

.page-header--start {
	margin-bottom: var(--space-m);
}

.page-header__meta {
	margin-bottom: var(--space-s);
}

.breadcrumb {
	display: none;
	margin-bottom: var(--space-s);
	font-size: var(--text-s);
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.breadcrumb li {
	margin: 0;
	color: var(--color-muted);
}

.breadcrumb li + li::before {
	content: "/";
	margin: 0 0.6em;
}

.breadcrumb a {
	color: var(--color-dark);
	font-weight: 800;
}

.breadcrumb a:hover {
	text-decoration: underline;
	text-decoration-color: var(--color-lavender);
	text-decoration-thickness: 2px;
}

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.75rem;
	font-family: var(--font-bold);
	font-weight: 800;
	font-size: var(--text-s);
	text-transform: uppercase;
	line-height: 1.3;
}

.meta > * {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.meta > * + *::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 1em;
	background: currentColor;
	margin-right: 0.35rem;
}

.meta .icon {
	width: 1.1em;
	height: 1.1em;
	flex: none;
}

.tag {
	display: inline-block;
	padding: 0.1em 0.4em;
	background: var(--color-apricot);
	font-family: var(--font-bold);
	font-weight: 800;
	font-size: var(--text-s);
	text-transform: uppercase;
	line-height: 1.4;
}

.meta .tag::before {
	display: none;
}

.opener {
	margin-bottom: var(--space-m);
}

.opener__img {
	width: 100%;
	max-width: var(--reading-max);
	margin-inline: auto;
}

.opener__copyright {
	max-width: var(--reading-max);
	margin: 0.4rem auto 0;
	font-size: var(--text-s);
	color: var(--color-muted);
	text-align: right;
}

@media (min-width: 62rem) {
	.breadcrumb {
		display: block;
	}

	.site-main {
		padding-top: var(--space-l);
	}

	.site-header__inner {
		padding-top: 1.1rem;
		padding-bottom: 1.1rem;
	}

	.site-logo__img {
		height: calc(7.5rem * var(--logo-scale));
	}
}

/* ==========================================================================
   7. Links, Kacheln, Boxen, Akkordeon
   ========================================================================== */

.link-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin: var(--space-m) 0 0;
}

.prose + .link-group {
	margin-top: var(--space-s);
}

.link-underline {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0 0 0.55rem;
	font-family: var(--font-bold);
	font-weight: 800;
	font-size: var(--text-m);
	line-height: 1.2;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
}

.link-underline::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 6px;
	background: var(--color-lavender);
	transition: height var(--transition), background-color var(--transition);
}

.link-underline:hover::after,
.link-underline:focus-visible::after {
	height: 10px;
}

.link-underline--light::after,
.gj-section--apricot .link-underline::after {
	background: var(--color-lime);
}

.link-underline .icon {
	width: 1em;
	height: 1em;
	flex: none;
}

.link-underline--icon .icon--chevron {
	transition: transform 0.3s ease;
}

.showmore[aria-expanded="true"] .icon--chevron {
	transform: rotate(180deg);
}

.prose + .showmore {
	margin-top: var(--space-s);
}

.showmore__panel {
	margin-top: var(--space-s);
}

.biglink {
	font-size: var(--text-l);
}

.link-cards {
	display: grid;
	gap: var(--space-s);
	margin-top: var(--space-m);
}

.link-cards--grid {
	margin-top: var(--space-s);
}

.link-card {
	container-type: inline-size;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 1rem 1.25rem;
	background: var(--color-grey);
	border: 0;
	text-align: left;
	cursor: pointer;
	transition: background-color var(--transition);
}

.link-card:hover,
.link-card:focus-visible {
	background: var(--color-lime);
}

.link-card__title {
	display: block;
	font-family: var(--font-bold);
	font-weight: 800;
	font-size: clamp(1.05rem, 0.6rem + 3.5cqi, 1.5rem);
	line-height: 1.3;
}

.link-card__label {
	min-width: 0;
	flex: 1;
}

.link-card .meta {
	margin-top: 0.5rem;
}

.link-card__icon {
	flex: none;
	width: 2rem;
	height: 2rem;
	transition: transform var(--transition);
}

.link-card--download .link-card__icon,
.link-card--extern .link-card__icon {
	width: 1.6rem;
	height: 1.6rem;
}

.link-card:hover .link-card__icon {
	transform: translateX(4px);
}

.link-card--download:hover .link-card__icon {
	transform: translateY(3px);
}

.info-card {
	margin-top: var(--space-m);
	padding: 1.25rem;
	background: var(--color-grey);
}

.info-card__title {
	font-size: var(--text-m);
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

.info-card p {
	margin-bottom: 0.75em;
}

.info-card p:last-child {
	margin-bottom: 0;
}

.info-card__title + p {
	margin-top: 0;
}

.info-card p + .info-card__title {
	margin-top: 1rem;
}

.gj-section--apricot .info-card,
.gj-section--apricot .link-card {
	background: var(--color-white);
}

.accordion {
	margin-top: var(--space-m);
	display: grid;
	gap: var(--space-s);
}

.accordion__item {
	background: var(--color-grey);
	padding: 1rem 1.25rem;
}

.accordion__heading {
	margin: 0;
	font-size: inherit;
}

.accordion__button {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
}

.accordion__subhead {
	display: block;
	font-size: var(--text-s);
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.accordion__title {
	display: block;
	font-family: var(--font-bold);
	font-weight: 800;
	font-size: var(--text-m);
	line-height: 1.3;
}

.accordion__icon {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.3rem;
	transition: transform 0.3s ease;
}

.accordion__button[aria-expanded="true"] .accordion__icon {
	transform: rotate(180deg);
}

.accordion__panel {
	padding-top: 1rem;
}

.accordion__panel .link-group {
	margin-top: var(--space-s);
}

/* ==========================================================================
   8. Teaser und Karten
   ========================================================================== */

.teaser {
	position: relative;
	min-width: 0;
}

.teaser__link {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.teaser__figure {
	position: relative;
	aspect-ratio: 5 / 3;
	overflow: hidden;
	background: var(--color-grey);
}

.teaser__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.teaser__link:hover .teaser__img {
	transform: scale(1.04);
}

.teaser__figure .tag {
	position: absolute;
	top: 1rem;
	left: 1rem;
}

.teaser__body {
	flex: 1;
	padding: 1.25rem;
	background: var(--color-grey);
}

.teaser__title {
	font-size: var(--text-m);
	margin: 0 0 0.5rem;
}

.teaser__link:hover .teaser__title {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-decoration-color: var(--color-lavender);
	text-underline-offset: 0.15em;
}

.teaser .date {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--font-bold);
	font-weight: 800;
	font-size: var(--text-s);
	text-transform: uppercase;
}

.teaser--featured {
	margin-bottom: var(--space-m);
	background: var(--color-grey);
}

.teaser--featured .teaser__figure {
	aspect-ratio: 16 / 9;
}

.teaser--featured .teaser__title {
	font-size: var(--text-xl);
	margin: 0.75rem 0;
}

.teaser--featured .teaser__excerpt {
	margin: 0;
}

.gj-section--apricot .teaser__body,
.gj-section--apricot .teaser__figure {
	background: var(--color-white);
}

/* Themenkarten */
.topic-card {
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1rem;
	min-height: 12.5rem;
	min-width: 0;
	padding: 1.25rem;
	background: var(--color-lime);
	transition: transform var(--transition), box-shadow var(--transition);
}

a.topic-card:hover,
a.topic-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.topic-card__icon {
	width: auto;
	height: 4.25rem;
	max-width: 6rem;
	object-fit: contain;
	object-position: left;
}

.topic-card__title {
	display: block;
	font-family: var(--font-bold);
	font-weight: 800;
	font-size: clamp(1.125rem, 0.4rem + 7cqi, 1.75rem);
	line-height: 1.2;
}

/* Personen */
.person {
	position: relative;
	container-type: inline-size;
	min-width: 0;
}

.person__card {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	color: inherit;
}

button.person__card {
	cursor: pointer;
}

.person__figure {
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--color-grey);
}

.person__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

button.person__card:hover .person__img {
	transform: scale(1.04);
}

.person__card--photo {
	position: relative;
}

.person__card--photo .person__caption {
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
}

.person__caption {
	display: block;
}

.person__name {
	display: block;
	font-family: var(--font-bold);
	font-weight: 800;
	font-size: clamp(1.125rem, 0.5rem + 5cqi, 1.75rem);
	line-height: 1.25;
}

.person__name .hl,
.person__role .hl {
	display: inline;
}

.person__role {
	display: block;
	margin-top: 0.35rem;
	font-family: var(--font-bold);
	font-weight: 800;
	font-size: var(--text-s);
	line-height: 1.3;
}

.person__role .hl--white {
	padding: 0.15em 0.4em;
}

.person__card--plain .person__name .hl {
	background: var(--color-apricot);
}

.person__card--plain .person__role {
	margin-left: 0.3em;
}

.person__card--plain .person__role .hl {
	background: transparent;
	padding: 0;
}

button.person__card--plain:hover .person__name .hl {
	background: var(--color-lime);
}

.persons--plain {
	gap: var(--space-m) var(--space-s);
}

/* Termine */
.event-teaser {
	border-bottom: 2px solid var(--color-dark);
	padding: var(--space-s) 0;
}

.month-group__list .event-teaser:first-child {
	border-top: 2px solid var(--color-dark);
}

.event-teaser__link {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.event-teaser__figure {
	aspect-ratio: 5 / 3;
	overflow: hidden;
	background: var(--color-grey);
}

.event-teaser__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.event-teaser__link:hover .event-teaser__img {
	transform: scale(1.04);
}

.event-teaser__title {
	font-size: var(--text-l);
	margin: 0 0 0.5rem;
}

.event-teaser__link:hover .event-teaser__title {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-decoration-color: var(--color-lavender);
	text-underline-offset: 0.15em;
}

.month-group + .month-group {
	margin-top: var(--space-m);
}

.month-group__title {
	font-size: var(--text-l);
	margin-bottom: var(--space-s);
}

.event-featured {
	background: var(--color-pink);
	padding: 1.25rem;
}

.event-featured__link {
	display: flex;
	flex-direction: column;
	gap: var(--space-s);
}

.event-featured__figure {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--color-white);
}

.event-featured__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.event-featured__link:hover .event-featured__img {
	transform: scale(1.03);
}

.event-featured__title {
	font-size: var(--text-2xl);
	margin-bottom: var(--space-s);
	/* Platz für den farbigen Rand des .hl-Spans am Zeilenende */
	padding-right: 0.3em;
}

.event-featured__title .hl {
	display: inline;
}

@media (min-width: 48rem) {
	.event-teaser {
		padding: var(--space-m) 0;
	}

	.event-teaser__link {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: var(--space-m);
	}

	.event-teaser__body {
		flex: 1;
	}

	.event-teaser__figure {
		flex: 0 0 28%;
		order: 1;
		aspect-ratio: 2 / 1;
	}

	.event-featured {
		padding: var(--space-m);
	}
}

@media (min-width: 62rem) {
	.month-group {
		display: grid;
		grid-template-columns: 1fr 2fr;
		gap: var(--space-m);
		border-top: 2px solid var(--color-dark);
		padding-top: var(--space-s);
	}

	.month-group__list .event-teaser:first-child {
		border-top: 0;
		padding-top: 0;
	}

	.month-group__list .event-teaser:last-child {
		border-bottom: 0;
	}

	.month-group + .month-group {
		margin-top: var(--space-s);
	}
}

/* ==========================================================================
   9. Banner
   ========================================================================== */

.banner {
	display: grid;
	gap: var(--space-m);
	padding: var(--space-m) var(--wrap-pad);
	background: var(--gradient-2-mobile);
	margin: 0;
}

.banner__headline {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

.banner__icon {
	width: 5rem;
	height: 5rem;
	object-fit: contain;
	flex: none;
}

.banner__title {
	font-size: var(--text-xl);
	margin: 0;
	max-width: 40rem;
}

.banner__action {
	display: flex;
	justify-content: center;
}

.donate-group {
	flex-wrap: wrap;
	gap: 0.75rem;
}

.donate-btn {
	appearance: none;
	border: 0;
	padding: 0 0.4em;
	background: var(--color-lime);
	font-family: var(--font-bold);
	font-weight: 800;
	font-size: var(--text-2xl);
	line-height: 1.25;
	cursor: pointer;
	transition: transform var(--transition), background-color var(--transition);
}

.donate-btn:hover,
.donate-btn:focus-visible {
	background: var(--color-white);
	transform: scale(1.05);
}

@media (min-width: 48rem) {
	.banner {
		background: var(--gradient-2);
	}

	.banner__headline {
		flex-direction: row;
		text-align: left;
	}
}

@media (min-width: 75rem) {
	.banner {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}

	.banner--link {
		grid-template-columns: 2fr 1fr;
	}

	.banner__action {
		justify-content: flex-end;
	}

	.donate-group {
		justify-content: flex-end;
	}
}

/* ==========================================================================
   10. Zitat, Suche, Paginierung, Dialog
   ========================================================================== */

.quote {
	margin: 0;
	font-size: var(--text-l);
}

.quote__source {
	margin-top: 0.5rem;
	padding-left: 2.25rem;
	color: var(--color-muted);
	font-size: var(--text-s);
}

.search-form__label {
	display: block;
	font-weight: 800;
	margin-bottom: 0.5rem;
}

.search-form__row {
	display: flex;
	gap: 0.5rem;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	padding: 0.75rem 1rem;
	border: 2px solid var(--color-dark);
	border-radius: 0;
	font: inherit;
}

.button,
button.button {
	appearance: none;
	border: 0;
	padding: 0.75rem 1.5rem;
	background: var(--color-dark);
	color: var(--color-white);
	font-family: var(--font-bold);
	font-weight: 800;
	cursor: pointer;
}

.pagination {
	margin-top: var(--space-l);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-family: var(--font-bold);
	font-weight: 800;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 0.4rem 0.8rem;
	background: var(--color-grey);
}

.pagination .page-numbers.current {
	background: var(--color-lime);
}

.pagination .screen-reader-text {
	position: absolute;
	clip: rect(0 0 0 0);
}

.dialog {
	width: min(100%, 55rem);
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	background: var(--color-white);
	color: var(--color-dark);
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.2);
}

.dialog[open] {
	animation: dialog-in 0.3s ease;
}

.dialog::backdrop {
	background: rgba(0, 0, 0, 0.45);
}

.dialog__inner {
	padding: var(--space-m) var(--wrap-pad) var(--space-l);
}

.dialog__close {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: var(--space-m);
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--font-bold);
	font-weight: 800;
	cursor: pointer;
}

.dialog__close .icon {
	width: 1rem;
	height: 1rem;
}

.dialog__title {
	font-size: var(--text-xl);
	margin-bottom: var(--space-s);
}

.dialog__title .hl {
	display: inline;
}

.dialog__subtitle {
	font-family: var(--font-bold);
	font-weight: 800;
	margin-bottom: var(--space-m);
}

.dialog .prose h4,
.dialog h4 {
	font-size: var(--text-m);
	margin: var(--space-s) 0 0.5rem;
}

body.dialog-open {
	overflow: hidden;
}

@keyframes dialog-in {
	from {
		transform: translateX(2rem);
		opacity: 0;
	}

	to {
		transform: none;
		opacity: 1;
	}
}

/* ==========================================================================
   11. Footer (bleibt hinter dem Inhalt stehen und wird beim Scrollen freigelegt)
   ========================================================================== */

.site-footer {
	position: sticky;
	bottom: 0;
	z-index: 0;
	background: var(--gradient-1);
	padding-top: var(--space-m);
	padding-bottom: var(--space-m);
}

.site-footer__logo {
	display: block;
	max-width: 54rem;
	margin: 0 auto var(--space-m);
}

.site-footer__logo-img {
	width: 100%;
	/* auto nutzt das Seitenverhältnis der Datei, der zweite Wert greift nur,
	   wenn das SVG keines mitbringt – sonst wäre das Logo hier 0 Pixel hoch. */
	aspect-ratio: auto 5 / 1;
	height: auto;
	max-height: 30vh;
	object-fit: contain;
}

.site-footer__contact {
	margin-bottom: var(--space-s);
}

.site-footer__contact p {
	margin-bottom: 1rem;
}

.site-footer__contact a {
	display: inline-block;
	padding: 0.2rem 0;
}

.site-footer__contact a:hover {
	text-decoration: underline;
}

.site-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: var(--space-s);
}

.site-footer__menu {
	list-style: none;
	margin: 0 0 0.5rem;
	padding: 0;
}

.site-footer__menu li {
	margin: 0 0 0.5rem;
}

.site-footer__menu a {
	display: inline-block;
	/* mindestens 24px hoch, damit der Link auch mit dem Finger gut zu treffen ist */
	padding: 0.2rem 0;
	font-family: var(--font-bold);
	font-weight: 800;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.15em;
}

.site-footer__copyright {
	margin: 0;
}

.social-menu {
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.social-menu li {
	margin: 0;
}

.social-menu a {
	display: block;
	transition: transform var(--transition);
}

.social-menu a:hover {
	transform: scale(1.1);
}

.social-menu .icon {
	width: 2.5rem;
	height: 2.5rem;
}

@media (min-width: 48rem) {
	.site-footer__contact {
		display: flex;
		gap: var(--space-l);
	}

	.site-footer__bottom {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-end;
	}

	.social-menu .icon {
		width: 3rem;
		height: 3rem;
	}
}

/* ==========================================================================
   12. Editor-Hinweise, Druck, Bewegung
   ========================================================================== */

.gj-block-hinweis {
	padding: 1rem 1.25rem;
	border: 2px dashed var(--color-lavender);
	background: rgba(159, 136, 255, 0.08);
	font-size: var(--text-s);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

@media print {
	.site-nav,
	.site-footer,
	.skip-link,
	.dialog,
	.breadcrumb {
		display: none !important;
	}

	.site-header {
		background: none;
	}

	.hl {
		background: none;
		padding: 0;
	}
}
