/* ==========================================================================
   VK Ruhig – ein ruhiges, einspaltiges Theme für Bludit
   Farben und Abstände lassen sich oben bei :root ändern.
   ========================================================================== */

/* ---------- 1. Farben & Maße ---------- */
:root {
	--bg: #FAF8F4;
	--surface: #FFFFFF;
	--tint: #EEF3F1;
	--text: #2B2B2B;
	--muted: #5B5B5B;
	--line: #E3DED5;
	--line-strong: #B9B2A6;
	--accent: #3F7F80;
	--accent-strong: #2F6667;
	--on-accent: #FFFFFF;
	--shadow: 0 1px 2px rgba(40, 40, 30, .06), 0 8px 24px rgba(40, 40, 30, .07);

	--font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Lora", Georgia, "Times New Roman", serif;

	--page-width: 1240px;
	--read-width: 800px;
	--gutter: clamp(1.25rem, 5vw, 2.5rem);
	--radius: 20px;
}

/* Dunkelmodus: standardmäßig AUS, die Seite ist immer hell.
   Zum Einschalten (folgt dann der Geräteeinstellung) die Zeile
   "@media (prefers-color-scheme: dark) and (min-width: 99999px)" ersetzen durch
   "@media (prefers-color-scheme: dark)" und in index.php die Meta-Zeilen
   color-scheme / theme-color wieder auf "light dark" stellen. */
@media (prefers-color-scheme: dark) and (min-width: 99999px) {
	:root {
		--bg: #171A1A;
		--surface: #1F2323;
		--tint: #1E2828;
		--text: #ECE9E3;
		--muted: #B4B0A8;
		--line: #333A3A;
		--line-strong: #5A6363;
		--accent: #7DBDBE;
		--accent-strong: #9AD0D1;
		--on-accent: #0F1A1A;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
	}
}

/* ---------- 2. Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 1rem;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main { flex: 1 0 auto; }

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

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.005em;
	margin: 0;
	text-wrap: balance;
}

a { color: var(--accent-strong); }

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

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: .6rem 1rem;
	background: var(--accent-strong);
	color: var(--on-accent);
	border-radius: 8px;
	text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. Breiten ---------- */
