/* ==========================================================================
   Bodenleger Bodi – Stylesheet
   Markenfarben aus Logo & bestehender Website (siehe :root)
   ========================================================================== */

/* ---------- Schrift (selbst gehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Logo */
  --charcoal: #282829;       /* Logo: Balken/Schrift */
  --brown: #9a5a27;          /* Logo: Holzplanken (Kontrast auf Weiß 5,4:1) */
  --brown-dark: #422412;     /* Logo: Planken-Schatten */
  /* Bestehende Website */
  --charcoal-2: #383838;     /* Buttons/Footer der bisherigen Seite */
  --espresso: #210b00;       /* Overlay-Verlauf der bisherigen Seite */
  --coral: #f25b3a;          /* Akzent der bisherigen Seite (nur auf dunklem Grund/dekorativ) */
  --cta: #c93a18;            /* abgedunkeltes Koralle für Buttons: Weiß darauf 5,1:1 (WCAG AA) */
  --cta-hover: #a92f12;
  /* Neutrale */
  --sand: #f7f3ee;
  --line: #e6dfd6;
  --grey-light: #efefef;
  --text: #3b3b3c;
  --text-soft: #5d5d5e;
  --white: #fff;

  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(33, 11, 0, .12);
  --header-h: 76px;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-underline-offset: .18em; }
a:hover { color: var(--brown-dark); }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 2px; }

