/* Lettara — clean, hell, Apple-Stil. Siehe brand/BRAND.md */
:root {
  --bg: #FFFFFF;
  --flaeche: #F5F5F7;
  --text: #1D1D1F;
  --text2: #6E6E73;
  --blau: #2563EB;
  --blau2: #1D4ED8;
  --sans: -apple-system, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-family: var(--sans);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body { line-height: 1.5; font-size: 17px; }
main { max-width: 1040px; margin: 0 auto; padding: 28px 24px 96px; }
main.narrow { max-width: 620px; }
h1 { font-size: clamp(42px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 700; }
h2 { font-size: 38px; letter-spacing: -0.03em; margin: 88px 0 20px; font-weight: 700; }
h3 { font-size: 22px; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
a { color: inherit; }
.lead { font-size: 23px; color: var(--text2); max-width: 680px; letter-spacing: -0.01em; }
.muted { color: var(--text2); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--flaeche); padding: 2px 6px; border-radius: 6px; }

/* Kopf */
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 84px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.logo span { font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.top nav { display: flex; gap: 22px; font-size: 15px; color: var(--text2); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; border: 0; background: var(--flaeche); color: var(--text); text-decoration: none; font-weight: 600; cursor: pointer; font-size: 16px; font-family: inherit; white-space: nowrap; }
.btn.primary { background: var(--blau); color: #fff; }
.btn:hover { background: #E8E8ED; }
.btn.primary:hover { background: var(--blau2); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Schritte */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 96px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: var(--flaeche); border-radius: 22px; padding: 26px 24px 24px; color: var(--text2); font-size: 15.5px; }
.steps li::before { content: counter(s); display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 999px; background: var(--blau); color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.steps strong { display: block; font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.25; letter-spacing: -0.015em; }

/* Preise */
.preise { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.preis { background: var(--flaeche); border-radius: 22px; padding: 26px 24px 24px; }
.preis b { display: block; font-size: 44px; letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.preis span { color: var(--text2); font-size: 15px; line-height: 1.45; display: block; }

/* Formular */
form.entwurf { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
form.entwurf fieldset { border: 0; background: var(--flaeche); border-radius: 22px; padding: 20px 22px 14px; display: grid; gap: 12px; min-width: 0; margin: 0; }
form.entwurf legend { float: left; width: 100%; padding: 0; margin: 0 0 6px; font-weight: 600; font-size: 19px; letter-spacing: -0.015em; }
form.entwurf .full { grid-column: 1 / -1; }
label { display: grid; gap: 5px; font-size: 13.5px; color: var(--text2); font-weight: 500; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--text); background: #fff; border: 1px solid #fff; border-radius: 12px; padding: 11px 13px; width: 100%; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }

/* Ergebnis / Vorgangsseiten */
.ergebnis { margin-top: 28px; border-radius: 22px; padding: 24px; background: var(--flaeche); display: none; }
.ergebnis.show { display: block; }
.brief { white-space: pre-wrap; font-family: var(--sans); font-size: 16px; line-height: 1.6; background: #fff; color: var(--text); border-radius: 14px; padding: 28px 32px; margin: 16px 0; }
.hinweis { padding: 12px 16px; color: var(--text); margin: 12px 0; font-size: 15px; background: #EAF1FF; border-radius: 12px; }
.hinweis.warn { background: #FFF3E5; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
dt { color: var(--text2); }
dd { margin: 0; }
footer { margin-top: 110px; color: var(--text2); font-size: 14px; border-top: 1px solid var(--flaeche); padding-top: 24px; }
footer a { color: inherit; }
[hidden] { display: none !important; }

@media (max-width: 720px) {
  form.entwurf { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  h1 br, h2 br { display: none; }
  h2 { font-size: 30px; margin-top: 64px; }
  .top { margin-bottom: 52px; }
  .top nav { gap: 14px; font-size: 14px; }
  .top nav a:nth-child(2) { display: none; }
  .steps { margin-top: 64px; }
}
