/* Okertec, statische Seite. Keine externen Schriften, keine Skripte. */
:root {
  --ink: #16324a;      /* Text, Überschriften */
  --oker: #2e6e68;     /* Akzent: Wasser der Oker */
  --paper: #ffffff;
  --tint: #eef4f3;     /* Flächen */
  --rule: #cbd6da;     /* Linien */
  --muted: #55697a;    /* Nebentext */
  --measure: 68ch;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--oker); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--oker); outline-offset: 3px; border-radius: 2px; }

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

/* Kopf */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1rem;
}
.brand {
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em;
}
.nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--oker); text-decoration: underline; }

/* Einstieg */
.hero { padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4rem); }
.hero .mark {
  margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 0.95;
  font-size: clamp(3.4rem, 11vw, 7.5rem);
}
.hero .river { display: block; width: min(100%, 520px); height: auto; margin: 0.9rem 0 1.8rem; }
.hero .river path { fill: none; stroke: var(--oker); stroke-width: 3; stroke-linecap: round; }
.hero h1 {
  margin: 0 0 1rem; max-width: 30ch;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem); line-height: 1.2; font-weight: 600;
}
.hero p { margin: 0; max-width: var(--measure); color: var(--ink); }
.hero .owner { margin-top: 1.25rem; color: var(--muted); font-size: 0.95rem; }

/* Abschnitte */
.section { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--rule); }
.section h2 { margin: 0 0 0.5rem; font-size: 1.5rem; line-height: 1.25; font-weight: 600; }
.section .lead { margin: 0 0 2rem; max-width: var(--measure); color: var(--muted); }

/* Leistungsverzeichnis */
.lv { width: 100%; border-collapse: collapse; font-size: 1rem; }
.lv caption { text-align: left; color: var(--muted); font-size: 0.9rem; padding-bottom: 0.6rem; }
.lv th, .lv td { text-align: left; vertical-align: top; padding: 0.95rem 1rem 0.95rem 0; border-bottom: 1px solid var(--rule); }
.lv thead th { font-size: 0.9rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--ink); padding-bottom: 0.55rem; }
.lv .pos { width: 4.5rem; font-variant-numeric: tabular-nums; color: var(--oker); font-weight: 600; }
.lv .what { width: 32%; font-weight: 600; }
.lv td:last-child { color: var(--ink); padding-right: 0; }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 1rem 0 1rem 3.25rem; border-bottom: 1px solid var(--rule); max-width: 78ch;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.95rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tint); color: var(--oker); font-weight: 700; font-variant-numeric: tabular-nums;
}
.steps strong { display: block; }

/* Zusagen */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem 2.5rem; margin: 0; }
.facts div { border-left: 3px solid var(--oker); padding-left: 1rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0.25rem 0 0; color: var(--ink); }

/* Kontakt */
.contact { background: var(--tint); border-top: 0; }
.contact .mail { font-size: clamp(1.25rem, 3.2vw, 1.75rem); font-weight: 600; word-break: break-word; }
.contact address { font-style: normal; margin-top: 1.25rem; color: var(--ink); }

/* Rechtstexte */
.page { padding-block: 3rem 4rem; }
.page .wrap > * { max-width: var(--measure); }
.page h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 1.5rem; }
.page h2 { font-size: 1.15rem; margin: 2rem 0 0.4rem; }
.page p, .page address { margin: 0 0 0.8rem; font-style: normal; }
.page .meta { color: var(--muted); }

/* Fuß */
.site-foot { border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 1.5rem; }
.site-foot nav { display: flex; gap: 1.25rem; }
.site-foot a { color: var(--muted); }

@media (max-width: 640px) {
  .nav { gap: 1rem; }
  .lv thead { display: none; }
  .lv, .lv tbody, .lv tr, .lv td { display: block; width: 100%; }
  .lv tr { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
  .lv td { border: 0; padding: 0.1rem 0; }
  .lv .pos, .lv .what { width: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .river path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: flow 1.6s ease-out 0.2s forwards; }
  @keyframes flow { to { stroke-dashoffset: 0; } }
}
