/* APP web prototype — shared styles for customer area and marketing site.
   Rules from docs/technical/kundenweb.md §10: one column, 18px body text,
   system font, nothing loaded from third parties, light mode only. */

:root {
  --blue: #1e6ad4;        /* buttons: 5.2:1 on white */
  --blue-dark: #1557b0;   /* links: 7:1 on white */
  --blue-bg: #ebf5ff;
  --text: #212529;
  --text-dim: #495057;
  --line: #868e96;
  --line-soft: #dee2e6;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --green: #1b6b3f;
  --green-bg: #e8f5e9;
  --amber: #7a4d00;
  --amber-bg: #fff8e1;
  --red: #a61e1e;
  --red-bg: #ffebee;
  --radius: 10px;
  --col: 640px;
}

* { box-sizing: border-box; }

html { font-size: 112.5%; } /* 18px */

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--blue-dark); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 2px;
}

h1 { font-size: 1.55rem; line-height: 1.25; margin: 0 0 .6rem; }
h2 { font-size: 1.2rem; line-height: 1.3; margin: 2rem 0 .6rem; }
h3 { font-size: 1rem; margin: 1.2rem 0 .3rem; }
p { margin: 0 0 1rem; }
.dim { color: var(--text-dim); }
.small { font-size: .89rem; } /* 16px */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: var(--col); margin: 0 auto; padding: 0 16px; }
main { max-width: var(--col); margin: 0 auto; padding: 24px 16px 48px; }

/* --- prototype banner, header, navigation, footer (injected by layout.js) */
.proto {
  background: var(--amber-bg); color: var(--amber);
  font-size: .89rem; text-align: center; padding: 6px 16px;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px; z-index: 2; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 60px;
}
.brand { font-weight: 700; font-size: 1.3rem; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.header-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; }

.site-nav { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.site-nav ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav li { flex: 1 1 0; min-width: 0; }
.site-nav a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 6px 4px; font-size: .89rem; line-height: 1.2;
  color: var(--text); text-decoration: none; border-bottom: 4px solid transparent;
}
.site-nav a[aria-current="page"] { border-bottom-color: var(--blue); font-weight: 700; color: var(--blue-dark); }
.site-nav.marketing li { flex: 1 1 auto; }
.site-nav.marketing a { padding: 6px 10px; }

.site-footer { border-top: 1px solid var(--line-soft); background: var(--surface); padding: 24px 0 32px; font-size: .89rem; }
.site-footer ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.phone { font-size: 1.1rem; font-weight: 700; white-space: nowrap; }

/* --- buttons */
.btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; min-height: 54px; padding: 10px 16px; margin: 0 0 12px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border-radius: var(--radius); border: 2px solid var(--blue);
  background: var(--surface); color: var(--blue-dark);
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-quiet { border-color: transparent; background: transparent; text-decoration: underline; font-weight: 400; }
.back { display: inline-flex; align-items: center; min-height: 48px; margin-bottom: 4px; }

/* --- cards, notices, lists */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
.notice { border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; border: 1px solid; }
.notice p:last-child { margin: 0; }
.notice-action { background: var(--amber-bg); color: var(--amber); border-color: var(--amber); }
.notice-action a { color: inherit; font-weight: 700; }
.notice-calm { background: var(--blue-bg); color: var(--text); border-color: transparent; }
.notice-ok { background: var(--green-bg); color: var(--green); border-color: transparent; }
.offen { background: var(--amber-bg); color: var(--amber); padding: 2px 6px; border-radius: 4px; font-size: .89rem; }

.rows { list-style: none; margin: 0 0 16px; padding: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.rows > li + li { border-top: 1px solid var(--line-soft); }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  min-height: 64px; padding: 12px 16px; color: var(--text); text-decoration: none;
}
a.row::after { content: "›"; font-size: 1.5rem; color: var(--text-dim); margin-left: auto; }
a.row:hover { background: var(--bg); }
.row-main { display: block; font-weight: 700; }
.row-sub { display: block; font-weight: 400; color: var(--text-dim); font-size: .89rem; }

