/* Vortex Landing Page — Tokens aus der App (Design-Richtung A) + Marken-Rot. Spec §3–§5. */
@font-face { font-family: "Britti Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/BrittiSans-Light.woff2") format("woff2"); }
@font-face { font-family: "Britti Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/BrittiSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Britti Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/BrittiSans-Semibold.woff2") format("woff2"); }
@font-face { font-family: "Britti Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/BrittiSans-Bold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --navy: #132A4C; --paper: #FBFAF7; --ink: #14171C; --slate: #3F5A73; --ice: #CFE1F2;
  --grey: #6B7078; --line: #E4E1DA; --chip: #E7EEF5; --surface: #FFFFFF; --surface-2: #F4F3EF;
  --on-navy: #F4F3EF; --navy-hover: #1C3A66;
  --success: #127F45; --warning: #D35400; --paid: #5B3FC4;
  --red: #E30613; /* nur Balken, Striche, Hero-Kante */
  --font: "Britti Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px; --gutter: 24px;
}
@media (min-width: 900px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Marke */
.brand { display: inline-flex; align-items: center; gap: .32em; font-weight: 700; font-size: 2rem; letter-spacing: -.02em; line-height: 1; text-decoration: none; }
.brand .bars { height: .58em; width: auto; flex: none; }
.brand .bars rect { fill: var(--red); }
.claim { display: flex; gap: 12px; align-items: stretch; }
.claim::before { content: ""; width: 2px; flex: none; background: var(--red); }
.claim span { display: block; text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; line-height: 1.55; font-weight: 400; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: background-color .15s ease, color .15s ease; white-space: nowrap; }
.btn-light { background: var(--surface); color: var(--navy); }
.btn-light:hover { background: var(--ice); }
.btn-navy { background: var(--navy); color: var(--on-navy); }
.btn-navy:hover { background: var(--navy-hover); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.cta-mail { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; font-weight: 400; }
.hero .cta-mail { color: var(--ice); }
.section .cta-mail { color: var(--slate); }

/* Hero */
.hero { position: relative; background: var(--navy); color: var(--on-navy); padding: 32px 0 40px; display: flex; flex-direction: column; }
.hero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 2px; background: var(--red); }
.hero .wrap { display: flex; flex-direction: column; flex: 1; gap: 56px; }
.hero-head { display: flex; align-items: center; justify-content: space-between; }
.hero-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; max-width: 900px; }
.hero h1 { font-size: clamp(2.25rem, 5.2vw, 4.5rem); line-height: 1.04; letter-spacing: -.025em; font-weight: 700; }
.hero .lead { font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.4; font-weight: 300; color: var(--ice); max-width: 760px; }
.hero-foot { padding-top: 24px; }
@media (min-width: 900px) { .hero { min-height: 100vh; padding: 40px 0 48px; } }

/* Abschnitte */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--grey); margin-bottom: 12px; font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.015em; font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.section p { color: var(--slate); }
.section h2 + p { margin-top: 16px; }
@media (max-width: 899px) { .section { padding: 64px 0; } }

