/*
 * erinno.ch — eine Datei für alle Seiten.
 *
 * Dieselben Grundsätze wie in der App: heller Grund, dunkle Schrift, Kontrast
 * gerechnet statt geschätzt (Fliesstext mindestens 7:1), grosse Schrift und
 * grosse Klickflächen. Wer Erinno braucht, liest oft schlechter als die Leute,
 * die Webseiten gestalten — die Seite soll für sie gebaut sein, nicht für einen
 * Wettbewerb. Kein Dunkelmodus, aus demselben Grund wie in der App.
 */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('fonts/atkinson-hyperlegible-next.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --ink: #0f1d3d;        /* Schrift: 16.2:1 auf Weiss */
  --ink-2: #3a4560;      /* Nebentext: 9.6:1 auf Weiss, 9.0:1 auf --paper */
  --blue: #0b4fc4;       /* Markenblau der App: 6.6:1 mit Weiss */
  --blue-deep: #0a3c9c;
  --blue-soft: #eaf0fd;
  --amber: #ffb648;      /* nur Fläche und Schmuck, nie Schrift auf Weiss */
  --amber-soft: #ffe7bf;
  --amber-ink: #5a3600;  /* auf --amber-soft: 7.9:1 */
  --paper: #fbfaf7;
  --paper-2: #f3f1ea;
  --line: #dedbd1;
  --night: #0d1e45;
  --on-night: #ffffff;
  --on-night-soft: #c3cce0; /* 10.1:1 auf --night */

  /* Typfarben wie in der App, damit Bild und Text zusammenpassen. */
  --typ-aufgabe: #0b4fc4;
  --typ-liste: #146633;
  --typ-erinnerung: #5b3fa8;
  --typ-beleg: #f5b800;

  --wrap: 1120px;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(15, 29, 61, 0.06), 0 12px 32px rgba(15, 29, 61, 0.1);
}

* { box-sizing: border-box; }

html {
  font-size: 112.5%; /* 18 px Grundschrift */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-deep); }

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.3rem, 3.4vw + 1rem, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 2.4vw + 1rem, 2.8rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100;
}
.skip:focus { top: 12px; color: #fff; }

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

.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.kopf .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }

.marke {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em;
}
.marke svg { width: 40px; height: 40px; flex: none; }
.marke:hover { color: var(--ink); }

.beta {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  line-height: 1; padding: 6px 10px; border-radius: 999px;
  background: var(--amber-soft); color: var(--amber-ink);
}

