/* Design-System aus landingpage/entwurf.dc.html: harte Kanten, keine Radien, Textmarker als Akzent. */
:root {
  --paper: #F6F7F2;
  --wash: #E9ECE1;
  --ink: #11140E;
  --ink-hover: #3D4435;
  --muted: #555B4D;
  --rule: #C9CEBD;
  --dot: #8D937F;
  --marker: #F5E642;
  --white: #FFFFFF;
  --dark-muted: #B4BAA6;
  --error: #9B1C12;
  --display: 'Bricolage Grotesque', 'Arial Narrow', Arial, sans-serif;
  --text: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
a:hover { color: var(--ink-hover); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
button { cursor: pointer; font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.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; }
h1, h2, h3, p, ol, ul { margin: 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; background: var(--ink); color: var(--paper); text-decoration: none;
}
.skip:focus { top: 12px; color: var(--paper); }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.label {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.label--ink { color: var(--ink); font-weight: 600; }
.h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.mark-low {
  background-image: linear-gradient(var(--marker), var(--marker));
  background-repeat: no-repeat; background-position: 0 86%; background-size: 100% 36%;
  animation: markLow 0.8s 0.4s var(--ease) both;
}
.mark-full { background: var(--marker); padding: 2px 10px; }
.platzhalter { border: 1px dashed var(--muted); padding: 14px 16px; font-size: 15px; }

@keyframes markLow { from { background-size: 0% 36%; } to { background-size: 100% 36%; } }
@keyframes markFull { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes einblenden { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Kopf */
.kopf { border-bottom: 1px solid var(--rule); }
.kopf .wrap {
  padding-block: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px;
}
.marke {
  display: flex; align-items: center; gap: 10px; padding-block: 10px;
  font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; text-decoration: none;
}
.marke i { display: block; width: 14px; height: 14px; border: 2px solid var(--ink); background: var(--marker); }
.kopf nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; }
.kopf nav a { padding-block: 12px; }
.knopf-rahmen {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px;
  border: 2px solid var(--ink); font-weight: 600; text-decoration: none; background: transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.knopf-rahmen:hover, a.knopf-rahmen:hover { background: var(--ink); color: var(--paper); }
.kopf nav a.knopf-rahmen { padding-block: 0; }
@media (max-width: 640px) {
  .kopf .wrap { flex-wrap: nowrap; padding-block: 8px; }
  .kopf nav .nav-link { display: none; }
  .kopf .knopf-rahmen { height: 40px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .marke { font-size: 20px; }
}

/* Felder und Knöpfe */
.feldzeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.feld { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.feld label, .feld .feldname { font-size: 15px; font-weight: 600; }
.eingabe {
  width: 100%; height: 60px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 0;
  background: var(--white); color: var(--ink); font-family: var(--mono); font-size: 18px;
}
.eingabe--klein { height: 48px; font-size: 16px; }
.eingabe[aria-invalid="true"] { border-color: var(--error); }
select.eingabe { font-family: var(--text); font-size: 16px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2311140E' stroke-width='2.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.knopf {
  flex: 1 1 220px; height: 60px; padding: 0 28px; border: 2px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper); font-family: var(--text); font-size: 17px; font-weight: 600;
  transition: background-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.knopf:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.knopf:active { transform: translateY(1px); }
.knopf[disabled] { opacity: 0.55; cursor: progress; }
.knopf--fix { flex: 0 0 auto; }
.knopf--klein { height: 48px; font-size: 16px; padding: 0 20px; }
.textknopf {
  background: none; border: 0; padding: 8px 0; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.textknopf:hover { color: var(--ink-hover); }
.fehler { color: var(--error); font-size: 15px; font-weight: 600; }

/* Hero mit Rechner */
.hero {
  padding-block: clamp(40px, 7vw, 96px);
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px;
}
.hero-links { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1; letter-spacing: -0.025em; text-wrap: balance;
}
.hero-sub { max-width: 34em; }
.belege {
  list-style: none; padding: 20px 0 0; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 12px 40px; font-family: var(--mono); font-size: 15px;
}
.belege strong { font-weight: 600; }

/* Rechner-Ablauf */
.ablauf { display: flex; flex-direction: column; gap: 24px; animation: einblenden 0.5s var(--ease) both; }
.ablauf h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.ablauf h2:focus { outline: none; }
.schrittzeile { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.balken { height: 4px; background: var(--wash); }
.balken > div { height: 4px; background: var(--ink); width: 100%; transform: scaleX(0); transform-origin: left center; transition: transform 0.6s var(--ease); }

.funde { list-style: none; padding: 0; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 15px; }
.funde li {
  display: flex; gap: 12px; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--rule);
  animation: einblenden 0.4s var(--ease) both;
}
.funde li span:first-child { flex: 1 1 auto; }
.funde li strong { font-weight: 600; }

.werte { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 24px; }
.werte .feld { flex: none; }
.werte .feld--breit { grid-column: 1 / -1; }
.hinweis { font-size: 15px; color: var(--muted); }
.hinweis--box { padding: 14px 16px; border: 1px solid var(--rule); background: var(--white); color: var(--ink); }
.regler { display: flex; flex-direction: column; gap: 10px; }
input[type="range"] { width: 100%; accent-color: var(--ink); height: 28px; }
.regler-skala { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.nachfrage { padding: 18px; border: 2px solid var(--ink); background: var(--white); display: flex; flex-direction: column; gap: 14px; }
.nachfrage .knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; }

.optionen { display: grid; gap: 10px; }
.option {
  position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px;
  border: 2px solid var(--rule); background: var(--white); cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.option:hover { border-color: var(--ink); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .marke-box {
  flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; border: 2px solid var(--ink); background: var(--white);
  display: grid; place-items: center;
}
.option input[type="radio"] + .marke-box { border-radius: 50%; }
.option input:checked + .marke-box { background: var(--ink); }
.option input:checked + .marke-box::after { content: ''; width: 8px; height: 8px; background: var(--paper); }
.option input[type="radio"]:checked + .marke-box::after { border-radius: 50%; }
.option input:focus-visible + .marke-box { outline: 3px solid var(--ink); outline-offset: 3px; }
.option:has(input:checked) { border-color: var(--ink); }
.option-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.option-text strong { font-weight: 600; }
.option-text span { font-size: 15px; color: var(--muted); }
.option-preis { font-family: var(--mono); font-size: 14px; white-space: nowrap; padding-top: 2px; }

.navzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }

/* Ergebnis */
.ergebnis-kopf { display: flex; flex-direction: column; gap: 10px; }
.preis-gross {
  align-self: flex-start; font-family: var(--mono); font-weight: 600; font-size: clamp(44px, 6vw, 72px); line-height: 1.05;
  padding: 2px 12px; background-image: linear-gradient(var(--marker), var(--marker)); background-repeat: no-repeat; background-size: 100% 100%;
  animation: markFull 0.7s 0.2s var(--ease) both;
}
.eckdaten { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--mono); font-size: 15px; }
.bedingungen { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.leadbox { padding: clamp(20px, 3vw, 28px); border: 2px solid var(--ink); background: var(--white); display: flex; flex-direction: column; gap: 16px; }
.leadbox h3 { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.15; }
.leadbox .feldzeile .feld { flex-basis: 200px; }
.termin { padding-top: 24px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 12px; }
.termin h3 { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.15; }
.termin-rahmen { border: 2px solid var(--ink); background: var(--white); }
.termin-rahmen iframe { display: block; width: 100%; height: 720px; border: 0; }
@media (max-width: 640px) { .termin-rahmen iframe { height: 980px; } }
.erfolg { padding: 16px 18px; background: var(--wash); border: 1px solid var(--ink); }

/* Bon */
.bon-huelle { flex: 2 1 340px; min-width: 0; max-width: 460px; filter: drop-shadow(0 16px 24px rgba(17, 20, 14, 0.16)); }
.bon {
  background: var(--white); padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 18px;
  font-family: var(--mono); font-size: 14px; line-height: 1.5;
}
.bon-kante { height: 10px; background: conic-gradient(from 135deg at 50% 0, var(--white) 90deg, rgba(255, 255, 255, 0) 0) 50% 0 / 18px 100%; }
.bon-kopf { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bon-domain { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.bon-status { font-size: 12px; color: var(--muted); }
.bon-zeilen { display: flex; flex-direction: column; gap: 8px; }
.bon-zeile { display: flex; align-items: baseline; gap: 8px; animation: einblenden 0.35s var(--ease) both; }
.bon-zeile .punkte { flex: 1 1 auto; border-bottom: 1px dotted var(--dot); }
.bon-zeile .wert { font-weight: 600; text-align: right; }
.bon-zeile--posten .wert { font-weight: 400; }
.bon-zeile--leer { color: var(--muted); }
.bon-trenner { border-top: 1px dashed var(--ink); }
.bon-summe { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.bon-summe .betrag { padding: 2px 10px; font-size: clamp(32px, 3.4vw, 42px); font-weight: 600; line-height: 1.1; }
.bon-summe .betrag.mark {
  background-image: linear-gradient(var(--marker), var(--marker)); background-repeat: no-repeat; background-size: 100% 100%;
  animation: markFull 0.7s 0.3s var(--ease) both;
}
.bon-summe .betrag.offen { color: var(--muted); }
.bon-fuss { font-size: 12px; color: var(--muted); }
.balken--bon > div { transition-duration: 0.4s; }

/* Inhaltssektionen */
.band { border-block: 1px solid var(--rule); background: var(--wash); }
.referenzen { padding-block: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.referenzen .label { flex: 1 1 160px; }
.referenzen .platzhalter { flex: 2 1 260px; }
.referenzen .platzhalter--kurz { flex: 1 1 200px; }

.case { padding-block: clamp(48px, 7vw, 88px) 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.case-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.case-text > p:not(.label):not(.hinweis):not(.platzhalter) { max-width: 32em; }
.case-zahlen { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-top: 2px solid var(--ink); }
.case-zahlen div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.case-zahlen dt { font-size: 15px; color: var(--muted); }
.case-zahlen dd { margin: 4px 0 0; font-family: var(--mono); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; white-space: nowrap; }
.case-bilder { flex: 1.4 1 420px; min-width: 0; margin: 0; position: relative; padding: 0 0 48px 0; }
.case-bilder img { display: block; height: auto; border: 2px solid var(--ink); background: var(--white); }
.case-desktop { width: 88%; }
.case-mobil { position: absolute; right: 0; bottom: 0; width: 26%; box-shadow: 0 16px 24px rgba(17, 20, 14, 0.18); }
.case-bilder figcaption { margin-top: 12px; }

.erfahrung { margin: 0; padding-block: 8px clamp(48px, 7vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 40px; }
.erfahrung div { padding-top: 16px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 6px; }
.erfahrung dt { font-family: var(--display); font-size: clamp(32px, 3.4vw, 44px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.erfahrung dd { margin: 0; color: var(--muted); max-width: 22em; }
.fuss .rechtliches a { color: var(--muted); }
.fuss .rechtliches a:hover { color: var(--ink); }

.sektion { padding-block: clamp(56px, 8vw, 104px); display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.sektion--spalte { flex-direction: column; flex-wrap: nowrap; gap: 40px; }
.sektion--ohne-oben { padding-top: 0; }
.spalte-1 { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.spalte-2 { flex: 2 1 520px; min-width: 0; }

.foto { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 2px solid var(--ink); background: var(--wash); margin-top: 12px; }
.foto--hoch { aspect-ratio: 4 / 5; max-width: 360px; }
.foto-band { display: block; width: 100%; height: clamp(240px, 38vw, 560px); object-fit: cover; object-position: 40% 60%; border-block: 2px solid var(--ink); background: var(--wash); }
@media (max-width: 860px) { .spalte-1 .foto--hoch { display: none; } }
.zeitplan { list-style: none; padding: 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; }
.zeitplan li {
  display: grid; grid-template-columns: minmax(84px, 150px) minmax(0, 1fr); gap: 4px 24px; align-items: baseline;
  padding-block: 20px; border-top: 1px solid var(--rule);
}
.zeitplan .tag { justify-self: start; font-family: var(--mono); font-size: 15px; }
.zeitplan .tag.mark-full { padding: 2px 8px; font-weight: 600; }
.zeitplan strong { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.2; margin-bottom: 4px; }

.umfang { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 56px; }
.umfang-drin { flex: 3 1 420px; min-width: 0; padding: clamp(24px, 3vw, 40px); border: 2px solid var(--ink); background: var(--white); display: flex; flex-direction: column; gap: 20px; }
.umfang-nicht { flex: 2 1 280px; min-width: 0; padding-top: 24px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 20px; }
.liste { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.liste li { display: flex; align-items: flex-start; gap: 12px; }
.liste svg { flex: 0 0 20px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; }
.liste--nicht svg { stroke: var(--muted); }

.preisliste { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.preisliste-tabelle { flex: 3 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
th, td { padding: 13px 0; text-align: left; vertical-align: baseline; }
th { padding-right: 16px; font-weight: 400; }
td { text-align: right; white-space: nowrap; font-family: var(--mono); }
tr { border-bottom: 1px solid var(--rule); }
tr.basis { border-bottom-color: var(--ink); }
tr.basis th, tr.basis td { font-weight: 600; padding-block: 16px; }
tr:last-child { border-bottom: 2px solid var(--ink); }
.beispiele { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.beispiel { padding-block: 16px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.beispiel:last-child { border-bottom: 1px solid var(--ink); }
.beispiel span:first-child { flex: 1 1 180px; }
.beispiel .betrag { font-family: var(--mono); font-size: 20px; font-weight: 600; white-space: nowrap; }
.beispiel--hervor { padding: 20px; border: 2px solid var(--ink); background: var(--white); flex-direction: column; align-items: flex-start; gap: 10px; }
.beispiel--hervor .betrag { font-size: 30px; line-height: 1.15; padding: 2px 10px; background: var(--marker); }
.beispiel--hervor + .beispiel { border-top: 0; }

.weiterleitungen { display: flex; flex-direction: column; font-family: var(--mono); font-size: 14px; border-bottom: 1px solid var(--rule); }
.weiterleitungen div { padding-block: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.weiterleitungen .alt { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; color: var(--muted); }
.weiterleitungen .code { padding: 2px 8px; border: 1px solid var(--ink); font-size: 12px; font-weight: 600; }
.weiterleitungen .neu { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }

.dunkel { background: var(--ink); color: var(--paper); }
.dunkel .spalte-2 { display: flex; flex-direction: column; gap: 24px; }
.dunkel p { max-width: 32em; }
.dunkel .platzhalter { border-color: var(--dark-muted); color: var(--dark-muted); max-width: 40em; }
.dunkel :focus-visible { outline-color: var(--paper); }

.faq { border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--ink); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; cursor: pointer; list-style: none;
  font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; transition: transform 0.3s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { max-width: 38em; padding-bottom: 22px; }

.abschluss { background: var(--marker); }
.abschluss h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; }
.abschluss .spalte-gross { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.abschluss .spalte-klein { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.abschluss ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; }

.fuss { padding-block: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; font-size: 15px; color: var(--muted); }
.fuss .rechtliches { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 760px) {
  .hero { gap: 32px; }
  .bon-huelle { max-width: none; }
}

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