/* BAUZ! – extra kindgerecht (5-jährige) */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&display=swap');

body {
  background: linear-gradient(180deg, #e8f4fc 0%, var(--bauz-white) 12rem);
}

h1, h2, .btn, .speech-wrap__text {
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  letter-spacing: -0.02em;
}

/* Himmel & Wolkendeko */
.section--sky {
  background: linear-gradient(180deg, #dceefb 0%, #f5efe4 100%);
  position: relative;
  overflow: hidden;
}

.section--sky::before {
  content: '';
  position: absolute;
  top: 1rem;
  right: -2rem;
  width: 8rem;
  height: 4rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: -3rem 0.5rem 0 -0.5rem rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

/* Sprechblase */
.speech-wrap {
  position: relative;
  max-width: 22rem;
  margin: 0 0 1.5rem;
  padding: 2rem 1.5rem 1.25rem;
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speech-wrap--center {
  margin-left: auto;
  margin-right: auto;
}

.speech-wrap__cloud {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
  pointer-events: none;
}

.speech-wrap__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bauz-anthracite);
  text-align: center;
  line-height: 1.3;
}

/* Hero Buch */
.hero--book {
  grid-template-columns: 1fr;
  text-align: center;
}

.hero--book .hero__spread {
  border-radius: var(--bauz-radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(45, 52, 54, 0.15);
  border: 4px solid #fff;
  max-width: 42rem;
  margin: 0 auto;
}

.hero--book .btn-row {
  justify-content: center;
}

/* Große bunte Kacheln statt Emoji */
.fun-tiles {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .fun-tiles { grid-template-columns: repeat(3, 1fr); }
}

.fun-tile {
  border-radius: var(--bauz-radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--bauz-shadow);
  border: 3px solid #fff;
  text-align: center;
  transition: transform 0.2s;
}

.fun-tile:hover {
  transform: translateY(-4px) rotate(-0.5deg);
}

.fun-tile__img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.fun-tile__body {
  padding: 1rem 1.25rem 1.25rem;
}

.fun-tile__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--bauz-red);
}

/* Buch-Galerie horizontal */
.book-gallery__hint {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.book-gallery__scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.book-gallery__item {
  flex: 0 0 auto;
  width: min(72vw, 16rem);
  scroll-snap-align: start;
  margin: 0;
}

.book-gallery__item img {
  border-radius: var(--bauz-radius);
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(45, 52, 54, 0.12);
}

.book-gallery__item figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: var(--bauz-blue);
}

/* Lösung mit Buchseite */
.solution-preview {
  width: 100%;
  max-width: 20rem;
  border-radius: var(--bauz-radius);
  border: 3px solid #fff;
  box-shadow: var(--bauz-shadow);
  margin-bottom: 1rem;
}

.accordion__panel-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .accordion__panel-inner--with-img {
    flex-direction: row;
    align-items: flex-start;
  }
  .accordion__panel-inner--with-img .solution-preview {
    max-width: 11rem;
    flex-shrink: 0;
  }
}

/* Hurra-Bereich */
.celebrate {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(90, 154, 94, 0.15), rgba(74, 127, 181, 0.12));
  border-radius: var(--bauz-radius-lg);
  border: 3px dashed var(--bauz-green);
}

.celebrate__stars {
  font-size: 2rem;
  letter-spacing: 0.25rem;
  margin-bottom: 0.5rem;
}

/* Größere, buntere Buttons */
.btn--primary {
  transform: rotate(-1deg);
}

.btn--discover {
  transform: rotate(1deg);
}

.btn--lg {
  font-size: 1.2rem;
  border-radius: 999px;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Dorf-Hero */
.hero--psst .hero__character {
  max-width: 14rem;
  margin: 0 auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.page-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.page-picker__btn {
  min-height: 3rem;
  min-width: 3rem;
  padding: 0.5rem 1rem;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  border: 3px solid var(--bauz-blue);
  background: #fff;
  color: var(--bauz-blue);
  border-radius: 999px;
  cursor: pointer;
}

.page-picker__btn:hover,
.page-picker__btn.is-active {
  background: var(--bauz-blue);
  color: #fff;
}
