/* ==========================================================================
   Haus- und Gartenservice Bosch – Landingpage
   Design-System „Ruhige Präzision" (siehe DESIGN.md)
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/newsreader-latin-300-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Code";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fira-code-latin-400-normal.woff2") format("woff2");
}

:root {
  /* Farben */
  --primary: #2f7a33;
  --primary-hover: #276a2b;
  --accent: #59b458;
  --accent-soft: #a6d99b;
  --accent-tint: #e8f4e5;
  --ink: #081620;
  --text-strong: #1a222a;
  --text: #3a4450;
  --text-muted: #5e6973;
  --text-subtle: #8e979d;
  --border: #e1e5e3;
  --bg: #f2f6f3;
  --surface: #ffffff;
  --surface-muted: #e9eeea;
  --dark: #0f1d26;
  --dark-raised: #1b2a34;
  --on-dark: #ffffff;
  --on-dark-muted: #b9c3c9;
  --ghost: rgba(26, 34, 42, 0.08);

  /* Schrift */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Fira Code", ui-monospace, Menlo, Consolas, monospace;

  /* Abstände */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 64px;
  --section-top: 80px;
  --section-bottom: 120px;
  --container: 1296px;
  --gutter: 24px;

  /* Radien */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 16px;

  /* Schatten */
  --shadow-card: 0 1px 3px 1px rgba(8, 22, 32, 0.01), 0 4px 8px -6px rgba(8, 22, 32, 0.08),
    0 1px 5px -4px rgba(8, 22, 32, 0.08), 0 0 0 1px rgba(8, 22, 32, 0.04), 0 1px 0 0 rgba(8, 22, 32, 0.02);
  --shadow-float: 0 20px 44px -18px rgba(8, 22, 32, 0.12), 0 16px 28px -18px rgba(8, 22, 32, 0.12),
    0 10px 16px -18px rgba(8, 22, 32, 0.08), 0 1px 1px 0 rgba(8, 22, 32, 0.01), 0 0 0 1px rgba(8, 22, 32, 0.06);
  --shadow-button: inset 0 -1px 0 1px rgba(39, 106, 43, 0.32), inset 0 1px 2px -1px rgba(255, 255, 255, 0.32),
    0 1px 2px rgba(8, 22, 32, 0.08);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

/* ---------- Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 300;
}

p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typografie ---------- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--text);
  max-width: 60ch;
}

.eyebrow {
  display: block;
  margin-bottom: var(--s-4);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--r-sm);
  font: 600 15px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--ghost);
  color: var(--text-strong);
  border-radius: var(--r-md);
}

.btn-secondary:hover {
  background: rgba(26, 34, 42, 0.13);
}

.btn-on-dark {
  background: var(--accent);
  color: var(--ink);
}

.btn-on-dark:hover {
  background: var(--accent-soft);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 38px;
  width: auto;
}

.nav {
  display: flex;
  gap: var(--s-6);
}

.nav a {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.header-phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.header-actions .btn {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 0;
  text-align: center;
}

.hero .display span {
  display: block;
}

.hero-sub {
  margin: var(--s-5) auto 0;
  max-width: 62ch;
  font-size: clamp(17px, 1.5vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-top: var(--s-5);
  font-size: 14px;
  color: var(--text-muted);
}

.hero-proof .stars {
  color: var(--primary);
  letter-spacing: 1px;
}

.hero-media {
  position: relative;
  margin-top: var(--s-8);
}

.hero-media .frame {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-muted);
  aspect-ratio: 16 / 8.5;
}

.hero-media .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.float-review {
  position: absolute;
  right: 32px;
  bottom: -40px;
  width: 340px;
  padding: 20px 22px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-float);
  text-align: left;
}

.float-review blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}

.float-review figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.stars {
  color: var(--accent);
  letter-spacing: 1px;
}

.float-review .stars {
  color: var(--primary);
}

/* ---------- Kennzahlen ---------- */
.stats {
  padding: 104px 0 var(--s-8);
}

