/* Emilias Vogelspiel: Stil „Bilderbuch rund“.
   Himmelband oben mit Ast und Voegeln, darunter eine ruhige Textspalte.
   Alle Schriften und Bilder liegen lokal, es werden keine fremden Server angefragt. */

@font-face {
  font-family: "Baloo 2";
  src: url("fonts/Baloo2.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --sky: #cdebf8;
  --sky-deep: #9fc7da;
  --paper: #f1f8fc;
  --card: #ffffff;
  --ink: #2a2238;
  --ink-soft: #4a4359;
  --wood: #8a5a3b;
  --wood-light: #a9744f;
  --leaf: #6dbe5f;
  --meadow: #9acf7c;
  --blue: #3b7be0;
  --blue-dark: #2a5baa;
  --todo: #fff1a8;

  --font-display: "Baloo 2", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --font-text: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 48rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Kopfzeile */

.topbar {
  background: var(--sky);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
}

.brand img { width: 40px; height: 40px; border-radius: 10px; }

.lang {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--sky-deep);
}

/* Startbereich */

.hero {
  background: var(--sky);
  overflow: hidden;
}

.hero .wrap {
  padding-block: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 0.95;
  text-wrap: balance;
}

.hero p.lead {
  margin: 0;
  font-size: 1.2rem;
  max-width: 34rem;
  color: var(--ink-soft);
}

.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 8px 22px 6px;
  box-shadow: 0 5px 0 var(--blue-dark);
  text-decoration: none;
}

.perch {
  position: relative;
  margin-top: 8px;
  padding-bottom: 34px;
}

.perch .birds {
  display: flex;
  gap: 2%;
  padding-left: 4%;
  position: relative;
  z-index: 1;
}

.perch .birds img { width: 18%; max-width: 132px; margin-bottom: -2.4%; }

.perch .branch {
  height: 22px;
  background: var(--wood);
  border-radius: 0 11px 11px 0;
  box-shadow: inset 0 5px 0 var(--wood-light);
  margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  width: 88%;
}

.meadow {
  height: 28px;
  background: var(--meadow);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  margin-top: -14px;
}

/* Inhalt */

main .wrap { padding-block: 32px 48px; }

section { margin-block: 0 40px; }

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.1;
  margin: 0 0 12px;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 24px 0 6px;
}

p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 4px; }

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.steps li {
  margin: 0;
  background: var(--card);
  border-radius: 22px;
  padding: 18px 18px 16px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sky);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.facts {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.facts li { margin: 0; padding-left: 28px; position: relative; }

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.flock {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.flock li {
  margin: 0;
  background: var(--card);
  border-radius: 20px;
  padding: 10px 6px 12px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
}

.flock img { width: 76px; height: 76px; display: block; margin: 0 auto 2px; }
.flock small { display: block; font-weight: 600; color: var(--ink-soft); }

.faq dt { font-weight: 800; margin-top: 16px; }
.faq dd { margin: 4px 0 0; }

.contact {
  background: var(--card);
  border-radius: 22px;
  padding: 20px 22px;
}

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

.mail {
  font-weight: 800;
  font-size: 1.1rem;
  word-break: break-all;
}

/* Rechtstexte */

.legal h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.05;
  margin: 0 0 6px;
  text-wrap: balance;
}

.legal .stand { color: var(--ink-soft); margin-bottom: 28px; }

.legal h2 { font-size: 1.45rem; margin-top: 34px; }

.legal address { font-style: normal; }

.summary {
  background: var(--card);
  border-radius: 22px;
  padding: 18px 22px;
  margin-bottom: 8px;
}

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

/* Platzhalter, die vor dem Hochladen ersetzt werden muessen */
.todo {
  background: var(--todo);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 700;
}

/* Fusszeile */

footer {
  background: var(--sky);
}

footer .wrap {
  padding-block: 22px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 0.95rem;
}

footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--ink); font-weight: 700; }

@media (max-width: 640px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .flock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perch .birds img { width: 22%; }
  .perch .branch { width: 96%; }
}

@media (prefers-reduced-motion: no-preference) {
  .perch .birds img { animation: hop 2.6s ease-in-out infinite; }
  .perch .birds img:nth-child(2) { animation-delay: 0.3s; }
  .perch .birds img:nth-child(3) { animation-delay: 0.6s; }
  .perch .birds img:nth-child(4) { animation-delay: 0.9s; }
  .perch .birds img:nth-child(5) { animation-delay: 1.2s; }
}

@keyframes hop {
  0%, 70%, 100% { transform: translateY(0); }
  80% { transform: translateY(-10px); }
}
