/* lautlinge.de – Bilderbuch-Look wie in der App (ADR 0010). Schrift selbst gehostet, keine externen Quellen. */
@font-face {
  font-family: 'Andika';
  src: url('/fonts/andika-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Andika';
  src: url('/fonts/andika-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --creme: #fff8ea;
  --creme-2: #fbefd6;
  --tinte: #2b2a33;
  --tinte-2: #55525f;
  --orange: #ff8a3d;
  --orange-dunkel: #d9631c;
  --gruen: #6bb84e;
  --gruen-dunkel: #3f7d2a;
  --himmel: #cfe8f7;
  --schatten: 0 0.6rem 1.6rem #2b2a3320;
  --rund: 1.4rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--creme);
}
h1, h2, h3, .marke { font-family: 'Andika', ui-rounded, system-ui, sans-serif; font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 0.6rem; text-align: center; }
h3 { font-size: 1.3rem; margin: 0.6rem 0 0.3rem; }
a { color: var(--orange-dunkel); }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* Kopfzeile */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 3rem);
  background: #fff8eaee;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 #2b2a3314;
}
.marke { font-size: 1.6rem; color: var(--tinte); text-decoration: none; }
.kopf nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.6rem); }
.kopf nav a { color: var(--tinte); text-decoration: none; font-weight: 600; }
.kopf nav a:not(.knopf):hover { color: var(--orange-dunkel); }
@media (max-width: 760px) { .kopf nav a:not(.knopf) { display: none; } }