.stats ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  border-top: 1px solid var(--border);
}

.stats li {
  padding: var(--s-5) var(--s-5) 0 0;
}

.stats li + li {
  padding-left: var(--s-5);
  border-left: 1px solid var(--border);
}

.stat-value {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Sektionen ---------- */
.section {
  padding: var(--section-top) 0 var(--section-bottom);
}

.section--white {
  background: var(--surface);
}

.section--dark {
  background: var(--dark);
  color: var(--on-dark-muted);
}

.section--dark h2,
.section--dark h3,
.section--dark .title {
  color: var(--on-dark);
}

.section--dark .eyebrow {
  color: var(--accent-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: var(--s-8);
}

.section-head .lead {
  margin-top: var(--s-5);
}

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-8);
  align-items: start;
}

.prose p + p {
  margin-top: var(--s-4);
}

/* ---------- Problem ---------- */
.problem .prose {
  font-size: clamp(17px, 1.5vw, 19px);
  max-width: 62ch;
}

.problem .prose strong {
  color: var(--text-strong);
  font-weight: 600;
}

/* ---------- Außenanlage komplett ---------- */
.journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  list-style: none;
  margin-bottom: var(--s-8);
}

.journey figure {
  margin: 0;
}

.journey .frame {
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  background: var(--surface-muted);
}

.journey img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey figcaption {
  display: flex;
  gap: 10px;
  margin-top: var(--s-3);
  font-size: 15px;
  color: var(--text-muted);
}

.journey figcaption b {
  color: var(--ink);
  font-weight: 600;
}

.includes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 var(--s-8);
  list-style: none;
  border-top: 1px solid var(--border);
}

.includes li {
  display: flex;
  gap: var(--s-3);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-strong);
}

.check {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--primary);
}

.full-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
  margin-top: var(--s-7);
}

/* ---------- Leistungen ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  list-style: none;
}

.service {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 24px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

.service .frame {
  overflow: hidden;
  border-radius: var(--r-xs);
  aspect-ratio: 4 / 3;
  background: var(--surface-muted);
}

.service img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service h3 {
  margin: 20px 12px 8px;
}

.service p {
  margin: 0 12px;
  font-size: 16px;
  color: var(--text);
}

.also {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
  list-style: none;
}

.also h3 {
  margin-bottom: 6px;
}

.also p {
  font-size: 16px;
}

/* ---------- Region (dunkel) ---------- */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.region-grid li {
  padding: var(--s-6) var(--s-5) var(--s-7);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.region-grid h3 {
  margin-bottom: var(--s-3);
}

.region-grid p {
  font-size: 16px;
  color: var(--on-dark-muted);
}

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: var(--s-5);
  border-top: 2px solid var(--ink);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: var(--s-4);
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  color: var(--primary);
}

.steps h3 {
  margin-bottom: var(--s-2);
}

.steps p {
  font-size: 16px;
}

/* ---------- Referenzen ---------- */
.project {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s-8);
  align-items: center;
}

.project + .project {
  margin-top: 96px;
}

.project--flip {
  grid-template-columns: 5fr 7fr;
}

.project--flip .project-media {
  order: 2;
}

.project-media {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--s-3);
}

.project-media .frame {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-muted);
}

.project-media .frame:first-child {
  aspect-ratio: 3 / 4;
}

.project-media .frame:last-child {
  aspect-ratio: 3 / 4;
  align-self: end;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media figcaption {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--text-muted);
}

.project-place {
  display: block;
  margin-bottom: var(--s-3);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.project h3 {
  margin-bottom: var(--s-4);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--s-5);
  list-style: none;
}

.chip {
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--accent-tint);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}

.project-text-only {
  margin-top: 96px;
  padding: var(--s-7);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-8);
  align-items: start;
}

/* ---------- Vorher / Nachher ---------- */
.ba-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: var(--s-5);
  background: var(--ghost);
  border-radius: 9999px;
}

