@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F3F4F2;
  --bg-alt: #DFE4E1;
  --card: #FFFFFF;
  --accent: #85A6A2;
  --deep: #3E5F5C;
  --deep-hover: #33504D;
  --on-deep: #F3F4F2;
  --text: #252B2A;
  --muted: #5B6564;
  --line: rgba(37, 43, 42, .13);
  --shadow: 0 10px 30px rgba(37, 43, 42, .05);
  --r-card: 20px;
  --r-small: 12px;
  --wrap: 1080px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #1B201F;
  --bg-alt: #222827;
  --card: #252B2A;
  --accent: #85A6A2;
  --deep: #85A6A2;
  --deep-hover: #9DBAB6;
  --on-deep: #17201F;
  --text: #E4E9E6;
  --muted: #A8B3B0;
  --line: rgba(228, 233, 230, .15);
  --shadow: 0 10px 30px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-variation-settings: "wght" 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-variation-settings: "wght" 600; font-weight: 400; }
h1 { font-size: clamp(2.1rem, 7vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.15rem); }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0 0 1.1em; max-width: 68ch; }
a { color: var(--deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--deep-hover); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 20px; top: 12px; z-index: 60; background: var(--deep); color: var(--on-deep); padding: 10px 16px; border-radius: 999px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 9vw, 96px) 0; }
.section--alt {
  background: linear-gradient(180deg, var(--bg) 0, var(--bg-alt) 110px, var(--bg-alt) calc(100% - 110px), var(--bg) 100%);
}
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Kopfzeile */
.head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.head.is-scrolled { border-bottom-color: var(--line); }
.head__inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-block; text-decoration: none; color: var(--text); margin-right: auto; }
.logo__word { display: block; font-size: 1.12rem; font-variation-settings: "wght" 600; letter-spacing: -.015em; }
.logo__rule { display: block; height: 3px; width: 100%; background: var(--accent); margin-top: 3px; clip-path: polygon(0 0, 100% 42%, 100% 100%, 0 100%); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text); text-decoration: none; font-size: .97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--deep); }
.head__tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--bg-alt); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 4px; padding: 16px 20px 28px; background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s ease; visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav a { width: 100%; padding: 12px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid var(--deep);
  background: var(--deep); color: var(--on-deep); text-decoration: none;
  font-size: 1rem; font-variation-settings: "wght" 500; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--deep-hover); border-color: var(--deep-hover); color: var(--on-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-alt); color: var(--text); border-color: var(--accent); }
.btn--small { padding: 10px 18px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: clamp(36px, 7vw, 76px) 0 clamp(40px, 7vw, 80px); }
.hero__grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1fr 1fr; } }
.hero p { font-size: 1.15rem; }
.hero__note { font-size: .95rem; color: var(--muted); margin-top: 18px; }

/* Vorher-nachher */
.ba { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--bg-alt); box-shadow: var(--shadow); }
.ba__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.ba__after img { width: 100%; height: 100%; object-fit: cover; }
.ba__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.ba__handle { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 999px; background: #fff; color: #252B2A; display: grid; place-items: center; pointer-events: none; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__range:focus-visible + .ba__line { box-shadow: 0 0 0 3px var(--deep); }
.ba__tag { position: absolute; bottom: 12px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; background: rgba(27,32,31,.72); color: #F3F4F2; }
.ba__tag--l { left: 12px; }
.ba__tag--r { right: 12px; }

/* Karten */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; display: block; transition: border-color .2s ease; }
.card--link:hover { border-color: var(--accent); color: inherit; }
.tick { list-style: none; padding: 0; margin: 0; }
.tick li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.tick li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 2px; background: var(--accent); }

/* Ablauf */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; padding-top: 44px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--accent);
  display: grid; place-items: center; font-size: .9rem; color: var(--deep);
}
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: .97rem; color: var(--muted); margin: 0; }