dl.facts { margin: 0; }
dl.facts dt { color: var(--text-dim); font-size: .89rem; margin-top: 12px; }
dl.facts dt:first-child { margin-top: 0; }
dl.facts dd { margin: 0; }

/* --- status: always symbol + word + colour */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; font-size: .89rem; font-weight: 700; white-space: nowrap;
  background: #e9ecef; color: var(--text);
}
.badge::before { font-weight: 700; }
.s-eingegangen::before { content: "↓"; }
.s-pruefung::before { content: "…"; }
.s-versicherung { background: var(--blue-bg); color: var(--blue-dark); }
.s-versicherung::before { content: "→"; }
.s-klaeren { background: var(--blue-bg); color: var(--blue-dark); }
.s-klaeren::before { content: "↻"; }
.s-neu { background: var(--amber-bg); color: var(--amber); }
.s-neu::before { content: "!"; }
.s-erledigt { background: var(--green-bg); color: var(--green); }
.s-erledigt::before { content: "✓"; }

/* --- timeline */
.zeitleiste { list-style: none; margin: 0 0 16px; padding: 0; }
.zeitleiste li { position: relative; padding: 0 0 18px 40px; }
.zeitleiste li::before {
  content: ""; position: absolute; left: 4px; top: 2px; width: 22px; height: 22px;
  border-radius: 50%; border: 2px solid var(--line); background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700;
}
.zeitleiste li::after { content: ""; position: absolute; left: 14px; top: 28px; bottom: 0; width: 2px; background: var(--line-soft); }
.zeitleiste li:last-child::after { display: none; }
.zeitleiste .done::before { content: "✓"; background: var(--green); border-color: var(--green); color: #fff; }
.zeitleiste .now::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-bg); }
.zeitleiste .now strong { color: var(--blue-dark); }
.zeitleiste .todo { color: var(--text-dim); }
.zeitleiste span { display: block; font-size: .89rem; color: var(--text-dim); }

/* --- forms */
label, legend { display: block; font-weight: 700; margin: 0 0 6px; padding: 0; }
.hint { display: block; font-weight: 400; color: var(--text-dim); font-size: .89rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], select {
  width: 100%; min-height: 54px; padding: 10px 12px; margin: 0 0 18px;
  font: inherit; color: var(--text); background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--radius);
}
input.code { font-size: 1.6rem; letter-spacing: .3em; text-align: center; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.choice {
  display: flex; align-items: flex-start; gap: 12px; min-height: 54px; padding: 14px;
  margin: 0 0 10px; font-weight: 400; cursor: pointer;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
}
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-bg); }
.choice input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.choice b { display: block; }
.legal-box { background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 12px; }
.file-name { font-weight: 700; margin: 0 0 12px; }

.progress { margin: 0 0 20px; }
.progress p { margin: 0 0 6px; font-size: .89rem; color: var(--text-dim); }
progress { width: 100%; height: 10px; accent-color: var(--blue); }

details { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); margin: 0 0 10px; }
summary { min-height: 54px; padding: 14px 16px; font-weight: 700; cursor: pointer; }
details > :not(summary) { padding: 0 16px; }

/* --- marketing */
.hero h1 { font-size: 1.9rem; }
.hero p { font-size: 1.1rem; }
.schritte { list-style: none; counter-reset: s; margin: 0 0 16px; padding: 0; }
.schritte li { counter-increment: s; position: relative; padding: 0 0 16px 52px; }
.schritte li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px;
  border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.preis { font-size: 1.7rem; font-weight: 700; }
.preis small { font-size: .89rem; font-weight: 400; color: var(--text-dim); }

@media (min-width: 700px) {
  main { padding-top: 40px; }
  .btn-inline { width: auto; display: inline-flex; padding: 10px 28px; }
}

/* file pickers hide the native input inside the button label */
.btn:focus-within { outline: 3px solid var(--blue-dark); outline-offset: 2px; }

/* tables in marketing copy */
.table-wrap { overflow-x: auto; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 12px 8px; border-top: 1px solid var(--line-soft); hyphens: auto; overflow-wrap: anywhere; }
th:first-child, td:first-child { padding-left: 12px; }
thead th { border-top: 0; font-size: .89rem; color: var(--text-dim); }
main li { margin-bottom: .4rem; }
