/*
 * Gemeinsames Aussehen aller vier Seiten von crewcook.com.
 *
 * Die Farben sind dieselben wie in der App (constants/theme.ts): Petrol als
 * Akzent, Cremeweiss als Grund, Weiss fuer Karten. Wer dort etwas aendert,
 * sollte es hier nachziehen — die Seite soll wie die App aussehen.
 */

:root {
  --grund: #faf9f5;
  --flaeche: #ffffff;
  --schrift: #11181c;
  --gedaempft: #687076;
  --akzent: #14707d;
  --akzent-hell: #18808f;
  --kopf-von: #18808f;
  --kopf-bis: #126b7a;
  --zweitfarbe: #cc6b2c;
  --linie: #e3e1da;
  --breite: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #151718;
    --flaeche: #20242a;
    --schrift: #ecedee;
    --gedaempft: #9ba1a6;
    --akzent: #4fb3c4;
    --akzent-hell: #4fb3c4;
    --kopf-von: #16717e;
    --kopf-bis: #0f5462;
    --zweitfarbe: #e08b52;
    --linie: #333a41;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--schrift);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

.kopf {
  background: linear-gradient(135deg, var(--kopf-von), var(--kopf-bis));
  color: #fff;
  padding: 2rem 1.25rem 2.25rem;
}

.kopf-innen {
  max-width: var(--breite);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.kopf a { color: #fff; text-decoration: none; }

.zeichen {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #faf9f5;
  display: block;
}

.wortmarke {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* --- Inhalt ------------------------------------------------------------- */

main {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.6rem;
  color: var(--akzent);
}

h3 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.4rem;
}

p { margin: 0 0 1rem; }

a { color: var(--akzent); }

ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

hr {
  border: 0;
  border-top: 1px solid var(--linie);
  margin: 2rem 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

/* Der hervorgehobene Kasten — in den Rechtstexten der Allergie-Vorbehalt.
   Er muss sich deutlich vom Fliesstext abheben, sonst wird er ueberlesen. */
blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: var(--flaeche);
  border-left: 4px solid var(--zweitfarbe);
  border-radius: 0 10px 10px 0;
}

blockquote p:last-child { margin-bottom: 0; }

/* Tabellen duerfen auf schmalen Geraeten seitlich scrollen, die Seite nie. */
.tabelle-rahmen {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--flaeche);
}

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.8rem; vertical-align: top; }
th { font-weight: 600; border-bottom: 1px solid var(--linie); }
td { border-bottom: 1px solid var(--linie); }
tr:last-child td { border-bottom: 0; }

.stand { color: var(--gedaempft); font-size: 0.92rem; }

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

.fuss {
  border-top: 1px solid var(--linie);
  padding: 1.75rem 1.25rem 2.5rem;
  color: var(--gedaempft);
  font-size: 0.92rem;
}

.fuss-innen {
  max-width: var(--breite);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.fuss a { color: var(--gedaempft); }

/* --- Nur die Startseite -------------------------------------------------- */

.aufmacher {
  background: linear-gradient(135deg, var(--kopf-von), var(--kopf-bis));
  color: #fff;
  padding: 0 1.25rem 3.5rem;
}

.aufmacher-innen { max-width: var(--breite); margin: 0 auto; }

.aufmacher h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  margin: 0 0 0.9rem;
  color: #fff;
}

.aufmacher p {
  font-size: 1.12rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.92);
}

.hinweis-band {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.95rem;
  font-weight: 600;
}

.punkte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.punkte li {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  margin: 0;
}

.punkte strong { display: block; margin-bottom: 0.3rem; color: var(--akzent); }

.bilder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
  margin: 0 0 1.5rem;
}

.bilder figure { margin: 0; }

.bilder img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--linie);
  background: var(--flaeche);
}

.bilder figcaption {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--gedaempft);
  text-align: center;
}

/* Platzhalter, solange keine Bildschirmfotos da sind. Verschwindet, sobald
   die Dateien eingesetzt werden. */
.platzhalter {
  aspect-ratio: 9 / 19.5;
  border-radius: 18px;
  border: 2px dashed var(--linie);
  background: var(--flaeche);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gedaempft);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.kontakt {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}

.kontakt p:last-child { margin-bottom: 0; }
