/* Catena Realty – Bewertungs-Landingpage */

@font-face { font-family: "Kaisei Decol"; src: url("../fonts/kaisei-decol-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kaisei Decol"; src: url("../fonts/kaisei-decol-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --brown: #594124;
  --brown-90: #6a5236;
  --sand: #B89F8A;
  --beige: #F4F1ED;           /* #B89F8A mit 15 % Deckkraft auf Weiss */
  --white: #ffffff;
  --line: rgba(89, 65, 36, .16);
  --line-strong: rgba(89, 65, 36, .32);
  --muted: rgba(89, 65, 36, .78);
  --error: #9b2c1f;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-pill: 999px;
  --font-title: "Kaisei Decol", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--brown);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3, legend.step-title { font-family: var(--font-title); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.center { text-align: center; }
.small { font-size: .875rem; color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brown); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }

.eyebrow {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500; margin: 0 0 1.1rem; color: var(--brown);
}

section { padding: clamp(64px, 9vw, 120px) 0; }
.section-beige { background: var(--beige); }
.section-white { background: var(--white); }
.section-tight-top { padding-top: 0; }
.section-dark { background: var(--brown); color: var(--beige); }
.section-dark h2 { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 28px;
  font: 500 .95rem/1 var(--font-body);
  color: #fff; background: var(--brown);
  border: 1px solid var(--brown); border-radius: var(--radius-pill);
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.btn:hover { background: var(--brown-90); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: 0 20px; font-size: .875rem; }
.btn-ghost { background: transparent; color: var(--brown); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--beige); }
.btn-light { background: var(--beige); color: var(--brown); border-color: var(--beige); }
.btn-light:hover { background: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 237, .94);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo img { width: 230px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-title); font-size: 1.05rem; text-decoration: none; white-space: nowrap;
}
.header-phone:hover .phone-num { text-decoration: underline; text-underline-offset: 3px; }
.phone-short { display: none; }

/* Hero */
.hero { padding-top: clamp(32px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: .9fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero .lead { font-size: 1.05rem; margin-bottom: 2rem; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hint { font-size: .85rem; color: var(--muted); }
.hero-media { position: relative; }
.img-round img { border-radius: var(--radius-lg); width: 100%; height: 100%; object-fit: cover; }
.hero-img img { aspect-ratio: 3 / 2; }
.hero-badge {
  position: absolute; left: -22px; bottom: -28px;
  width: 150px; height: 150px; border-radius: 50%; text-align: center;
  background: var(--brown); color: var(--beige);
  box-shadow: 0 0 0 7px var(--beige);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-title); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.55;
}
.hero-badge small { display: block; margin-top: 5px; font-size: .56rem; letter-spacing: .1em; line-height: 1.35; opacity: .9; }

/* Formular */
.form-section { padding: clamp(56px, 8vw, 96px) 0; }
.funnel { position: relative; }
.funnel-head { text-align: center; margin-bottom: 8px; }
.step-label { margin-bottom: .8rem; }
.progress { width: 160px; height: 3px; margin: 0 auto 28px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 25%; background: var(--brown); border-radius: 3px; transition: width .35s ease; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.step.is-active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
legend.step-title { display: block; width: 100%; text-align: center; font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 32px; padding: 0; }

.type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 620px; margin: 0 auto; }
.type-card { position: relative; cursor: pointer; }
.type-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.type-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 132px; padding: 20px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  font-family: var(--font-title); font-size: 1.15rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.type-inner svg { width: 34px; height: 34px; }
.type-card:hover .type-inner { border-color: var(--line-strong); }
.type-card input:checked + .type-inner { background: var(--beige); border-color: var(--brown); }
.type-card input:focus-visible + .type-inner { outline: 2px solid var(--brown); outline-offset: 3px; }

.field { margin-bottom: 22px; }
.field-label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 8px; }
.opt { font-weight: 400; font-size: .8rem; color: var(--muted); margin-left: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-row-plz { grid-template-columns: 140px 1fr; }
.field-short { max-width: 240px; }
.field [data-for], .field-label [data-for] { }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: 400 16px/1.4 var(--font-body); color: var(--brown);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
input[type="number"] { -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: rgba(89, 65, 36, .42); }
input:focus, textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(89, 65, 36, .1); }
.is-invalid input, input.is-invalid, .is-invalid .chips { border-color: var(--error); }
.is-invalid .field-label { color: var(--error); }
.input-unit { position: relative; }
.input-unit input { padding-right: 48px; }
.input-unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; border-radius: var(--radius); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: #fff;
  font-size: .9rem; transition: background .2s, border-color .2s, color .2s;
}
.chip:hover span { border-color: var(--brown); }
.chip input:checked + span { background: var(--brown); border-color: var(--brown); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--brown); outline-offset: 2px; }
.is-invalid .chip span { border-color: var(--error); }

