/* ratiomea.ch – eine Datei, keine fremden Schriften, keine Skripte (Datenschutz: nichts von Dritten nachladen). */
:root {
  --grund: #F7F4EE; --flaeche: #FFFFFF; --text: #10231F; --leise: #4A5856; --akzent: #267A75; --linie: #E2DDD3;
  --mark: #FFF1C2; --mark-text: #5A4300;
  --zart: #E3EFED; --dunkel: #1F3D39; --dunkel-text: #F2F6F5; --dunkel-leise: #C5D6D3; --hell-knopf: #FFFFFF; --hell-knopf-text: #10231F;
  --logo-flaeche: transparent; --logo-rand: 0px;
  --haupt: #267A75; --haupt-text: #FFFFFF; --laptop: #26302E;
}
@media (prefers-color-scheme: dark) {
  :root { /* Enver 17.11.2026 (b): hellerer, warmer Dunkelton, Karten etwas heller; Schrift ≥ 4,5:1 (design-1711). Praxis-Karte (--dunkel) seit 18.11. heller als der Grund. */
          --grund: #1B2A27; --flaeche: #24362F; --text: #EEF2F0; --leise: #B3C2BE; --akzent: #86CEC5; --linie: #365048;
          --mark: #4A3B0B; --mark-text: #FFE7A3;
          --zart: #2C4440; --dunkel: #324E48; --dunkel-text: #EEF2F0; --dunkel-leise: #B3C2BE; --hell-knopf: #EEF2F0; --hell-knopf-text: #10231F;
          /* Teil 1 (18.11.2026): helle Fläche hinter dem Logo PEAK NUTRITION (Logo unverändert, Oliv auf Weiss). */
          --logo-flaeche: #FFFFFF; --logo-rand: 6px;
          /* Teil 5 (18.11.2026): Hauptknopf auf hellem bzw. dunklem Grund, Laptop-Rahmen der Praxis-Bilder. */
          --haupt: #86CEC5; --haupt-text: #10231F; --laptop: #61807A; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text);
       font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
       overflow-wrap: anywhere; }
a { color: var(--akzent); }
header, main, footer { max-width: 720px; margin: 0 auto; padding: 0 16px; }
/* Punkt 4 (17.11.2026): Kopf klebt oben, nur CSS. */
.kopf { position: sticky; top: 0; z-index: 10; background: var(--grund); border-bottom: 1px solid var(--linie); }
header { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding-top: 6px; padding-bottom: 6px; }
[id] { scroll-margin-top: 96px; }
header .marke { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; margin-right: auto; min-height: 44px; }
header .marke img { width: 32px; height: 32px; border-radius: 12px; }
header nav { display: flex; gap: 0 16px; flex-wrap: wrap; }
header nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
header nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; }
main { padding-bottom: 40px; }
h1 { font-size: 30px; line-height: 1.2; margin: 24px 0 8px; text-wrap: balance; }
h2 { font-size: 21px; margin: 28px 0 6px; text-wrap: balance; }
h3 { font-size: 17px; margin: 28px 0 4px; text-wrap: balance; }
p, li { max-width: 65ch; }
.stand { color: var(--leise); margin-top: 0; }
.kasten { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 20px; padding: 16px; margin: 12px 0; }
.kasten > h2:first-child { margin-top: 0; }
mark.platzhalter { background: var(--mark); color: var(--mark-text); padding: 0 4px; border-radius: 4px; font-weight: 600; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--linie); }
.tabelle { overflow-x: auto; }
details { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 20px; padding: 0 16px; margin: 12px 0; }
details[open] { padding-bottom: 16px; }
summary { font-weight: 600; font-size: 18px; cursor: pointer; display: list-item; min-height: 44px; padding: 8px 0; }
footer { color: var(--leise); font-size: 15px; padding-bottom: 32px; border-top: 1px solid var(--linie); padding-top: 16px; }
footer nav { display: flex; gap: 0 16px; flex-wrap: wrap; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* Startseite nach Bild 26 (Auftrag Webseite 17.11.2026, Punkt 3): breiter, Bänder statt Fliesstext. */
body.start header, body.start main, body.start footer { max-width: 1080px; }
.start h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 18ch; }
.start h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 20px; }
/* Paket 18.11.2026, Teil 3: oben links Motto, Satz und Links, rechts der Zusammenschnitt (über beide Zeilen); auf dem Handy das Video
   direkt unter dem Motto (Reihenfolge im HTML: Motto, Video, Satz). */
