/*
Theme Name: Familienportal
Description: Öffentliche Familienseite: Anleitung für den Zugang zum Familien-Server (Tailscale) und Links zu den Diensten und zur privaten Urlaubsseite. Große Schrift, klare Knöpfe, keine externen Schriften. Für die Urlaubsberichte gibt es das Schwester-Theme „Familienurlaube“.
Version: 1.2.0
Requires at least: 6.1
Requires PHP: 7.4
Author: Familie
Text Domain: familienportal
License: GPL-2.0-or-later
*/

/* ---------- Grundwerte ---------- */
:root {
	--fp-hg: #f6f3ee;
	--fp-flaeche: #ffffff;
	--fp-text: #1c2733;
	--fp-text-leise: #4a5868;
	--fp-blau: #17508f;
	--fp-blau-dunkel: #0f3a6b;
	--fp-blau-hell: #e6eff9;
	--fp-hinweis-hg: #fff5d6;
	--fp-hinweis-rand: #c99700;
	--fp-rand: #d8d2c6;
	--fp-fokus: #e07a00;
	--fp-radius: 14px;
	--fp-breit: 1100px;
	--fp-schmal: 760px;
}

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

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

html.schrift-gross {
	font-size: 122%;
}

body {
	margin: 0;
	background: var(--fp-hg);
	color: var(--fp-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1.25rem;
	line-height: 1.7;
}

img,
video {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3 {
	line-height: 1.25;
	margin: 0 0 0.6em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(1.9rem, 5vw, 2.6rem);
}

h2 {
	font-size: clamp(1.5rem, 4vw, 1.9rem);
	margin-top: 1.6em;
}

h3 {
	font-size: 1.35rem;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--fp-blau);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--fp-blau-dunkel);
}

a:focus-visible,
button:focus-visible {
	outline: 4px solid var(--fp-fokus);
	outline-offset: 3px;
	border-radius: 6px;
}

.sprunglink {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--fp-flaeche);
	padding: 0.6em 1em;
	z-index: 10;
}

.sprunglink:focus {
	left: 16px;
	top: 16px;
}

/* ---------- Knöpfe ---------- */
.knopf,
.wp-block-button__link,
.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 3.2rem;
	padding: 0.7em 1.4em;
	border: 0;
	border-radius: 12px;
	background: var(--fp-blau);
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.knopf:hover,
.wp-block-button__link:hover {
	background: var(--fp-blau-dunkel);
	color: #ffffff;
}

.knopf-hell {
	background: var(--fp-flaeche);
	color: var(--fp-blau);
	border: 2px solid var(--fp-blau);
}

.knopf-hell:hover {
	background: var(--fp-blau-hell);
	color: var(--fp-blau-dunkel);
}

.knopf-gross {
	min-height: 4rem;
	padding: 0.8em 1.8em;
	font-size: 1.4rem;
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 1em;
}

/* ---------- Kopfbereich ---------- */
.kopf {
	background: var(--fp-flaeche);
	border-bottom: 1px solid var(--fp-rand);
}

.kopf-innen,
.hauptnav,
.fuss-innen {
	max-width: var(--fp-breit);
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.kopf-innen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 18px;
	padding-bottom: 10px;
}

.marke a {
	color: var(--fp-text);
	font-size: 1.5rem;
	font-weight: 800;
	text-decoration: none;
}

.marke img {
	display: block;
	max-height: 70px;
	width: auto;
}

.schrift-knopf {
	min-height: 2.8rem;
	padding: 0.4em 1em;
	border: 2px solid var(--fp-blau);
	border-radius: 999px;
	background: var(--fp-flaeche);
	color: var(--fp-blau);
	font: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
}

.schrift-knopf:hover {
	background: var(--fp-blau-hell);
}

.hauptnav {
	padding-bottom: 16px;
}

