/* ==========================================================================
   home.css – Anordnung der Startseite
   Komponenten selbst stehen in components.css.
   ========================================================================== */

/* ---- Hero -------------------------------------------------------------- */
.hero { padding-top: clamp(24px, 5vw, 56px); padding-bottom: var(--s-9); }
.hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: var(--s-7);
  padding-bottom: clamp(80px, 9vw, 120px);   /* Platz für das überlappende Board */
}
.hero__text { display: flex; flex-direction: column; gap: var(--s-5); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); margin-top: var(--s-2); }
.hero__figure { position: relative; max-width: 470px; justify-self: center; width: 100%; }
.hero__bubble {
  position: absolute;
  top: 2%;
  right: -4%;
  z-index: 1;
  rotate: 6deg;
}

/* Board ragt unten ins Hero-Panel hinein: ein Bild, zwei Panels */
.hero__board {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--s-6), 980px);
  margin: calc(-1 * clamp(56px, 7vw, 90px)) auto 0;
  rotate: -.6deg;
}
.hero__board .board__col:last-child { position: relative; }
.hero__board-burst {
  width: 150px;
  height: auto;
  align-self: center;
  margin-top: var(--s-2);
  rotate: -8deg;
}

@media (max-width: 900px) {
  .hero__panel { grid-template-columns: minmax(0, 1fr); }
  .hero__figure { max-width: 340px; order: -1; }
  .hero__bubble { right: -2%; }
  .hero__board { width: 100%; rotate: none; }
}
@media (max-width: 640px) {
  /* gestapeltes Board: der Burst sitzt rechts neben der erledigten Karte */
  .hero__board .board__col:last-child { padding-right: 104px; }
  .hero__board-burst {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 92px;
    margin: -36px 0 0;
  }
}

/* ---- Problem-Sequenz --------------------------------------------------- */
.problem { padding: 0; }
.problem__panel { display: flex; flex-direction: column; gap: var(--s-3); }
.problem__mascot { width: min(200px, 70%); align-self: center; }
.problem__bang { margin-top: var(--s-2); }

/* ---- Funktionen -------------------------------------------------------- */
.funktionen { display: flex; flex-direction: column; gap: var(--s-7); }
.funktionen__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.funktionen__head h2 { flex: 1 1 420px; }
.funktionen__mascot { width: clamp(150px, 18vw, 220px); }
.funktionen__grid { padding: 0; }
.funktionen__burst { right: -18px; bottom: -34px; --burst-rotate: 10deg; width: 120px; }

/* ---- So geht's --------------------------------------------------------- */
.sogehts {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--s-7);
}
.sogehts__steps { padding: 0; }
.sogehts__mascot { max-width: 400px; justify-self: center; }
@media (max-width: 960px) {
  .sogehts { grid-template-columns: minmax(0, 1fr); }
  .sogehts__mascot { max-width: 260px; }
}

/* ---- FAQ --------------------------------------------------------------- */
.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: var(--s-7);
}
.faq-section__aside { display: flex; flex-direction: column; gap: var(--s-4); }
.faq-section__mascot { max-width: 300px; }
@media (max-width: 900px) {
  .faq-section { grid-template-columns: minmax(0, 1fr); }
  .faq-section__aside { flex-direction: row; align-items: center; justify-content: space-between; }
  .faq-section__mascot { max-width: 150px; }
}

/* ---- Schluss ----------------------------------------------------------- */
.schluss { padding-bottom: var(--s-10); }
.schluss__panel {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: var(--s-6);
}
.schluss__text { --stack: var(--s-6); }
@media (max-width: 760px) {
  .schluss__panel { grid-template-columns: minmax(0, 1fr); }
  .schluss__mascot { max-width: 220px; justify-self: center; }
}

.schluss__figure { position: relative; }
.schluss__burst { right: -12px; top: -10px; width: 120px; --burst-rotate: 12deg; }
@media (max-width: 640px) {
  .funktionen__burst { right: -6px; bottom: -28px; width: 96px; }
  .schluss__burst { right: 0; width: 96px; }
}