.nav { display: none; margin-left: auto; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600;
  padding: 10px 14px; border-radius: 10px;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.kopf .knopf { margin-left: auto; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .kopf .knopf { margin-left: 8px; }
}

/* --- Knöpfe -------------------------------------------------------------- */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap;
  background: var(--blue); color: #fff; border: 2px solid var(--blue);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.knopf:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.knopf:active { transform: translateY(1px); }
.knopf svg { width: 22px; height: 22px; }
.knopf--gross { min-height: 60px; padding: 0 30px; font-size: 1.1rem; border-radius: 16px; }
.knopf--hell { background: transparent; color: var(--ink); border-color: var(--line); }
.knopf--hell:hover { background: #fff; color: var(--ink); border-color: var(--ink-2); }
.knopf--weiss { background: #fff; color: var(--blue-deep); border-color: #fff; }
.knopf--weiss:hover { background: var(--blue-soft); color: var(--blue-deep); border-color: var(--blue-soft); }
.kopf .knopf { min-height: 46px; padding: 0 18px; }

/* --- Bühne --------------------------------------------------------------- */

.buehne { padding: 40px 0 72px; overflow: hidden; }
.buehne .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .buehne { padding: 64px 0 96px; }
  .buehne .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
}

.vorzeile {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-weight: 700; color: var(--ink-2); margin-bottom: 20px;
}
.vorzeile .beta { font-size: 0.85rem; }

.buehne h1 .punkt { color: var(--blue); }
.buehne .lead { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); color: var(--ink-2); margin-top: 22px; max-width: 34em; }

.handlung { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.vertrauen-zeile {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-weight: 600;
}
.vertrauen-zeile li { display: inline-flex; align-items: center; gap: 8px; }
.vertrauen-zeile svg { width: 22px; height: 22px; color: var(--blue); flex: none; }

/* Telefon mit echtem Bildschirmfoto der App. */
.telefon {
  position: relative; width: min(330px, 78vw); margin: 0 auto;
  border-radius: 46px; padding: 10px; background: #0b1530;
  box-shadow: 0 2px 4px rgba(15, 29, 61, 0.15), 0 30px 60px -10px rgba(15, 29, 61, 0.35);
}
.telefon img { border-radius: 37px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; background: #fff; }
.telefon--klein { width: min(290px, 74vw); }

.buehne-bild { position: relative; padding: 20px 0 10px; }
.buehne-bild::before {
  content: ''; position: absolute; inset: 8% -20% 0 -20%;
  background:
    radial-gradient(closest-side, rgba(47, 111, 228, 0.18), transparent 70%),
    radial-gradient(closest-side at 70% 30%, rgba(255, 182, 72, 0.22), transparent 70%);
  z-index: -1;
}

/* Die Mitteilung, wie sie auf dem Sperrbildschirm erscheint. */
.mitteilung {
  position: absolute; left: max(-10px, calc(50% - 250px)); top: 64px; z-index: 2;
  display: flex; gap: 12px; align-items: flex-start;
  width: min(330px, 84vw); padding: 14px 16px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.96); box-shadow: var(--shadow);
  border: 1px solid rgba(15, 29, 61, 0.06);
}
.mitteilung svg { width: 42px; height: 42px; flex: none; }
.mitteilung small { display: block; color: var(--ink-2); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; }
.mitteilung strong { display: block; font-size: 0.95rem; }
.mitteilung span { display: block; font-size: 0.95rem; color: var(--ink); line-height: 1.35; }

.sprechblase {
  position: absolute; right: max(-6px, calc(50% - 240px)); bottom: 70px; z-index: 2;
  max-width: 220px; padding: 12px 16px; border-radius: 18px 18px 4px 18px;
  background: var(--blue); color: #fff; font-weight: 600; line-height: 1.35; box-shadow: var(--shadow);
}

@media (max-width: 420px) {
  .mitteilung { top: 30px; }
  .sprechblase { bottom: 40px; max-width: 190px; font-size: 0.95rem; }
}

/* --- Abschnitte ---------------------------------------------------------- */

.abschnitt { padding: 80px 0; }
.abschnitt--hell { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.abschnitt--nacht { background: var(--night); color: var(--on-night); }
.abschnitt--nacht a:not(.knopf) { color: #fff; }
@media (min-width: 960px) { .abschnitt { padding: 110px 0; } }

.kicker {
  display: inline-block; font-weight: 700; color: var(--blue); letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 0.85rem; margin-bottom: 14px;
}
.abschnitt--nacht .kicker { color: var(--amber); }

.titel { max-width: 46rem; margin-bottom: 48px; }
.titel p { margin-top: 18px; font-size: 1.15rem; color: var(--ink-2); }
.abschnitt--nacht .titel p { color: var(--on-night-soft); }

/* Drei Wege hinein */
.wege { display: grid; gap: 20px; }
@media (min-width: 820px) { .wege { grid-template-columns: repeat(3, 1fr); } }
.weg {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.weg h3 { margin: 18px 0 10px; }
.weg p { color: var(--ink-2); }
.weg .beispiel {
  margin-top: 18px; padding: 12px 16px; border-radius: 14px; background: #fff;
  border: 1px dashed var(--line); font-weight: 600; color: var(--ink);
}

.symbol {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--blue-soft); color: var(--blue);
}
.symbol svg { width: 28px; height: 28px; }

figure { margin: 0; }

.unterzeile { margin: 18px 0 28px; color: var(--ink-2); font-size: 1.15rem; }

/* Zweispaltig: Text neben Bild */
.paar { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .paar { grid-template-columns: 1fr 1fr; gap: 72px; }
  .paar--umgekehrt > :first-child { order: 2; }
}

.typen { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.typ {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start;
  padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
}
.typ .marke-typ {
  grid-row: span 2; align-self: start; margin-top: 2px;
  display: inline-block; min-width: 7.2em; text-align: center;
  font-size: 0.85rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; color: #fff;
}
.typ p { color: var(--ink-2); }
.marke-typ--aufgabe { background: var(--typ-aufgabe); }
.marke-typ--liste { background: var(--typ-liste); }
.marke-typ--erinnerung { background: var(--typ-erinnerung); }
.marke-typ--beleg { background: var(--typ-beleg); color: #1a1c20 !important; }

.hinweis {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 22px;
  padding: 18px 20px; border-radius: 18px; background: var(--blue-soft);
}
.hinweis svg { width: 26px; height: 26px; color: var(--blue); flex: none; margin-top: 2px; }

/* Zwei Telefone nebeneinander */
.telefone { display: flex; justify-content: center; gap: 18px; align-items: flex-start; }
.telefone .telefon { width: min(270px, 44vw); border-radius: 38px; padding: 8px; }
.telefone .telefon img { border-radius: 31px; }
.telefone .telefon:nth-child(2) { margin-top: 48px; }
@media (max-width: 520px) {
  .telefone { gap: 10px; }
  .telefone .telefon { border-radius: 26px; padding: 5px; }
  .telefone .telefon img { border-radius: 22px; }
}

.punkte { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.punkte li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.punkte .haken {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue); margin-top: 1px;
}
.punkte .haken svg { width: 18px; height: 18px; }
.punkte strong { display: block; }
.punkte span { color: var(--ink-2); }

.zitat {
  margin: 28px 0 0; padding: 20px 22px; border-left: 4px solid var(--amber);
  background: #fff; border-radius: 0 16px 16px 0; font-size: 1.1rem;
}
.zitat footer { margin-top: 8px; font-size: 0.95rem; color: var(--ink-2); }

/* Lesbarkeit */
.karten { display: grid; gap: 18px; }
@media (min-width: 700px) { .karten { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .karten { grid-template-columns: repeat(3, 1fr); } }
.karte {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.karte h3 { margin: 16px 0 8px; }
.karte p { color: var(--ink-2); }

.stimme { margin-top: 56px; }

.schrift-probe {
  display: flex; align-items: baseline; gap: 14px; margin-top: 14px; color: var(--ink);
  font-weight: 700;
}
.schrift-probe span:nth-child(1) { font-size: 1rem; }
.schrift-probe span:nth-child(2) { font-size: 1.2rem; }
.schrift-probe span:nth-child(3) { font-size: 1.45rem; }

/* Vertrauen */
.saeulen { display: grid; gap: 18px; }
@media (min-width: 760px) { .saeulen { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .saeulen { grid-template-columns: repeat(3, 1fr); } }
.saeule {
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 26px;
  background: rgba(255, 255, 255, 0.04);
}
.saeule h3 { margin: 16px 0 8px; color: #fff; }
.saeule p { color: var(--on-night-soft); }
.saeule .symbol { background: rgba(255, 255, 255, 0.1); color: var(--amber); }
.mehr { margin-top: 36px; }

/* Beta */
.beta-kasten {
  display: grid; gap: 28px; padding: 36px; border-radius: 28px;
  background: linear-gradient(135deg, #fff7e8, var(--amber-soft));
  border: 1px solid #f3d9a8;
}
@media (min-width: 900px) { .beta-kasten { grid-template-columns: 1.1fr 1fr; padding: 52px; align-items: center; } }
.beta-kasten h2 { margin-top: 16px; }
.beta-kasten p { color: #3f2a07; font-size: 1.1rem; margin-top: 14px; }
.beta-kasten ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.beta-kasten li { display: grid; grid-template-columns: auto 1fr; gap: 12px; color: #3f2a07; }
.beta-kasten li svg { width: 24px; height: 24px; color: var(--amber-ink); margin-top: 2px; }
.beta-kasten strong { color: var(--ink); }

/* Häufige Fragen */
.faq { display: grid; gap: 12px; max-width: 52rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 22px;
}
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.1rem;
  padding: 20px 36px 20px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px;
  border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); }
.faq details > div p + p, .faq details > div ol, .faq details > div p + ul { margin-top: 12px; }
.faq ol, .faq ul { padding-left: 1.3em; margin: 0; }
.faq li + li { margin-top: 6px; }

/* Schluss */
.schluss { text-align: center; }
.schluss .wrap {
  padding-top: 64px; padding-bottom: 64px; border-radius: 32px;
  background: linear-gradient(135deg, #2f6fe4, #0a3c9c); color: #fff;
}
.schluss h2 { color: #fff; }
.schluss p { margin: 16px auto 0; max-width: 34rem; font-size: 1.15rem; color: #e3ebff; }
.schluss .handlung { justify-content: center; }
.schluss a:not(.knopf) { color: #fff; }
.schluss-rahmen { padding: 96px 20px; }
.schluss p.klein { font-size: 1rem; margin-top: 24px; }

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

.fuss { border-top: 1px solid var(--line); padding: 44px 0 56px; background: var(--paper); }
.fuss .wrap { display: grid; gap: 28px; }
@media (min-width: 820px) { .fuss .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.fuss p { color: var(--ink-2); margin-top: 10px; max-width: 28rem; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.fuss nav a {
  color: var(--ink); font-weight: 600; text-decoration: none; padding: 10px 12px; border-radius: 10px;
}
.fuss nav a:hover { background: var(--paper-2); }
.fuss small { display: block; margin-top: 18px; color: var(--ink-2); font-size: 0.9rem; }

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

.text { padding: 56px 0 96px; }
.text .wrap { max-width: 50rem; }
.text h1 { font-size: clamp(2.1rem, 3vw + 1rem, 3.2rem); }
.text .stand { margin-top: 12px; color: var(--ink-2); }
.text h2 { font-size: 1.6rem; margin: 56px 0 16px; padding-top: 8px; scroll-margin-top: 96px; }
.text h3 { margin: 30px 0 10px; }
.text p, .text ul, .text ol, .text dl, .text table { margin: 0 0 14px; }
.text ul, .text ol { padding-left: 1.3em; }
.text li + li { margin-top: 6px; }
.text .kurz {
  margin-top: 32px; padding: 24px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
}
.text .kurz h2 { margin-top: 0; font-size: 1.3rem; }
.text .kurz ul { margin-bottom: 0; }
.text dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; }
.text dt { font-weight: 700; }
.text dd { margin: 0; }
@media (max-width: 520px) {
  .text dl { grid-template-columns: 1fr; gap: 2px; }
  .text dd { margin-bottom: 10px; }
}
.inhalt { margin-top: 28px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.inhalt a {
  display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem;
}
.inhalt a:hover { border-color: var(--ink-2); }

.tabelle { overflow-x: auto; margin-bottom: 14px; }
.text table { border-collapse: collapse; width: 100%; min-width: 34rem; background: #fff; }
.text th, .text td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
.text th { background: var(--paper-2); }

.fehlerseite { padding: 96px 0 120px; text-align: center; }
.fehlerseite p { margin: 18px auto 0; max-width: 30rem; color: var(--ink-2); font-size: 1.15rem; }
.fehlerseite .handlung { justify-content: center; }
