/* ==========================================================
   Diana Kochlowski Immobilien – Stylesheet
   Schriften lokal (keine Verbindung zu Google)
   ========================================================== */

@font-face { font-family: "Outfit"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #f6f3ee;
  --bg-alt: #eee9e2;
  --ink: #1b1816;
  --text: #3d3833;
  --muted: #857d75;
  --line: #dcd4ca;
  --accent: #7d1f1f;      /* Logo-Rot, gedeckt */
  --accent-dark: #5e1515;
  --white: #fffdf9;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 130px);
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typo ---------- */
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; letter-spacing: -0.035em; }
h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.0; }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; }
.lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--ink); font-weight: 400; }
.muted { color: var(--muted); }

/* Rubrik-Label: "01  VERKAUF ———" */
.label {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 34px;
}
.label b { color: var(--accent); font-weight: 600; letter-spacing: .1em; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 100px;
  background: var(--ink); color: var(--white);
  font-size: 15px; font-weight: 400; text-decoration: none;
  transition: background .2s;
}
.btn:hover { background: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.link-arrow { text-decoration: none; font-weight: 400; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 238, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.brand__name span { color: var(--accent); }
.brand__sub { font-size: 9.5px; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 500; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav > a, .nav__drop > button {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--ink);
  text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer;
}
.nav > a:hover, .nav__drop > button:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav__drop { position: relative; }
.nav__drop > button::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor; transform: translateY(-3px) rotate(45deg); margin-left: 9px; }
.nav__menu {
  position: absolute; top: calc(100% + 14px); left: -22px;
  min-width: 220px; padding: 10px 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px -20px rgba(40, 30, 20, .25);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s;
}
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu, .nav__drop.open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: block; padding: 9px 22px; text-decoration: none; font-size: 15px; font-weight: 400; color: var(--ink); }
.nav__menu a:hover, .nav__menu a[aria-current="page"] { color: var(--accent); background: var(--bg); }
.nav > a.btn { padding: 11px 22px; font-size: 14px; background: var(--ink); color: var(--white); }
.nav > a.btn:hover { background: var(--accent); color: var(--white); }

.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; margin-right: -10px; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: .2s; }
.burger::before { top: 16px; } .burger span { top: 21.5px; } .burger::after { top: 27px; }
.menu-open .burger::before { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger::after { top: 21.5px; transform: rotate(-45deg); }
.menu-open .burger span { opacity: 0; }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 80px 0 0 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; padding: 20px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transition: .2s; overflow-y: auto;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav > a, .nav__drop > button { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
  .nav__drop > button { display: none; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .nav__menu::before { display: none; }
  .nav__menu a { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__menu a:hover { background: none; }
  .nav > a.btn { margin-top: 28px; border: 0; color: var(--white); letter-spacing: 0; justify-content: center; font-size: 16px; padding: 16px; }
}

/* ---------- Kopfbild (flach) ---------- */
.banner { padding-top: 8px; }
.banner img {
  width: 100%; height: clamp(170px, 21vw, 300px);
  object-fit: cover; border-radius: var(--radius);
  background: var(--bg-alt);
}

/* ---------- Intro ---------- */
.intro { padding: clamp(48px, 7vw, 90px) 0 var(--section); }
.intro__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: end; }
.intro__kicker { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 22px; }
.intro .lead { margin-bottom: 18px; }
@media (max-width: 860px) { .intro__grid { grid-template-columns: 1fr; } }

/* ---------- Sektionen ---------- */
.section { padding: var(--section) 0; }
.section--alt { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); }
.split--top { align-items: start; }
.split h2 { max-width: 12ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Drei Wege – Karten */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 56px; }
.way { background: var(--bg); padding: 38px 32px 34px; text-decoration: none; display: flex; flex-direction: column; min-height: 300px; transition: background .2s; }
.way:hover { background: var(--white); }
.way__no { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: .1em; }
.way h3 { font-size: clamp(28px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; margin: 54px 0 14px; }
.way p { color: var(--text); font-size: 16px; }
.way__more { margin-top: auto; padding-top: 26px; font-size: 14px; color: var(--ink); font-weight: 400; }
.way__more::after { content: " →"; transition: margin .2s; }
.way:hover .way__more::after { margin-left: 6px; }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } .way { min-height: 0; } .way h3 { margin-top: 24px; } }

/* Ablauf – Schritte */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 46px 40px; margin-top: 60px; counter-reset: step; }
.step { border-top: 1px solid var(--ink); padding-top: 20px; }
.step__no { display: block; font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .1em; margin-bottom: 14px; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 16px; }