/* Gesamtbreite: --page-width. Lesetext: --read-width. Beide hier änderbar. */
.wrap {
	max-width: var(--page-width);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
/* Lesespalte: gleiche linke Kante wie Kopf- und Fußbereich */
.wrap-narrow {
	max-width: var(--page-width);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap-narrow > * { max-width: var(--read-width); }

/* ---------- 4. Kopfbereich ---------- */
.site-header { padding-block: 1.25rem; }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .5rem 2rem;
}

.brand {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 1.3rem;
	color: var(--text);
	text-decoration: none;
	letter-spacing: -.005em;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	display: inline-block;
	padding: .35rem 0;
	color: var(--muted);
	text-decoration: none;
	font-size: 1.05rem;
	border-bottom: 2px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover { color: var(--text); border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- 5. Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .8rem 1.6rem;
	border: 2px solid var(--accent);
	border-radius: 999px;
	background: var(--accent);
	color: var(--on-accent);
	font: inherit;
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn:active { transform: translateY(1px); }

.btn-ghost {
	background: transparent;
	color: var(--accent-strong);
}
.btn-ghost:hover { background: var(--tint); color: var(--accent-strong); border-color: var(--accent-strong); }

/* ---------- 6. Startseite: Hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 7vw, 5rem); }

.hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
	align-items: center;
}

.hero.has-photo .hero-inner {
	grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
	gap: clamp(2rem, 6vw, 4.5rem);
}

.hero-text { max-width: 40rem; }

.eyebrow {
	margin: 0 0 1rem;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent-strong);
}

.hero h1 {
	font-size: clamp(2.1rem, 5vw, 3.2rem);
	line-height: 1.12;
}

.lead {
	margin: 1.25rem 0 0;
	font-size: 1.25rem;
	line-height: 1.55;
	color: var(--muted);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1rem;
	margin: 2rem 0 0;
}

.hero-photo {
	position: relative;
	isolation: isolate;
	margin: 0;
	justify-self: end;
	width: 100%;
	max-width: 400px;
}
.hero-photo::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -14px;
	bottom: -14px;
	width: 72%;
	height: 72%;
	background: var(--tint);
	border-radius: 28px;
}
.hero-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 28px;
	box-shadow: var(--shadow);
}

.lang-note {
	margin: 1.5rem 0 0;
	font-size: 1rem;
	color: var(--muted);
}
.lang-note a { font-weight: 600; }

/* ---------- 7. Abschnitte der Startseite ---------- */
.section { padding-block: clamp(2.25rem, 6vw, 4rem); }

.section-title {
	margin-bottom: 1.5rem;
	font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.section-about { background: var(--tint); }

.offer-teaser {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--text);
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}
.offer-teaser:hover { transform: translateY(-2px); }
.offer-teaser-image { display: block; width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.offer-teaser-body { display: flex; flex-direction: column; justify-content: center; gap: .75rem; padding: clamp(1.4rem, 4vw, 2.4rem); }
.offer-teaser-title { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.2; }
.offer-teaser-text { color: var(--muted); }
.offer-teaser-more { color: var(--accent-strong); font-weight: 600; }
.offer-teaser:hover .offer-teaser-more { text-decoration: underline; text-underline-offset: 4px; }

.section-closing { text-align: center; }
.closing h2 { margin-inline: auto; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.closing p { margin: .9rem auto 0; color: var(--muted); }
.closing .btn { margin-top: .6rem; }

/* ---------- 8. Unterseiten ---------- */
.page-head { padding-top: clamp(2rem, 6vw, 4rem); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.page-head .lead { margin-top: 1rem; }

.page-cover { margin-block: 2rem 0; }
.page-cover img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.page-body { padding-block: 2.5rem clamp(3rem, 8vw, 5rem); }

/* ---------- 9. Fließtext (Inhalt aus dem Editor) ---------- */
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

.prose p { margin: 0 0 1.1em; }

.prose h1, .prose h2 {
	margin: 2.4em 0 .6em;
	font-size: clamp(1.4rem, 2.6vw, 1.7rem);
}
.prose h3 { margin: 2em 0 .5em; font-size: 1.25rem; }
.prose h4 { margin: 1.6em 0 .4em; font-size: 1.1rem; }

.prose a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }

.prose strong { font-weight: 600; }

.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.5rem; }
.prose li { margin: .35em 0; padding-left: .2rem; }
.prose li::marker { color: var(--accent); }

/* Liste mit Häkchen: <ul class="checks"> */
.prose ul.checks { list-style: none; padding-left: 0; }
.prose ul.checks li { position: relative; padding-left: 2rem; }
.prose ul.checks li::before {
	content: "";
	position: absolute;
	left: .35rem;
	top: .5em;
	width: .45rem;
	height: .85rem;
	border: solid var(--accent);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(40deg);
}

/* Nummerierte Schritte: <ol class="steps"> */
.prose ol.steps { list-style: none; padding-left: 0; counter-reset: step; }
.prose ol.steps li {
	position: relative;
	margin: 1rem 0;
	padding-left: 3.2rem;
	min-height: 2.3rem;
	counter-increment: step;
}
.prose ol.steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: -.05em;
	display: grid;
	place-items: center;
	width: 2.3rem;
	height: 2.3rem;
	border-radius: 50%;
	background: var(--tint);
	border: 1px solid var(--line);
	color: var(--accent-strong);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1.05rem;
}

/* Hinweiskasten: <blockquote> oder <div class="note"> */
.prose blockquote, .prose .note {
	margin: 1.8em 0;
	padding: 1.1rem 1.3rem;
	background: var(--tint);
	border-left: 4px solid var(--accent);
	border-radius: 0 12px 12px 0;
	font-size: 1rem;
	line-height: 1.6;
}
.prose blockquote > :last-child, .prose .note > :last-child { margin-bottom: 0; }

/* Angebotskarte: <div class="offer-card"> */
.prose .offer-card {
	margin: 2rem 0;
	padding: 1.6rem 1.8rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.prose .offer-card h2, .prose .offer-card h3 { margin: 0 0 .75rem; }
.prose .offer-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .4rem 1.75rem;
	margin: 0 0 1.1rem;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 1rem;
}
.prose .offer-meta li { margin: 0; padding: 0; }
.prose .offer-meta .price {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 2rem;
	color: var(--accent-strong);
	line-height: 1.1;
}
.prose .offer-card p:last-child { margin-bottom: 0; }
.prose .btn { text-decoration: none; color: var(--on-accent); margin: 0 .5rem .5rem 0; }
.prose .btn-ghost { color: var(--accent-strong); }

.prose hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }

.prose img { display: block; margin: 1.5rem 0; border-radius: 14px; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { margin-top: .5rem; color: var(--muted); font-size: .95rem; }

.prose small { font-size: .875em; color: var(--muted); }

.prose table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { padding: .6rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; }

.prose code { padding: .1em .35em; background: var(--tint); border-radius: 6px; font-size: .92em; }

/* Lange Rechtstexte etwas kompakter */
.prose .agb-content { font-size: 1.02rem; }
.prose .agb-content > :first-child { margin-top: 0; }
.prose .agb-content h2 { font-size: 1.25rem; margin-top: 2em; }

/* ---------- 10. Kontaktformular (Plugin "Easy ContactForm") ----------
   Das Plugin setzt Stile direkt am Element, deshalb !important. */
.easyContactForm { max-width: 680px; }

.easyContactForm label {
	display: block;
	margin: 1.1rem 0 .35rem !important;
	font-size: 1rem !important;
	font-weight: 600;
	color: var(--text);
}

.easyContactForm input.form-control,
.easyContactForm textarea.form-control {
	display: block;
	width: 100% !important;
	padding: .8rem .95rem !important;
	background: var(--surface);
	color: var(--text);
	font: inherit !important;
	font-size: 1.05rem !important;
	line-height: 1.4;
	border: 1px solid var(--line-strong) !important;
	border-radius: 12px !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.easyContactForm textarea.form-control { min-height: 9rem; resize: vertical; }

.easyContactForm input.form-control:focus,
.easyContactForm textarea.form-control:focus {
	outline: none;
	border-color: var(--accent) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

.easyContactForm .privacy-div {
	display: flex !important;
	align-items: flex-start;
	gap: .7rem;
	margin: 1.4rem 0 .5rem;
}
.easyContactForm .privacy-div input[type="checkbox"] {
	flex: 0 0 auto;
	float: none !important;
	width: 1.2rem !important;
	height: 1.2rem;
	margin: .3rem 0 0 !important;
	accent-color: var(--accent);
}
.easyContactForm .privacy-div p {
	margin: 0 !important;
	padding: 0 !important;
	font-size: .98rem !important;
	line-height: 1.5;
	color: var(--muted);
}

/* Rechenbild des Captchas ruhiger darstellen */
.easyContactForm div[style*="Shizuru"] {
	font-family: var(--font-head) !important;
	border: 1px solid var(--line);
	margin-top: 1.2rem !important;
}
.easyContactForm input[name="captcha"] { width: 130px !important; margin: .8rem 0 1.4rem !important; }

.easyContactForm .submit,
.easyContactForm input[type="submit"] {
	display: inline-flex !important;
	height: auto !important;
	padding: .85rem 1.8rem !important;
	background: var(--accent) !important;
	color: var(--on-accent) !important;
	font: inherit !important;
	font-weight: 600 !important;
	font-size: 1.05rem !important;
	border: 2px solid var(--accent) !important;
	border-radius: 999px !important;
	cursor: pointer;
}
.easyContactForm .submit:hover,
.easyContactForm input[type="submit"]:hover {
	background: var(--accent-strong) !important;
	border-color: var(--accent-strong) !important;
}

/* ---------- 11. Fußbereich ---------- */
.site-footer {
	margin-top: auto;
	padding-block: 2.25rem 2.5rem;
	border-top: 1px solid var(--line);
	font-size: .98rem;
	color: var(--muted);
}
.footer-inner { display: grid; gap: .9rem; }

.footer-name { display: flex; flex-wrap: wrap; gap: .1rem .75rem; margin: 0; }
.footer-name strong { color: var(--text); font-weight: 600; }

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.footer-links a { color: var(--muted); text-underline-offset: 3px; }
.footer-links a:hover { color: var(--text); }

.footer-copy { margin: 0; font-size: .9rem; }

/* ---------- 12. Beitragsliste (nur ohne feste Startseite) ---------- */
.post-list { padding-bottom: clamp(3rem, 8vw, 5rem); }
.post-list .page-head { padding-bottom: 2rem; }
.post-item { padding-block: 1.6rem; border-top: 1px solid var(--line); }
.post-item h2 { font-size: 1.5rem; }
.post-item h2 a { color: var(--text); text-decoration: none; }
.post-item h2 a:hover { color: var(--accent-strong); }
.post-meta { margin: .3rem 0 .6rem; color: var(--muted); font-size: .95rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; }

/* ---------- 13. Kleine Bildschirme ---------- */
@media (max-width: 860px) {
	.hero.has-photo .hero-inner { grid-template-columns: minmax(0, 1fr); }
	.hero-photo { order: -1; justify-self: start; max-width: 132px; }
	.hero-photo::before { display: none; }
	.hero-photo img { aspect-ratio: 1 / 1; border-radius: 50%; }
}

@media (min-width: 760px) {
	.offer-teaser:has(.offer-teaser-image) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}

@media (max-width: 560px) {
	body { font-size: 1.0625rem; }
	.header-inner { flex-direction: column; align-items: flex-start; gap: .25rem; }
	.hero-actions .btn { flex: 1 1 100%; }
	.prose .offer-card { padding: 1.3rem 1.2rem; }
}

/* ---------- 14. Bewegung reduzieren, Druck ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}

@media print {
	.site-nav, .hero-actions, .section-closing, .skip-link { display: none !important; }
	body { background: #fff; color: #000; }
	a { color: inherit; }
}
