/* Lennard Groß Softwarebau
   Layout: eine ruhige Spalte wie ein Werkstattblatt – feine Linien, kleine Mono-Labels als Bauteil-Beschriftung.
   Keine externen Schriften (Datenschutz): Systemschriften. */
:root {
  --paper: #f6f7f9;
  --surface: #ffffff;
  --ink: #09213c;
  --muted: #55606e;
  --line: #d6dbe1;
  --accent: #0b7a75;
  --accent-ink: #ffffff;
  --mark: #bfe3e0;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --wrap: 68rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1626; --surface: #112038; --ink: #e6ebf2; --muted: #9eabbb; --line: #23344d;
    --accent: #4fd1c5; --accent-ink: #0b1626; --mark: #1d5c58; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body);
  font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Kopf */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.15; }
.brand img { display: block; height: 44px; width: auto; }
.brand b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: .005em; }
.brand span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* Typo */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; max-width: 64ch; }
.label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); }
.lead b { color: var(--ink); }

/* Abschnitte */
section { padding-block: 64px; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }

/* Einstieg */
.hero { padding-block: 72px 64px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--mark) 55%, transparent) 62%); padding-inline: .06em; }
.hero .stack { gap: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; padding: 11px 20px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:hover { filter: brightness(1.08); }

/* Werkstück-Beispiel */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sheet-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
.tag { font-family: var(--font-mono); font-size: .75rem; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); }
.tag.due { border-color: var(--mark); background: color-mix(in srgb, var(--mark) 18%, transparent); }

/* Raster */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card p { color: var(--muted); }

.split { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); align-items: start; }
.split > * { min-width: 0; }

/* Rahmen: passt / passt nicht */
.fit { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 2px solid var(--accent); }
.fit.no { border-top-color: var(--muted); }
.fit ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fit li { position: relative; padding-left: 1.6em; }
.fit li::before { position: absolute; left: 0; font-family: var(--font-mono); font-weight: 700; }
.fit.yes li::before { content: "+"; color: var(--accent); }
.fit.no li::before { content: "–"; color: var(--muted); }
.fit.no li { color: var(--muted); }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; counter-increment: s; }
.steps li::before { content: "Schritt " counter(s); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.steps p { color: var(--muted); }
.steps.themen li::before { content: none; }

/* Zusagen */
.promises { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.promises li { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.promises b { font-weight: 600; }
.promises span { color: var(--muted); }
@media (max-width: 34rem) { .promises li { grid-template-columns: 1fr; gap: 2px; } }

/* Formular */
form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
input[type="text"], input[type="email"], textarea { font: inherit; width: 100%; padding: 10px 12px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small { font-size: .88rem; color: var(--muted); }
.status { font-weight: 600; }
.status.ok { color: var(--accent); }
.status.err { color: #b3261e; }

/* Rechtstexte */
.legal { padding-block: 56px; }
.legal .stack { gap: 14px; }
.legal h2 { font-size: 1.35rem; margin-top: 18px; }
.legal address { font-style: normal; }

/* Fuß */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 24px; font-size: .9rem; color: var(--muted); }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Bereichslogo über einem Abschnitt */
.bereich-logo img { height: 40px; width: auto; display: block; }

/* Haken-Liste in der Referenz */
.ticks { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.ticks li { position: relative; padding-left: 1.4em; }
.ticks li::before { content: "+"; position: absolute; left: 0; font-family: var(--font-mono); font-weight: 700; color: var(--accent); }

/* Kontakt per E-Mail */
.mail-gross { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; word-break: break-all; }
.mail-gross a { text-decoration: none; }

/* Aufklappbare Beispiele */
.faelle { display: flex; flex-direction: column; gap: 12px; }
.faelle details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.faelle details[open] { border-color: var(--accent); }
.faelle summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.faelle summary::-webkit-details-marker { display: none; }
.faelle summary b { font-family: var(--font-display); font-size: 1.2rem; }
.faelle summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 1.4rem; color: var(--accent); }
.faelle details[open] summary::after { content: "–"; }
.faelle summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.fall { padding: 4px 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.fall-text { display: grid; gap: 10px 28px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.fall p { color: var(--muted); max-width: none; }
.fall b { color: var(--ink); }

/* Über mich: Foto */
.portrait { display: block; width: 100%; max-width: 15rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin-top: 8px; }
.portrait.platzhalter { display: grid; place-items: center; background: var(--surface); border-style: dashed; }

/* Hervorhebung: Anfrage kostenlos */
.gratis { font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.gratis::before { content: "✓"; font-family: var(--font-mono); }
.promises li.hervor b, .promises li.hervor span { color: var(--accent); font-weight: 600; }

/* Preistabelle */
.preise td:first-child { white-space: normal; min-width: 14rem; }
.preise th:nth-child(3), .preise td:nth-child(3) { color: var(--accent); font-weight: 600; }
.preise-fuss { margin-top: 12px; max-width: 48rem; }
.beispiel-rechnung { margin-top: 20px; max-width: 48rem; }

/* Unterzeile zum Slogan */
.subline { font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: .04em; color: var(--accent); font-weight: 600; margin-top: -8px; }