.container { width: min(100% - 40px, 1160px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--charcoal); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Überschriften (eine H1, saubere Hierarchie) ---------- */
h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--charcoal);
}
h3 {
  font-size: 1.0625rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.kicker {
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brown); margin-bottom: 10px;
}
.kicker-light { color: var(--coral); }
.lead { font-size: 1.1875rem; color: var(--text-soft); margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px;
  font: 700 .9375rem/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-cta { background: var(--cta); color: var(--white); border-color: var(--cta); }
.btn-cta:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: var(--white); }
.btn-light { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.btn-light:hover { background: var(--grey-light); border-color: var(--grey-light); color: var(--charcoal); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .8125rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand img { width: auto; height: 60px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav ul a {
  color: var(--charcoal); font-weight: 600; font-size: .9375rem; text-decoration: none; padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.main-nav ul a:hover { color: var(--brown); border-color: var(--brown); }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  :root { --header-h: 68px; }
  .brand img { height: 52px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: transparent; border: 2px solid var(--charcoal); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform .2s, opacity .2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 20px;
  }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav-phone { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  min-height: clamp(520px, 78vh, 760px); display: flex; align-items: center;
  background: var(--espresso);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(33, 11, 0, .88) 0%, rgba(33, 11, 0, .62) 55%, rgba(33, 11, 0, .35) 100%);
}
.hero-inner { padding-block: 72px; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 6px 14px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); border-left: 4px solid var(--coral); background: rgba(255, 255, 255, .1);
}
h1 { color: var(--white); }
.h1-brand {
  display: block; font-size: clamp(2.5rem, 1.4rem + 5.2vw, 4.75rem);
  line-height: 1.02; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase;
}
.h1-sub {
  display: block; margin-top: 16px; max-width: 30ch;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); line-height: 1.35; font-weight: 500;
}
.hero-lead { margin-top: 20px; max-width: 52ch; font-size: 1.1875rem; color: rgba(255, 255, 255, .92); }

/* ---------- Vertrauensleiste ---------- */
.trust { background: var(--charcoal); color: var(--white); }
.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-list li { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
.trust-list li:first-child { border-left: 0; padding-left: 0; }
.trust-list strong { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.trust-list span { font-size: .9375rem; color: rgba(255, 255, 255, .85); }
@media (max-width: 719px) {
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding: 16px 0; }
  .trust-list li:first-child { border-top: 0; }
}

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); scroll-margin-top: var(--header-h); }
.section-sand { background: var(--sand); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head-light h2 { color: var(--white); }
.section-head-light .kicker { color: #ffe1d6; }
.section-cta { margin-top: clamp(32px, 5vw, 48px); text-align: center; }

/* ---------- Leistungs-Karten ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 28px; flex: 1; border-top: 4px solid var(--brown); }
.card-body p { color: var(--text-soft); font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .8125rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--sand); color: var(--brown-dark); border: 1px solid var(--line); }
.text-link {
  margin-top: auto; padding-top: 4px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .875rem;
  color: var(--cta); text-decoration: none;
}
.text-link:hover { color: var(--cta-hover); text-decoration: underline; }
@media (max-width: 959px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- Vorher / Nachher ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ba-item { display: flex; flex-direction: column; gap: 16px; }
.ba {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius);
  background: var(--charcoal); box-shadow: var(--shadow); --pos: 50%;
  user-select: none; -webkit-user-select: none;
}
.ba > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-label {
  position: absolute; top: 12px; padding: 4px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); background: rgba(33, 11, 0, .78); pointer-events: none;
}
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; background: rgba(201, 58, 24, .92); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: var(--white); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--white); color: var(--charcoal); box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none;
}
.ba:focus-within { outline: 3px solid var(--coral); outline-offset: 3px; }
.ba-item figcaption h3 { margin-bottom: 4px; }
.ba-item figcaption p { color: var(--text-soft); font-size: .9375rem; }
.no-js .ba-after { clip-path: none; }
.no-js .ba-range, .no-js .ba-handle, .no-js .ba-label-before { display: none; }
@media (max-width: 959px) { .ba-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }

/* Einzelnes Projekt (Regler + Text) */
.ba-feature { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.ba-portrait { aspect-ratio: 3 / 4; }
.ba-text h3 { font-size: 1.25rem; }
.ba-text { padding-top: 4px; }
.ba-text p { margin-top: 12px; color: var(--text-soft); }
.ba-text .checklist { margin-top: 20px; }
@media (max-width: 899px) {
  .ba-feature { grid-template-columns: 1fr; }
  .ba-feature .ba-item { max-width: 460px; width: 100%; margin-inline: auto; }
}

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-media { position: relative; isolation: isolate; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media::before {
  content: ""; position: absolute; z-index: -1; inset: 24px -18px -18px 24px; border-radius: var(--radius);
  background: var(--brown);
}
.about-badge {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px; background: rgba(40, 40, 41, .92); color: var(--white); border-left: 4px solid var(--coral); border-radius: 3px;
}
.about-badge strong { font-size: 1.0625rem; letter-spacing: .06em; text-transform: uppercase; }
.about-badge span { font-size: .875rem; color: rgba(255, 255, 255, .85); }
.about-text > * + * { margin-top: 18px; }
.about-text .lead { margin-top: 18px; color: var(--charcoal); font-weight: 600; }
.about-text h3 { margin-top: 32px; }
.checklist { display: grid; gap: 14px; margin-top: 16px; }
.checklist li { position: relative; padding-left: 34px; color: var(--text-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brown) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist strong { color: var(--charcoal); }
@media (max-width: 899px) {
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; margin-right: 18px; }
}

/* ---------- Kundenstimmen ---------- */
.section-brown { background: var(--brown); color: var(--white); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 44px 28px 28px;
  background: rgba(33, 11, 0, .28); border-radius: var(--radius); border-top: 4px solid var(--coral);
}
.quote::before {
  content: "“"; position: absolute; top: 4px; left: 22px; font: 800 4.5rem/1 var(--font); color: #ffd9cc;
}
.quote blockquote p { font-size: 1.0625rem; line-height: 1.6; }
.quote figcaption { margin-top: auto; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffe8de; }
@media (max-width: 959px) { .quote-grid { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; } }

/* ---------- Kontakt ---------- */
.section-dark { background: linear-gradient(135deg, var(--espresso) 0%, var(--charcoal) 100%); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark .lead { color: rgba(255, 255, 255, .88); }
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { margin-top: 36px; display: grid; gap: 22px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; border-left: 4px solid var(--coral); }
.contact-label { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.contact-value { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 800; color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.contact-plain { font-size: 1.125rem; font-weight: 600; }
a.contact-value:hover { color: var(--coral); text-decoration: underline; }

.contact-form { background: var(--white); color: var(--text); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.form-title { margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .9375rem; font-weight: 700; color: var(--charcoal); }
.field label small { font-weight: 400; color: var(--text-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; color: var(--charcoal); background: var(--white);
  border: 1.5px solid #b9b0a5; border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--coral); outline-offset: 1px; border-color: var(--charcoal); }
.field .is-invalid { border-color: var(--cta); background: #fff6f3; }
.field-check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field-check input { flex: none; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--cta); }
.field-check input.is-invalid { outline: 3px solid var(--cta); outline-offset: 2px; }
.field-check label { font-weight: 400; font-size: .875rem; line-height: 1.5; color: var(--text-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin-top: 14px; font-weight: 700; }
.form-status.is-ok { color: #1b6b32; }
.form-status.is-error { color: var(--cta); }
.form-note { margin-top: 6px; font-size: .8125rem; color: var(--text-soft); }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 479px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-2); color: rgba(255, 255, 255, .85); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { display: inline-block; background: var(--white); padding: 10px 14px; border-radius: var(--radius); }
.footer-logo img { width: auto; height: 84px; }
.footer-brand p { margin-top: 16px; max-width: 34ch; font-size: .9375rem; }
.footer-title { margin-bottom: 14px; font-size: .8125rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .875rem; }
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom li + li { margin-top: 0; }
@media (max-width: 719px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Mobile Aktionsleiste ---------- */
.mobile-bar { display: none; }
@media (max-width: 719px) {
  .mobile-bar {
    position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--charcoal); box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
  }
  .mobile-bar { transition: transform .25s; }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  .mobile-bar .btn { min-height: 48px; padding-inline: 12px; }
  .site-footer { padding-bottom: 76px; }
}

/* ---------- Rechtsseiten / Danke / 404 ---------- */
.page-simple { padding-block: clamp(40px, 7vw, 88px); }
.page-simple .container { max-width: 820px; }
.page-simple h1 { color: var(--charcoal); max-width: none; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-weight: 800; line-height: 1.1; margin-bottom: 24px; }
.page-simple h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.page-simple h3 { text-transform: none; letter-spacing: 0; font-size: 1.125rem; margin: 24px 0 8px; }
.page-simple p, .page-simple ul { margin-bottom: 14px; }
.page-simple ul { list-style: disc; padding-left: 22px; }
.todo { background: #fff3cd; padding: 0 4px; border-radius: 3px; color: #5b4300; font-weight: 700; }
.simple-header { border-bottom: 1px solid var(--line); background: var(--white); }
.simple-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.simple-header .brand img { height: 52px; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