.msg-toggle summary { cursor: pointer; font-size: .9rem; font-weight: 500; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.msg-toggle summary::-webkit-details-marker { display: none; }
.msg-toggle summary::before { content: "+"; font-size: 1.1rem; line-height: 1; }
.msg-toggle[open] summary::before { content: "–"; }
.msg-toggle textarea { margin-top: 10px; }
.legal-note { font-size: .8rem; color: var(--muted); margin-top: 4px; }

.form-error { background: #fbeeea; color: var(--error); border-radius: var(--radius); padding: 12px 16px; font-size: .9rem; margin: 8px 0 0; }
.funnel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.funnel-nav .btn { min-width: 150px; }
.trust { text-align: center; font-size: .8rem; color: var(--muted); margin: 26px auto 0; max-width: 760px; line-height: 1.7; }
@media (min-width: 861px) { .trust, .nowrap-lg, .hero .eyebrow { white-space: nowrap; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Werte */
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.values { list-style: none; margin: 0; padding: 0; }
.values li { border-top: 1px solid var(--line-strong); padding: 26px 0 22px; }
.values li:last-child { padding-bottom: 0; }
.values h2 { font-size: 1.55rem; margin-bottom: .35em; }
.values p { margin: 0; font-size: .95rem; max-width: 420px; }

/* Markt */
.market-images { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.market-images img { aspect-ratio: 4 / 3; }
.market-text { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-top: 36px; }
.market-text h2 { margin-bottom: .3em; }
.market-text p { margin: 0; max-width: 380px; font-size: .95rem; }
.regions { display: flex; list-style: none; margin: 0; padding: 0; }
.regions li { font-family: var(--font-title); font-size: clamp(1.3rem, 2.4vw, 1.75rem); padding: 0 clamp(16px, 3vw, 34px); border-left: 1px solid var(--line-strong); }
.regions li:first-child { border-left: 0; padding-left: 0; }

/* Ablauf */
.steps { list-style: none; margin: 48px 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.steps .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: var(--font-title); font-size: 1.05rem; margin-bottom: 18px;
}
.steps h3 { margin-bottom: .35em; }
.steps p { font-size: .9rem; margin: 0; color: var(--muted); }

/* Team */
.team-grid { display: grid; grid-template-columns: .82fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.team-media { max-width: 380px; }
.team-media img { aspect-ratio: 2 / 3; }
.team-text p { max-width: 440px; }
.signature { font-family: var(--font-title); font-size: 1.35rem; margin: 1.6rem 0 .1rem; }

/* Video */
.video-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 80px); align-items: center; }
.video-text p { max-width: 420px; }
.video-card { position: relative; width: min(340px, 100%); aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden; background: #e9e3dc; }
.video-card img, .video-card video { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  border: 0; background: rgba(244, 241, 237, .92); color: var(--brown); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}
.play svg { width: 30px; height: 30px; margin-left: 4px; }
.play:hover { transform: scale(1.06); background: #fff; }

/* Kundenstimme */
.quote { margin: 0; text-align: center; }
.stars { color: var(--sand); letter-spacing: .3em; font-size: 1rem; margin-bottom: 20px; }
.quote blockquote { margin: 0; }
.quote-main { font-family: var(--font-title); font-size: clamp(1.35rem, 2.8vw, 1.85rem); line-height: 1.4; }
.quote-full { text-align: left; max-width: 640px; margin: 20px auto 0; font-size: .95rem; }
.quote figcaption { font-size: .85rem; color: var(--muted); margin-top: 18px; }
.quote-toggle { font-size: .875rem; margin-top: 14px; }

/* CTA dunkel */
.section-dark { padding: clamp(64px, 8vw, 96px) 0; }
.section-dark p { margin-bottom: 28px; }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.cta-phone { font-family: var(--font-title); font-size: 1.3rem; color: #fff; text-decoration: none; }
.cta-phone:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.site-footer { padding: 40px 0 28px; font-size: .85rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner .logo img { width: 160px; }
.footer-address, .footer-links { margin: 0; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-links a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.footer-legal a, .footer-legal .linklike { color: var(--muted); }

/* Mobile-Leiste */
.mobile-bar { display: none; }

/* Consent */
.consent {
  position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin-left: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(89, 65, 36, .16); padding: 20px 22px; font-size: .85rem;
}
.consent p { margin-bottom: 14px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Unterseiten */
.page { padding: clamp(48px, 7vw, 88px) 0; background: #fff; }
.page h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.page h2 { font-size: 1.35rem; margin-top: 2rem; }
.page .wrap { max-width: 760px; }
.thanks { text-align: center; }
.thanks .check { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; background: var(--beige); display: flex; align-items: center; justify-content: center; }
.thanks .check svg { width: 28px; height: 28px; }
.thanks-steps { text-align: left; max-width: 480px; margin: 32px auto; padding: 0; list-style: none; }
.thanks-steps li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; }
.thanks-steps li span { font-family: var(--font-title); min-width: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .hero-grid, .values-grid, .team-grid { grid-template-columns: 1fr; }
  .hero-text { order: 1; }
  .hero-media { order: 2; margin: 8px 0 20px; }
  .hero-badge { left: auto; right: 18px; bottom: -40px; width: 122px; height: 122px; font-size: .64rem; }
  .hero-badge small { font-size: .5rem; }
  .market-text { grid-template-columns: 1fr; gap: 20px; }
  .team-media { max-width: 420px; }
  .video-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .video-text p { margin-left: auto; margin-right: auto; }
  .header-cta { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .eyebrow { letter-spacing: .12em; font-size: .68rem; }
  .logo img { width: 175px; }
  .header-phone {
    background: var(--brown); color: #fff; border-radius: var(--radius-pill);
    padding: 9px 16px; font-family: var(--font-body); font-size: .875rem; font-weight: 500;
  }
  .phone-num { display: none; }
  .phone-short { display: inline; }
  .type-cards { gap: 10px; }
  .type-inner { min-height: 112px; font-size: 1.02rem; border-radius: var(--radius); }
  .type-inner svg { width: 30px; height: 30px; }
  .field-row { grid-template-columns: 1fr; }
  .field-row-plz { grid-template-columns: 110px 1fr; }
  .field-short { max-width: none; }
  .chip span { padding: 0 15px; font-size: .875rem; }
  .funnel-nav .btn { flex: 1; min-width: 0; }
  .market-images { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; margin: 36px 0; }
  .regions li { padding: 0 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .cta-row { flex-direction: column; gap: 16px; }

  .mobile-bar {
    display: flex; gap: 10px; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(244, 241, 237, .96); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar .btn:first-child { flex: 1; }
  .mobile-bar .btn-ghost { width: 52px; padding: 0; background: #fff; }
  body.home { padding-bottom: 0; }
  .consent { left: 12px; right: 12px; bottom: 12px; }
}
