/* Reihum — Website und Rechtsseiten
   Keine externen Schriften, keine externen Ressourcen, kein Tracking.
   Der Verzicht auf Google Fonts ist Absicht: das Einbinden ueber Googles Server
   uebertraegt die IP-Adresse des Besuchers in die USA (LG Muenchen I,
   3 O 17493/20 vom 20.01.2022). Systemschriften vermeiden das vollstaendig.

   Die Farbwerte sind aus der App uebernommen — ios/Reihum/Model.swift, enum
   Palette. Sie stehen hier als Kopie, weil eine Website keinen Swift-Code
   lesen kann. Wer sie an einer der beiden Stellen aendert und an der anderen
   nicht, laesst Store-Screenshots und Website auseinanderlaufen: Der Reviewer
   klickt von den Bildern auf die Datenschutz-URL und sieht zwei Produkte. */

:root {
  --bg:        #F4EEE0;   /* Palette.background     */
  --bg-high:   #FAF6EC;   /* Palette.backgroundHigh */
  --bg-low:    #E8E0CE;   /* Palette.backgroundLow  */
  --surface:   #FAF6EC;
  --text:      #1C1A16;   /* Palette.ink            */
  --muted:     #5E594F;   /* Palette.inkSoft        */
  --accent:    #0F5A41;   /* Palette.accent         */
  --accent-on: #F3F8F2;   /* Palette.accentOn       */
  --border:    rgba(28, 26, 22, 0.15);

  /* Palette.finger, die ersten vier — dieselben, die die App den Plaetzen gibt */
  --c1: #B34614;  /* rust  */
  --c2: #0D8296;  /* teal  */
  --c3: #982F63;  /* berry */
  --c4: #8C6A00;  /* ochre */

  --warn-bg: #FDF0D5;
  --warn-text: #7A4A00;
  --warn-border: #E0B062;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #131E19;
    --bg-high:   #1A2820;
    --bg-low:    #0D1512;
    --surface:   #1A2820;
    --text:      #F1EEE3;
    --muted:     #A9B8AE;
    --accent:    #4FC08D;
    --accent-on: #0B1F16;
    --border:    rgba(241, 238, 227, 0.17);

    --c1: #F0793F;
    --c2: #3FCFDC;
    --c3: #E86AAE;
    --c4: #E8B93C;

    --warn-bg: #3A2C12;
    --warn-text: #F0C979;
    --warn-border: #6B5324;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  color: var(--text);
  background-color: var(--bg);
  /* Angelehnt an den Verlauf in ContentView.swift: hell dort, wo das Licht
     auftrifft. Bewusst *ohne* background-attachment: fixed — das ist auf iOS
     Safari seit jeher unzuverlaessig und erzeugt auf langen Seiten eine
     sichtbare Kante. Stattdessen laeuft der Verlauf oben aus und geht in
     background-color ueber, sodass es keinen Uebergang zu sehen gibt. */
  background-image: radial-gradient(ellipse 140% 100% at 50% 0%,
                    var(--bg-high) 0%, var(--bg) 70%);
  background-repeat: no-repeat;
  background-size: 100% 46rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

/* Pro Dokument darf genau ein sichtbares <main> stehen (HTML-Standard).
   Die zweite Sprachfassung ist deshalb ein <div class="col"> mit derselben
   Spaltenbreite, kein zweites <main>. */
main, .col { max-width: 44rem; margin: 0 auto; }

header.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }

p, li { margin: 0.7rem 0; }
ul, ol { padding-left: 1.3rem; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.stand { color: var(--muted); font-size: 0.9rem; margin: 0; }

.lede {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
}
.lede p:first-child { margin-top: 0; }
.lede p:last-child { margin-bottom: 0; }

.address {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  line-height: 1.5;
}

/* Platzhalter, der beim versehentlichen Deployen sofort auffaellt. */
.todo {
  display: inline-block;
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px dashed var(--warn-border);
  border-radius: 4px;
  padding: 0.1em 0.45em;
  font-weight: 700;
  font-size: 0.92em;
}

.langswitch {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

hr.split {
  max-width: 44rem;
  margin: 4rem auto 0;
  border: 0;
  border-top: 1px solid var(--border);
}

footer.page {
  max-width: 44rem;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
footer.page a { color: var(--muted); }

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.scroll { overflow-x: auto; }


/* ------------------------------------------------------------------
   Der Beweis-Block.

   Er zeigt genau das, was Screenshot 1 und 2 zeigen sollen: den Moment
   des Ergebnisses samt Begruendungszeile, und daneben den Punktestand.
   Das ist die einzige Stelle, an der sich Reihum in fuenf Sekunden von
   einem Gluecksrad unterscheidet — siehe RISIKO-4-3.md.

   Alle Texte darin sind woertlich aus Localizable.xcstrings. Wenn sich
   eine Formulierung in der App aendert, muss sie sich hier mitaendern,
   sonst widerspricht die Website den Screenshots.
   ------------------------------------------------------------------ */

.proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0 1rem;
}

@media (max-width: 34rem) {
  .proof { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem; }
}

.rings { display: block; width: 100%; height: auto; max-width: 17rem; margin: 0 auto; }
.rings .table  { fill: var(--bg); stroke: var(--border); stroke-width: 1; }
.rings .seat circle { fill: none; stroke-width: 5; }
.rings .seat text {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-anchor: middle;
  fill: var(--text);
}
.rings .s1 circle { stroke: var(--c1); }
.rings .s2 circle { stroke: var(--c2); }
.rings .s3 circle { stroke: var(--c3); }
.rings .s4 circle { stroke: var(--c4); }

.rings .picked circle { fill: var(--accent); stroke: var(--accent); }
.rings .picked text   { fill: var(--accent-on); }
.rings .halo { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0.3; }

.picked-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.15rem;
}

.reason {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.tally { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.tally li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.45rem 0;
  border-top: 1px solid var(--border);
}
.tally li:last-child { border-bottom: 1px solid var(--border); }
.tally .who { font-weight: 600; }
.tally .count { color: var(--muted); white-space: nowrap; }
.tally .is-picked .who,
.tally li.is-picked .count { color: var(--accent); }
.tally .due { color: var(--accent); font-weight: 600; }

.caption { color: var(--muted); font-size: 0.92rem; margin: 0.75rem 0 0; }

/* Die drei Modi */
.modes { list-style: none; padding: 0; margin: 1rem 0; }
.modes li {
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
  margin: 0;
}
.modes li:last-child { border-bottom: 1px solid var(--border); }
.modes strong { display: inline-block; min-width: 8.5rem; color: var(--accent); }

/* Hilfe */
.faq h3 { margin: 1.5rem 0 0.25rem; }
.faq p  { margin: 0.25rem 0 0; }
