/*
Theme Name: Förderverein Dorfschule
Theme URI: https://foerderverein-dorfschule.de/
Author: Förderverein der Dorfschule Hiesfeld e.V.
Description: Schlankes Theme für foerderverein-dorfschule.de. Liefert die Schriften lokal aus, bringt Kopf- und Fußzeile für normale Seiten mit und überlässt Elementor (Free) die Inhalte.
Version: 0.4.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: foerderverein-dorfschule
*/

/* Fonts are bundled (SIL Open Font License), nothing is loaded from Google. */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-italic.woff2") format("woff2");
}

@font-face {
	font-family: "PT Serif";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/pt-serif-latin-700.woff2") format("woff2");
}

/* Design tokens, measured on the live site (2026-11-28). */
:root {
	--fd-color-teal: #00b8cb;
	--fd-color-purple: #5102e7;
	--fd-color-yellow: #ffbf3c;
	--fd-color-heading: #2d2d2d;
	--fd-color-text: #6e6e6e;
	--fd-color-surface: #f9f9f9;
	--fd-font-heading: "PT Serif", Georgia, serif;
	--fd-font-body: "Inter", system-ui, sans-serif;
	--fd-content-width: 1100px;
}

/*
 * Element defaults. Elementor pages inherit these, and the live page was laid
 * out on top of Hello Elementor's reset, so margins and line heights here
 * match that reset. The theme's own look is scoped to the .fd-* classes below.
 */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	line-height: 1.15;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	overflow-x: clip;
	background-color: #fff;
	color: #333;
	font-family: var(--fd-font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block: 0.5rem 1rem;
	color: inherit;
	font-family: inherit;
	font-weight: 500;
	line-height: 1.2;
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.75rem;
}

h4 {
	font-size: 1.5rem;
}

p {
	margin-block: 0 0.9rem;
}

a {
	color: var(--fd-color-purple);
	text-decoration: none;
}

b,
strong {
	font-weight: bolder;
}

img {
	max-width: 100%;
	height: auto;
	border-style: none;
}

dd,
dl,
dt,
li,
ol,
ul {
	margin-block: 0;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px #fff;
}

.fd-container {
	max-width: calc(var(--fd-content-width) + 30px);
	margin-inline: auto;
	padding-inline: 15px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.screen-reader-text:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 8px 15px;
	clip-path: none;
	background: #fff;
}

/* Header: teal bar, centred logo, optional menu. */
.fd-header {
	border-top: 10px solid var(--fd-color-teal);
	background: #fff;
	text-align: center;
}

.fd-header .fd-container {
	padding-block: 10px;
}

.fd-header .custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.fd-header .custom-logo {
	width: 117px;
}

.fd-header__title {
	display: inline-block;
	padding-block: 20px;
	color: var(--fd-color-heading);
	font-family: var(--fd-font-heading);
	font-size: 25px;
	font-weight: 700;
	text-decoration: none;
}

.fd-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 5px 30px;
	margin: 10px 0 5px;
	padding: 0;
	list-style: none;
}

.fd-nav a {
	display: block;
	padding: 5px 0;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.fd-nav a:hover,
.fd-nav a:focus-visible,
.fd-nav .current-menu-item > a {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Content of pages that are not built with Elementor. */
.fd-content {
	padding-block: 50px 70px;
	color: var(--fd-color-text);
	font-size: 17px;
}

.fd-content h1,
.fd-content h2,
.fd-content h3,
.fd-content h4 {
	margin-block: 1.4em 0.5em;
	color: var(--fd-color-heading);
	font-family: var(--fd-font-heading);
	font-weight: 700;
}

.fd-content h1 {
	font-size: clamp(30px, 4vw, 45px);
}

.fd-content h2 {
	font-size: clamp(25px, 3vw, 35px);
}

.fd-content h3 {
	font-size: clamp(20px, 2.2vw, 25px);
}

.fd-content a {
	text-decoration: underline;
}

.fd-content li {
	margin-block: 0.3em;
}

.fd-content > :first-child,
.fd-content .fd-content__title {
	margin-top: 0;
}

.fd-content .fd-content__title {
	margin-bottom: 30px;
}

/* Footer. */
.fd-footer .fd-container {
	padding-block: 0 20px;
}

.fd-footer p {
	margin: 0;
	padding-top: 30px;
	border-top: 1px solid #000;
	color: #000;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2.5px;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.fd-header .custom-logo {
		width: 73px;
	}
}

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