/*
 * votio.ch — Produktseite, Datenschutz, Impressum.
 * Farben: Theme «Taubenblau» der App (votio-doku, konzepte/ui-sprache.md), hell und dunkel nach dem
 * Gerät. Schrift: Geist, selbst ausgeliefert (keine externen Schriften, kein CDN).
 * Das eine Auffällige der Seite ist der Schweif aus dem Logo: Das «o» mit Schweif ist eine Sprechblase,
 * und die Bilder der App hängen an so einem Schweif. Alles andere bleibt ruhig.
 */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  /* Taubenblau hell */
  --grund: #f3f5f7;
  --flaeche: #ffffff;
  --linie: #dfe7ef;
  --text: #22303f;
  --gedaempft: #566a7e;
  --marke: #34506f;
  --akzent: #557a9b;
  --akzent-text: #44698b;
  --kachel: #dfe7ef;
  --knopf-text: #ffffff;

  --radius-control: 8px;
  --radius-card: 12px;
  --radius-bubble: 22px;
  --seite: 1080px;
  --lese: 36rem;
  --rand: clamp(20px, 5vw, 28px);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Taubenblau dunkel */
    --grund: #1a2533;
    --flaeche: #233144;
    --linie: #33475f;
    --text: #f3f5f7;
    --gedaempft: #a9b8c7;
    --marke: #f3f5f7;
    --akzent: #a9c1d6;
    --akzent-text: #a9c1d6;
    --kachel: #2c3e56;
    --knopf-text: #1a2533;
  }
}

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

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  font-feature-settings: "ss01" off;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--akzent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--rand);
  top: 12px;
  z-index: 10;
  background: var(--flaeche);
  padding: 8px 12px;
  border-radius: var(--radius-control);
}

.wrap {
  width: 100%;
  max-width: calc(var(--seite) + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

/* ---------- Kopf ---------- */

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
.kopf .marke {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-control);
}
.kopf .marke img {
  height: 30px;
  width: auto;
}
.kopf nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sprache {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  color: var(--gedaempft);
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: var(--radius-control);
}
.sprache:hover {
  color: var(--text);
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-control);
  background: var(--marke);
  color: var(--knopf-text);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid var(--marke);
}
.knopf:hover {
  background: var(--akzent-text);
  border-color: var(--akzent-text);
}
@media (prefers-color-scheme: dark) {
  .knopf:hover {
    background: var(--akzent);
    border-color: var(--akzent);
  }
}
.knopf.linie {
  background: transparent;
  color: var(--text);
  border-color: var(--linie);
}
.knopf.linie:hover {
  border-color: var(--akzent);
}

/* ---------- Start ---------- */

.held {
  padding-top: clamp(32px, 7vw, 88px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.held h1 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2.125rem, 1.2rem + 4.2vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--marke);
  text-wrap: balance;
}
.held .satz {
  margin: 22px 0 0;
  max-width: var(--lese);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.5;
  color: var(--gedaempft);
  text-wrap: pretty;
}
.held .aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 30px;
}
.held .aktionen small {
  color: var(--gedaempft);
  font-size: 0.875rem;
}

/*
 * Die Bühne: ein Bild der App in einer Sprechblase, mit dem Schweif des «o» aus dem Logo unten links.
 * Am Schreibtisch liegt das Telefon rechts darüber.
 */
.buehne {
  position: relative;
  margin-top: clamp(36px, 6vw, 64px);
  padding-bottom: 34px;
}
.blase {
  position: relative;
  border: 1px solid var(--linie);
  border-radius: var(--radius-bubble);
  background: var(--flaeche);
  padding: clamp(6px, 1vw, 10px);
}
.blase > picture img,
.blase > img {
  border-radius: calc(var(--radius-bubble) - 8px);
  width: 100%;
}
.schweif {
  position: absolute;
  left: clamp(28px, 6vw, 64px);
  bottom: -33px;
  width: 46px;
  height: 36px;
  color: var(--flaeche);
}
.schweif path.fuellung {
  fill: currentColor;
}
.schweif path.rand {
  fill: none;
  stroke: var(--linie);
  stroke-width: 1;
}
.telefon {
  display: none;
}
@media (min-width: 900px) {
  .buehne {
    padding-right: 120px;
  }
  .telefon {
    display: block;
    position: absolute;
    right: 0;
    bottom: -10px;
    width: 236px;
    border: 1px solid var(--linie);
    border-radius: 30px;
    background: var(--flaeche);
    padding: 7px;
    box-shadow: 0 18px 40px -18px rgb(26 37 51 / 0.35);
  }
  .telefon img {
    border-radius: 23px;
  }
}