/* Listen */
.checklist { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.checklist li { break-inside: avoid; padding: 13px 0 13px 26px; border-bottom: 1px solid var(--line); position: relative; font-weight: 400; color: var(--ink); font-size: 16px; line-height: 1.4; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 640px) { .checklist { columns: 1; } }

/* Text-Paare */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 70px); margin-top: 60px; }
.pair h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 16px; }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } }

/* Zitat / Claim */
.claim { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -0.025em; color: var(--ink); font-weight: 400; max-width: 22ch; }
.claim em { font-style: normal; color: var(--accent); }

/* Porträt */
.portrait { position: relative; margin: 0; max-width: 480px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); }
.portrait figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }
.portrait figcaption strong { color: var(--ink); font-weight: 500; display: block; font-size: 16px; }

/* Fakten */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 46px 0 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.facts strong { display: block; font-size: clamp(30px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.facts span { font-size: 14px; color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* Partner-Logos */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 56px; }
.partner { background: var(--bg); aspect-ratio: 3 / 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; padding: 22px; text-align: center; transition: background .2s; }
.partner:hover { background: var(--white); }
.partner img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .8; transition: .2s; }
.partner:hover img { filter: none; opacity: 1; }
.partner small { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.3; }
.partner--placeholder { color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

/* Abschluss-CTA */
.cta { text-align: left; }
.cta .claim { max-width: 20ch; margin-bottom: 30px; }
.signature { margin-top: 34px; font-size: 15px; color: var(--muted); }
.signature strong { display: block; color: var(--ink); font-weight: 500; font-size: 17px; }

/* ---------- Kontakt ---------- */
.contact { background: var(--bg-alt); padding: var(--section) 0 clamp(60px, 8vw, 100px); }
.contact h2 { font-size: clamp(42px, 5.4vw, 66px); line-height: 1; }
.contact__intro .lead { margin-bottom: 18px; }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(50px, 7vw, 80px); }
.contact__grid h4 { margin: 0 0 16px; font-size: 10.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.contact__grid p, .contact__grid li { font-weight: 400; color: var(--ink); font-size: 16px; line-height: 1.85; }
.contact__grid ul { list-style: none; margin: 0; padding: 0; }
.contact__grid a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.contact__grid a:hover { color: var(--accent); }
@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Footer (bewusst schlank) ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 28px 0 32px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* WhatsApp-Button */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(94, 21, 21, .55);
  transition: transform .2s, background .2s;
}
.wa:hover { background: var(--accent-dark); transform: scale(1.06); }
.wa svg { width: 26px; height: 26px; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(50px, 7vw, 90px) 0 var(--section); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 40px; }
.legal h2 { font-size: 26px; letter-spacing: -0.02em; margin: 56px 0 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 18px; font-weight: 500; margin: 30px 0 10px; }
.legal p, .legal li { font-size: 16px; }
.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal a { word-break: break-word; }
.legal .meta { color: var(--muted); }

/* ---------- Einblenden beim Scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Kontaktformular ---------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 17px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; width: 100%; transition: border-color .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.form .check { display: flex; gap: 12px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 300; color: var(--text); line-height: 1.5; }
.form .check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.form button { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form__note { font-size: 13px; color: var(--muted); margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 18px 22px; border-radius: var(--radius); font-weight: 400; margin-bottom: 24px; }
.form-msg--ok { background: var(--white); border-left: 3px solid #3d6b45; color: var(--ink); }
.form-msg--err { background: var(--white); border-left: 3px solid var(--accent); color: var(--ink); }

/* ---------- Laufende Bildleiste (Referenzen) ---------- */
.strip-section { padding: 0 0 var(--section); overflow: hidden; }
.strip-section h2 { margin-bottom: 46px; }
.strip { 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); }
.strip__track { display: flex; gap: 16px; width: max-content; animation: strip-lauf var(--dauer, 60s) linear infinite; }
.strip__track img { height: clamp(170px, 20vw, 280px); width: auto; border-radius: var(--radius); flex: none; background: var(--line); }
@keyframes strip-lauf { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip { overflow-x: auto; } .strip__track { animation: none; } }

.offers-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 60px 30px; text-align: center; color: var(--muted); }

