/*
Theme Name: Bodo Haug Immobilien
Theme URI: https://example.com/
Author: Erstellt für Bodo Haug – immobilien + mehr
Description: One-Pager für den Immobilienmakler Bodo Haug aus Grafenau, nach dem Lovable-Entwurf umgesetzt. Alle Texte, Bilder und Kontaktdaten sind unter Design → Customizer änderbar. Kontaktformulare ohne Plugin, Schriften lokal, keine Cookies, kein Tracking.
Version: 2.1.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bodo-haug
*/

/* ---------- Schriften (lokal, keine Google-Server) ---------- */
@font-face { font-family: "Questrial"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/questrial-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* ---------- Farben (wie im Lovable-Entwurf) ---------- */
:root {
	--ink: #3A3D42;          /* Anthrazit: Text, Footer */
	--brand: #C0272D;        /* Rot aus dem Logo */
	--bg: #FFFFFF;
	--tint: #F7F5F1;
	--card: #FFFFFF;
	--muted: #6A6D73;
	--border: #E6E2DB;
	--input: #DCD7CE;
	--on-dark: #F7F5F1;
	--head: "Questrial", "Century Gothic", system-ui, sans-serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 2px;
	--header-h: 72px;
}
@media (min-width: 768px) { :root { --header-h: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.2; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 768px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--card); padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 32px; height: 32px; }
.icon--brand { color: var(--brand); }
.line { display: block; width: 48px; height: 1px; background: var(--brand); margin-bottom: 20px; }
.lead { color: var(--muted); margin-top: 16px; }
.lead--first { margin-top: 24px; }
.lead + .lead { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius); font: 600 .875rem/1.25 var(--sans); letter-spacing: .025em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: filter .2s, background .2s, color .2s; }
.btn--brand { background: var(--brand); color: var(--on-dark); }
.btn--brand:hover { filter: brightness(1.1); }
.btn--ghost { border-color: rgba(247, 245, 241, .8); color: var(--on-dark); }
.btn--ghost:hover { background: var(--on-dark); color: var(--ink); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
@media (min-width: 640px) { .btn-row { flex-direction: row; } }
.faq + .btn, .split .btn:not(.btn--block) { margin-top: 40px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid var(--border); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.logo { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; color: var(--ink); font-family: var(--head); }
.logo__name { font-size: 1.5rem; letter-spacing: -.01em; padding-bottom: 4px; border-bottom: 1px solid rgba(58, 61, 66, .6); }
.logo__red { color: var(--brand); }
.logo__sub { font-size: 10px; letter-spacing: .2em; padding: 3px 0; border-bottom: 1px solid rgba(58, 61, 66, .6); }
.logo--light { color: var(--on-dark); }
.logo--light .logo__name, .logo--light .logo__sub { border-color: rgba(247, 245, 241, .6); }
.custom-logo-link { display: inline-flex; background: transparent; }
.custom-logo-link img { max-height: 56px; width: auto; }

.nav { display: none; gap: 24px; }
.nav a { font-size: .875rem; text-decoration: none; color: var(--ink); transition: color .2s; white-space: nowrap; }
.nav a:hover { color: var(--brand); }
.burger { background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; display: inline-flex; }
.burger__close, .is-open .burger__open { display: none; }
.is-open .burger__close { display: inline-flex; }
.mobile-nav { border-top: 1px solid var(--border); background: var(--bg); padding: 0 20px 16px; }
.mobile-nav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--ink); }
.mobile-nav__tel { display: flex !important; align-items: center; gap: 8px; border-bottom: 0 !important; color: var(--brand) !important; font-weight: 600; }
@media (min-width: 1024px) {
	.nav { display: flex; }
	.burger, .mobile-nav { display: none !important; }
}

/* ---------- Startbild ---------- */
.hero { position: relative; min-height: 90vh; min-height: 90svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 64px; color: var(--on-dark); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(58, 61, 66, .85), rgba(58, 61, 66, .35) 70%, rgba(58, 61, 66, 0)); }
.hero__content { position: relative; }
.hero__content > div { max-width: 576px; }
.hero h1 { color: var(--on-dark); }
.hero__text { margin-top: 24px; font-size: 1.125rem; opacity: .9; }
@media (max-width: 640px) { .hero__overlay { background: linear-gradient(90deg, rgba(58, 61, 66, .85), rgba(58, 61, 66, .55)); } }

/* ---------- Banner ---------- */
.banner { padding-top: var(--header-h); background: var(--ink); }
.banner__img { width: 100%; height: auto; display: block; }
.banner__bar { background: var(--ink); color: var(--on-dark); padding: 28px 0; }
.banner__inner { display: flex; flex-direction: column; gap: 20px; }
.banner__text { font-size: 1.05rem; opacity: .92; max-width: 640px; }
.btn-row--banner { margin-top: 0; }
@media (min-width: 900px) {
	.banner__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
	.btn-row--banner { flex-shrink: 0; }
}

/* ---------- Abschnitte ---------- */
.section { padding: 80px 0; background: var(--bg); }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section--tint { background: var(--tint); }
.section-head { max-width: 672px; margin-bottom: 56px; }
.split { display: grid; gap: 48px; align-items: center; }
.split--top { align-items: start; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }

.photo { width: 100%; object-fit: cover; object-position: top; }
.photo--tall, .photo--portrait { aspect-ratio: 4 / 5; }
.photo--43 { aspect-ratio: 4 / 3; }
.photo--wide { aspect-ratio: 3 / 2; margin-top: 32px; }
@media (min-width: 768px) { .photo--sticky { position: sticky; top: 112px; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: center; font-weight: 500; }

/* ---------- Leistungen ---------- */
.cards { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); overflow: hidden; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); padding: 32px; }
.card .icon { margin-bottom: 24px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: .875rem; color: var(--muted); }

