/* Muh Einhorn – ruhig, weich, ohne Bewegung, die ablenkt */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --himmel: #e4f3fb;
  --wiese: #8dc66c;
  --wiese-dunkel: #3f7a34;
  --wiese-hell: #f1f8e9;
  --text: #3b2a1f;
  --text-leise: #6b5646;
  --braun: #7b4a2d;
  --creme: #fffaf0;
  --rosa: #f4b5a7;
  --joe: #f5c518;
  --linie: #e6dccb;
  --ringel: linear-gradient(90deg, #e8463c 0 16.66%, #f39a2b 0 33.33%, #f6d43a 0 50%,
                                   #4fb558 0 66.66%, #3d8fd6 0 83.33%, #8a55b8 0);
  --rund: 22px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--text);
  font: 400 1.125rem/1.65 "Nunito", system-ui, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

a { color: var(--wiese-dunkel); }
:focus-visible { outline: 3px solid #3d8fd6; outline-offset: 3px; border-radius: 6px; }

.rahmen { width: min(1120px, 100% - 32px); margin-inline: auto; }

.sprung {
  position: absolute; left: 16px; top: -100px;
  background: #fff; padding: .5em 1em; border-radius: 10px; z-index: 10;
}
.sprung:focus { top: 12px; }

/* Kopf */
.kopf { background: var(--himmel); }
.kopf-innen {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px; padding-block: 14px;
}
.logo img { width: clamp(220px, 32vw, 320px); }
.kopf ul {
  display: flex; flex-wrap: wrap; gap: 4px 6px;
  list-style: none; margin: 0; padding: 0;
}
.kopf nav a {
  display: block; padding: .35em .8em; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 700;
}
.kopf nav a:hover { background: #fff; }

/* Bühne mit Wiese */
.buehne { background: var(--himmel); }
.buehne-text { text-align: center; padding-block: 12px 0; max-width: 760px; }
.vorzeile {
  display: inline-block; margin-bottom: .6em; padding: .2em .9em; border-radius: 999px;
  background: #fff; color: var(--wiese-dunkel); font-weight: 700; font-size: 1rem;
}
.einleitung { font-size: 1.2rem; color: var(--text-leise); }

.szene {
  position: relative;
  overflow: hidden;
  height: clamp(260px, 47.5vw, 640px);
  container-type: size;
}
/* Die Szene behält ihr Seitenverhältnis. Auf schmalen Bildschirmen wird sie
   seitlich beschnitten, auf sehr breiten oben (Himmel). */
.szene-innen {
  position: absolute; left: 50%; bottom: 0;
  width: max(100cqw, 100cqh * 1600 / 760);
  aspect-ratio: 1600 / 760;
  transform: translateX(-50%);
}
.szene-hintergrund { position: absolute; inset: 0; width: 100%; height: 100%; }
.figur { position: absolute; }
.figur-hasi { left: 26.5%; width: 14.5%; bottom: 5.8%; }
.figur-muh  { left: 38.7%; width: 18.2%; bottom: 7.1%; }
.figur-joe  { left: 65.2%; width: 17.1%; bottom: 5%; }

/* Abschnitte */
.abschnitt { padding-block: clamp(48px, 8vw, 96px); }
.abschnitt-hell { background: var(--wiese-hell); }
.abschnitt > .rahmen > h2, .abschnitt > .rahmen > .einleitung { text-align: center; }
.abschnitt > .rahmen > .einleitung { margin-bottom: 2em; }

.zweispaltig {
  display: grid; gap: 32px 56px; align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
@media (max-width: 760px) {
  .zweispaltig { grid-template-columns: 1fr; }
}

/* Muh Einhorn von allen Seiten */
.drehbuehne { margin: 0; }
.drehbuehne-bild {
  position: relative;
  aspect-ratio: 1 / 1.1;
  max-height: 560px;
  margin-inline: auto;
  border-radius: var(--rund);
  background: radial-gradient(ellipse 60% 8% at 50% 94%, rgba(63, 122, 52, .22), transparent 70%),
              linear-gradient(#e4f3fb 0 62%, #b7dd8e 62%);
}
.drehbuehne-bild img {
  position: absolute; inset: 22px 22px 16px;
  width: calc(100% - 44px); height: calc(100% - 38px);
  object-fit: contain; object-position: center bottom;
}
.drehbuehne figcaption {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px;
}
.drehname { min-width: 9em; text-align: center; font-weight: 700; color: var(--text-leise); }

.knopf {
  font: inherit; font-weight: 700; color: var(--text);
  background: #fff; border: 2px solid var(--linie); border-radius: 999px;
  padding: .45em 1.1em; cursor: pointer;
}
.knopf:hover { border-color: var(--braun); }
.knopf.rund { width: 48px; height: 48px; padding: 0; font-size: 1.6rem; line-height: 1; }
.knopf[aria-pressed="true"] { background: #fdeceb; border-color: #e7a8ad; }

.merkmale { list-style: none; padding: 0; margin: 0 0 1.5em; }
.merkmale li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: .55em; }
.punkt {
  flex: none; width: 22px; height: 22px; margin-top: .25em; border-radius: 50%;
  border: 2px solid var(--braun);
}
.punkt-ringel { background: var(--ringel); }
.punkt-weiss { background: #f7f1e6; }
.punkt-rund { background: var(--rosa); }
.punkt-auge { background: radial-gradient(circle at 62% 50%, #2b1d16 0 30%, #fff 33%); }

.logik { display: grid; gap: 12px; }
.blase {
  position: relative; margin: 0; padding: .8em 1.1em;
  background: #fff; border: 2px solid var(--linie); border-radius: 18px;
  font-weight: 600;
}
.blase::before {
  content: ""; position: absolute; left: 22px; top: -9px; width: 16px; height: 16px;
  background: #fff; border-left: 2px solid var(--linie); border-top: 2px solid var(--linie);
  transform: rotate(45deg);
}
.blase-bunt { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--ringel) border-box; }
.blase-bunt::before { border-color: #8a55b8; border-left-color: #e8463c; }

/* Freunde */
.karten { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.karte {
  display: flex; flex-direction: column;
  background: #fff; border: 2px solid var(--linie); border-radius: var(--rund); overflow: hidden;
}
.karte-bild { margin: 0; padding: 20px 20px 14px; text-align: center; }
.karte-hasi .karte-bild { background: linear-gradient(#fdf1f1, #f7e1e3); }
.karte-joe .karte-bild { background: linear-gradient(#fff8dc, #fbedb1); }
.karte-bild img { height: 320px; width: auto; margin-inline: auto; }
.karte-bild figcaption { display: grid; justify-items: center; gap: 6px; margin-top: 10px; }
model-viewer {
  width: 100%; height: 320px; display: block;
  --poster-color: transparent;
  background: transparent;
}
.karte-text { padding: 22px 26px 26px; }
.karte-text h3 { margin-bottom: .15em; }
.marke { color: var(--text-leise); font-weight: 700; margin-bottom: .9em; }
.karte-text ul { margin: 0; padding-left: 1.2em; }
.karte-text li { margin-bottom: .4em; }
.klein { font-size: .95rem; color: var(--text-leise); }
.herz { color: #e05a6d; }

/* Orte */
.orte { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .orte { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .orte { grid-template-columns: repeat(4, 1fr); } }
.ort {
  padding: 22px; border-radius: var(--rund);
  background: #fff; border: 2px solid var(--linie);
}
.ort svg { width: 48px; height: 48px; margin-bottom: 8px; }
.ort p { margin: 0; }

/* Geschichten */
.leitsaetze { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.leitsatz {
  padding: 24px; border-radius: var(--rund); background: #fff; border: 2px solid var(--linie);
  border-top: 8px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--ringel) top / 100% 8px no-repeat border-box;
}
.leitsatz p { margin: 0; }

/* Fuß */
.fuss { background: var(--wiese-dunkel); color: #fff; }
.fuss::before { content: ""; display: block; height: 8px; background: var(--ringel); }
.fuss-innen { display: flex; align-items: center; gap: 14px; padding-block: 22px; font-weight: 700; }
.fuss-innen p { margin: 0; }
.fuss-innen img { background: #fff; border-radius: 50%; padding: 3px; }

/* Ladebalken von model-viewer: Das Vorschaubild reicht als Hinweis */
model-viewer::part(default-progress-bar) { display: none; }

@media (max-width: 520px) {
  .kopf nav a { padding: .3em .6em; font-size: 1rem; }
  .kopf ul { gap: 0 2px; margin-left: -.6em; }
}