.menue {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menue a {
	display: block;
	padding: 0.5em 1.1em;
	border-radius: 999px;
	background: var(--fp-blau-hell);
	color: var(--fp-blau-dunkel);
	font-weight: 700;
	text-decoration: none;
}

.menue a:hover {
	background: #d3e3f5;
}

.menue .current-menu-item > a,
.menue .current_page_item > a,
.menue .current_page_parent > a,
.menue .current-menu-parent > a {
	background: var(--fp-blau);
	color: #ffffff;
}

/* ---------- Inhalt ---------- */
.inhalt {
	display: block;
	padding: 32px 20px 64px;
}

.breit {
	max-width: var(--fp-breit);
	margin-left: auto;
	margin-right: auto;
}

.schmal {
	max-width: var(--fp-schmal);
	margin-left: auto;
	margin-right: auto;
}

.seitenkopf {
	margin-bottom: 28px;
}

.seitenkopf p {
	color: var(--fp-text-leise);
	margin: 0;
}

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

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

.entry-content li {
	margin-bottom: 0.4em;
}

.entry-content img {
	border-radius: var(--fp-radius);
}

.entry-content figure {
	margin: 1.4em 0;
}

.entry-content figcaption,
.wp-caption-text {
	color: var(--fp-text-leise);
	font-size: 1.05rem;
	text-align: center;
	margin-top: 0.4em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignleft {
	float: left;
	margin: 0.3em 1.2em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.2em;
}

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

/* ---------- Startseite ---------- */
.held {
	background: var(--fp-blau);
	color: #ffffff;
	border-radius: 22px;
	padding: clamp(28px, 6vw, 56px);
	margin-bottom: 28px;
}

.held h1 {
	margin-bottom: 0.4em;
}

.held p {
	max-width: 38em;
	font-size: 1.35rem;
	margin: 0;
}

.karten {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 20px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.karte {
	display: flex;
	flex-direction: column;
	background: var(--fp-flaeche);
	border: 1px solid var(--fp-rand);
	border-radius: var(--fp-radius);
	padding: 24px;
}

.karte h2,
.karte h3 {
	font-size: 1.45rem;
	margin: 0 0 0.4em;
}

.karte p {
	color: var(--fp-text-leise);
	flex: 1;
}

.karte .knopf {
	align-self: flex-start;
}

.karte-symbol {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 16px;
	border-radius: 16px;
	background: var(--fp-blau-hell);
	color: var(--fp-blau);
}

.karte-symbol svg {
	width: 36px;
	height: 36px;
}

.karte-nummer {
	display: inline-block;
	color: var(--fp-blau);
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

.abschnitt-titel {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 20px;
	margin: 44px 0 18px;
}

.abschnitt-titel h2 {
	margin: 0;
}

.eigener-text {
	margin-top: 36px;
}

/* ---------- Urlaubsberichte ---------- */
.bericht-karte {
	padding: 0;
	overflow: hidden;
}

.bericht-bild {
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--fp-blau-hell);
	color: var(--fp-blau);
}

.bericht-bild img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bericht-bild-leer {
	display: flex;
	align-items: center;
	justify-content: center;
}

.bericht-bild-leer svg {
	width: 72px;
	height: 72px;
}

.bericht-text {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 24px 24px;
}

.bericht-text h2,
.bericht-text h3 {
	font-size: 1.4rem;
}

.bericht-text h2 a,
.bericht-text h3 a {
	color: var(--fp-text);
	text-decoration: none;
}

.bericht-text h2 a:hover,
.bericht-text h3 a:hover {
	color: var(--fp-blau);
	text-decoration: underline;
}

.karte .datum {
	color: var(--fp-text-leise);
	font-size: 1.05rem;
	margin: 0 0 0.4em;
	flex: none;
}

.mitmachen {
	color: var(--fp-text-leise);
}

.knopf-zeile {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	margin: 0 0 22px;
}

.knopf-zeile span {
	color: var(--fp-text-leise);
	font-size: 1.05rem;
}

.leer {
	background: var(--fp-flaeche);
	border: 2px dashed var(--fp-rand);
	border-radius: var(--fp-radius);
	padding: 28px;
	text-align: center;
	color: var(--fp-text-leise);
}

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

.bericht-titelbild {
	margin: 0 0 28px;
}

.bericht-titelbild img {
	display: block;
	width: 100%;
	border-radius: var(--fp-radius);
}

.zurueck {
	display: inline-block;
	font-weight: 700;
	margin-bottom: 18px;
}

.navigation {
	margin-top: 40px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
}

.nav-links a,
.nav-links .current {
	display: inline-block;
	padding: 0.5em 1em;
	border: 2px solid var(--fp-blau);
	border-radius: 12px;
	background: var(--fp-flaeche);
	font-weight: 700;
	text-decoration: none;
}

.nav-links .current {
	background: var(--fp-blau);
	color: #ffffff;
}

.pagination .nav-links {
	justify-content: center;
}

.nav-untertitel {
	display: block;
	color: var(--fp-text-leise);
	font-size: 1rem;
	font-weight: 400;
}

/* ---------- Anleitung ---------- */
.schritt {
	background: var(--fp-flaeche);
	border: 1px solid var(--fp-rand);
	border-left: 8px solid var(--fp-blau);
	border-radius: var(--fp-radius);
	padding: 24px 24px 24px 26px;
	margin: 0 0 22px;
}

.schritt h2,
.schritt h3 {
	margin-top: 0;
}

.schritt > *:last-child,
.schritt .wp-block-group__inner-container > *:last-child {
	margin-bottom: 0;
}

.hinweis {
	background: var(--fp-hinweis-hg);
	border-left: 8px solid var(--fp-hinweis-rand);
	border-radius: var(--fp-radius);
	padding: 18px 22px;
	margin: 0 0 22px;
}

.entry-content .karten {
	padding-left: 0;
}

.entry-content .karten > li {
	margin-bottom: 0;
}

.dienste {
	grid-template-columns: 1fr;
	margin: 8px 0 24px;
}

.dienst {
	display: grid;
	grid-template-columns: 64px 1fr;
	column-gap: 22px;
	align-items: start;
}

.dienst .karte-symbol {
	grid-row: 1 / span 3;
	margin-bottom: 0;
}

.dienst > *:not(.karte-symbol) {
	grid-column: 2;
}

.dienst .knopf {
	justify-self: start;
}

.karte .dienst-offen {
	color: var(--fp-text-leise);
	font-size: 1.05rem;
	flex: none;
	margin: 0;
}

/* ---------- Fußbereich ---------- */
.fuss {
	background: var(--fp-flaeche);
	border-top: 1px solid var(--fp-rand);
	color: var(--fp-text-leise);
	font-size: 1.05rem;
}

.fuss-innen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	padding-top: 22px;
	padding-bottom: 22px;
}

.fuss p {
	margin: 0;
}

.fussmenue {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 560px) {
	body {
		font-size: 1.15rem;
	}

	.inhalt {
		padding: 20px 16px 48px;
	}

	.kopf-innen,
	.hauptnav,
	.fuss-innen {
		padding-left: 16px;
		padding-right: 16px;
	}

	.wp-block-buttons,
	.wp-block-button,
	.wp-block-button__link {
		width: 100%;
	}

	.schritt {
		padding: 20px 18px 20px 18px;
	}

	.dienst {
		grid-template-columns: 1fr;
	}

	.dienst .karte-symbol {
		grid-row: auto;
		margin-bottom: 14px;
	}

	.dienst > *:not(.karte-symbol) {
		grid-column: 1;
	}
}

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