/*
Theme Name: Familienurlaub Minimal
Theme URI: https://www.familienurlaub.eu/
Description: Schlankes Vanilla-Theme für familienurlaub.eu – Header, Inhalt, Footer. Ein Stylesheet, keine Frameworks, Schrift lokal (DSGVO).
Author: familienurlaub.eu
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: familienurlaub
*/

/* ---------- Schrift (lokal, keine Google-Server) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }

/* ---------- Farben & Maße ---------- */
:root {
	--gruen: #497830;
	--gruen-hell: #eef5ea;
	--text: #444;
	--text-hell: #777;
	--linie: #eaeaea;
	--linie-header: #eaeef3;
	--breite-seite: 1200px;
	--breite-text: 770px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--gruen); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a[href="#"] { cursor: default; }
a[href="#"]:hover { text-decoration: none; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

.container { max-width: var(--breite-seite); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
	position: relative;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--linie-header);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 91px;
}
.logo { display: block; flex-shrink: 0; }
.logo img { display: block; width: 200px; height: auto; }

/* Navigation (Desktop) */
.nav-toggle, .burger { display: none; }
.hauptmenue, .hauptmenue ul { list-style: none; margin: 0; padding: 0; }
.hauptmenue { display: flex; }
.hauptmenue li { position: relative; }
.hauptmenue > li > a {
	display: block;
	padding: 35px 20px;
	color: var(--text);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none;
}
.hauptmenue > li > a:hover,
.hauptmenue > li:hover > a,
.hauptmenue > .current-menu-item > a,
.hauptmenue > .current-menu-ancestor > a,
.hauptmenue > .current-page-ancestor > a { color: var(--gruen); }

.hauptmenue .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	vertical-align: 3px;
}
.hauptmenue .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	padding: 0 15px;
	background: #fff;
	box-shadow: 0 1px 1px #dbdbdb, 0 8px 18px rgba(0, 0, 0, .08);
}
.hauptmenue li:hover > .sub-menu,
.hauptmenue li:focus-within > .sub-menu { display: block; }
.hauptmenue .sub-menu a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 11px 0;
	border-bottom: 1px solid #eee;
	color: var(--text);
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
}
.hauptmenue .sub-menu li:last-child > a { border-bottom: 0; }
.hauptmenue .sub-menu a:hover,
.hauptmenue .sub-menu .current-menu-item > a,
.hauptmenue .sub-menu .current-menu-ancestor > a { color: var(--gruen); }
.hauptmenue .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); vertical-align: 0; margin-left: 16px; }
.hauptmenue .sub-menu .sub-menu { top: -1px; left: calc(100% + 15px); }
/* Die letzten beiden Menüpunkte klappen nach links auf */
.hauptmenue > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
.hauptmenue > li:nth-last-child(-n+2) .sub-menu .sub-menu { left: auto; right: calc(100% + 15px); }
.sub-toggle { display: none; }

/* ---------- Headerbild ---------- */
.header-bild { margin: 0; }
.header-bild img {
	display: block;
	width: 100%;
	height: clamp(180px, 22vw, 300px);
	object-fit: cover;
}
.ist-reiseziel .header-bild img { height: clamp(220px, 37vw, 500px); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding-top: 18px; font-size: 13px; color: var(--text-hell); }
.breadcrumb a { color: var(--text); }
.breadcrumb span { margin: 0 8px; color: #bbb; }

/* ---------- Inhalt ---------- */
.inhalt { max-width: var(--breite-text); margin: 0 auto; padding: 10px 16px 80px; }

h1, h2, h3, h4 { color: var(--text); font-weight: 500; line-height: 1.2; }
h1 { font-size: 34px; margin: 20px 0 14px; }
h2 { font-size: 28px; margin: 40px 0 14px; }
h3 { font-size: 20px; margin: 28px 0 10px; }
h4 { font-size: 16px; margin: 22px 0 8px; }

p { margin: 0 0 14px; }
p:empty { display: none; }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 4px; }
li > ul, li > ol { margin: 6px 0 0; }
strong { font-weight: 700; }