.ba-tab {
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  font: 600 14px/1 var(--sans);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ba-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.ba {
  position: relative;
  max-width: 960px;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 3 / 2;
  background: var(--surface-muted);
  user-select: none;
  touch-action: pan-y;
}

.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba .ba-before {
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
}

.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081620' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E")
    center / 22px no-repeat;
  box-shadow: var(--shadow-float);
}

.ba-label {
  position: absolute;
  top: 16px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  pointer-events: none;
}

.ba-label--before {
  left: 16px;
}

.ba-label--after {
  right: 16px;
}

.ba input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba input[type="range"]:focus-visible + .ba-handle::after {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.ba-caption {
  margin-top: var(--s-3);
  font-size: 15px;
  color: var(--text-muted);
}

/* ---------- Kundenstimmen ---------- */
.reviews {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-5);
  list-style: none;
}

.review {
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  background: var(--bg);
  border-radius: var(--r-md);
}

.review blockquote {
  flex: 1;
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.review--main blockquote {
  font-size: clamp(22px, 2.2vw, 27px);
}

.review footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.review .stars {
  color: var(--primary);
}

.reviews-link {
  display: inline-block;
  margin-top: var(--s-6);
  font-weight: 600;
  color: var(--primary);
  text-underline-offset: 4px;
}

/* ---------- Warum wir ---------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-7) var(--s-5);
  list-style: none;
}

.reasons li {
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}

.reasons h3 {
  margin-bottom: var(--s-2);
}

.reasons p {
  font-size: 16px;
}

/* ---------- Partner / Region ---------- */
.partner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s-8);
  align-items: center;
  padding: var(--s-8);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.partner .lead {
  margin-top: var(--s-4);
}

.partner-actions {
  justify-self: end;
}

.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--s-5);
  list-style: none;
}

.towns li {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--surface);
  font-size: 15px;
  color: var(--text-strong);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 22px 0;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-strong);
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7a33' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.3s var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 70ch;
  padding: 0 0 24px;
  font-size: 17px;
}

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: var(--s-8);
  align-items: start;
}

.form {
  padding: var(--s-7);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
}

.field .opt {
  font-weight: 400;
  color: var(--text-muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font: 400 16px/1.4 var(--sans);
  color: var(--text-strong);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option {
  position: relative;
}

.option input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.option span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 15px;
  color: var(--text-strong);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.option input:checked + span {
  background: var(--accent-tint);
  border-color: var(--primary);
  color: var(--primary);
}

.option input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-muted);
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--primary);
  flex: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

.form-note {
  font-size: 14px;
  color: var(--text-muted);
}

.form-status {
  margin-top: var(--s-4);
  font-size: 15px;
  font-weight: 600;
}

.form-status.is-ok {
  color: var(--primary);
}

.form-status.is-error {
  color: #c2410c;
}

.contact-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.contact-aside .title {
  margin-bottom: var(--s-4);
}

.contact-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.contact-list li {
  border-bottom: 1px solid var(--border);
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 16px 0;
  text-decoration: none;
  color: var(--text-strong);
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--primary);
}

.contact-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--primary);
}

.contact-list small {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
}

