/* Open Wild Website: Tokens und Bausteine.
   Aufbau wie die Munchtime-Website (~/Claude/munchtime/website/munchtime.css). Die Hauptfarbe Gold
   kommt aus den App-Tokens (src/theme/colors.json, Quelle design/tokens.css), der Akzent ist seit
   28.09.2026 Salbei und weicht damit von der App ab. Die Seite ist wie die App heute nur hell. */

/* Lateinischer Teil von Poppins aus dem Google-Fonts-Bestand (v24), als woff2 rund 8 KB je Schnitt.
   Geladen sind 400, 400 kursiv, 600 und 700. Andere Staerken (500) gibt es nicht, der Browser nimmt sonst 400. */
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Jede Farbe der Seite steht hier. Seite, Bausteine und Demos nennen nur diese Namen, nie einen
     Farbwert. Die Namen sagen die Rolle, nicht die Farbe: eine neue Palette setzt nur diesen Block neu. */

  /* Grund und Text (App: background, foreground, muted-foreground, border, secondary, muted).
     Drei Textstufen: --text fuer Ueberschriften und Inhalt, --text-zweit fuer Fliesstext unter
     Ueberschriften, --text-leise fuer kleine Angaben (Zeit, Ort, Zaehler). */
  --weiss: #ffffff;
  --schwarz: #0a0a0a;
  --text: #262626;
  --text-zweit: #4b5563;
  --text-leise: #6b7280;
  --rand: #e5e7eb;
  --grau: #f3f4f6;
  --hell: #f9fafb;
  --aus: #c4c8cf;

  /* Hauptfarbe: Knoepfe, aktive Chips, Fortschritt, Treffer (App: primary, primary-foreground).
     Gold traegt Schwarz, nie Weiss. */
  --primaer: #ffb900;
  --primaer-hover: #f2ae00;
  --primaer-text: #000000;
  --primaer-flaeche: color-mix(in srgb, var(--primaer) 16%, transparent);
  --primaer-flaeche-stark: color-mix(in srgb, var(--primaer) 38%, transparent);
  --primaer-glut: color-mix(in srgb, var(--primaer) 72%, transparent);
  --marker: var(--primaer);

  /* Akzent: Flaeche fuer Kacheln, farbige Abschnitte und Fusszeile. Salbei, PO-Entscheid vom
     28.09.2026 (Klickseite design/website-farben/, Runde 1). Gilt vorerst nur fuer die Website, die App
     hat noch Creme mit Orange (design/tokens.css: accent, accent-foreground).
     --akzent-text fuer Schrift auf dem Akzent (7,3:1), --akzent-symbol nur fuer Symbole (3,6:1 auf dem
     Akzent), weil es fuer Schrift zu hell ist. Grau (--text-leise) reicht auf dem Akzent nicht fuer
     kleine Schrift (4,3:1), dort --text-zweit nehmen. */
  --akzent: #eff2eb;
  --akzent-tief: #dfe5d8;
  --akzent-text: #44533b;
  --akzent-symbol: #6a875a;
  --akzent-linie: color-mix(in srgb, var(--akzent-text) 16%, transparent);
  --akzent-schatten: color-mix(in srgb, var(--akzent-text) 42%, transparent);

  /* Seltenheit als Blaetter */
  --blatt-an: #7a9867;
  --blatt-aus: #d9dce1;

  /* Schlusskarte */
  --buehne: linear-gradient(135deg, #ffe08a, var(--primaer) 58%, #ffa21f);
  --buehne-text: var(--text);
  --buehne-text-zweit: color-mix(in srgb, var(--buehne-text) 80%, transparent);
  --buehne-tier: var(--primaer-text);

  /* Demos: Handy, Karte, Spektrogramm, Avatare. Die Karte bleibt in jeder Palette neutral. */
  --handy-rahmen: #ededed;
  --handy-insel: #d4d4d4;
  --karte-land: #f2f1ec;
  --karte-gruen: #d7ebc3;
  --karte-gruen-text: #6f8f55;
  --karte-wasser: #b9dcf2;
  --karte-wasser-text: #7f9db0;
  --karte-weg: var(--weiss);
  --karte-wegrand: #e3e1da;
  --spek-grund: #1c1712;
  --avatar-gelb: #fde68a;
  --avatar-gruen: #bbf7d0;
  --avatar-orange: #fed7aa;
  --avatar-blau: #bfdbfe;

  /* Signale */
  --rot: #ef4444;
  --blau: #3b82f6;

  /* Form: die App rundet Karten mit 2rem. Stufen fuer die Seite und die angedeuteten App-Screens:
     --radius Kacheln und grosse Flaechen, --radius-sm Fotos im Index, --radius-mock Karten in den
     App-Ausschnitten, --radius-zeile Listenzeilen und Kaesten darin, --radius-klein Vorschaubilder. */
  --radius-xl: 32px;
  --radius: 28px;
  --radius-mock: 20px;
  --radius-sm: 18px;
  --radius-zeile: 14px;
  --radius-klein: 10px;

  /* Schatten: --schatten-karte fuer Karten auf einer Kachel (getoent wie der Akzent),
     --schatten-schwebend fuer Handy und Karten vor dem Handy, --schatten-klein fuer Pins und Marken auf Fotos. */
  --schatten-karte: 0 12px 26px -18px var(--akzent-schatten);
  --schatten-schwebend: 0 18px 38px -16px rgb(10 10 10 / .45), 0 0 0 1px rgb(10 10 10 / .04);
  --schatten-klein: 0 3px 10px -3px rgb(0 0 0 / .4);

  /* Schrift */
  --font: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --breite: 1080px;
  --rand-aussen: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--weiss);
}

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

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

