/* ==========================================================================
   Comfortaa – lokal eingebunden (keine Verbindung zu Google)
   ========================================================================== */

@font-face {
	font-display: swap;
	font-family: "Comfortaa";
	font-style: normal;
	font-weight: 300;
	src: url("fonts/comfortaa-v47-latin-300.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "Comfortaa";
	font-style: normal;
	font-weight: 400;
	src: url("fonts/comfortaa-v47-latin-regular.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "Comfortaa";
	font-style: normal;
	font-weight: 500;
	src: url("fonts/comfortaa-v47-latin-500.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "Comfortaa";
	font-style: normal;
	font-weight: 600;
	src: url("fonts/comfortaa-v47-latin-600.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "Comfortaa";
	font-style: normal;
	font-weight: 700;
	src: url("fonts/comfortaa-v47-latin-700.woff2") format("woff2");
}

/* ==========================================================================
   Basis
   ========================================================================== */

:root {
	--color-text: #141414;
	--color-muted: #5c5c5c;
	--color-accent: #F56E00;
	--color-accent-dark: #F56E00; /* AA-Kontrast auf Weiß für Links */
	--color-background: #F4F4F4;

	--font-family: "Comfortaa", ui-rounded, system-ui, sans-serif;

	/* Fluide Typo-Skala: wächst sanft zwischen ~360px und ~1200px Viewport */
	--font-size-small: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
	--font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	--font-size-h1: clamp(1.25rem, 1rem + 2.2vw, 2.25rem);

	--measure: 50rem; /* angenehme Zeilenlänge ≈ 60–70 Zeichen */
	--space: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/* ==========================================================================
   Layout: Inhalte horizontal und vertikal zentriert
   ========================================================================== */

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	padding: var(--space);

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	text-align: center;
	background-color: var(--color-background);
	color: var(--color-text);

	font-family: var(--font-family);
	font-size: var(--font-size-base);
	font-weight: 400;
	line-height: 1.65;
	font-kerning: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body > * {
	max-width: var(--measure);
}

/* ==========================================================================
   Logo
   ========================================================================== */

body > svg {
	display: block;
	width: clamp(9.5rem, 7rem + 10vw, 13rem);
	height: auto;
	margin-bottom: calc(var(--space) * 1.75);
}

/* ==========================================================================
   Typografie
   ========================================================================== */

h1 {
	margin: 0 0 0.75em;
	font-size: var(--font-size-h1);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
	hyphens: auto;
	-webkit-hyphens: auto;
}

/* Hinweis- / Impressumszeile */
p:last-of-type {
	margin-bottom: 0;
	color: var(--color-muted);
}

small {
	font-size: var(--font-size-small);
	line-height: 1.6;
}

/* ==========================================================================
   Förderer & Umsetzung (Logozeile am Ende)
   ========================================================================== */

.partners {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.25rem clamp(2rem, 1rem + 4vw, 4rem);
	width: 100%;
	margin-top: calc(var(--space) * 2);
	padding-top: calc(var(--space) * 1.25);
	border-top: 1px solid #e6e6e6;
}

.partners__group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.25rem;
}

.partners__label {
	flex-basis: 100%;
	font-size: var(--font-size-small);
	color: var(--color-muted);
	white-space: nowrap;
}

.partners__logo {
	display: block;
	width: auto;
}

/* Höhen optisch aufeinander abgestimmt (Bildmarken unterschiedlich proportioniert) */
.partners__logo--eu  { height: 2.5rem; }
.partners__logo--bb  { height: 3.25rem; }
.partners__logo--fbb { height: 1.875rem; }

/* Ab Tablet-Breite: Label links neben den Logos, beide Gruppen in einer Zeile
   (bei knappem Platz bricht die zweite Gruppe sauber in die nächste Zeile um) */
@media (min-width: 48em) {
	.partners__group {
		flex-wrap: nowrap;
	}

	.partners__label {
		flex-basis: auto;
	}
}

/* ==========================================================================
   Links
   ========================================================================== */

a {
	color: var(--color-accent-dark);
	text-decoration-line: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
	color: var(--color-text);
	text-decoration-color: var(--color-accent);
}

a:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
	border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
	a {
		transition: none;
	}
}