.owner {
  margin-top: var(--s-6);
  font-size: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--s-8) 0 var(--s-6);
  background: var(--dark);
  color: var(--on-dark-muted);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: inline-block;
  padding: 10px 14px;
  background: #fff;
  border-radius: var(--r-sm);
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-grid h2 {
  margin-bottom: var(--s-3);
  font: 600 15px/1.4 var(--sans);
  color: var(--on-dark);
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li + li {
  margin-top: 6px;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--on-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-5);
  font-size: 14px;
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom nav {
  display: flex;
  gap: var(--s-5);
}

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

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.legal {
  max-width: 760px;
  padding: 72px var(--gutter) var(--section-bottom);
  margin: 0 auto;
}

.legal h1 {
  margin-bottom: var(--s-6);
}

.legal h2 {
  margin: var(--s-7) 0 var(--s-3);
  font: 600 20px/1.3 var(--sans);
  color: var(--text-strong);
}

.legal p + p {
  margin-top: var(--s-3);
}

.todo {
  padding: var(--s-4) var(--s-5);
  margin: var(--s-5) 0;
  border-left: 3px solid #c2410c;
  background: #fff4ed;
  color: #7c2d12;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ---------- Einstiegsanimation (nur Hero) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .display span,
  .hero-sub,
  .hero-actions,
  .hero-proof {
    animation: rise 0.6s var(--ease-out) both;
  }

  .hero .display span:nth-child(2) {
    animation-delay: 0.12s;
  }

  .hero-sub {
    animation-delay: 0.22s;
  }

  .hero-actions,
  .hero-proof {
    animation-delay: 0.3s;
  }

  .float-review {
    animation: rise 0.7s var(--ease-out) 0.55s both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav {
    gap: var(--s-5);
  }

  .header-phone {
    display: none;
  }

  .reasons {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews {
    grid-template-columns: 1fr 1fr;
  }

  .review--main {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --section-top: 56px;
    --section-bottom: 72px;
    --gutter: 16px;
  }

  body {
    font-size: 16px;
    padding-bottom: 72px;
  }

  .nav,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand img {
    height: 32px;
  }

  .mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 49;
    padding: var(--s-3) var(--gutter) var(--s-5);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-float);
  }

  .mobile-menu[data-open="true"] {
    display: block;
  }

  .mobile-menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-strong);
    text-decoration: none;
  }

  .mobile-menu a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-media {
    margin-top: var(--s-7);
  }

  .hero-media .frame {
    aspect-ratio: 4 / 3.4;
  }

  .float-review {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -48px 12px 0;
  }

  .stats {
    padding: var(--s-7) 0 var(--s-6);
  }

  .stats ul {
    grid-template-columns: 1fr 1fr;
  }

  .stats li,
  .stats li + li {
    padding: var(--s-4) var(--s-4) var(--s-4) 0;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }

  .stats li:nth-child(even) {
    padding-left: var(--s-4);
    border-left: 1px solid var(--border);
  }

  .split,
  .project,
  .project--flip,
  .project-text-only,
  .partner,
  .contact {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .project--flip .project-media {
    order: 0;
  }

  .project + .project,
  .project-text-only {
    margin-top: var(--s-8);
  }

  .project-text-only,
  .partner {
    padding: var(--s-6) var(--s-5);
  }

  .partner-actions {
    justify-self: start;
  }

  .services,
  .also,
  .region-grid {
    grid-template-columns: 1fr 1fr;
  }

  .journey {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6) var(--s-5);
  }

  .includes {
    grid-template-columns: 1fr;
  }

  .ba {
    aspect-ratio: 4 / 3;
  }

  .form {
    padding: var(--s-5);
  }

  .contact-aside {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }

  .mobile-bar .btn {
    min-height: 48px;
    padding: 10px 8px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .services,
  .also,
  .region-grid,
  .steps,
  .reviews,
  .reasons,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-media .frame {
    aspect-ratio: 4 / 4.2;
  }

  .project-media {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    margin-bottom: var(--s-7);
  }
}


/* ---------- Hero mit Hintergrundbild ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 780px);
  padding: 96px 0 112px;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 22, 32, 0.62) 0%, rgba(8, 22, 32, 0.5) 45%, rgba(8, 22, 32, 0.72) 100%);
}

.hero .container {
  position: relative;
  width: 100%;
}

.hero .display {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero .hero-sub {
  color: rgba(255, 255, 255, 0.9);
}

.hero-proof {
  color: rgba(255, 255, 255, 0.82);
}

.hero-proof .stars {
  color: var(--accent-soft, #a6d99b);
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero .float-review {
  right: 0;
  bottom: -72px;
}

@media (max-width: 1100px) {
  .hero .float-review {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding: 72px 0 80px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 56px 0 64px;
  }

  .hero-bg {
    object-position: 60% center;
  }
}
