/* 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;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #0F1A18; --flaeche: #16241F; --text: #EAF0EE; --leise: #A9B8B4; --akzent: #7CC4BC; --linie: #24362F;
          --mark: #4A3B0B; --mark-text: #FFE7A3;
          --zart: #1D332E; --dunkel: #1B3531; --dunkel-text: #EAF0EE; --dunkel-leise: #A9B8B4; --hell-knopf: #EAF0EE; --hell-knopf-text: #0F1A18; }
}
* { 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; }
.einstieg { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px 0 48px; }
.einstieg-text { flex: 1 1 420px; }
.einstieg img { flex: none; width: 300px; height: auto; max-width: 70vw; }
.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 { flex-direction: column; align-items: flex-start; padding-top: 24px; }
  .einstieg-text { flex: none; }
  .einstieg img { align-self: center; width: 260px; }
}

/* 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; }
}