/* Nach einer Minute ohne Bewegung haelt openwild.js alle Animationen an (html.ruhe), siehe dort. */
.ruhe *,
.ruhe *::before,
.ruhe *::after {
  animation-play-state: paused !important;
}

/* Nur fuer Screenreader, zum Beispiel der ganze Satz einer wechselnden Ueberschrift */
.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Haelt Woerter mit Bindestrich zusammen */
.am-stueck {
  white-space: nowrap;
}

/* ---------- Schriftgroessen ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

.display {
  font-size: clamp(38px, 6.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 24px;
}

p {
  margin: 0;
}

.lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-zweit);
}

/* ---------- Layout ---------- */

.huelle {
  width: min(var(--breite), 100% - 2 * var(--rand-aussen));
  margin-inline: auto;
}

.abschnitt {
  padding-block: clamp(64px, 9vw, 112px);
}

.abschnitt--akzent {
  background: var(--akzent);
}

.abschnitt--eng {
  padding-block: clamp(40px, 6vw, 72px);
}

/* ---------- Knoepfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--primaer);
  color: var(--primaer-text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 120ms ease, transform 120ms ease;
}

.knopf:hover {
  background: var(--primaer-hover);
}

.knopf:active {
  transform: translateY(1px);
}

.knopf--gross {
  height: 56px;
  padding: 0 28px;
}

/* ---------- Chips ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--akzent);
  color: var(--akzent-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.chip svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.chip--grau {
  background: var(--grau);
  color: var(--text-zweit);
}

.chip--primaer {
  background: var(--primaer);
  color: var(--primaer-text);
}

/* ---------- Seltenheit als Blaetter (wie im Steckbrief der App, 1 bis 5) ----------
   Ein Element statt fuenf Symbole: das Blatt liegt als Maske fuenfmal nebeneinander, der Verlauf
   faerbt die ersten --s Blaetter in --blatt-an und den Rest in --blatt-aus. */
.blaetter {
  --s: 1;
  --b: 13px;
  display: inline-block;
  flex: none;
  width: calc(5 * var(--b));
  height: var(--b);
  background: linear-gradient(to right, var(--blatt-an) calc(var(--s) * 20%), var(--blatt-aus) 0);
  -webkit-mask: url("assets/blatt.svg") left center / var(--b) var(--b) repeat-x;
  mask: url("assets/blatt.svg") left center / var(--b) var(--b) repeat-x;
}

/* ---------- Segmente (Tab-Pille wie der SegmentedControl der App) ---------- */

.segmente {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--grau);
}

.segmente > * {
  flex: 1;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-leise);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
}

.segmente > .an {
  background: var(--primaer);
  color: var(--primaer-text);
}

/* ---------- Avatare: Anfangsbuchstabe auf einer hellen Flaeche ---------- */

.avatar {
  --f: var(--avatar-gelb);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--f);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.avatar--gruen { --f: var(--avatar-gruen); }
.avatar--orange { --f: var(--avatar-orange); }
.avatar--blau { --f: var(--avatar-blau); }
.avatar--gelb { --f: var(--avatar-gelb); }

.avatare {
  display: flex;
}

.avatare .avatar {
  width: 24px;
  height: 24px;
  font-size: 11px;
  box-shadow: 0 0 0 2px var(--weiss);
}

.avatare .avatar + .avatar {
  margin-left: -7px;
}

/* ---------- Buehne: Verlaufsflaeche in Gold mit Heimchen-Silhouette ---------- */

.buehne {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 40px 28px;
  color: var(--buehne-text);
  isolation: isolate;
  background: var(--buehne);
}

/* ---------- Handy-Rahmen ---------- */

.handy {
  --handy-breite: 300px;
  position: relative;
  width: var(--handy-breite);
  aspect-ratio: 402 / 874;
  border-radius: calc(var(--handy-breite) * 0.16);
  background: var(--schwarz);
  padding: calc(var(--handy-breite) * 0.03);
  box-shadow: var(--schatten-schwebend);
  margin-inline: auto;
}

