/*
Theme Name: Pflegekassen-Umzugsservice
Description: Schlankes Ein-Seiten-Theme mit 4-Schritte-Anfrageformular. Keine externen Schriften, kein Tracking, keine Cookies.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: pku
*/

:root {
	--sage: #a9d46b;
	--sage-soft: #e7f5cd;
	--green: #2f7d3a;
	--green-dark: #236330;
	--forest: #244a2c;
	--beige: #f6f4d6;
	--beige-deep: #ecebb8;
	--offwhite: #fffef5;
	--ink: #24332a;
	--muted: #51644f;
	--line: #e3e2bd;
	--clay: #c2743a;
	--radius: 16px;
	--shadow: 0 10px 30px rgba(47, 125, 58, .12);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

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

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--offwhite);
}

img, svg { max-width: 100%; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--forest); }

h1, h2, h3 { font-family: var(--font-head); color: var(--forest); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

:focus-visible { outline: 3px solid #b9764b; outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
	padding: .85em 1.4em; border-radius: 999px; border: 2px solid var(--green);
	background: var(--green); color: #fff; text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(35, 99, 48, .25); }
.btn:disabled { opacity: .7; cursor: default; transform: none; box-shadow: none; }
.btn .icon { width: 1.25em; height: 1.25em; }
.btn--big { font-size: 1.0625rem; padding: 1em 1.6em; }
.btn--small { font-size: .95rem; padding: .6em 1.1em; }
.btn--ghost { background: transparent; color: var(--green-dark); }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn--text { background: transparent; border-color: transparent; color: var(--muted); padding-inline: .6em; }
.btn--text:hover { background: transparent; color: var(--forest); box-shadow: none; transform: none; text-decoration: underline; }
.btn--light { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn--light:hover { background: var(--beige); border-color: var(--beige); color: var(--forest); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--outline-light:hover { background: #fff; color: var(--green-dark); border-color: #fff; }

/* ---------- Kopfzeile ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 254, 245, .94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 16px rgba(47, 125, 58, .06); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--sage); }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
	background:
		radial-gradient(900px 500px at 8% -10%, rgba(169, 212, 107, .45), transparent 60%),
		radial-gradient(700px 480px at 100% 100%, rgba(236, 235, 184, .95), transparent 60%),
		var(--beige);
}
.hero-in { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .hero-in { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; } }

.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; font-weight: 700; color: var(--green); margin: 0 0 .9em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink); max-width: 38em; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 1.2em 0 1.6em; }
.chips li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--forest); }
.chips .icon { width: 22px; height: 22px; color: var(--green); padding: 3px; background: var(--sage-soft); border-radius: 50%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row--center { justify-content: center; }
.hotline { display: flex; gap: 16px; align-items: flex-start; margin: 1.6em 0 0; padding: 18px 20px; max-width: 36em; background: rgba(255, 255, 255, .72); border: 1px solid rgba(227, 226, 189, .9); border-radius: 18px; box-shadow: 0 6px 18px rgba(47, 125, 58, .06); }
.hotline-icon { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--sage-soft); color: var(--green); }
.hotline-icon .icon { width: 24px; height: 24px; }
.hotline-title { margin: 0 0 .2em; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--forest); }
.hotline-text { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }

.form-privacy { display: flex; align-items: flex-start; gap: 8px; margin: 1.2em 0 0; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.form-privacy .icon { flex: 0 0 18px; width: 18px; height: 18px; color: var(--green); margin-top: 1px; }

.checklist { list-style: none; margin: 1.2em 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--forest); }
.checklist .icon { flex: 0 0 24px; width: 24px; height: 24px; padding: 4px; color: var(--green); background: var(--sage-soft); border-radius: 50%; margin-top: 2px; }

.btn--header-cta { display: none; }
@media (min-width: 761px) {
	.btn--header-cta { display: inline-flex; opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
	.site-header.is-past-hero .btn--header-cta { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
	.header-in .btn--call { margin-left: 0; }
	.nav { margin-left: auto; }
}

.hero-form:target .form-card { animation: pku-pulse 1.1s ease 1; }
@keyframes pku-pulse { 0% { box-shadow: var(--shadow); } 35% { box-shadow: 0 0 0 6px rgba(47, 125, 58, .28), var(--shadow); } 100% { box-shadow: var(--shadow); } }

.facts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 0 0 2.2em; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.fact strong { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; color: var(--green-dark); margin-bottom: .3em; }
.fact span { color: var(--muted); font-size: .98rem; line-height: 1.5; }
.two-lists { display: grid; gap: 28px; }
@media (min-width: 860px) { .two-lists { grid-template-columns: 1fr 1fr; gap: 48px; } }
.two-lists h3 { margin-bottom: .2em; }

.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25em .7em; border-radius: 999px; background: var(--sage-soft); color: var(--green-dark); margin-bottom: .55em; }
.tag--you { background: var(--clay); color: #fff; }
.steps li { background: #fff; border: 1px solid var(--line); }

.form-call { margin: 1.1em 0 0; text-align: center; font-size: .95rem; color: var(--muted); }
.form-call a { color: var(--green-dark); }

.call-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.call-text strong { font-weight: 700; }
.call-text small { font-size: .68rem; font-weight: 500; opacity: .85; }
@media (min-width: 761px) { .site-header .btn--small.btn--call { border-radius: 18px; padding: .45em 1.1em; } }

.illu { display: block; width: 100%; height: auto; margin-top: 1.6em; border-radius: 24px; }

h1, h2 { text-wrap: balance; }
.lead, .card p, .steps p, .section p { text-wrap: pretty; }

/* ---------- Formular ---------- */
.form-card { background: #fff; border-radius: 22px; padding: clamp(22px, 3.4vw, 34px); box-shadow: var(--shadow); border: 1px solid rgba(227, 226, 189, .7); }
.form-head h2 { font-size: 1.55rem; margin-bottom: .15em; }
.form-sub { color: var(--muted); margin-bottom: 1em; }
.form-error { background: #fbeee8; color: #7a2e12; border-radius: 10px; padding: .8em 1em; font-size: .95rem; }
.progress { height: 8px; background: var(--beige); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--sage), var(--green)); border-radius: 99px; transition: width .35s ease; }
.step-count { font-size: .9rem; color: var(--muted); margin: .5em 0 1.1em; font-weight: 600; }

.step { border: 0; padding: 0; margin: 0 0 1.2em; min-width: 0; }
.step legend { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--forest); padding: 0; margin-bottom: .7em; }
.form-card.is-stepped .step:not(.is-active) { display: none; }
.form-card.is-stepped .step.is-active { animation: pku-in .3s ease; }
@keyframes pku-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 12px; padding: 1em 1.1em; border: 2px solid var(--line); border-radius: 14px; background: var(--offwhite); font-weight: 600; transition: border-color .2s, background .2s, box-shadow .2s; }
.choice span::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid var(--sage); background: #fff; transition: all .2s; }
.choice:hover span { border-color: var(--sage); }
.choice input:checked + span { border-color: var(--green); background: var(--sage-soft); box-shadow: 0 0 0 3px rgba(47, 125, 58, .15); }
.choice input:checked + span::before { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 4px #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--clay); outline-offset: 2px; }

.fields { display: grid; gap: 14px; }
.fields.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 460px) { .fields.two { grid-template-columns: 1fr; } }
.field span { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input { width: 100%; font: inherit; padding: .85em 1em; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 125, 58, .18); }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 1.2em; font-size: .88rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { flex: 0 0 22px; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green); }

.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.form-nav .btn[hidden] { display: none; }
.form-nav #pku-next { margin-left: auto; }
.form-nav #pku-submit { width: 100%; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-card--done { text-align: center; }
.done-mark { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--sage-soft); color: var(--green); display: grid; place-items: center; }
.done-mark .icon { width: 34px; height: 34px; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section--tint { background: var(--beige); }
.section-head { max-width: 46em; margin-bottom: 2em; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { width: 44px; height: 44px; padding: 10px; color: var(--green); background: var(--sage-soft); border-radius: 14px; margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0; }
.fineprint { margin-top: 1.6em; font-size: .9rem; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: rgba(255, 255, 255, .7); border-radius: var(--radius); padding: 22px; }
.steps .num { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); }

.split { display: grid; gap: 28px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

.final { background: var(--green); color: #fff; padding: clamp(48px, 7vw, 80px) 0; text-align: center; }
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, .88); max-width: 34em; margin-inline: auto; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--forest); color: rgba(255, 255, 255, .82); padding: 36px 0; font-size: .95rem; }
.footer-in { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.footer-brand { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.15rem; margin: 0; }
.footer-links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: #fff; }
.footer-copy { margin: 0; flex-basis: 100%; font-size: .85rem; opacity: .75; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal address { font-style: normal; }

/* ---------- Mobile Schnellleiste ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
	.nav { display: none; }
	.header-in { gap: 12px; }
	.btn--small span { display: none; }
	.btn--small { padding: .65em .8em; margin-left: auto; }
	.logo-text { font-size: 1.05rem; }
	body.home { padding-bottom: 76px; }
	.mobile-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 254, 245, .94); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(47, 125, 58, .1); }
	.mobile-bar .btn { flex: 1; padding: .8em 1em; }
	.mobile-bar .btn--call { background: #fff; color: var(--green-dark); }
}

/* ---------- Bewegung ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.steps li.reveal:nth-child(2), .cards .reveal:nth-child(2) { transition-delay: .08s; }
.steps li.reveal:nth-child(3), .cards .reveal:nth-child(3) { transition-delay: .16s; }
.steps li.reveal:nth-child(4), .cards .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Version 1.1: Upload, Über mich, Einsatzgebiete, Unterlagen ---------- */
.section--fresh { background: linear-gradient(180deg, var(--sage-soft), #f4fbe2); }
.sign-box { margin-top: 1.8em; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.sign-box h3 { margin-bottom: .3em; }
.sign-box p { color: var(--muted); }
.field--file input { padding: .7em .8em; background: var(--offwhite); }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: .8em; padding: .5em 1em; border: 0; border-radius: 999px; background: var(--sage-soft); color: var(--green-dark); cursor: pointer; }
.done-docs { margin: 1.2em 0 0; }

.about { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: .7fr 1.3fr; gap: 64px; } }
.about-photo { margin: 0; }
.about-photo img { display: block; width: 100%; max-width: 360px; height: auto; margin-inline: auto; border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.about-quote { margin: 0 0 1.4em; padding: 0 0 0 20px; border-left: 4px solid var(--sage); font-family: var(--font-head); font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; color: var(--forest); }
.about-quote p { margin: 0 0 .7em; }
.about-quote footer { font-family: var(--font); font-size: .95rem; font-weight: 600; color: var(--muted); }

.areas { background: var(--sage-soft); padding: 28px 0 30px; overflow: hidden; border-block: 1px solid var(--line); }
.areas-head { text-align: center; }
.areas-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--forest); margin: 0 0 16px; }
.areas-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.areas-list { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: pku-marquee 70s linear infinite; }
.areas-list li { white-space: nowrap; margin-right: 12px; padding: .5em 1.1em; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--forest); }
.areas-track:hover .areas-list { animation-play-state: paused; }
@keyframes pku-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.areas-track { -webkit-mask-image: none; mask-image: none; }
	.areas-list { width: auto; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 20px; }
	.areas-list li { margin: 0; }
	.areas-list li[aria-hidden="true"] { display: none; }
}

/* Unterlagen zum Unterschreiben (nur beim Drucken / PDF sichtbar) */
#pku-print { display: none; }
@media print {
	@page { size: A4; margin: 18mm; }
	.site-header, main > section, .site-footer, .mobile-bar, .skip { display: none !important; }
	html, body { background: #fff !important; padding: 0 !important; color: #000; font-size: 11pt; line-height: 1.5; }
	#pku-print { display: block !important; font-family: var(--font); color: #000; }
	#pku-print h1 { font-size: 20pt; margin: 0 0 .3em; color: #000; }
	#pku-print h2 { font-size: 13pt; margin: 1.4em 0 .5em; color: #000; }
	#pku-print p { margin: 0 0 .7em; }
	.pd-head { border-bottom: 2px solid #000; padding-bottom: .6em; margin-bottom: .6em; }
	.pd-draft { display: inline-block; border: 1px solid #000; padding: 2px 8px; font-size: 9pt; }
	.pd-table { width: 100%; border-collapse: collapse; }
	.pd-table th { width: 36%; text-align: left; font-weight: 600; padding: 6px 8px 6px 0; vertical-align: bottom; }
	.pd-table td { border-bottom: 1px solid #777; height: 2em; padding: 6px 4px; }
	.pd-sign { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; margin-top: 3.2em; }
	.pd-line { display: block; border-bottom: 1px solid #000; height: 2.2em; }
	.pd-sign small { display: block; margin-top: 4px; font-size: 9pt; }
	.pd-foot { margin-top: 2em; font-size: 9pt; color: #444; }
}