/* ---------- Ablauf ---------- */

.abschnitt {
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--linie);
}
.abschnitt > .wrap > h2,
.kopfzeile h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 24ch;
  text-wrap: balance;
}
.kopfzeile p {
  margin: 14px 0 0;
  max-width: var(--lese);
  color: var(--gedaempft);
}

.ablauf {
  list-style: none;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(48px, 7vw, 88px);
}
.schritt {
  display: grid;
  gap: 22px;
  align-items: center;
}
@media (min-width: 860px) {
  .schritt {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
  }
}
.schritt h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}
/* Der Kreislauf ist eine Folge: darum die kleine Stufe vor dem Titel. */
.schritt .stufe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--kachel);
  color: var(--marke);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.schritt p {
  margin: 10px 0 0;
  color: var(--gedaempft);
  max-width: 30rem;
  text-wrap: pretty;
}
.schritt figure {
  margin: 0;
  border: 1px solid var(--linie);
  border-radius: var(--radius-card);
  background: var(--flaeche);
  padding: 6px;
}
.schritt figure img {
  border-radius: 7px;
  width: 100%;
}
.zurueck {
  margin-top: clamp(36px, 5vw, 56px);
  color: var(--gedaempft);
  max-width: var(--lese);
}

/* ---------- Drei Punkte ---------- */

.punkte {
  display: grid;
  gap: 28px 40px;
  margin-top: clamp(28px, 4vw, 44px);
}
@media (min-width: 760px) {
  .punkte {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.punkte h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
}
.punkte p {
  margin: 8px 0 0;
  color: var(--gedaempft);
  font-size: 0.9375rem;
}

/* ---------- Preise ---------- */

.preise {
  display: grid;
  gap: 18px;
  align-items: end;
}
@media (min-width: 760px) {
  .preise {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
.preise p {
  margin: 14px 0 0;
  max-width: var(--lese);
  color: var(--gedaempft);
}

/* ---------- Textseiten ---------- */

.text {
  max-width: 44rem;
  padding-top: clamp(24px, 5vw, 56px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
.text h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 600;
  color: var(--marke);
}
.text h2 {
  margin: 40px 0 8px;
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 600;
}
.text h3 {
  margin: 24px 0 6px;
  font-size: 1rem;
  font-weight: 600;
}
.text p,
.text li {
  max-width: 40rem;
}
.text ul {
  padding-left: 1.2em;
}
.text li + li {
  margin-top: 4px;
}
.text .stand {
  color: var(--gedaempft);
  font-size: 0.9375rem;
  margin: 0;
}
.hinweis {
  margin: 20px 0 8px;
  padding: 14px 16px;
  border: 1px solid #f0c27a;
  border-radius: var(--radius-card);
  background: #fff6e6;
  color: #6b4500;
  font-size: 0.9375rem;
}
@media (prefers-color-scheme: dark) {
  .hinweis {
    border-color: #7a5a24;
    background: #2e2716;
    color: #f3d9a4;
  }
}
.kontakt {
  font-style: normal;
  margin: 16px 0 20px;
}
.tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-top: 8px;
}
.tabelle th,
.tabelle td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--linie);
}
.tabelle th {
  font-weight: 600;
  color: var(--gedaempft);
  font-size: 0.875rem;
}
@media (max-width: 620px) {
  .tabelle thead {
    display: none;
  }
  .tabelle tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--linie);
  }
  .tabelle td {
    display: block;
    border: 0;
    padding: 2px 0;
  }
  .tabelle td:first-child {
    font-weight: 600;
  }
}

/* ---------- Fuss ---------- */

.fuss {
  border-top: 1px solid var(--linie);
  padding-block: 28px 36px;
  color: var(--gedaempft);
  font-size: 0.875rem;
}
.fuss .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.fuss a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--gedaempft);
}
.fuss a:hover {
  color: var(--text);
}
.fuss .klein img {
  height: 18px;
  width: auto;
}

/* Logo und Bilder: je ein Satz für hell und dunkel, ohne Skript. */
.nur-dunkel {
  display: none;
}
@media (prefers-color-scheme: dark) {
  .nur-hell {
    display: none;
  }
  .nur-dunkel {
    display: block;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .buehne .blase,
  .buehne .telefon {
    animation: auftauchen 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .buehne .telefon {
    animation-delay: 220ms;
  }
  @keyframes auftauchen {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Am Telefon zeigt die Blase den Chat am Telefon: Das Bild vom Schreibtisch wäre dort nicht lesbar. */
@media (max-width: 639px) {
  .buehne .blase {
    max-width: 300px;
  }
}