.einstieg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "titel clip" "text clip";
  column-gap: 40px; align-items: center; padding: 40px 0 48px; }
.einstieg h1 { grid-area: titel; align-self: end; }
.einstieg-text { grid-area: text; align-self: start; }
.einstieg-clip { grid-area: clip; margin: 0; }
.einstieg-clip video, .clip-standbild { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; background: var(--flaeche); }
.clip-standbild { display: none; }
.einstieg-clip figcaption { margin-top: 8px; font-size: 14px; color: var(--leise); }
.clip-tempo { font-weight: 600; color: var(--text); }
.clip-ki { display: block; font-size: 13px; }
/* Bei «Bewegung reduzieren» nur das Standbild – nur CSS. */
@media (prefers-reduced-motion: reduce) {
  .einstieg-clip video { display: none; }
  .clip-standbild { display: block; }
}
.lead { font-size: 18px; color: var(--leise); max-width: 46ch; }
.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
/* «Bald im App Store» ist kein Link → ruhige Kapsel, kein Hauptknopf (Regel 7, Enver 17.11.). Ist die App im Store, wird es der dunkle Knopf mit Link. */
.appstore { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; font-weight: 600; font-size: 15px;
  color: var(--leise); background: transparent; border: 1px solid var(--linie); border-radius: 999px; }
.aktionen a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.band, .gruende { padding: 40px 0; }
.band { background: var(--flaeche); box-shadow: 0 0 0 100vmax var(--flaeche); clip-path: inset(0 -100vmax); }
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.karte { background: var(--grund); border: 1px solid var(--linie); border-radius: 20px; padding: 16px; }
.karte h3 { margin: 12px 0 6px; font-size: 18px; }
.karte p { margin: 0; color: var(--leise); font-size: 16px; }
.symbol { color: var(--akzent); background: var(--zart); border-radius: 12px; padding: 8px; width: 40px; height: 40px; }
.vier { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.grund { border-top: 2px solid var(--akzent); padding-top: 12px; }
.grund h3 { margin: 0 0 6px; font-size: 17px; }
.grund p { margin: 0; color: var(--leise); font-size: 15px; }
.fachpersonen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin: 8px 0 48px;
  background: var(--dunkel); color: var(--dunkel-text); border-radius: 20px; padding: 16px; }
.fachpersonen-text { flex: 1 1 480px; }
.fachpersonen h2 { color: var(--dunkel-text); margin-bottom: 10px; }
.fachpersonen p { color: var(--dunkel-leise); margin: 0; }
.fachpersonen .vorspann { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.fachpersonen-aktion { flex: 0 1 240px; }
.fachpersonen-aktion p { margin-top: 14px; color: var(--dunkel-text); }
.fachpersonen-aktion p a { color: var(--dunkel-text); display: inline-flex; align-items: center; min-height: 44px; }
.knopf { display: inline-block; background: var(--hell-knopf); color: var(--hell-knopf-text); font-weight: 600; text-decoration: none; padding: 0 20px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; }
@media (max-width: 720px) {
  .einstieg { grid-template-columns: minmax(0, 1fr); grid-template-areas: "titel" "clip" "text"; row-gap: 16px; padding-top: 24px; }
  .einstieg h1 { margin-bottom: 0; }
}

/* Punkt 4: «Bald im App Store» klein rechts im Kopf; auf dem Handy neben dem Namen, die Seiten darunter. */
/* Ergänzung Enver 17.11.: nicht antippbar → grau (Regel 3), nicht gefüllt; Kapsel 36. Wird es ein Link in den App Store, wird es türkis. */
.appstore.klein { font-size: 13px; padding: 0 12px; color: var(--leise); background: transparent; border: 1px solid var(--linie);
  border-radius: 999px; display: inline-flex; align-items: center; min-height: 36px; }
@media (max-width: 720px) {
  header nav { order: 3; width: 100%; }
  .appstore.klein { order: 2; }
  [id] { scroll-margin-top: 112px; }
}

/* Enver 17.11.: der Name «RatioMea» wird nie getrennt, bei keiner Breite und keiner Textgrösse. */
.name { white-space: nowrap; -webkit-hyphens: manual; hyphens: manual; overflow-wrap: normal; }

/* Regel 10/A1 (Enver 17.11.): Silbentrennung nur in Überschriften und nur auf schmalen Bildschirmen; Fliesstext bricht nur lange Wörter um (body). */
@media (max-width: 430px) {
  h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; }
}