/* Module (Text + Ansicht im Wechsel) */
.module { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.module:first-of-type { border-top: 0; padding-top: 0; }
.module-text h3 { font-size: 1.375rem; margin-bottom: 12px; }
.module-text p { max-width: 460px; }
@media (min-width: 900px) {
  .module { grid-template-columns: 1fr 1fr; gap: 64px; padding: 64px 0; }
  .module:nth-of-type(even) .module-text { order: 2; }
}

/* Ansichten: Karte, angeschnitten */
.view { position: relative; overflow: hidden; padding: 16px 0 0 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(19, 42, 76, .08); font-size: 14px; line-height: 1.4; width: 100%; }
/* Anschnitt nur ab 900 px: die Karte läuft an der AUSSENSEITE (weg vom Text) aus dem Sichtbereich; der
   überstehende Teil ist reines Karten-Padding, damit kein Inhalt (Spalten, Beträge, Knöpfe) gekappt wird. */
@media (min-width: 900px) {
  .card { --overhang: 48px; width: calc(100% + var(--overhang)); padding-right: var(--overhang); }
  .module:nth-of-type(even) .card { margin-left: calc(-1 * var(--overhang)); padding-right: 0; padding-left: var(--overhang); }
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-title { font-weight: 600; font-size: 15px; }
.card-sub { color: var(--grey); font-size: 12px; white-space: nowrap; }
.card-body { padding: 14px 18px 18px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--surface-2); vertical-align: middle; }
.tbl .num, .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.total td { border-top: 1px solid var(--ink); border-bottom: 0; font-weight: 600; }
.tbl .neg { color: var(--warning); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--surface); }
.pill-open { background: rgba(211, 84, 0, .9); color: var(--navy); }
.pill-ok { background: rgba(18, 127, 69, .9); }
.pill-paid { background: rgba(91, 63, 196, .9); }
.qr { width: 18px; height: 18px; display: inline-block; vertical-align: -4px; margin-right: 6px; }

/* Rapport-Ansicht */
.rapport { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .rapport { grid-template-columns: 1.2fr 1fr; } }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); font-weight: 600; margin-bottom: 2px; }
.field b { font-weight: 400; font-variant-numeric: tabular-nums; }
.livebox { background: var(--chip); border-radius: 8px; padding: 12px 14px; }
.livebox .row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.livebox .row.sum { border-top: 1px solid rgba(19, 42, 76, .2); margin-top: 6px; padding-top: 8px; font-weight: 600; }
.livebox .amount { font-size: 22px; font-weight: 300; font-variant-numeric: tabular-nums; }

/* Kostenvoranschlag: Freigabe-Leiste */
.approve { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.btn-sm { height: 34px; padding: 0 16px; font-size: 13px; }

/* Abschluss: Checkliste */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--surface-2); }
.checklist li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; }
.checklist li.done::before { background: var(--success); }
.checklist li.open::before { background: var(--surface); border: 1px solid var(--grey); }
.checklist li.open { color: var(--grey); }

/* Für wen / Warum Schweiz */
.cols { display: grid; grid-template-columns: 1fr; gap: 32px; }
.why { display: grid; grid-template-columns: 1fr; gap: 28px 48px; counter-reset: why; }
.why div { border-top: 1px solid var(--line); padding-top: 16px; }
.why .eyebrow { margin-bottom: 8px; }
@media (min-width: 640px) { .cols { grid-template-columns: repeat(3, 1fr); gap: 48px; } .why { grid-template-columns: repeat(2, 1fr); } }

/* Demo-Abschnitt */
.demo { text-align: center; }
.demo .section-head { margin: 0 auto 32px; }
.demo .cta-row { justify-content: center; }

/* Fuss */
.footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.footer .claim { color: var(--slate); }
.footer nav { display: flex; gap: 24px; font-size: .9375rem; color: var(--slate); }
.footer nav a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* Datenschutzseite */
.page-head { padding: 32px 0; border-bottom: 1px solid var(--line); }
.page-head .brand { color: var(--navy); font-size: 1.5rem; }
.article { max-width: 720px; padding: 64px 0 96px; }
.article h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; margin-bottom: 24px; letter-spacing: -.015em; }
.article h2 { font-size: 1.125rem; margin: 32px 0 8px; }
.article p { color: var(--slate); }

/* Unter 640 px (steht bewusst am Dateiende, damit es die Karten-Regeln oben überstimmt): kleinere Schrift und
   engere Zellen, Untertitel darf umbrechen; falls eine Tabelle trotzdem breiter ist, scrollt die Karte innen. */
@media (max-width: 639px) {
  .card { font-size: 12px; overflow-x: auto; }
  .card-sub { white-space: normal; text-align: right; }
  .tbl th, .tbl td { padding-left: 5px; padding-right: 5px; }
  .pill { padding: 2px 7px; font-size: 11px; }
  .qr { margin-right: 4px; }
}
