:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --text: #1c2430;
  --muted: #4a5565;
  --line: #d9dee5;
  --accent: #0b5a73;
  --accent-text: #ffffff;
  --accent-link: #0b5a73;
  --mark-bg: #fff3c4;
  --mark-line: #b58900;
  --mark-text: #3d2f00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12171e;
    --bg-soft: #1a212b;    --text: #e6eaf0;
    --muted: #aab3c0;
    --line: #333c49;
    --accent: #6cc3de;
    --accent-text: #08202a;
    --accent-link: #6cc3de;
    --mark-bg: #3a3000;
    --mark-line: #d9b43a;
    --mark-text: #fff3c4;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
a { color: var(--accent-link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.text { max-width: 44rem; }

/* Kopfzeile */
header.site { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 28px; padding-top: 10px; padding-bottom: 6px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; padding: 4px 0; }
.logo img { width: 95px; height: 40px; display: block; }
nav.main { display: flex; flex-wrap: wrap; gap: 0 22px; }
nav.main a { color: var(--text); text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; font-size: 0.98rem; }
nav.main a:hover { border-bottom-color: var(--line); }
nav.main a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }

/* Inhalt */
main { display: block; }
section { padding: 44px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h1 { font-size: 1.85rem; line-height: 1.25; margin: 0 0 14px; }
h2 { font-size: 1.45rem; line-height: 1.3; margin: 0 0 14px; }
h3 { font-size: 1.1rem; line-height: 1.35; margin: 0 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 4px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.seite-kopf { padding: 36px 0 8px; }
.seite-kopf + section.eng { padding-top: 22px; }
.krumen { font-size: 0.92rem; margin: 0 0 10px; }

.hero { padding: 56px 0 60px; }
.hero h1 { font-size: 2rem; max-width: 40rem; }
.hero .lead { max-width: 40rem; margin-bottom: 24px; }
.hero-raster { display: grid; gap: 32px; align-items: center; }
.hero-bild { margin: 0; }
.hero-bild:empty { display: none; }
.hero-bild picture, .hero-bild img { display: block; width: 100%; height: auto; }
.hero-bild img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--bg-soft); }

/* Buttons */
.btn { display: inline-block; min-height: 48px; padding: 11px 22px; border-radius: 6px; font-weight: 600; text-decoration: none; text-align: center; line-height: 1.35;
  background: var(--accent); border: 2px solid var(--accent); color: var(--accent-text); }
.btn:hover { text-decoration: underline; filter: brightness(1.06); }
.btn.outline { background: transparent; color: var(--accent-link); }
.btn-zeile { margin: 8px 0 0; }

/* Kacheln und Schritte */
.kacheln { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; }
.kachel { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; display: flex; flex-direction: column; }
.kachel p { margin: 0 0 10px; color: var(--muted); }
.kachel .mehr { margin-top: auto; padding-top: 4px; font-weight: 600; }
.schritte { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; counter-reset: schritt; }
.schritte li { counter-increment: schritt; border-top: 3px solid var(--accent); padding-top: 12px; margin: 0; }
.schritte li::before { content: "Schritt " counter(schritt); display: block; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
#leistungen h2 { margin-bottom: 10px; }
.einleitung { max-width: 40rem; }
.einleitung p { margin: 0 0 4px; }
.einleitung + .kacheln { margin-top: 28px; }
.schritte h3 { margin-top: 2px; }
.schritte p { margin: 0; color: var(--muted); }

.box { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; padding: 16px 20px; margin: 14px 0 18px; max-width: 44rem; }
.box p:last-child { margin-bottom: 0; }

/* Gewerk-Übersicht */
.gewerke { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.gewerke a { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; text-decoration: none; color: var(--text); background: var(--bg); }
.gewerke a:hover { border-color: var(--accent); }
.gewerke strong { display: block; color: var(--accent-link); font-size: 1.08rem; }
.gewerke span { color: var(--muted); font-size: 0.95rem; }

/* Beispiellisten */
.beispiel-zeile { margin: 0 0 8px; color: var(--muted); font-size: 0.97rem; background: var(--bg-soft); border-left: 3px solid var(--line); padding: 8px 12px; max-width: 52rem; }
.liste { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.eintrag { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: var(--bg); }
.eintrag h3 { overflow-wrap: anywhere; }
.eintrag p { margin: 0 0 2px; font-size: 0.97rem; overflow-wrap: anywhere; }
.eintrag .frist { font-weight: 600; }
.eintrag .link { margin-top: 8px; font-size: 0.97rem; }
.quelle { margin-top: 26px; font-size: 0.92rem; color: var(--muted); max-width: 44rem; }

/* Kontakt mit Foto */
.kontakt-box { display: flex; flex-direction: column; gap: 16px; max-width: 44rem; }
.portrait { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; flex: none; border: 1px solid var(--line); }
.kontakt-text p { margin-bottom: 8px; }
.kontakt-text .label { margin: 0; font-size: 0.88rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.kontakt-text .ansprech-name { font-weight: 600; font-size: 1.1rem; margin-bottom: 10px; }
@media (min-width: 40rem) {
  .kontakt-box { flex-direction: row; align-items: flex-start; gap: 28px; }
  .portrait { width: 120px; height: 120px; }
}

/* Rechtstexte */
.recht h2 { margin-top: 32px; font-size: 1.25rem; }

/* Fußzeile */
footer.site { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 26px 0 32px; font-size: 0.95rem; color: var(--muted); }
footer.site a { color: var(--text); }
footer.site ul { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer.site p { margin: 0; }

@media (min-width: 48rem) {
  .hero-raster { grid-template-columns: 1fr 1fr; gap: 48px; }
  .hero-raster:has(.hero-bild:empty) { grid-template-columns: 1fr; }
}
@media (min-width: 40rem) {
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.6rem; }
  h2 { font-size: 1.65rem; }
  section { padding: 60px 0; }
  .seite-kopf + section.eng { padding-top: 30px; }
  .hero { padding: 84px 0 88px; }  .kacheln { grid-template-columns: 1fr 1fr; gap: 20px; }
  .schritte { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .gewerke { grid-template-columns: 1fr 1fr; }
  .liste { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
  .liste { grid-template-columns: 1fr 1fr 1fr; }
}
