/* Open Wild Website: Tokens und Bausteine.
   Aufbau wie die Munchtime-Website (~/Claude/munchtime/website/munchtime.css), Farben aus den
   App-Tokens (src/theme/colors.json, Quelle design/tokens.css). Die Seite ist wie die App heute
   nur hell. Wer in den App-Tokens etwas aendert, zieht es hier nach. */

/* Lateinischer Teil von Poppins aus dem Google-Fonts-Bestand (v24), als woff2 rund 8 KB je Schnitt. */
@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-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;

  /* Grund und Text (App: background, foreground, muted-foreground, border, secondary, muted) */
  --weiss: #ffffff;
  --fg: #262626;
  --muted: #6b7280;
  --rand: #e5e7eb;
  --grau: #f3f4f6;
  --hell: #f9fafb;

  /* Markenpaar: Gold traegt Schwarz, nie Weiss (App: primary, primary-foreground) */
  --gold: #ffb900;
  --gold-hover: #f2ae00;
  --gold-text: #000000;
  --gold-flaeche: rgba(255, 185, 0, 0.16);

  /* Akzentpaar: Creme traegt Orange in der App (accent, accent-foreground). Fuer Text auf Creme
     nimmt die Website das dunklere Braun aus der Diagramm-Reihe (chart-4), Orange nur fuer Symbole. */
  --creme: #fff7ed;
  --creme-tief: #ffedd5;
  --orange: #ff8904;
  --braun: #92400e;

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

  /* Form: die App rundet Karten mit 2rem */
  --radius: 28px;
  --radius-sm: 18px;
  --radius-xl: 32px;
  --schatten: 0 4px 8px -1px rgba(0, 0, 0, 0.1), 0 1px 2px -2px rgba(0, 0, 0, 0.1);
  --schatten-gross: 0 4px 8px -1px rgba(0, 0, 0, 0.1), 0 8px 10px -2px rgba(0, 0, 0, 0.1);

  /* 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(--fg);
  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(--braun);
  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;
}

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

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

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

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

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

.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(--gold);
  color: var(--gold-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(--gold-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(--creme);
  color: var(--braun);
  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(--muted);
}

.chip--gold {
  background: var(--gold);
  color: var(--gold-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 orange und den Rest grau. */
.blaetter {
  --s: 1;
  --b: 13px;
  display: inline-block;
  flex: none;
  width: calc(5 * var(--b));
  height: var(--b);
  background: linear-gradient(to right, var(--orange) calc(var(--s) * 20%), #d9dce1 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(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
}

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

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

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

.avatare {
  display: flex;
}

.avatare .avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
  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(--fg);
  isolation: isolate;
  background: linear-gradient(135deg, #ffe08a, var(--gold) 58%, #ffa21f);
}

/* ---------- 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: #0a0a0a;
  padding: calc(var(--handy-breite) * 0.03);
  box-shadow: var(--schatten-gross);
  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: #0a0a0a;
  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: 10px;
  }
  .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: #0a0a0a;
  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: 500;
  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(--fg);
}

.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(--fg);
  white-space: nowrap;
}

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

.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(--muted);
  padding-block: 48px 40px;
  background: var(--creme);
  color: var(--fg);
}

.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(--fg);
  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: 500;
}

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

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

.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(--creme);
  color: var(--braun);
  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(--fg);
  opacity: 0.78;
}

/* ---------- 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(--creme);
  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;
  color: var(--fg);
  opacity: 0.72;
  font-size: clamp(17px, 2vw, 19px);
}