/* ---------- Video-Kopf (16:9, volle Breite) ---------- */
.video-hero { position: relative; aspect-ratio: 8 / 3; overflow: hidden; background: #2a2622; }
.video-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.video-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,13,.62) 0%, rgba(20,16,13,.28) 50%, rgba(20,16,13,0) 75%), linear-gradient(0deg, rgba(20,16,13,.45) 0%, rgba(20,16,13,0) 45%); }
.video-hero__text { position: absolute; left: 0; right: 0; bottom: clamp(36px, 7vw, 96px); z-index: 1; }
.video-hero h1 { color: #fff; max-width: 13ch; }
.video-hero .intro__kicker { color: var(--accent); font-weight: 600; }
.intro--after-hero .intro__grid { align-items: start; }
@media (max-width: 700px) { .video-hero { aspect-ratio: auto; min-height: 340px; } }

/* ---------- Leistungs-Karten mit Claim ---------- */
.way__no { letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.way h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.15; margin: 40px 0 14px; }

/* Ablauf-Schritte mit mehreren Absätzen */
.step p + p { margin-top: .7em; }
.step .link-arrow { font-size: 15px; }

/* ---------- Gewerke-Kacheln ---------- */
.partner--trade { justify-content: center; gap: 14px; }
.partner__logo { width: 64px; height: 64px; border-radius: 50%; border: 1px dashed var(--line); display: grid; place-items: center; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.partner--trade small { font-size: 14px; color: var(--ink); font-weight: 400; margin: 0; }

/* ---------- Service-Kacheln (Energieausweis, Gutachten, Finanzierung) ---------- */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.service-card { display: flex; flex-direction: column; background: var(--bg-alt); border-radius: var(--radius); padding: 34px 30px 30px; text-decoration: none; color: var(--text); transition: background .2s, transform .2s; scroll-margin-top: 110px; }
.service-card:hover { background: var(--white); transform: translateY(-3px); }
.service-card__logo { height: 64px; border: 1px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.service-card h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.service-card p { font-size: 16px; }
.service-card p strong { font-weight: 500; color: var(--ink); }
.service-card .btn { margin-top: auto; align-self: flex-start; }
.service-card p:last-of-type { margin-bottom: 28px; }
.service-card:hover .btn { background: var(--accent); }
@media (max-width: 900px) { .service-cards { grid-template-columns: 1fr; } }

.contact__grid ul + *, .contact__grid p + ul { margin-top: 10px; }
.partners--trades { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .partners--trades { grid-template-columns: repeat(2, 1fr); } }

/* Logo */
.brand__logo { height: 58px; width: auto; display: block; }
@media (max-width: 860px) { .brand__logo { height: 48px; } }
.nav__drop > button.is-active { color: var(--accent); }

/* Video-Platzhalter, solange noch kein Film hochgeladen ist */
.video-hero__ph { position: absolute; top: 24px; right: 28px; z-index: 1; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.video-hero.has-video .video-hero__ph { display: none; }
.video-hero:not(.has-video) { background: linear-gradient(120deg, #6f665e, #9a9087); }
.facts--2 { grid-template-columns: repeat(2, minmax(0, 220px)); gap: 40px; }
@media (max-width: 520px) { .facts--2 { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* Rubrik im Video-Kopf: weiße Schrift im roten Balken, der links bis zum Bildrand läuft */
.video-hero .intro__kicker {
  position: relative; display: inline-block;
  background: var(--accent); color: #fff; opacity: 1;
  font-weight: 500; padding: 4px 9px 4px 0; margin-bottom: 26px;
}
.video-hero .intro__kicker::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 100%;
  width: 100vw; background: var(--accent);
}

/* Aktiver Menüpunkt: rot mit roter Linie darunter */
.nav > a:not(.btn)[aria-current="page"], .nav__drop > button.is-active {
  color: var(--accent);
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 8px;
}

/* Handy: kein Blur am Header, sonst wird das ausklappbare Menü auf Headerhöhe beschnitten */
@media (max-width: 860px) { .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); } }

/* ---------- Buttons: rote Schrift, dünne Outline, Glow beim Hover ---------- */
.btn, .btn--ghost, .nav > a.btn, .service-card .btn, .form button.btn {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent); box-shadow: none;
  border-radius: var(--radius);
  padding: 13px 24px; font-weight: 500;
  transition: background .25s, box-shadow .25s, color .25s;
}
.btn:hover, .btn--ghost:hover, .nav > a.btn:hover, .service-card:hover .btn, .form button.btn:hover {
  background: rgba(125, 31, 31, .08); color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 31, 31, .10), 0 0 22px rgba(125, 31, 31, .28);
}
.nav > a.btn { padding: 10px 20px; }
.nav > a.btn[aria-current="page"] { background: rgba(125, 31, 31, .08); }
@media (max-width: 860px) { .nav > a.btn { color: var(--accent); border: 1px solid var(--accent); } }
/* Buttons: eckig, Hover komplett mit 20 % Rot gefüllt */
.btn, .btn--ghost, .nav > a.btn, .service-card .btn, .form button.btn { border-radius: 0; }
.btn:hover, .btn--ghost:hover, .nav > a.btn:hover, .service-card:hover .btn, .form button.btn:hover { background: rgba(125, 31, 31, .20); }
/* Hover: nur innerhalb des Rahmens füllen, kein Schein nach außen */
.btn:hover, .btn--ghost:hover, .nav > a.btn:hover, .service-card:hover .btn, .form button.btn:hover { box-shadow: none; }

/* Text-Links ("Mehr über mich", Karten-Links usw.) sehen aus wie die Buttons */
.link-arrow, .way__more {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 13px 24px; margin-top: 8px;
  border: 1px solid var(--accent); border-radius: 0;
  color: var(--accent); font-size: 15px; font-weight: 500; text-decoration: none; line-height: 1.2;
  background: transparent; transition: background .25s;
}
.link-arrow:hover, .way:hover .way__more { background: rgba(125, 31, 31, .20); color: var(--accent); border-color: var(--accent); }
.way__more::after { content: none; }
.way__more { margin-top: auto; }
.way p { margin-bottom: 26px; }
.step .link-arrow { font-size: 14px; padding: 11px 20px; }

/* Claim in der fetten Überschriften-Schrift (Test Verkauf) */
.claim--bold { font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; }

/* Referenzbilder 20 % kleiner */
.strip__track img { height: clamp(136px, 16vw, 224px); }
/* Bildleiste nach einer farbigen Sektion: oben Abstand; folgende helle Sektion ohne doppelten Abstand */
.section--alt + .strip-section { padding-top: var(--section); }
.strip-section + .section:not(.section--alt) { padding-top: 0; }

/* Handy-Menü kompakter, damit alle Punkte inkl. Kontakt ohne Scrollen sichtbar sind */
@media (max-width: 860px) {
  .nav { padding-top: 8px; padding-bottom: 24px; }
  .nav > a:not(.btn), .nav__menu a { font-size: 21px; padding: 11px 0; }
  .nav > a.btn { margin-top: 20px; padding: 13px; font-size: 16px; }
  .nav > a:not(.btn)[aria-current="page"], .nav__menu a[aria-current="page"] { text-underline-offset: 6px; }
  body.menu-open { overflow: hidden; }
}

/* Gewerke: schlichte Liste aus Icons mit Unterzeile, keine Kacheln */
.trades { list-style: none; margin: 60px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 32px; }
.trade { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.trade img { width: 104px; height: 104px; }
.trade span { font-size: 15px; font-weight: 400; color: var(--ink); line-height: 1.35; max-width: 18ch; }
@media (max-width: 760px) { .trades { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; } .trade img { width: 84px; height: 84px; } }

/* Häuserzeile steht auf der (ausgeblendeten) Footer-Linie */
.site-footer { border-top: 0; padding-top: 0; }
.skyline { overflow: hidden; display: flex; justify-content: center; margin-bottom: 26px; }
.skyline img { width: 100%; min-width: 900px; max-width: none; height: auto; flex: none; }
/* Häuser stehen genau auf der Kante zum Footer: Zeile ragt nach oben in die letzte Sektion */
.site-footer { position: relative; padding-top: 30px; }
.skyline { position: absolute; left: 0; right: 0; bottom: 100%; margin: 0; pointer-events: none; }
main > section:last-of-type { padding-bottom: calc(var(--section) + max(11.05vw, 100px)); }
.skyline { bottom: calc(100% - 3px); }
/* Faktenzeile: Unterzeilen einzeilig, Spalten so breit wie der Text darunter */
.facts--2 { grid-template-columns: auto auto; justify-content: start; column-gap: clamp(40px, 6vw, 90px); }
.facts--2 span { white-space: nowrap; }
@media (max-width: 520px) { .facts--2 { grid-template-columns: 1fr; row-gap: 22px; } }
.facts span [data-seit], .facts [data-seit] { display: inline; font-size: inherit; color: inherit; }
.facts--2 { column-gap: 48px; }

/* Kacheln reagieren nicht mehr auf die Maus, nur der Button darin */
.way:hover, .service-card:hover { background: inherit; transform: none; }
.way:hover { background: var(--bg); }
.service-card:hover { background: var(--bg-alt); }
.way:hover .way__more, .service-card:hover .btn { background: transparent; }
.way__more:hover, .service-card .btn:hover { background: rgba(125, 31, 31, .20); }
.way, .service-card { cursor: default; }
.way__more, .service-card .btn { cursor: pointer; }
/* Einleitung + gleichfarbige Folgesektion: nur einfacher Abstand statt doppeltem */
.intro + .section:not(.section--alt) { padding-top: 0; }
/* Buttons in den Kacheln: Hover wie alle anderen Buttons */
.way .way__more:hover, .way:hover .way__more:hover,
.service-card .btn:hover, .service-card:hover .btn:hover { background: rgba(125, 31, 31, .20); }
/* Video-Köpfe 15 % flacher */
.video-hero { aspect-ratio: 160 / 51; }
@media (max-width: 700px) { .video-hero { aspect-ratio: auto; min-height: 289px; } }

/* Widerruf */
.form__hint { font-size: 14px; color: var(--muted); margin: 0; }
.w-summary { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 24px 0; padding: 22px 24px; background: var(--bg-alt); border-left: 3px solid var(--accent); }
.w-summary dt { color: var(--muted); font-size: 14px; }
.w-summary dd { margin: 0; color: var(--ink); font-weight: 400; word-break: break-word; }
.legal .form { margin-top: 20px; }
.legal .btn { font-family: inherit; cursor: pointer; }
@media (max-width: 560px) { .w-summary { grid-template-columns: 1fr; gap: 2px; } .w-summary dd { margin-bottom: 10px; } }
.legal .form { margin-top: 44px; }

/* Dezenter KI-Hinweis oben rechts im Video-Kopf */
.ki-hinweis { position: absolute; top: 12px; right: 16px; z-index: 2; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); pointer-events: none; }
.video-hero:not(.has-video) .ki-hinweis { display: none; }
.video-hero__ph { top: 30px; }

/* Energieausweis */
.rules { list-style: none; margin: 26px 0 0; padding: 0; }
.rules li { padding: 16px 0 16px 26px; border-bottom: 1px solid var(--line); position: relative; }
.rules li::before { content: ""; position: absolute; left: 2px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.rules strong { display: block; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.rules span { font-size: 16px; }
.ea-tabs { display: flex; gap: 0; margin: 46px 0 0; border-bottom: 1px solid var(--line); }
.ea-tab { font: inherit; font-size: 16px; font-weight: 500; background: none; border: 0; padding: 14px 22px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ea-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.ea-box { background: var(--bg); padding: clamp(26px, 4vw, 44px); margin-top: 28px; }
.ea-box.is-loaded { padding: 0; background: #fff; }
.ea-box .btn { font-family: inherit; cursor: pointer; }

/* Hervorgehobene Rubrik (Marktwerteinschätzung) */
.feature { background: var(--accent); color: rgba(255,255,255,.86); }
.feature h2, .feature .lead { color: #fff; }
.feature .label { color: rgba(255,255,255,.7); }
.feature .label::after { background: rgba(255,255,255,.25); }
.feature__claim { color: #fff; font-weight: 500; margin-top: 18px; }
.feature .btn { color: #fff; border-color: #fff; }
.feature .btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.section.feature + .section:not(.section--alt) { padding-top: var(--section); }
.feature--kompakt { padding: clamp(56px, 7vw, 90px) 0; }

/* Marktwert-Teil im Kontaktformular */
.mw-intro { background: var(--bg); padding: 20px 22px; border-left: 3px solid var(--accent); }
.mw-intro h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.mw-intro p { font-size: 15px; margin: 0; }

/* Partner: vier Kacheln */
.service-cards { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { padding: 28px 22px 24px; }
.service-card h3 { font-size: 21px; }
.service-card p { font-size: 15px; }
@media (max-width: 1100px) { .service-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .service-cards { grid-template-columns: 1fr; } }

/* FIX Handy: geschlossenes Menü darf keine unsichtbaren Links über der Seite haben */
@media (max-width: 860px) {
  .nav { pointer-events: none; }
  .menu-open .nav { pointer-events: auto; }
  .nav__menu { visibility: inherit; }
}
/* Abstand zwischen roter Marktwert-Fläche und folgender Bildleiste */
.feature + .strip-section { padding-top: var(--section); }