.handy__schirm {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--handy-breite) * 0.135);
  background: var(--weiss);
}

.handy__insel {
  position: absolute;
  top: calc(var(--handy-breite) * 0.055);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--handy-breite) * 0.31);
  height: calc(var(--handy-breite) * 0.085);
  border-radius: 999px;
  background: var(--schwarz);
  z-index: 3;
}

/* ---------- Store-Knoepfe ----------
   Die App ist noch in keinem Store. Die Knoepfe sind deshalb keine Links, sondern sagen "Bald im"
   und "Bald bei". Wenn es die Store-Eintraege gibt: aus dem div ein a mit href machen, Hover kommt
   mit a.store von selbst. Paar wie bei Munchtime: beide so breit wie der breitere. */
.laden {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: max-content;
  max-width: 100%;
}

@media (max-width: 480px) {
  .laden {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 368px;
  }
  .laden .store {
    justify-content: center;
    gap: 8px;
    padding: 0 10px 0 8px;
    min-width: 0;
  }
  .laden .store svg {
    width: 22px;
    height: 22px;
  }
  .laden .store__oben {
    font-size: 11px;
  }
  .laden .store__unten {
    font-size: 17px;
  }
}

@media (max-width: 339px) {
  .laden {
    grid-template-columns: 1fr;
    width: max-content;
    margin-inline: auto;
  }
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 18px 0 14px;
  border-radius: 14px;
  background: var(--schwarz);
  color: var(--weiss);
  text-decoration: none;
  line-height: 1.05;
  transition: transform 120ms ease;
}

a.store:hover {
  transform: translateY(-1px);
}

.store svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store__text {
  display: flex;
  flex-direction: column;
}

.store__oben {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.store__unten {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Navigation ----------
   Pille so breit wie die Huelle, 60 px hoch. Logo-Kreis und Knopf sind 42 px hoch und sitzen mit
   8 px Abstand konzentrisch in den runden Enden. */
.nav {
  position: sticky;
  top: calc(12px + env(safe-area-inset-top, 0px));
  z-index: 10;
  display: flex;
  justify-content: center;
  padding-inline: var(--rand-aussen);
}

.nav__leiste {
  width: min(var(--breite), 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--rand);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav__marke {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: var(--text);
}

.nav__marke img {
  flex: none;
  width: 42px;
  height: 42px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__ende {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav__link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

/* Auswahl und Hover nur ueber die Flaeche, nie ueber einen Kantenstrich (Regel der App) */
.nav__link:hover {
  background: var(--akzent);
  color: var(--akzent-text);
}

.nav__knopf {
  height: 42px;
  padding: 0 20px;
  font-size: 15px;
}

@media (max-width: 960px) {
  .nav__link {
    padding: 8px 10px;
    font-size: 14px;
  }
}

@media (max-width: 820px) {
  .nav__links {
    display: none;
  }
}

/* ---------- Fusszeile ---------- */

.fuss {
  --fuss-text: var(--text-zweit);
  padding-block: 48px 40px;
  background: var(--akzent);
  color: var(--text);
}

.fuss__oben {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.fuss__marke {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.fuss__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.fuss__logo img {
  width: 40px;
  height: 40px;
}

.fuss__text {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fuss-text);
}

.fuss__spalten {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.fuss__spalte {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fuss__spalte h3 {
  font-size: 20px;
}

.fuss__spalte ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
}

.fuss__spalte a {
  color: var(--fuss-text);
  text-decoration: none;
}

.fuss__spalte a:hover {
  color: var(--text);
}

.fuss__unten {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 48px;
  font-size: 14px;
  color: var(--fuss-text);
}

@media (min-width: 700px) {
  .fuss__spalten {
    display: flex;
    gap: clamp(40px, 6vw, 80px);
  }
  .fuss__unten {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .fuss__oben {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- Aufklapper (Fragen) ---------- */

.fragen {
  border-top: 1px solid var(--rand);
}

.frage {
  border-bottom: 1px solid var(--rand);
}

.frage summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.frage summary::-webkit-details-marker {
  display: none;
}

.frage summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--akzent);
  color: var(--akzent-text);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  transition: transform 160ms ease;
}

.frage[open] summary::after {
  transform: rotate(45deg);
}

.frage p {
  padding: 0 0 20px;
  max-width: 62ch;
  color: var(--text-zweit);
}

/* ---------- Unterseiten (Bildnachweise) ---------- */

.unterseite {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.unterseite main {
  flex: 1;
}

.seitenkopf {
  margin-top: clamp(20px, 3vw, 32px);
  padding: clamp(28px, 5vw, 52px) clamp(24px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background: var(--akzent);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seitenkopf h1 {
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  hyphens: auto;
  overflow-wrap: break-word;
}

.seitenkopf .lead {
  max-width: 60ch;
  font-size: clamp(17px, 2vw, 19px);
}
