/* Webseite "FakturaVoice" – Farben wie in der App (server/static/index.html) */
:root {
  --bg: #f2efe9; --card: #ffffff; --card2: #f7f5f1; --text: #1b2430; --muted: #5f6876; --line: #e2ddd3;
  --brand: #173a5e; --brand2: #23578a; --brand-text: #ffffff; --link: #23578a;
  --accent: #f2a516; --accent-text: #2a1c00; --ok: #1d7a4f; --warn: #8f5507;
  --schatten: 0 1px 2px rgba(23, 33, 48, .06), 0 6px 20px rgba(23, 33, 48, .07);
  --radius: 18px;
  --breite: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1318; --card: #171f28; --card2: #1d2732; --text: #e8edf2; --muted: #9aa6b3; --line: #2a3643;
    --brand: #12273d; --brand2: #1c3d5f; --link: #8cbcec;
    --accent: #f5b02e; --ok: #4fc58c; --warn: #eab060;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(27px, 4.2vw, 38px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--link); }
svg { display: block; flex: none; }
.innen { max-width: var(--breite); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .innen { padding: 0 28px; } }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--brand) 94%, transparent); color: var(--brand-text);
  backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
}
.kopf .innen { display: flex; align-items: center; gap: 20px; height: 60px; }
.marke { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800;
  letter-spacing: -.01em; font-size: 17px; white-space: nowrap; }
.marke img { width: 34px; height: 34px; border-radius: 10px; }
.marke em { font-style: normal; color: var(--accent); }
.kopf nav { display: flex; gap: 22px; margin-left: auto; }
.kopf nav a { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 15px; font-weight: 600; }
.kopf nav a:hover { color: #fff; }
.kopf .knopf { padding: 8px 16px; font-size: 15px; }
@media (max-width: 860px) { .kopf nav { display: none; } .kopf .knopf { margin-left: auto; } }
@media (max-width: 340px) { .marke span { display: none; } }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 17px; line-height: 1.2;
  text-decoration: none; background: var(--accent); color: var(--accent-text); border: 2px solid var(--accent);
  transition: transform .15s, box-shadow .15s;
}
.knopf:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.knopf svg { width: 20px; height: 20px; }
.knopf.hell { background: transparent; color: inherit; border-color: rgba(255, 255, 255, .45); }
.knopf.hell:hover { border-color: #fff; box-shadow: none; }
.knopf.rand { background: transparent; color: var(--text); border-color: var(--line); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--brand2), var(--brand) 62%); color: var(--brand-text);
  padding: 56px 0 64px; overflow: hidden;
}
.hero .innen { display: grid; gap: 48px; align-items: center; }
@media (min-width: 920px) { .hero .innen { grid-template-columns: 1.15fr .85fr; } .hero { padding: 80px 0 88px; } }
.ueber { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(36px, 6.4vw, 60px); font-weight: 850; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 20px; font-size: clamp(18px, 2.2vw, 20px); max-width: 36em; color: rgba(255, 255, 255, .88); }
.hero .knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.haken { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 8px; font-size: 15.5px; color: rgba(255, 255, 255, .85); }
.haken li { display: flex; gap: 10px; align-items: flex-start; }
.haken svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }

