:root {
	--blue: #004287;
	--blue-dark: #002f61;
	--blue-light: #e8eef6;
	--text: #1d2430;
	--muted: #5b6573;
	--line: #dde2e8;
	--bg: #ffffff;
	--bg-soft: #f5f7fa;
	--radius: 6px;
	--wrap: 72rem;
	--narrow: 46rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.25; color: var(--blue); }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 1.5rem 0 1rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.1rem; margin: .25rem 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: var(--narrow); }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: #fff; padding: .5rem 1rem; }

/* header + navigation: transparent bar over the hero, solid once scrolled */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; color: #fff; transition: background-color .2s, box-shadow .2s; }
.no-js .site-header, html:not(.js) .site-header { position: absolute; }
.site-header.scrolled, .menu-open .site-header { background: var(--blue); box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .75rem; padding-bottom: .75rem; }
.logo img { width: 220px; transition: width .2s; }
.menu-toggle { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); border-radius: var(--radius); padding: .4rem .9rem; font: inherit; cursor: pointer; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { color: #fff; text-decoration: none; display: block; padding: .5rem .75rem; border-radius: var(--radius); font-weight: 500; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.menu a:hover, .menu .active > a { background: rgba(255, 255, 255, .18); color: #fff; }

@media (max-width: 799px) {
	.js .menu { display: none; width: 100%; }
	.js .menu-open .menu { display: block; }
	/* the bar is fixed, so a long open menu has to scroll inside it */
	.menu-open .site-header { max-height: 100vh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
	.menu ul ul { padding-left: 1rem; }
	.menu ul ul a { font-size: .95rem; opacity: .9; }
	/* submenus collapsed, arrow button next to the item */
	.menu .has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
	.menu .has-sub > ul { grid-column: 1 / -1; }
	.js .menu .has-sub:not(.sub-open) > ul { display: none; }
	.submenu-toggle { width: 2.75rem; height: 2.75rem; border: 0; border-radius: var(--radius); background: transparent; color: #fff; cursor: pointer; }
	.submenu-toggle::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-25%) rotate(45deg); transition: transform .15s; }
	.submenu-toggle[aria-expanded="true"]::before { transform: translateY(25%) rotate(-135deg); }
	.submenu-toggle:hover, .submenu-toggle:focus-visible { background: rgba(255, 255, 255, .18); }
}

@media (min-width: 800px) {
	.menu-toggle, .submenu-toggle { display: none; }
	.logo img { width: 320px; }
	.scrolled .logo img { width: 220px; }
	.menu > ul { display: flex; gap: .25rem; }
	.menu > ul > li { position: relative; }
	.menu ul ul { display: none; position: absolute; left: 0; top: 100%; min-width: 15rem; background: var(--blue-dark); border-radius: var(--radius); padding: .35rem; z-index: 5; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
	.menu li:hover > ul, .menu li:focus-within > ul { display: block; }
}

/* hero: photo behind the navigation */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 300px; padding: 8rem 0 2rem; background: var(--blue); color: #fff; overflow: hidden; }
.hero-large { min-height: min(62vh, 560px); align-items: center; padding: 8rem 0 3.5rem; text-align: center; }
.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0, 30, 62, .85), rgba(0, 47, 97, .45) 55%, rgba(0, 47, 97, .65)); }
.hero-content { width: 100%; }
.hero h1 { color: #fff; margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hero-large h1 { font-size: clamp(2.2rem, 6vw, 3.75rem); line-height: 1.1; }
.hero-text { font-size: clamp(1.1rem, 2.4vw, 1.4rem); max-width: 40rem; margin: 1rem auto 0; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.hero-meta { margin: 0 0 .5rem; opacity: .9; }
.hero-meta a { color: #fff; }
.hero-buttons { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.hero-buttons .button { margin: 0; padding: .8rem 1.6rem; font-size: 1.05rem; }
.hero .button-ghost { background: transparent; border-color: #fff; }
.hero .button-ghost:hover { background: #fff; border-color: #fff; color: var(--blue); }
main > .wrap:first-of-type, main > .hero + .wrap { margin-top: 2rem; }

.intro { max-width: var(--narrow); margin: 1.5rem 0; font-size: 1.05rem; }
.home-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) {
	.home-grid { grid-template-columns: 2fr 1fr; }
}

/* report cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.card a { color: inherit; text-decoration: none; display: block; height: 100%; }
.card a:hover h3 { text-decoration: underline; }
.card img, .card-placeholder { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.card-placeholder { background: var(--blue-light); }
.card-body { padding: .75rem 1rem 1rem; }
.card time { font-size: .875rem; color: var(--muted); }

.button { display: inline-block; background: var(--blue); color: #fff; border: 2px solid var(--blue); padding: .55rem 1.1rem; border-radius: var(--radius); text-decoration: none; margin-top: 1rem; }
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.filters a { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.filters a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }

.pagination, .prevnext { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }
.prevnext .older { margin-left: auto; text-align: right; }

/* events + news */
.events, .news { list-style: none; padding: 0; margin: 0; }
.events li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.event-date { display: block; font-size: .875rem; color: var(--muted); }
.event-title { display: block; }
.event-location { display: block; font-size: .9rem; color: var(--muted); }
.event-description { margin: .4rem 0 0; font-size: .95rem; }
.news li { padding: .5rem 0; border-bottom: 1px solid var(--line); }

/* "Aus dem Archiv" on the home page */
.archive-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; }
.archive-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.archive-card:hover img, .archive-card:focus-visible img { transform: scale(1.04); }
.archive-text { position: absolute; inset: auto 0 0 0; display: block; padding: 2.5rem 1rem .9rem; background: linear-gradient(to top, rgba(0, 30, 62, .9), rgba(0, 30, 62, 0)); }
.archive-ago { display: block; font-size: .85rem; opacity: .9; }
.archive-card strong { display: block; line-height: 1.3; }
.archive-card:hover, .archive-card:focus-visible { color: #fff; }
.archive-card:hover strong { text-decoration: underline; }
.news time { display: block; font-size: .8rem; color: var(--muted); }

/* article content */
.prose { overflow-wrap: anywhere; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: .35rem; }
.prose blockquote { margin: 1.5rem 0; padding: .5rem 1rem; border-left: 4px solid var(--blue); background: var(--bg-soft); }
.prose iframe, .prose video { max-width: 100%; }
.video-block iframe, .video-block video, .video-consent { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.video-consent { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 1.5rem; background: var(--blue); color: #fff; }
.video-consent p { margin: .25rem 0; max-width: 30rem; }
.video-consent a { color: #fff; }
.video-consent .button { background: #fff; color: var(--blue); border-color: #fff; margin: .5rem 1rem .5rem 0; }
.table { overflow-x: auto; margin: 1.5rem 0; }
.table table { border-collapse: collapse; width: 100%; }
.table td { border-bottom: 1px solid var(--line); padding: .6rem .75rem .6rem 0; vertical-align: top; }
.table td:first-child { font-weight: 600; color: var(--blue); width: 35%; }
.table td p { margin: 0; }
.table td p + p { margin-top: .4rem; }
.prose ul ul, .prose ol ol { margin: 0; }
.cards-block { display: grid; gap: 1.5rem 1rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); margin: 1.5rem 0; text-align: center; }
.person img { width: 100%; max-width: 12rem; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); margin: 0 auto .5rem; }
.person-text p { margin: 0; }

/* portrait pages (e.g. Vertrauenspersonen): first image as uniform portrait */
.profile > figure:first-of-type { float: right; width: 12rem; margin: .25rem 0 1rem 1.5rem; }
.profile > figure:first-of-type img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 599px) {
	.profile > figure:first-of-type { float: none; width: 10rem; margin: 0 auto 1rem; }
}
.meta { color: var(--muted); font-size: .9rem; }
.meta a { color: inherit; }

.gallery { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); margin: 2rem 0; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 3px; }
.gallery figcaption { font-size: .8rem; color: var(--muted); }

.downloads { margin: 2rem 0; padding: 1rem 1.25rem; background: var(--bg-soft); border-radius: var(--radius); }
.downloads h2 { margin-top: 0; font-size: 1.1rem; }
.downloads ul { margin: 0; padding-left: 1.2rem; }
.downloads li { margin: .35rem 0; }

.subpages ul { list-style: none; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.subpages a { display: block; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.subpages a:hover { border-color: var(--blue); }

.month h2 { border-bottom: 2px solid var(--blue); padding-bottom: .25rem; }

/* footer */
.site-footer { margin-top: 4rem; background: var(--bg-soft); border-top: 1px solid var(--line); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