/* ---------- Verkaufsprozess ---------- */
.steps { list-style: none; margin: 0; padding: 0 0 0 32px; border-left: 1px solid var(--border); position: relative; }
@media (min-width: 768px) { .steps { padding-left: 48px; } }
.step { position: relative; padding-bottom: 48px; }
.step:last-child { padding-bottom: 0; }
.step__num { position: absolute; left: -50px; top: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--brand); background: var(--bg); color: var(--brand); display: grid; place-items: center; font-family: var(--head); }
@media (min-width: 768px) { .step__num { left: -66px; } }
.step__body p { margin-top: 8px; max-width: 640px; color: var(--muted); }
.step__body p + p { margin-top: 12px; }
.step__fig { position: relative; margin: 24px 0 0; max-width: 672px; overflow: hidden; }
.step__fig img { aspect-ratio: 3 / 2; }
.step__fig figcaption { position: absolute; left: 0; bottom: 0; background: var(--brand); color: var(--on-dark); padding: 8px 20px; font-family: var(--head); font-size: 1.25rem; }

/* ---------- Selbst verkaufen (Akkordeon) ---------- */
.faq { margin-top: 32px; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 500; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev { width: 16px; height: 16px; transition: transform .2s; color: var(--muted); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__item p { padding: 0 0 16px; color: var(--muted); font-size: .94rem; }

/* ---------- Über mich ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 0; padding-top: 32px; border-top: 1px solid var(--border); }
.stats dt { font-family: var(--head); font-size: clamp(1.875rem, 3vw, 2.25rem); color: var(--brand); line-height: 1.1; }
.stats dd { margin: 4px 0 0; font-size: .8rem; color: var(--muted); }

.prose { margin-top: 24px; color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose__lead { margin-top: 20px; font-weight: 500; color: var(--ink); }
.values { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.values li { display: flex; gap: 12px; align-items: flex-start; }
.values .icon { width: 20px; height: 20px; margin-top: 3px; }
.quote { margin: 32px 0 0; padding: 20px 24px; border-left: 3px solid var(--brand); background: var(--tint); font-family: var(--head); font-size: 1.3rem; line-height: 1.4; color: var(--ink); }
.photo--card { aspect-ratio: 4 / 3; object-position: center 55%; }

/* ---------- Kundenbewertungen ---------- */
.reviews-grid { display: grid; gap: 48px; }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 64px; } }
.reviews-grid__intro { display: flex; flex-direction: column; }
.reviews-grid__img { margin-top: 32px; flex: 1; min-height: 320px; height: 100%; }
.reviews { display: grid; gap: 24px; align-content: start; }
.review { margin: 0; background: var(--card); border: 1px solid var(--border); padding: 32px; }
.review__stars { display: flex; gap: 4px; color: var(--brand); margin-bottom: 16px; }
.review__stars .icon { fill: currentColor; }
.review blockquote { margin: 0; color: var(--muted); }
.review figcaption { margin-top: 24px; font-size: .875rem; font-weight: 500; color: var(--ink); }

/* ---------- Kontakt ---------- */
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list .icon { width: 20px; height: 20px; margin-top: 2px; }
.contact-list .label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--brand); }

/* ---------- Formulare ---------- */
.form-wrap { margin-top: 32px; }
.form { display: grid; gap: 20px; }
.form--tint { background: var(--tint); padding: 24px; }
@media (min-width: 768px) { .form--tint { padding: 32px; } }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field span { display: block; font-size: .875rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--input); border-radius: var(--radius); padding: 12px 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input[type="date"] { min-height: 50px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A6D73' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--muted); }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex-shrink: 0; }
.check a { color: var(--ink); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 20px 24px; margin-bottom: 20px; border: 1px solid; background: var(--card); }
.form-msg--ok { border-color: var(--brand); color: var(--ink); }
.form-msg--err { border-color: #B3261E; color: #8c1d18; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 48px 0 24px; font-size: .875rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer address { font-style: normal; line-height: 1.7; opacity: .9; }
.site-footer__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer__legal { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 768px) { .site-footer__legal { align-items: flex-end; } }
.site-footer__copy { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(247, 245, 241, .2); font-size: .75rem; opacity: .7; }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding-top: calc(var(--header-h) + 48px); padding-bottom: 80px; }
.legal h1 { margin-bottom: 32px; font-size: 2.25rem; }
.legal__content { color: var(--muted); overflow-wrap: anywhere; }
.legal__content h2 { font-size: 1.5rem; margin: 40px 0 16px; color: var(--ink); }
.legal__content h3 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--ink); }
.legal__content h4 { font: 600 1rem/1.4 var(--sans); margin: 20px 0 8px; color: var(--ink); }
.legal__content p, .legal__content ul { margin: 0 0 16px; }
.legal__content a { color: var(--ink); }
.legal__back { margin-top: 40px; }
.legal__back a { color: var(--ink); text-decoration: none; }
.legal__back a:hover { color: var(--brand); }

/* ---------- Einblend-Animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* WordPress-Pflichtklassen */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption-text { font-size: .85rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Zwei weiße Abschnitte hintereinander (z. B. wenn Kundenbewertungen ausgeblendet sind): Abstand nicht verdoppeln */
.section:not(.section--tint) + .section:not(.section--tint) { padding-top: 0; }