/* ---------- Handy-Attrappe ---------- */
.handy {
  width: 300px; max-width: 100%; margin: 0 auto; border-radius: 42px; padding: 10px;
  background: #0b141e; box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 2px #26313d;
  /* Die Attrappe zeigt immer die helle App – so hebt sie sich vom dunklen Hero ab */
  --a-bg: #f2efe9; --a-card: #fff; --a-card2: #f7f5f1; --a-text: #1b2430; --a-muted: #6b7482;
  color: var(--a-text); font-size: 13px; line-height: 1.4;
}
.bildschirm { border-radius: 33px; overflow: hidden; background: var(--a-bg); display: flex; flex-direction: column; height: 560px; }
.a-kopf { background: linear-gradient(160deg, #23578a, #173a5e 70%); color: #fff; padding: 16px 14px 10px; }
.a-zeile { display: flex; align-items: center; gap: 9px; }
.a-zeile img { width: 28px; height: 28px; border-radius: 9px; }
.a-zeile b { font-size: 14px; }
.a-tabs { display: flex; gap: 3px; margin-top: 10px; padding: 3px; border-radius: 11px; background: rgba(0, 0, 0, .22); font-size: 11.5px; font-weight: 600; }
.a-tabs span { flex: 1; text-align: center; padding: 5px 0; border-radius: 8px; color: rgba(255, 255, 255, .72); }
.a-tabs .aktiv { background: #fff; color: var(--a-text); }
.a-verlauf { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.a-ich { align-self: flex-end; max-width: 88%; background: #1f4d7a; color: #fff; padding: 9px 12px; border-radius: 17px; border-bottom-right-radius: 5px; }
.a-karte { background: var(--a-card); border-radius: 15px; padding: 12px; box-shadow: 0 1px 2px rgba(23, 33, 48, .06), 0 4px 14px rgba(23, 33, 48, .08); }
.a-etikett { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #23578a; }
.a-karte h4 { margin: 3px 0 1px; font-size: 14.5px; }
.a-unter { color: var(--a-muted); font-size: 11.5px; }
.a-pos { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: var(--a-card2); display: grid; gap: 4px; font-size: 12px; }
.a-pos div { display: flex; justify-content: space-between; gap: 8px; }
.a-pos div span:last-child { white-space: nowrap; }
.a-summe { display: flex; justify-content: space-between; font-weight: 700; font-size: 13.5px; }
.a-hinweis { color: var(--a-muted); font-size: 11px; margin-top: 4px; }
.a-knoepfe { display: flex; gap: 6px; margin-top: 10px; }
.a-knoepfe span { flex: 1; text-align: center; padding: 8px 0; border-radius: 999px; font-weight: 700; font-size: 12.5px; border: 1.5px solid #e5e0d7; }
.a-knoepfe .haupt { background: #f2a516; border-color: #f2a516; color: #2a1c00; }
.a-eingabe { display: flex; align-items: center; gap: 8px; padding: 10px 10px 14px; border-top: 1px solid #e5e0d7; background: var(--a-card); }
.a-eingabe span { flex: 1; color: var(--a-muted); font-size: 12px; padding: 8px 12px; border-radius: 999px; background: var(--a-card2); }
.a-mic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #f2a516; color: #173a5e; }
.a-mic svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .a-ich { animation: rein .5s .3s both ease-out; }
  .a-karte { animation: rein .5s 1.2s both ease-out; }
  .a-mic { animation: puls 2.4s 2s infinite; }
}
@keyframes rein { from { opacity: 0; transform: translateY(10px); } }
@keyframes puls { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 165, 22, .5); } 50% { box-shadow: 0 0 0 9px rgba(242, 165, 22, 0); } }

/* ---------- Abschnitte ---------- */
section { padding: 72px 0; }
@media (min-width: 920px) { section { padding: 96px 0; } }
section.weiss { background: var(--card); }
.kopfzeile { max-width: 46em; margin-bottom: 40px; }
.kopfzeile .ueber { color: var(--warn); }
.kopfzeile p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.kurz { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--accent); background: var(--card2);
  border-radius: 0 12px 12px 0; font-size: 17px; color: var(--text) !important; }

/* Schritte */
.schritte { display: grid; gap: 16px; counter-reset: schritt; list-style: none; padding: 0; margin: 0; }
@media (min-width: 800px) { .schritte { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.schritte li { background: var(--bg); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.schritte li::before { counter-increment: schritt; content: counter(schritt); width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 20px; background: var(--accent); color: var(--accent-text); }
.schritte p { color: var(--muted); }
.schritte q { color: var(--text); font-style: italic; }

/* Beispiel */
.beispiel { display: grid; gap: 20px; align-items: start; }
@media (min-width: 880px) { .beispiel { grid-template-columns: .8fr 1.2fr; gap: 28px; } }
.diktat { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--schatten); display: grid; gap: 14px; }
.diktat .etikett, .rechnung .etikett { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 7px; }
.diktat .etikett svg, .rechnung .etikett svg { width: 16px; height: 16px; }
.diktat blockquote { margin: 0; font-size: 20px; line-height: 1.45; font-style: italic; }
.diktat .klein { font-size: 15px; color: var(--muted); }
.rechnung { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--schatten); display: grid; gap: 14px; min-width: 0; }
.rechnung .kunde { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 15px; color: var(--muted); }
.rechnung .kunde b { color: var(--text); font-size: 17px; }
.tabelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
td.z, th.z { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tfoot td { border-bottom: 0; padding-top: 6px; padding-bottom: 2px; }
tfoot tr.brutto td { font-weight: 800; font-size: 17px; padding-top: 10px; }
@media (max-width: 480px) {
  .rechnung, .diktat { padding: 18px 14px; }
  table { font-size: 14px; } th, td { padding: 8px 3px; } th { font-size: 10.5px; letter-spacing: .02em; }
}
.hinweisbox { font-size: 14.5px; color: var(--muted); background: var(--card2); border-radius: 12px; padding: 12px 14px; }
.hinweisbox b { color: var(--text); }

/* Kacheln */
.kacheln { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.kachel { background: var(--card); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; box-shadow: var(--schatten); }
section.weiss .kachel { background: var(--bg); box-shadow: none; }
.kachel .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px;
  background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--warn); }
.kachel .icon svg { width: 22px; height: 22px; }
.kachel p { color: var(--muted); font-size: 16px; }

/* Sicherheit */
.sicher { display: grid; gap: 0; border-top: 2px solid var(--text); }
.sicher > div { display: grid; grid-template-columns: 32px 1fr; gap: 4px 14px; align-content: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.sicher svg { width: 26px; height: 26px; color: var(--ok); margin-top: 2px; grid-row: span 2; }
.sicher p { color: var(--muted); }
@media (min-width: 880px) { .sicher { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* Voraussetzungen / Grenzen */
.zwei { display: grid; gap: 16px; }
@media (min-width: 800px) { .zwei { grid-template-columns: 1fr 1fr; gap: 20px; } }
.liste { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--schatten); }
.liste h3 { margin-bottom: 12px; }
.liste ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.liste li::marker { color: var(--accent); }
.liste .klein { margin-top: 14px; font-size: 15px; color: var(--muted); }
.wichtig { border: 2px solid var(--accent); }

/* Preis */
.preis { max-width: 640px; margin: 0 auto; background: var(--card); border-radius: 24px; padding: 32px 24px; text-align: center;
  box-shadow: var(--schatten); display: grid; gap: 14px; justify-items: center; }
section.weiss .preis { background: var(--bg); box-shadow: none; }
.preis .betrag { font-size: clamp(38px, 7vw, 54px); font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.preis .betrag small { font-size: 18px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.preis ul { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 8px; text-align: left; }
.preis li { display: flex; gap: 10px; align-items: flex-start; }
.preis li svg { width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }
.preis .klein { font-size: 14.5px; color: var(--muted); }

/* Über mich */
.person { display: grid; gap: 24px; align-items: center; max-width: 860px; }
@media (min-width: 700px) { .person { grid-template-columns: 160px 1fr; gap: 32px; } }
.foto { width: 160px; height: 160px; border-radius: 50%; background: var(--card2); border: 2px dashed var(--line);
  display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 20px; }
.person h2 { margin-bottom: 14px; }
.foto.initialen { border: 0; background: var(--brand); color: var(--accent); font-size: 52px; font-weight: 800; letter-spacing: -.02em; }
.person p + p { margin-top: 12px; }
.person .klein { color: var(--muted); font-size: 15px; }

/* Fragen */
.fragen { max-width: 820px; display: grid; gap: 10px; }
.fragen details { background: var(--card); border-radius: 14px; box-shadow: var(--schatten); }
section.weiss .fragen details { background: var(--bg); box-shadow: none; }
.fragen summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; font-size: 17.5px; position: relative; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--muted); line-height: 1; }
.fragen details[open] summary::after { content: "–"; }
.fragen details > div { padding: 0 20px 20px; color: var(--muted); display: grid; gap: 10px; }
.fragen details > div b { color: var(--text); }

/* Kontakt */
.kontakt { background: linear-gradient(160deg, var(--brand2), var(--brand) 70%); color: var(--brand-text); }
.kontakt .kopfzeile .ueber { color: var(--accent); }
.kontakt .kopfzeile p { color: rgba(255, 255, 255, .85); }
.wege { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.weg { display: grid; gap: 4px; padding: 22px; border-radius: var(--radius); text-decoration: none; color: inherit;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); transition: background .15s; }
.weg:hover { background: rgba(255, 255, 255, .14); }
.weg svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 8px; }
.weg b { font-size: 19px; }
.weg span { color: rgba(255, 255, 255, .78); font-size: 15.5px; overflow-wrap: anywhere; }
.kontakt .klein { margin-top: 28px; font-size: 15px; color: rgba(255, 255, 255, .75); }
.kontakt .klein a { color: #fff; }

/* Platzhalter: vor dem Veröffentlichen ersetzen */
.platzhalter, .weg .platzhalter { background: #fff3c4; color: #5a4300; border-radius: 4px; padding: 0 .25em; outline: 1px dashed #c99a00; justify-self: start; }

/* ---------- Fuß ---------- */
.fuss { padding: 36px 0 48px; font-size: 15px; color: var(--muted); }
.fuss .innen { display: grid; gap: 14px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fuss nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.fuss nav a:hover { text-decoration: underline; }
.fuss p { font-size: 13.5px; max-width: 60em; }

/* ---------- Unterseiten (Impressum, Datenschutz, 404) ---------- */
.text { max-width: 720px; margin: 32px auto 48px; padding: 28px 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--schatten); }
@media (max-width: 752px) { .text { margin: 0; border-radius: 0; box-shadow: none; } }
.text h1 { font-size: 30px; margin-bottom: 8px; }
.text h2 { font-size: 19px; font-weight: 700; margin: 26px 0 6px; letter-spacing: -.01em; }
.text p, .text li { overflow-wrap: anywhere; }
.text p + p { margin-top: 10px; }
.text ul { padding-left: 20px; }
.text .stand { color: var(--muted); font-size: 14px; }