/* Tabelle */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .97rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { font-variation-settings: "wght" 500; }
td:not(:first-child), th:not(:first-child) { text-align: center; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 6px 0; }
summary { cursor: pointer; padding: 14px 32px 14px 0; position: relative; list-style: none; font-variation-settings: "wght" 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .25s ease; }
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details p:last-child { margin-bottom: 14px; }

/* Formular */
form.kd-form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
label { font-size: .95rem; font-variation-settings: "wght" 500; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-small); padding: 13px 14px; width: 100%;
}
input[type="file"] { padding: 10px; }
textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--deep); }
.hp { position: absolute; left: -9999px; }
.two-col { display: grid; gap: 18px; }
@media (min-width: 700px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* Platzhalter-Bilder */
.ph { background: var(--bg-alt); border: 1px dashed var(--accent); border-radius: var(--r-card); display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-size: .9rem; aspect-ratio: 4 / 3; }
.ph--round { border-radius: 999px; aspect-ratio: 1; width: 96px; }

/* Einbettungen mit Klick */
.consent { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; text-align: center; }
.consent p { margin: 0 auto 16px; max-width: 46ch; color: var(--muted); font-size: .95rem; }
.embed { border: 0; width: 100%; height: 420px; border-radius: var(--r-card); display: block; }

/* WhatsApp */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 56px; height: 56px; border-radius: 999px; background: var(--deep); color: var(--on-deep);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.wa:hover { background: var(--deep-hover); color: var(--on-deep); }

/* Fußzeile */
.foot { background: var(--bg-alt); padding: 56px 0 32px; margin-top: 20px; }
.foot__grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.foot__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px 20px; }

/* Hinweisbox */
.note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 var(--r-small) var(--r-small) 0; padding: 18px 20px; font-size: .97rem; }
.note p:last-child { margin-bottom: 0; }

/* Preisrechner */
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; }
.calc__out { font-size: 2rem; font-variation-settings: "wght" 600; margin: 10px 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 9px 16px; cursor: pointer; font: inherit; font-size: .95rem; }
.chip[aria-pressed="true"] { border-color: var(--deep); background: var(--deep); color: var(--on-deep); }
.chip__sub { display: block; font-size: .78rem; opacity: .75; margin-top: 1px; }
.chip:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.calc__info { color: var(--muted); font-size: .95rem; margin: 0 0 6px; }

/* Preismatrix */
.matrix td, .matrix th { white-space: nowrap; }
.matrix th small { display: block; font-size: .78rem; color: var(--muted); font-variation-settings: "wght" 400; }
.matrix tr.matrix__start td { border-top: 2px solid var(--text); }
.matrix td.matrix__paket { font-variation-settings: "wght" 600; }
.matrix tr.matrix__start td:not(:first-child):not(:nth-child(2)) { font-variation-settings: "wght" 600; }
.matrix td:nth-child(2), .matrix th:nth-child(2) { text-align: left; }
.matrix--plain tr.matrix__start td:not(:first-child):not(:nth-child(2)) { font-variation-settings: "wght" 400; }
.stufen-liste { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.stufen-liste li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stufen-liste b { font-variation-settings: "wght" 600; }
@media (max-width: 560px) { .stufen-liste li { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 600px) {
  .matrix { min-width: 0; font-size: .8rem; }
  .matrix th, .matrix td { padding: 10px 3px; white-space: normal; }
  .matrix td:not(:first-child):not(:nth-child(2)) { white-space: nowrap; }
  .matrix th small { display: none; }
}

/* Einblenden */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Rechtstexte: Linien im Widerrufsformular und saubere Druckansicht */
.widerruf-form .linie { height: 1.9em; border-bottom: 1px solid var(--muted); margin: 0 0 .9em; }
@media print {
  .head, .foot, .wa, .skip, .btn-row { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 0; }
  .wrap { max-width: none !important; padding: 0; }
  h2 { break-after: avoid; }
  .widerruf-form { break-inside: avoid; border: 1px solid #999; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}

/* Initialen statt Foto auf "Über uns" */
.avatar { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 999px; background: var(--deep); color: var(--on-deep); font-size: 1.6rem; font-variation-settings: 'wght' 600; margin-bottom: 16px; }