figure { margin: 26px 0; }
figure img { display: block; }
figcaption { margin-top: 8px; color: var(--text-hell); font-size: 13px; font-style: italic; }

table { border-collapse: collapse; margin: 0 0 22px; }
th, td { padding: 4px 24px 4px 0; text-align: left; vertical-align: top; }
th { font-weight: 700; }
td ul, td ol { margin: 0; }

blockquote { margin: 22px 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--linie); }
aside {
	margin: 24px 0;
	padding: 14px 18px;
	background: var(--gruen-hell);
	border-left: 4px solid var(--gruen);
	border-radius: 4px;
}
aside > :last-child { margin-bottom: 0; }
hr { margin: 34px 0; border: 0; border-top: 1px solid var(--linie); }

/* FAQ-Aufklapper */
details {
	margin: 0 0 10px;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .25);
}
summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 38px;
	padding: 6px 12px;
	cursor: pointer;
	list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: 14px; font-size: 18px; font-weight: 700; line-height: 1; }
details[open] > summary::after { content: "–"; }
summary h3 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
details > :not(summary) { margin-left: 12px; margin-right: 12px; }
details > :last-child { padding-bottom: 12px; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 20px; padding-top: 50px; border-top: 1px solid var(--linie); font-size: 13px; }
.footer-spalten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.site-footer h4 { margin: 0 0 26px; font-size: 13px; font-weight: 500; text-transform: uppercase; }
.site-footer h4::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 10px; background: var(--linie); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 14px; }
.kontakt { margin: 0 0 20px; padding-left: 12px; border-left: 2px solid var(--gruen); }
.kontakt small { display: block; font-size: 12px; }
.kontakt strong { display: block; color: #333; font-size: 17px; font-weight: 500; }
.kontakt svg { display: block; margin-top: 8px; color: #222; }
.copyright { margin-top: 40px; padding: 22px 0; border-top: 1px solid var(--linie); }
.copyright a { color: var(--text); }

/* ---------- Mobil ---------- */
@media (max-width: 1024px) {
	.site-header .container { min-height: 70px; flex-wrap: wrap; }
	.logo img { width: 150px; }
	.burger {
		display: block;
		width: 42px;
		height: 42px;
		padding: 10px 9px;
		border: 1px solid var(--text);
		border-radius: 4px;
		cursor: pointer;
	}
	.burger span, .burger span::before, .burger span::after {
		display: block;
		position: relative;
		width: 22px;
		height: 2px;
		background: var(--text);
		content: "";
	}
	.burger span { top: 9px; }
	.burger span::before { position: absolute; top: -7px; }
	.burger span::after { position: absolute; top: 7px; }
	.site-nav { display: none; width: 100%; padding-bottom: 10px; }
	.nav-toggle:checked ~ .site-nav { display: block; }

	.hauptmenue { display: block; }
	.hauptmenue a { padding: 12px 44px 12px 0 !important; border-bottom: 1px solid #eee; }
	.hauptmenue > li > a { font-size: 14px; }
	.hauptmenue .sub-menu {
		display: none;
		position: static;
		min-width: 0;
		padding: 0 0 0 16px;
		box-shadow: none;
	}
	.hauptmenue li:hover > .sub-menu,
	.hauptmenue li:focus-within > .sub-menu { display: none; }
	.hauptmenue li.offen > .sub-menu { display: block; }
	.hauptmenue .sub-menu a { white-space: normal; }
	.hauptmenue .menu-item-has-children > a::after { display: none; }
	.sub-toggle {
		display: block;
		position: absolute;
		top: 4px;
		right: 0;
		width: 40px;
		height: 40px;
		border: 0;
		background: none;
		color: var(--text);
		font-size: 20px;
		cursor: pointer;
	}
	.offen > .sub-toggle { transform: rotate(45deg); }

	h1 { font-size: 27px; }
	h2 { font-size: 23px; }
	h3 { font-size: 18px; }
	.footer-spalten { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	body { font-size: 15px; }
	.footer-spalten { grid-template-columns: 1fr; }
	table { display: block; overflow-x: auto; }
}
