@font-face {
  font-family: "Archivo";
  src: url("assets/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #1f3d33;        /* Tannengrün */
  --ink-deep: #152c24;
  --paper: #f7f2e9;        /* Creme */
  --mist: #e4ebe5;        /* Salbei hell */
  --text: #1b2420;
  --muted: #4d5a53;
  --line: #e0d8c8;
  --leaf: #2f6b4f;        /* Blattgrün für Buttons */
  --sage: #b9d3c0;        /* Salbei für Akzente auf Dunkelgrün */
  --radius: 6px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-stretch: 100%; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.6vw, 5.75rem); font-weight: 420; line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 460; line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 560; line-height: 1.25; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.section-ink :focus-visible, .direct :focus-visible { outline-color: var(--sage); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sage); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.5em; white-space: nowrap;
  font: inherit; font-weight: 520; font-stretch: 100%; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn-sm { min-height: 42px; padding: 0 1.1em; font-size: .95rem; gap: .3em; }
.btn-block { width: 100%; }
.btn-accent { background: var(--leaf); color: #fff; }
.btn-accent:hover { background: var(--ink); }
.direct .btn-accent { background: var(--sage); color: var(--ink-deep); }
.direct .btn-accent:hover { background: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-deep); }
.btn-line-ink { border-color: var(--ink-deep); color: var(--ink-deep); }
.btn-line-ink:hover { background: var(--ink-deep); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgb(247 242 233 / .96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { font-size: 1.3rem; font-weight: 640; font-stretch: 100%; color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand::before { content: ""; display: inline-block; width: .62em; height: .62em; margin-right: .4em; background: var(--leaf); border-radius: 2px; vertical-align: .02em; }
.main-nav { display: flex; gap: 24px; margin-left: auto; }
.main-nav a, .header-phone { text-decoration: none; font-size: .95rem; font-weight: 550; color: var(--text); }
.main-nav a:hover, .header-phone:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; fill: var(--ink); }

/* Hero: Foto als Hintergrund mit dunklem Overlay */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 112px 0 0; min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: space-between; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(15 30 25 / .86) 0%, rgb(15 30 25 / .62) 60%, rgb(15 30 25 / .42) 100%); }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero-place { font-weight: 500; color: var(--sage); margin-bottom: 20px; }
.lead { font-size: 1.2rem; max-width: 46ch; margin: 28px 0 36px; color: #e6eee8; }
.hero .btn-accent:hover { background: #3a8262; }
.hero .btn-line { border-color: rgb(255 255 255 / .7); color: #fff; }
.hero .btn-line:hover { background: #fff; color: var(--ink); }
.hero .wipe::after { background: var(--sage); }

/* Der eine Moment: ein Abzieher wischt die Überschrift frei */
.wipe { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .wipe { animation: reveal 1.1s cubic-bezier(.6, 0, .2, 1) .15s both; }
  .wipe::after {
    content: ""; position: absolute; top: -6%; bottom: -6%; left: 0; width: 10px;
    background: var(--leaf); border-radius: 3px;
    animation: squeegee 1.1s cubic-bezier(.6, 0, .2, 1) .15s both;
  }
}
@keyframes reveal { from { clip-path: inset(-10% 100% -10% 0); } to { clip-path: inset(-10% -20px -10% 0); } }
@keyframes squeegee {
  0% { left: 0; opacity: 1; }
  85% { left: 100%; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Beim Scrollen: Überschriften werden freigewischt, Inhalte steigen sanft auf (Klassen setzt main.js) */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg { animation: settle 1.8s cubic-bezier(.2, .7, .2, 1) both; }

  .wipe-in { position: relative; width: fit-content; clip-path: inset(-10% 100% -10% 0); }
  .wipe-in.is-in { animation: reveal .8s cubic-bezier(.6, 0, .2, 1) both; }
  .wipe-in.is-in::after {
    content: ""; position: absolute; top: -6%; bottom: -6%; left: 0; width: 8px;
    background: var(--leaf); border-radius: 3px;
    animation: squeegee .8s cubic-bezier(.6, 0, .2, 1) both;
  }
  .section-ink .wipe-in::after { background: var(--sage); }

  .rise { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .rise.is-in { opacity: 1; transform: none; }

  .map.rise .ring { opacity: 0; transform: scale(.7); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .map.is-in .ring { opacity: 1; transform: none; }
  .map .ring:nth-of-type(3) { transition-delay: .3s; }
  .map .ring:nth-of-type(2) { transition-delay: .5s; }
  .map .ring:nth-of-type(1) { transition-delay: .7s; }
}
@keyframes settle { from { transform: scale(1.08); opacity: .4; } to { transform: none; opacity: 1; } }

.trust {
  list-style: none; margin: 56px 0 0; padding: 28px 0;
  display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between;
  border-top: 1px solid rgb(255 255 255 / .22);
}
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 450; padding-inline: 20px; border-left: 1px solid rgb(255 255 255 / .22); }
.trust li:first-child { padding-left: 0; border-left: 0; }
.trust svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--sage); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
.section { padding: 112px 0; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #dde8e0; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p, .split-head p { margin-top: 16px; font-size: 1.125rem; color: var(--muted); }
.section-ink .section-head p { color: #b3c7b9; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.split-center { align-items: center; }
.split-head { position: sticky; top: 120px; }
.split-center .split-head { position: static; }

.rule-list > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.rule-list > div:last-child { border-bottom: 1px solid var(--line); }
.rule-list p { color: var(--muted); }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.services li { padding-top: 22px; border-top: 3px solid var(--ink); }
.services p { margin-top: 10px; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 104px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  font-size: 4.5rem; font-weight: 300; font-stretch: 100%; line-height: 1; color: var(--sage);
}
.steps li::after { content: ""; position: absolute; top: 36px; left: 72px; right: -16px; height: 2px; background: rgb(255 255 255 / .18); }
.steps li:last-child::after { display: none; }
.steps p { margin-top: 10px; }


.map { margin: 0; }
.map svg { width: 100%; max-width: 560px; margin-inline: auto; display: block; overflow: visible; }
.ring { fill: none; stroke: var(--ink); stroke-opacity: .25; stroke-width: 1.5; stroke-dasharray: 4 6; }
.ring-fill { fill: var(--mist); stroke-dasharray: none; }
.ring-label { font-size: 15px; fill: var(--muted); text-anchor: end; font-weight: 600; }
.city circle { fill: var(--ink); }
.city text { font-size: 19px; font-weight: 600; fill: var(--text); }
.home circle { fill: var(--sage); stroke: var(--ink); stroke-width: 4; }
.home text { font-size: 22px; font-weight: 650; font-stretch: 100%; fill: var(--ink); }

/* CTA */
.cta-band { background: var(--sage); padding: 80px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: var(--ink-deep); max-width: 16ch; }
.cta-band p { margin-top: 14px; font-size: 1.15rem; color: var(--ink-deep); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 1.15rem; font-weight: 520; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.8rem; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 26px 0; color: var(--muted); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: 56px; align-items: start; }
.form { display: grid; gap: 22px; }
.hp { display: none; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { font-weight: 540; margin-bottom: 12px; padding: 0; }
.chips legend span, .field em { font-style: normal; font-weight: 450; color: var(--muted); font-size: .9rem; margin-left: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips label span {
  display: inline-block; padding: 10px 18px; border: 1.5px solid #b5c2b9; border-radius: 999px;
  background: #fff; font-weight: 560; transition: background-color .15s, border-color .15s;
}
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; font-weight: 540; }
.field input, .field textarea {
  font: inherit; font-weight: 400; width: 100%; padding: 13px 14px; color: var(--text);
  background: #fff; border: 1.5px solid #b5c2b9; border-radius: var(--radius);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(31 61 51 / .18); }
.field input:user-invalid { border-color: #b42318; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-foot p { font-size: .95rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: var(--radius); font-weight: 550; background: #fff; border-left: 4px solid var(--ink); }
.form-status[data-state="ok"] { border-left-color: #1f7a4d; color: #14532d; }
.form-status[data-state="error"] { border-left-color: #b42318; color: #7a1a12; }

.direct { background: var(--ink); color: #dde8e0; padding: 40px 36px; border-radius: var(--radius); position: sticky; top: 104px; }
.direct h2 { color: #fff; font-size: 1.75rem; }
.direct > p { margin: 14px 0 28px; }
.direct dl { margin: 32px 0 0; display: grid; gap: 18px; }
.direct dt { font-size: .9rem; color: #9fb8a6; }
.direct dd { margin: 2px 0 0; font-weight: 520; color: #fff; }
.direct dd a { text-underline-offset: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner nav a { text-decoration: none; font-weight: 550; }
.footer-inner nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Rechtstexte */
.legal { padding: 72px 0 112px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); margin-bottom: 40px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal a { text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header-phone { margin-left: auto; }
}
@media (max-width: 900px) {
  .hero { padding-top: 64px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-head, .direct { position: static; }
  .trust { grid-template-columns: 1fr 1fr; justify-content: stretch; gap: 16px 0; margin-top: 48px; }
  .trust li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .steps li::after { display: none; }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .header-inner { gap: 12px; min-height: 64px; }
  .brand { font-size: 1.1rem; }
  .header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header-phone svg { width: 22px; height: 22px; }
  .hide-sm { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .trust { grid-template-columns: 1fr; }
  .trust li { padding-left: 0; border-left: 0; }
  .rule-list > div { grid-template-columns: 1fr; gap: 6px; }
  .services, .steps, .field-row { grid-template-columns: 1fr; }
  .steps li { padding-top: 0; padding-left: 64px; }
  .steps li::before { font-size: 2.75rem; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .direct { padding: 28px 22px; }
  .faq details p { padding-right: 0; }
  .map .city text, .map .home text { font-size: 24px; }
  .map .ring-label { font-size: 19px; }
}
