/*
Theme Name: Hebamme Kurz
Description: Schlankes, datensparsames Theme für Hebamme Elisabeth Kurz, Dresden. Keine externen Ressourcen.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Update URI: false
Text Domain: hebamme-kurz
License: GPL-2.0-or-later
*/

@font-face { font-family: "Manrope"; src: url("assets/fonts/Manrope-VariableFont_wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Literata"; src: url("assets/fonts/Literata72pt-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Literata"; src: url("assets/fonts/Literata72pt-Medium.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
	--hk-bg: #fbf8f4;
	--hk-soft: #f3ece3;
	--hk-sand: #e8dccd;
	--hk-text: #2e2a27;
	--hk-muted: #625a53;
	--hk-sage: #4f6f5e;
	--hk-sage-dark: #3b5547;
	--hk-terra: #b4654a;
	--hk-red: #b0473a;
	--hk-amber: #b07a1e;
	--hk-green: #3f7a52;
	--hk-radius: 18px;
	--hk-wrap: 1120px;
	--hk-serif: "Literata", Georgia, "Times New Roman", serif;
	--hk-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--hk-bg); color: var(--hk-text); font: 400 1.0625rem/1.7 var(--hk-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hk-sage-dark); text-underline-offset: .2em; }
a:hover { color: var(--hk-terra); }
:focus-visible { outline: 3px solid var(--hk-terra); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--hk-serif); font-weight: 500; line-height: 1.2; color: var(--hk-text); margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
h3 { font-size: 1.3rem; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }
li::marker { color: var(--hk-sage); }

.hk-wrap { max-width: var(--hk-wrap); margin: 0 auto; padding: 0 20px; }
.hk-skip { position: absolute; left: -9999px; top: 0; background: var(--hk-sage); color: #fff; padding: .6em 1em; z-index: 100; }
.hk-skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header & Navigation ---------- */
.hk-header { background: rgba(251, 248, 244, .96); border-bottom: 1px solid var(--hk-sand); position: sticky; top: 0; z-index: 50; }
.hk-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.hk-brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.hk-brand__name { font-family: var(--hk-serif); font-size: 1.35rem; color: var(--hk-text); }
.hk-brand__role { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--hk-sage); }
.hk-nav { position: relative; }
.hk-nav__toggle { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border: 1px solid var(--hk-sand); border-radius: 999px; font-weight: 600; }
.hk-nav__toggle::-webkit-details-marker { display: none; }
.hk-nav__bars, .hk-nav__bars::before, .hk-nav__bars::after { display: block; width: 18px; height: 2px; background: var(--hk-text); position: relative; content: ""; }
.hk-nav__bars::before { position: absolute; top: -6px; }
.hk-nav__bars::after { position: absolute; top: 6px; }
.hk-nav__panel { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--hk-sand); border-radius: var(--hk-radius); padding: 1rem; min-width: 240px; box-shadow: 0 12px 30px rgba(46, 42, 39, .12); }
.hk-nav__list { list-style: none; margin: 0 0 .8rem; padding: 0; }
.hk-nav__list a { display: block; padding: .55rem .4rem; text-decoration: none; color: var(--hk-text); font-weight: 600; }
.hk-nav__list .current-menu-item > a, .hk-nav__list a:hover { color: var(--hk-terra); }
.hk-nav-desktop { display: none; }
@media (min-width: 900px) {
	.hk-nav { display: none; }
	.hk-nav-desktop { display: flex; align-items: center; gap: 1.6rem; }
	.hk-nav-desktop .hk-nav__list { display: flex; gap: 1.4rem; margin: 0; }
}

/* ---------- Buttons ---------- */
.hk-btn, .wp-block-button__link { display: inline-block; background: var(--hk-sage); color: #fff; border: 0; border-radius: 999px; padding: .85em 1.6em; font: 600 1rem/1.2 var(--hk-sans); text-decoration: none; cursor: pointer; transition: background .2s; }
.hk-btn:hover, .wp-block-button__link:hover { background: var(--hk-sage-dark); color: #fff; }
.hk-btn--small { padding: .6em 1.15em; font-size: .92rem; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--hk-sage-dark); box-shadow: inset 0 0 0 2px var(--hk-sage); }
.is-style-outline .wp-block-button__link:hover { background: var(--hk-soft); color: var(--hk-sage-dark); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }

/* ---------- Inhalt ---------- */
.hk-main { display: block; }
.hk-content { max-width: var(--hk-wrap); margin: 0 auto; padding: 2.5rem 20px 4rem; }
.hk-content > * { max-width: 760px; }
.hk-content > .hk-wide, .hk-content > .wp-block-columns, .hk-content > .hk-hero, .hk-content > .hk-band, .hk-content > .alignwide { max-width: none; }
.hk-content .wp-block-image img { border-radius: var(--hk-radius); }
.hk-content figure { margin: 0 0 1.4rem; }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 2.4rem; align-items: center; margin: 2.4rem 0; }
.wp-block-column { flex: 1 1 320px; min-width: 0; }

/* Hero */
.hk-hero { display: grid; gap: 2.4rem; align-items: center; padding: 1rem 0 2rem; }
@media (min-width: 900px) { .hk-hero.wp-block-columns { flex-wrap: nowrap; } }
.hk-badge { display: inline-block; background: var(--hk-soft); color: var(--hk-sage-dark); border-radius: 999px; padding: .35em 1em; font-size: .88rem; font-weight: 700; letter-spacing: .03em; margin-bottom: 1.2rem; }
.hk-lead { font-size: 1.18rem; color: var(--hk-muted); }

/* Farbige Bänder */
.hk-band { background: var(--hk-soft); border-radius: calc(var(--hk-radius) * 1.4); padding: 2.2rem clamp(1.2rem, 4vw, 3rem); margin: 3rem 0; }
.hk-band > * { max-width: 820px; }
.hk-band h2:first-child { margin-top: 0; }
.hk-band--sage { background: var(--hk-sage); color: #fff; }
.hk-band--sage h2, .hk-band--sage a { color: #fff; }

/* Kapazitäten-Ampel */
.hk-slot { display: flex; justify-content: space-between; gap: 1rem; background: #fff; border-radius: 12px; padding: .8rem 1.1rem; margin: 0 0 .6rem; border-left: 6px solid var(--hk-green); }
.hk-slot--voll { border-left-color: var(--hk-red); }
.hk-slot--knapp { border-left-color: var(--hk-amber); }
.hk-quote { font-family: var(--hk-serif); font-style: italic; font-size: 1.15rem; border-left: 3px solid var(--hk-terra); padding-left: 1rem; margin: 0 0 1.4rem; }
.wp-block-quote { font-family: var(--hk-serif); font-size: 1.15rem; border-left: 3px solid var(--hk-terra); margin: 0 0 1.4rem; padding-left: 1rem; }

/* Leistungskarten */
.hk-cards { margin: 1.6rem 0 2.4rem; }
.hk-content > .hk-cards { max-width: none; }
/* Klassische Themes: WordPress legt einen inneren Container um Gruppeninhalte */
.hk-cards > .wp-block-group__inner-container, .hk-cards:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.hk-card { background: #fff; border: 1px solid var(--hk-sand); border-radius: var(--hk-radius); padding: 1.4rem; }
.hk-card h3 { margin-top: 0; font-size: 1.15rem; }
.hk-card p { margin: 0; color: var(--hk-muted); font-size: .98rem; }

.hk-note { background: #fff6f2; border: 1px solid #f0cdbf; border-radius: var(--hk-radius); padding: 1.2rem 1.4rem; }
.hk-note p:last-child { margin-bottom: 0; }
.hk-small { font-size: .92rem; color: var(--hk-muted); }

/* ---------- Formular ---------- */
.hk-form-wrap { background: #fff; border: 1px solid var(--hk-sand); border-radius: var(--hk-radius); padding: clamp(1.2rem, 4vw, 2.4rem); margin: 2rem 0; max-width: 820px; }
.hk-form__hint { background: var(--hk-soft); border-radius: 12px; padding: .9rem 1.1rem; font-size: .95rem; }
.hk-form__grid { display: grid; grid-template-columns: 1fr; gap: 0 1.4rem; }
@media (min-width: 700px) { .hk-form__grid { grid-template-columns: 1fr 1fr; } .hk-field--wide { grid-column: 1 / -1; } }
.hk-field { margin: 0 0 1.1rem; }
.hk-field label, .hk-field legend { display: block; font-weight: 600; margin-bottom: .35rem; }
.hk-field input[type=text], .hk-field input[type=email], .hk-field input[type=tel], .hk-field input[type=date], .hk-field select, .hk-field textarea { width: 100%; font: inherit; color: inherit; background: var(--hk-bg); border: 1px solid #cdbfae; border-radius: 10px; padding: .7rem .85rem; }
.hk-field [aria-invalid=true] { border-color: var(--hk-red); }
.hk-field--checks { border: 0; padding: 0; }
.hk-check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; margin-bottom: .45rem; }
.hk-check input { margin-top: .35em; width: 1.1em; height: 1.1em; accent-color: var(--hk-sage); flex: none; }
.hk-field--consent { font-size: .95rem; }
.hk-form__error { color: var(--hk-red); font-size: .92rem; margin: .3rem 0 0; }
.hk-form__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hk-notice { border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.hk-notice--ok { background: #e7f2ea; color: #23492f; }
.hk-notice--err { background: #fbe9e6; color: #7a2a20; }

/* ---------- Footer ---------- */
.hk-footer { background: var(--hk-text); color: #efe8df; padding: 3rem 0 1.4rem; font-size: .96rem; }
.hk-footer a { color: #fff; }
.hk-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hk-footer__name { font-family: var(--hk-serif); font-size: 1.15rem; color: #fff; }
.hk-footer__emergency { background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 1rem 1.2rem; align-self: start; }
.hk-footer__emergency p { margin: 0; }
.hk-footer__links { list-style: none; padding: 0; margin: 0; }
.hk-footer__copy { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; color: #c9bfb4; }

/* Rechtstexte */
.hk-legal h2 { font-size: 1.45rem; }
.hk-legal h3 { font-size: 1.12rem; }

/* ---------- Rezensionen ---------- */
.hk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hk-reviews { margin: 3rem 0; }
.hk-content > .hk-reviews { max-width: none; }
.hk-reviews__intro { color: var(--hk-muted); margin-top: -.3rem; }
.hk-reviews__grid { margin: 1.4rem 0 1.6rem; }
.hk-reviews__grid > .wp-block-group__inner-container, .hk-reviews__grid:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 700px) { .hk-reviews__grid > .wp-block-group__inner-container, .hk-reviews__grid:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: 1fr; } }
.hk-review:only-child { grid-column: 1 / -1; }
.hk-review { background: #fff; border: 1px solid var(--hk-sand); border-radius: var(--hk-radius); padding: 1.4rem 1.4rem 1.2rem; height: 100%; box-sizing: border-box; }
.hk-review > .wp-block-group__inner-container, .hk-review:not(:has(> .wp-block-group__inner-container)) { display: flex; flex-direction: column; height: 100%; }
.hk-review p { margin: 0; }
.hk-review__stars { color: var(--hk-amber); letter-spacing: .12em; font-size: 1.05rem; margin-bottom: .6rem !important; }
.hk-review__text { font-family: var(--hk-serif); font-style: italic; line-height: 1.6; flex: 1; margin-bottom: 1rem !important; }
.hk-review__name { font-size: .9rem; font-weight: 600; color: var(--hk-sage-dark); }
.hk-reviews .hk-small { margin-top: .8rem; }