/* Knöpfe */
.knopf {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0.3rem 0 var(--orange-dunkel);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.knopf:hover { transform: translateY(-2px); }
.knopf:active { transform: translateY(2px); box-shadow: 0 0.1rem 0 var(--orange-dunkel); }
.knopf.klein { padding: 0.45rem 1rem; font-size: 0.95rem; }
.knopf.gross { padding: 0.95rem 1.8rem; font-size: 1.15rem; }
.knopf.hell { background: var(--creme); color: var(--tinte) !important; box-shadow: 0 0.3rem 0 #d8c9a8; }
.knopf.deaktiviert { background: var(--tinte); box-shadow: 0 0.3rem 0 #000; cursor: default; }
.knopf.deaktiviert:hover { transform: none; }

/* Titelbereich */
.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem) 4rem;
  background: var(--bild) center bottom / cover no-repeat, var(--himmel);
  overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fff8eaee 0%, #fff8ea99 38%, transparent 62%); pointer-events: none; }
.hero > * { position: relative; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 0 0 1rem; }
.betont { color: var(--orange-dunkel); }
.unterzeile { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 32rem; color: var(--tinte-2); }
.hinweis-store { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1.2rem; }
.versprechen { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin: 0; padding: 0; list-style: none; font-weight: 600; }
.versprechen li::before { content: '✓ '; color: var(--gruen-dunkel); }

.buehne { display: flex; align-items: flex-end; justify-content: center; gap: 0; align-self: end; min-height: 22rem; }
.lautling { border: 0; padding: 0; background: none; cursor: pointer; width: clamp(7rem, 16vw, 13.5rem); margin: 0 -1rem; transform-origin: 50% 95%; animation: atmen 3.4s ease-in-out infinite; }
.lautling:nth-child(2) { animation-delay: -0.8s; }
.lautling:nth-child(3) { animation-delay: -1.6s; width: clamp(6.4rem, 14vw, 11.5rem); }
.lautling:nth-child(4) { animation-delay: -2.4s; }
.lautling.lulu { width: clamp(9rem, 20vw, 16.5rem); }
.lautling img { filter: drop-shadow(0 0.6rem 0.8rem #0003); }
.lautling.springt { animation: springen 0.7s ease-out; }
.tipp { position: absolute; right: clamp(1rem, 5vw, 4rem); bottom: 1rem; margin: 0; padding: 0.35rem 0.9rem; border-radius: 999px; background: #fff8eae6; font-weight: 600; font-size: 0.95rem; }

/* Abschnitte */
.abschnitt { padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem); }
.einleitung { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; font-size: 1.15rem; color: var(--tinte-2); }

.schritte { list-style: none; margin: 0 auto; padding: 0; max-width: 64rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }
.schritte li { background: #fff; border-radius: var(--rund); padding: 1.5rem; text-align: center; box-shadow: var(--schatten); }
.schritte img { width: 9rem; height: 9rem; object-fit: contain; margin: 0 auto; }
.karten-bild { height: 9rem; display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.karten-bild span { display: grid; place-items: center; width: 3.6rem; height: 4.6rem; border-radius: 0.8rem; background: var(--creme); box-shadow: 0 0.25rem 0 #d8c9a8; font: 700 2.4rem/1 'Andika', sans-serif; }
.karten-bild .richtig { box-shadow: 0 0.25rem 0 #d8c9a8, 0 0 0 0.3rem #ffd36b; animation: pulsieren 1.6s ease-in-out infinite; }

.dorf { background: linear-gradient(#fbefd6, #e9f3d9); }
.galerie { list-style: none; margin: 0 auto; padding: 0; max-width: 56rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 640px) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.schlaefer { width: 100%; border: 0; background: #ffffffb8; border-radius: var(--rund); padding: 0.8rem 0.6rem 1rem; cursor: pointer; display: grid; justify-items: center; box-shadow: var(--schatten); transition: transform 0.15s ease; }
.schlaefer:hover { transform: translateY(-4px); }
.schlaefer img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.schlaefer .buchstabe { font: 700 2.2rem/1 'Andika', sans-serif; margin-top: 0.2rem; }
.schlaefer .ding { font-size: 0.95rem; color: var(--tinte-2); }
.schlaefer.wach img { animation: springen 0.8s ease-out; }

.kacheln { max-width: 70rem; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; }
.kacheln article { background: #fff; border-radius: var(--rund); padding: 1.4rem 1.5rem; box-shadow: var(--schatten); }
.kacheln p { margin: 0; color: var(--tinte-2); }

.nacht { background: var(--bild) center / cover no-repeat, #1f2350; display: grid; place-items: center; min-height: 34rem; }
.nacht-karte { max-width: 40rem; background: #fff8eaf2; border-radius: var(--rund); padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: 0 1rem 3rem #0005; }
.nacht-karte h2 { text-align: left; }
.klein { font-size: 0.9rem; color: var(--tinte-2); }

.fuss { padding: 2rem clamp(1rem, 5vw, 4rem); text-align: center; background: var(--tinte); color: #e9e6f0; }
.fuss nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.4rem; margin-bottom: 0.6rem; }
.fuss a { color: #fff; }
.fuss p { margin: 0; font-size: 0.9rem; opacity: 0.8; }

/* Textseiten (Impressum, Datenschutz, Hilfe) */
.textseite { max-width: 46rem; margin: 0 auto; padding: 3rem 1.2rem 4rem; }
.textseite h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.textseite h2 { text-align: left; font-size: 1.5rem; margin-top: 2rem; }
.entwurf { padding: 0.8rem 1rem; border-radius: 0.8rem; background: #fff3c4; border: 1px solid #f0d36b; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 3.5rem; }
  .hero::before { background: linear-gradient(180deg, #fff8eaf0 0%, #fff8eac0 45%, transparent 75%); }
  .buehne { min-height: 14rem; }
  .tipp { left: 50%; right: auto; transform: translateX(-50%); }
}

@keyframes atmen { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, 0.97); } }
@keyframes springen { 0% { transform: translateY(0); } 35% { transform: translateY(-22%) rotate(-4deg); } 65% { transform: translateY(-8%) rotate(3deg); } 100% { transform: translateY(0); } }
@keyframes pulsieren { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
