/* ==========================================================================
   FARBEN UND SCHRIFTEN: hier anpassen, sonst nirgends.
   Kontraste geprüft: --ink, --muted und --accent-text erreichen auf --bg
   und --paper WCAG AA (4.5:1). --accent nur für Flächen mit weisser Schrift.
   ========================================================================== */
:root {
  --bg: #f5f1ea;          /* Seitenhintergrund, warmes Kalkweiss */
  --paper: #fbf9f5;       /* Karten, Formular */
  --sand: #e8dfd1;        /* ruhige Flächen, Platzhalter */
  --line: #d9cfbf;        /* feine Linien */
  --ink: #24211d;         /* Text */
  --muted: #5e574d;       /* Nebentext */
  --dark: #2a2621;        /* dunkle Sektionen, Footer */
  --dark-text: #e9e2d6;
  --accent: #34342f;      /* Graphit, Gelb wie Visitenkarte: Buttons, Akzente */
  --accent-hover: #1d1d1a;
  --accent-text: #5c5718; /* Akzent als Schriftfarbe auf hell */
  --accent-on-dark: #e3df7c;

  --font-head: "Zilla Slab", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: 20px;
  --section: 88px;
}

@font-face { font-family: "Zilla Slab"; src: url("../fonts/ZillaSlab-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("../fonts/ZillaSlab-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/SourceSans3.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.65 var(--font-body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(30px, 4.2vw, 50px); }
h2 { font-size: clamp(25px, 2.8vw, 36px); }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.section { padding: var(--section) 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; font: 600 15.5px/1 var(--font-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(245,241,234,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 20px/1 var(--font-head); color: var(--ink); margin-right: auto; }
.logo svg { width: 28px; height: 28px; }
.logo small { display: block; font: 400 12px/1.2 var(--font-body); color: var(--muted); letter-spacing: .04em; margin-top: 3px; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); }
.header__tel { display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header__tel svg { width: 18px; height: 18px; color: var(--accent-text); }
.header .btn { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; cursor: pointer; padding: 0; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--dark); min-height: 68vh; display: flex; align-items: flex-end; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,22,19,.35) 0%, rgba(25,22,19,.55) 45%, rgba(25,22,19,.88) 100%); }
.hero__in { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 64px; width: 100%; }
.hero .eyebrow { color: var(--accent-on-dark); }
.hero h1 { max-width: 17ch; margin-bottom: 18px; }
.hero__lead { font-size: 19px; max-width: 52ch; color: #efe8dd; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 36px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.22); font-size: 15px; color: #efe8dd; }
.trust li { display: flex; align-items: center; gap: 9px; }
.trust li::before { content: ""; width: 7px; height: 7px; background: var(--accent-on-dark); flex: none; }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.service__body { padding: 22px 24px 26px; }
.service p { color: var(--muted); margin: 0; font-size: 15.5px; }
.ph { position: relative; background: var(--sand); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.r-4-3 { aspect-ratio: 4 / 3; }
.r-3-2 { aspect-ratio: 3 / 2; }
.r-4-5 { aspect-ratio: 4 / 5; }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 26px 26px 6px 0; position: relative; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 34px/1 var(--font-head); color: var(--accent-text); margin-bottom: 16px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* ---------- Referenzen ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { margin: 0; }
.project figcaption { padding: 12px 0 0; font-size: 15px; color: var(--muted); }
.project figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 17.5px; font-weight: 600; }
.project--ba { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); user-select: none; flex: 1; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba__line::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; display: grid; place-items: center; background: #fff; color: var(--ink); font: 600 17px/1 var(--font-body); }
.ba__tag { position: absolute; bottom: 12px; background: rgba(36,33,29,.82); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 10px; letter-spacing: .04em; }
.ba__tag--l { left: 12px; } .ba__tag--r { right: 12px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.about__sig { font: 500 19px/1.3 var(--font-head); margin-top: 22px; }
.about__sig span { display: block; font: 400 14px var(--font-body); color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 40px; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 13.5px; color: var(--muted); }
.facts dd { margin: 0; font: 600 22px/1.2 var(--font-head); grid-row: 1; }

/* ---------- Kundenstimmen ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote { margin: 0; padding: 28px 0 0; border-top: 2px solid var(--accent); }
.quote p { font: 500 18.5px/1.5 var(--font-head); margin-bottom: 18px; }
.quote footer { font-size: 14.5px; color: var(--muted); }
.quote cite { font-style: normal; font-weight: 600; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 600 18px/1.35 var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-right: 40px; margin: 0 0 22px; }

/* ---------- Kontakt ---------- */
.contact { background: var(--dark); color: var(--dark-text); }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--accent-on-dark); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.contact .lead { color: #cfc6b8; }
.cinfo { list-style: none; padding: 0; margin: 30px 0 0; }
.cinfo > li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 15.5px; }
.cinfo > li > span { color: #b9b0a2; }
.cinfo a { color: #fff; font-weight: 600; text-decoration: none; }
.cinfo a:hover { text-decoration: underline; }
.form { background: var(--paper); color: var(--ink); padding: 36px; }
.form h3 { font-size: 23px; margin-bottom: 6px; }
.form__note { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; font: 400 16px/1.4 var(--font-body); color: var(--ink); background: #fff; border: 1px solid #b9ad9b; border-radius: 0; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(92,87,24,.25); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.err { display: block; color: #a3221b; font-size: 14px; margin-top: 5px; min-height: 0; }
.err:empty { display: none; }
.field .check { display: flex; font-weight: 400; margin: 0; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin: 4px 0 18px; }
.form__status { margin-top: 18px; padding: 14px 16px; font-size: 15px; border-left: 3px solid #a3221b; background: #f9ece9; color: #5c1a14; }
.form__status a { font-weight: 600; }
.form__status[hidden], .form__ok[hidden] { display: none; }
.form__ok { background: var(--paper); color: var(--ink); padding: 40px 36px; border-top: 3px solid var(--accent); }
.form__ok h3 { font-size: 24px; }

/* ---------- Footer ---------- */
.footer { background: #1f1c18; color: #bdb4a6; font-size: 15px; padding: 56px 0 28px; }
.footer a { color: #e9e2d6; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 4fr 3fr 3fr 3fr; gap: 40px; }
.footer h2 { font-size: 16px; color: #fff; margin-bottom: 12px; font-family: var(--font-body); letter-spacing: .04em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 3px 0; }
.footer__bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 780px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: #3d3831; }

/* ---------- Einblenden ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1020px) {
  .nav, .header .btn--primary { display: none; }
  .burger { display: block; }
  .nav.is-open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.is-open a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .services, .quotes { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .about, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about .ph { max-width: 420px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Handy: kompakt ---------- */
@media (max-width: 767px) {
  :root { --section: 52px; }
  body { font-size: 15px; }
  html { scroll-padding-top: 70px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  .lead { font-size: 16px; }
  .section-head { margin-bottom: 28px; }
  .header__in { height: 62px; gap: 10px; }
  .logo { font-size: 17px; }
  .logo svg { width: 24px; height: 24px; }
  .header__tel { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); }
  .header__tel span { display: none; }
  .btn { min-height: 42px; font-size: 14px; padding: 0 18px; }
  .hero { min-height: 0; }
  .hero__in { padding-top: 64px; padding-bottom: 36px; }
  .hero__lead { font-size: 16px; margin-bottom: 22px; }
  .hero__cta { gap: 10px; }
  .trust { margin-top: 26px; padding-top: 16px; font-size: 14px; gap: 6px 18px; }
  .services, .quotes, .gallery { grid-template-columns: 1fr; gap: 20px; }
  .service__body { padding: 16px 18px 20px; }
  .service p, .steps p { font-size: 15px; }
  .project--ba { grid-column: auto; grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 18px 0 4px; border-left: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 0 10px; }
  .steps li::before { font-size: 22px; margin: 2px 0 0; grid-row: span 2; }
  .steps h3 { margin-bottom: 4px; }
  .about .ph { max-width: 300px; }
  .facts { gap: 4px 26px; }
  .facts dd { font-size: 19px; }
  .quote { padding-top: 18px; }
  .quote p { font-size: 16.5px; }
  .faq summary { font-size: 16.5px; padding: 16px 34px 16px 0; }
  .faq details p { padding-right: 0; }
  .form { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .cinfo > li { grid-template-columns: 96px 1fr; font-size: 15px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .legal { padding: 40px 0 56px; }
}
.cinfo a, .footer a, .legal a { overflow-wrap: anywhere; }
.cinfo > li > * { min-width: 0; }

/* Niku: Logozeichen und gelbe Akzente aus der Visitenkarte */
.logo__mark { width: 26px; height: 28px; flex: none; }
.hero .btn--primary { background: var(--accent-on-dark); color: #1d1d1a; }
.hero .btn--primary:hover { background: #f0ec95; }
.quote { border-top-color: var(--accent-on-dark); }