/* «So sieht RatioMea aus»: am Computer fünf nebeneinander (Teil 3, 18.11.2026: «Heute» zuerst); auf dem Handy ein grosses iPhone pro Bildschirm zum Wischen
   (scroll-snap, ohne Skript) – das nächste schaut am Rand hervor. */
.so-sieht h2 { margin: 0 0 20px; }
.telefone { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.telefone figure { margin: 0; text-align: center; }
.telefone img { width: 100%; max-width: 240px; height: auto; }
.telefone figcaption { font-size: 15px; font-weight: 600; margin-top: 6px; }
@media (max-width: 720px) {
  .telefone { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
              margin: 0 -16px; padding: 0 16px 8px; scroll-padding: 0 16px; }
  .telefone figure { flex: 0 0 78%; scroll-snap-align: start; }
  .telefone img { max-width: none; }
}

/* Kleinere Praxis-Karte. */
.fachpersonen { max-width: 720px; margin-left: auto; margin-right: auto; }
.fachpersonen h2 { font-size: 21px; }
.fachpersonen p { font-size: 15px; }

/* Paket 18.11.2026, Teil 1: «Fachlich begleitet von» PEAK NUTRITION – eine ruhige Zeile, kein Kasten. Logo unverändert, 40 px hoch;
   im Dunkelmodus eine helle Fläche dahinter (--logo-flaeche). Link türkis wie jeder Link (a), Antippfläche 44. */
.begleitet { padding: 12px 0 28px; }
.start .begleitet .vorspann, .begleitet .vorspann { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--leise); margin: 0 0 12px; }
.begleitet-zeile { display: flex; align-items: center; gap: 16px; }
.begleitet-logo { flex: none; display: inline-flex; background: var(--logo-flaeche); padding: var(--logo-rand); border-radius: 12px; }
.begleitet img { display: block; height: 40px; width: auto; }
.begleitet p { margin: 0; font-size: 16px; }
.begleitet a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.begleitet-satz { color: var(--leise); font-size: 15px; }

/* Paket 18.11.2026, Teil 5: Seite «Für Fachpersonen». Breit wie die Startseite; drei Bilder der Praxis-Ansicht im schlichten
   Laptop-Rahmen (nur CSS); ein Hauptknopf, gefüllt in Türkis (auf der Startseite steht der Knopf auf der dunklen Karte). */
body.fach header, body.fach main, body.fach footer { max-width: 1080px; }
.fach-einstieg { padding: 24px 0 12px; }
.fach-einstieg .lead { max-width: 60ch; }
.laptops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 28px 0; }
.laptop { margin: 0; }
.laptop-schirm { background: var(--laptop); padding: 6px; border-radius: 12px 12px 0 0; }
.laptop-schirm::after { content: ""; display: block; height: 8px; margin: 6px -12px -6px; background: var(--laptop); border-radius: 0 0 12px 12px; }
.laptop-schirm img { display: block; width: 100%; height: auto; border-radius: 4px; }
.laptop figcaption { margin-top: 16px; font-size: 15px; color: var(--leise); }
.schritte { padding-left: 24px; }
.schritte li { margin: 0 0 12px; }
.schritte a { font-weight: 600; }
.fach-aktion { padding: 12px 0 40px; }
.knopf.haupt { background: var(--haupt); color: var(--haupt-text); }
.fach-aktion .lizenz { margin: 12px 0 0; color: var(--leise); }
.fach-aktion .lizenz a { display: inline-flex; align-items: center; min-height: 44px; }
.fachpersonen .mehr { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 600; text-decoration: none; color: var(--dunkel-text); }
@media (max-width: 720px) {
  .laptops { grid-template-columns: minmax(0, 1fr); }
}
