:root {
  --teal-light: #a6d8d4;
  --teal: #5fc2b2;
  --teal-deep: #00a58c;
  --teal-dark: #00735f;
  --teal-tint: #eaf6f4;
  --ink: #1d2b2a;
  --ink-soft: #4f605e;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --dark: #141818;
  --line: #dfe5e3;
  --radius: 14px;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); text-underline-offset: 3px; }

.wrap {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}
.wrap-narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; font-weight: 600; }
h1 { margin: 0 0 1.25rem; font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { margin: 0 0 1rem; font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { margin: 0 0 .5rem; font-size: 1.25rem; }

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--teal-dark);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem;
}
.lead {
  margin: 0 0 2rem;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.5rem;
  border: 2px solid var(--teal-dark);
  border-radius: 999px;
  background: var(--teal-dark);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: #005c4c; border-color: #005c4c; }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--teal-dark); }
.btn-ghost:hover { background: var(--teal-dark); color: #fff; }
.btn-small { padding: .5rem 1.1rem; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-light { background: #fff; border-color: #fff; color: var(--teal-dark); }
.btn-light:hover { background: var(--teal-tint); border-color: var(--teal-tint); }

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 246, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}
.brand img { width: 40px; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding-block: .25rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--teal-dark); }
.site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--teal-deep); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  position: absolute; left: 11px; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before { content: ""; left: 0; top: -7px; }
.nav-toggle .bars::after { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-white { background: var(--surface); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* Hero (Startseite) */
.hero { padding-block: clamp(3rem, 8vw, 6rem); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero .subtitle {
  margin: -.5rem 0 1.25rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--teal-dark);
  font-weight: 500;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-logo img { width: 100%; max-width: 440px; margin-inline: auto; }

/* Page hero (Unterseiten) */
.page-hero { padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.page-hero h1 { max-width: 30ch; }
.page-hero .lead { margin-bottom: 1.75rem; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}
.section-white .card { background: var(--bg); border-color: transparent; }
.card p { margin: 0 0 1rem; color: var(--ink-soft); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--teal-tint); color: var(--teal-dark);
  margin-bottom: 1rem;
}
.card-icon svg { width: 24px; height: 24px; }

/* Fließtext */
.prose { max-width: 46rem; }
.prose p { margin: 0 0 1.1rem; }
.prose h2 { margin-top: 3rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .35rem; }

/* Leistungen */
.toc {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 0; padding: 0; list-style: none;
}
.toc a {
  display: inline-block;
  padding: .45rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}
.toc a:hover { border-color: var(--teal-deep); color: var(--teal-dark); }
.service { scroll-margin-top: 90px; }
.service + .service { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.cost-grid .card p:last-child { margin-bottom: 0; }

/* CTA-Band */
.cta {
  background: var(--teal-dark);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem;
}
.cta h2 { margin: 0 0 .4rem; color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta p { margin: 0; color: #d4ece8; max-width: 44ch; }

/* Kontakt */
.contact {
  background: var(--dark);
  color: #e9efee;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  scroll-margin-top: 60px;
}
.contact a { color: var(--teal-light); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact h1, .contact h2 { color: #fff; }
.contact-info > p { color: #b9c6c4; max-width: 40ch; }
.contact dl { margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.contact dt {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal);
  font-weight: 600;
}
.contact dd { margin: .15rem 0 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact dd a { color: #fff; text-decoration-color: var(--teal); }
.contact .small-link { display: inline-block; margin-top: .35rem; font-size: .95rem; }
.contact-strip .btn { margin-top: 2rem; }

/* Kontakt-Karte */
.contact-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: grid;
  gap: 1.1rem;
}
.contact .contact-card h2 { color: var(--ink); margin: 0; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.contact-card > p { margin: 0; color: var(--ink-soft); }
.contact .btn { color: #fff; }
.contact-card .btn-ghost { color: var(--teal-dark); }
.contact-card .btn-ghost:hover { color: #fff; }
.card-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.notice {
  background: var(--teal-tint);
  border-left: 4px solid var(--teal-deep);
  border-radius: 8px;
  padding: .85rem 1rem;
  font-size: .92rem;
  color: var(--ink);
}
.notice strong { display: block; margin-bottom: .25rem; }
.notice p { margin: 0; color: var(--ink-soft); }

/* Rechtstexte */
.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.1rem; }
.todo {
  background: #fff3c4;
  border-radius: 4px;
  padding: 0 .3em;
  color: #6b5200;
}
.draft-banner {
  background: #fff3c4;
  border: 1px solid #ecd27a;
  color: #5c4600;
  border-radius: 10px;
  padding: .85rem 1rem;
  margin-bottom: 2rem;
  font-size: .95rem;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #8a9896;
  border-top: 1px solid #263030;
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-block: 1.5rem;
}
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer a { color: #c5d0ce; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"]:not(.btn) { color: var(--teal-dark); border-bottom-color: var(--line); }
  .site-nav .btn { margin-top: 1rem; }
}
@media (max-width: 820px) {
  .hero-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 240px; }
  .hero-text { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-actions .btn, .page-hero .btn { width: 100%; }
  .card-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.faq-layout .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 600;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: 1.25rem;
  font-weight: 500;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--teal-dark); }
.faq summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.faq-body { padding: 0 2.5rem 1.25rem 0; color: var(--ink-soft); }
.faq-body p { margin: 0 0 .75rem; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-list { margin: 0 0 1rem; padding-left: 1.1rem; }
.faq-list li { margin-bottom: .5rem; }
.faq-list strong { color: var(--ink); }
@media (max-width: 820px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-body { padding-right: 0; }
}
.contact .dd-note { display: block; font-size: .9rem; color: #9fb0ae; margin-top: .15rem; }
.section[id] { scroll-margin-top: 70px; }
