/*
 * rapport24 Homepage (E46.2) — Typografie als Hauptgestaltungsmittel.
 *
 * Bewusst nicht vorhanden: Farbverläufe über die ganze Fläche, schwebende Karten mit
 * Schlagschatten, Emoji als Symbole, animierte Zähler. Was die Seite trägt, ist Weissraum,
 * eine Textspalte in lesbarer Breite und eine einzige Akzentfarbe.
 *
 * Systemschriften statt Webfonts: eine Marketingseite, die auf eine Schriftdatei wartet,
 * widerspricht ihrer eigenen Aussage — und ein externer Font-Host wäre eine Bekanntgabe
 * von IP-Adressen ins Ausland, die in der Datenschutzerklärung stehen müsste.
 */

:root {
  --navy: #16264a;
  --navy-hover: #1e3260;
  --orange: #f47b20;
  --ink: #14181f;
  --muted: #4c5666;
  --line: #dde2e9;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;

  --measure: 34rem; /* Textspalte: rund 70 Zeichen */
  --wide: 60rem; /* Kopf, Fuss, Preisblöcke */
  --gap: clamp(3.5rem, 9vw, 6.5rem); /* Abstand zwischen den Abschnitten */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

@media (min-width: 40rem) {
  body {
    font-size: 1.125rem;
  }
}

/* --- Grundtypografie ---------------------------------------------------- */

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 650;
}

h3 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

a {
  color: var(--navy);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--orange);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

strong {
  font-weight: 650;
}

/* Sprungmarke für die Tastatur — sichtbar erst beim Fokus. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 10;
}

.skip:focus {
  left: 0;
}

/* --- Aufbau ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

.prose {
  max-width: var(--measure);
}

section {
  padding-block: var(--gap);
}

section + section {
  border-top: 1px solid var(--line);
}

/* Kleine Überschrift über dem Abschnitt — ersetzt ein Symbol. */
.kicker {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: clamp(1.15rem, 2.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
}

/* --- Kopfzeile ---------------------------------------------------------- */

.site-head {
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark svg {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}

.head-login {
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.6rem 0.25rem;
}

.head-login:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* --- Der eine Knopf ----------------------------------------------------- */

.cta {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.95rem 2rem;
  border-radius: 6px;
  min-height: 3rem;
}

.cta:hover {
  background: var(--navy-hover);
  color: #fff;
}

.cta-note {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* --- Aufmacher ---------------------------------------------------------- */

.hero {
  padding-block: clamp(3.5rem, 11vw, 7rem) var(--gap);
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .lead {
  max-width: var(--measure);
  margin-bottom: 2.25rem;
}

/* --- Problem → Antwort -------------------------------------------------- */

.problems {
  display: grid;
  gap: 2.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 48rem) {
  .problems {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 3.5rem;
  }
}

.problem {
  border-left: 3px solid var(--line);
  padding-left: 1.25rem;
}

.problem .pain {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.6rem;
}

.problem .fix {
  margin-bottom: 0;
}

/* --- Das eine Bild ------------------------------------------------------ */

.shot {
  margin: 0;
  padding-block: var(--gap);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

/* Das Demovideo ist im Hochformat aufgenommen (436 × 850) — es zeigt ein Telefon, also
   bekommt es die Breite eines Telefons und nicht die halbe Seite. `aspect-ratio` reserviert
   den Platz, bevor die Datei geladen ist: sonst springt der Text darunter beim Laden. */
.shot-frame {
  max-width: 300px;
  margin-inline: auto;
}

.shot-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 436 / 850;
  background: #000;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.shot figcaption {
  max-width: var(--measure);
  margin: 1.5rem auto 0;
  padding-inline: 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* --- Funktionsumfang ----------------------------------------------------- */

.modules {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.75rem;
}

@media (min-width: 52rem) {
  .modules {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.module {
  border-top: 3px solid var(--navy);
  padding-top: 1.25rem;
}

.module h3 {
  margin-bottom: 0.35rem;
}

.module-why {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.module ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
}

.module li {
  padding: 0.4rem 0 0.4rem 1.1rem;
  position: relative;
  line-height: 1.45;
}

/* Ein schlichter Strich statt eines Aufzählungspunkts oder eines Symbols. */
.module li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 0.5rem;
  height: 1px;
  background: var(--orange);
}


/* --- Preis -------------------------------------------------------------- */

.price-claim {
  max-width: var(--measure);
  font-size: clamp(1.15rem, 2.6vw, 1.375rem);
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

.plans {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 44rem) {
  .plans {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.plan {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem;
}

.plan.is-main {
  border-color: var(--navy);
  border-width: 2px;
}

.plan h3 {
  margin-bottom: 0.35rem;
}

.plan .amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.plan .per {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  line-height: 1.4;
  margin-top: 0.2rem;
}

/* „ab 25 Mitarbeitern“ — gehört zum Titel, darf ihn aber nicht überschreien. */
.plan-tag {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  vertical-align: middle;
}

/* Eine Rechnung mit echten Zahlen erspart die Rückfrage „und was heisst das für uns?“. */
.price-example {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Die kleine Stufe innerhalb der KMU-Kachel. Abgesetzt wie `.price-example`, aber mit
   sichtbarem Betrag: sie ist ein Preis, kein Hinweis. Kleiner als `.amount`, damit die
   Kachel weiterhin einen Hauptpreis hat und nicht zwei gleich laute. */
.plan-tier {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.tier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.tier-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.tier-note {
  margin-bottom: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  font-size: 1rem;
}

.plan li {
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  position: relative;
}

/* Ein Haken aus CSS statt einer Symbolschrift oder eines Emoji. */
.plan li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.85rem;
  border: solid var(--orange);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.price-fineprint {
  max-width: var(--measure);
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* --- Schritte ----------------------------------------------------------- */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  max-width: var(--measure);
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 2rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
  font-weight: 650;
  font-size: 1rem;
}

.steps h3 {
  margin-bottom: 0.3rem;
}

.steps p {
  margin-bottom: 0;
}

/* Zugangsdaten der Demofirma. */
.demo-box {
  max-width: var(--measure);
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 1rem;
}

.demo-box h3 {
  margin-bottom: 1rem;
}

.demo-box .cta {
  margin-bottom: 0;
}

.demo-box .warn {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* --- Kontakt & Fusszeile ------------------------------------------------ */

.contact {
  font-size: 1.0625rem;
}

.contact a {
  overflow-wrap: anywhere;
}

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.site-foot a {
  color: var(--muted);
}

.site-foot a:hover {
  color: var(--navy);
}

/* --- Rechtsseiten (Impressum, Datenschutz) ------------------------------ */

.legal {
  padding-block: clamp(2.5rem, 7vw, 4rem) var(--gap);
}

.legal .prose {
  max-width: 40rem;
}

.legal h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 2.75rem;
  margin-bottom: 0.6rem;
}

.legal h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
}

.legal ul {
  padding-left: 1.25rem;
  margin: 0 0 1.1em;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9375rem;
}

.legal address {
  font-style: normal;
  margin-bottom: 1.1em;
}

/* Noch auszufüllende Angabe. Muss auffallen, damit sie nicht live geht. */
.todo {
  background: #fff3e6;
  border-bottom: 2px solid var(--orange);
  padding: 0 0.25rem;
  font-weight: 650;
  white-space: nowrap;
}

@media print {
  .site-head,
  .site-foot,
  .cta {
    display: none;
  }
}
