/* Breakpoints von 4K bis Handy, Raster brechen 4 auf 2 auf 1 um */

/* bis 1080px: Tablet quer */
@media (max-width:1080px){
  .hero__inner{grid-template-columns:1fr;gap:clamp(28px,5vw,48px);text-align:center}
  .hero__copy{max-width:56ch;margin-inline:auto}
  .hero__sub{margin-inline:auto}
  .hero__cta,.hero__trust{justify-content:center}
  .hero__device{width:min(72%,360px);height:auto}
  .hero__phone{width:100%;height:auto}
  .float-tag--a{left:-2%}
  .float-tag--b{right:-4%}
  .float-tag--c{left:2%}
  .features__grid{grid-template-columns:repeat(2,1fr)}
  .stats__grid{grid-template-columns:repeat(2,1fr)}
  .showcase__grid{grid-template-columns:1fr}
  .demo__card{grid-template-columns:1fr}
  /* Gestapelt: die weiße Formularkarte bekommt rundum Abstand */
  .demo__aside{margin:clamp(16px,4vw,26px);padding:clamp(20px,5vw,28px)}
  .appcta__grid{grid-template-columns:1fr;text-align:center}
  .appcta__badges{justify-content:center}
  .tst__grid{grid-template-columns:1fr 1fr}
  .footer__grid{grid-template-columns:1fr 1fr}
}

/* bis 860px: Tablet hochkant, ab hier das Handy-Menü */
@media (max-width:860px){
  .nav__links,.nav__actions{display:none}
  .nav__burger{display:flex}
  .nav{justify-content:space-between}
  .steps__grid{grid-template-columns:1fr;gap:var(--s-6)}
  .steps__line{display:none}
  /* Variante A: Nummer wandert neben den Text */
  .step{flex-direction:row;text-align:left;align-items:flex-start;gap:var(--s-4);max-width:52ch;margin-inline:auto}
  .step__num{width:60px;height:60px;font-size:1.4rem;flex-shrink:0}
  .step p{max-width:none}
  /* Variante B: gestapelt, Bild bleibt oben */
  .steps__grid--media .step{flex-direction:column;max-width:56ch;width:100%}
  .steps__grid--media .step__media{aspect-ratio:16/9}
}

/* bis 640px: Handy */
@media (max-width:640px){
  :root{--gutter:20px}
  .nav{padding-inline:14px}
  .nav__brand img{height:27px}
  .hero{min-height:100dvh;padding-top:calc(var(--nav-h) + 56px)}
  .hero__cta{flex-direction:column;align-items:stretch}
  .hero__cta .btn{justify-content:center}
  .hero__device{width:min(86%,300px);height:auto}
  .float-tag{font-size:var(--fs-xs);padding:7px 12px}
  .float-tag--a{left:-3%;top:9%}
  .float-tag--b{right:-3%}
  .stats__grid{grid-template-columns:1fr 1fr;gap:12px}
  .stat{padding:20px}
  .features__grid{grid-template-columns:1fr}
  .tst__grid{grid-template-columns:1fr}
  .footer__grid{grid-template-columns:1fr;gap:var(--s-6)}
  .footer__bottom{flex-direction:column;align-items:flex-start;gap:12px}
  .section-head{margin-bottom:40px}
}

/* bis 380px: die ganz kleinen Geräte */
@media (max-width:380px){
  .stats__grid{grid-template-columns:1fr}
  .hero h1{letter-spacing:-0.02em}
}

/* Handy quer: der Hero darf niedriger sein */
@media (max-height:560px) and (orientation:landscape){
  .hero{min-height:auto;padding-top:calc(var(--nav-h) + 40px);padding-bottom:48px}
  .scroll-cue{display:none}
}

/* Schüler-Seite und App-Teaser */
@media (max-width:1080px){
  .shero__inner{grid-template-columns:1fr;text-align:center;gap:clamp(28px,5vw,48px)}
  .shero__copy{max-width:56ch;margin-inline:auto}
  .shero__sub{margin-inline:auto}
  .shero__badges{justify-content:center}
  .shero__checks{justify-content:center}
  .shero__device{width:min(78%,380px)}
  .appteaser__card{grid-template-columns:1fr;text-align:center}
  .appteaser__actions{align-items:center}
  .appteaser__copy p{margin-inline:auto}
  .appteaser__phones{width:min(78%,360px)}
  .appscreens{grid-template-columns:repeat(2,1fr);gap:clamp(20px,3vw,32px)}
}
@media (max-width:640px){
  .appscreens{grid-template-columns:1fr;max-width:340px;margin-inline:auto}
  .appteaser__phone--back{display:none}
  .appteaser__phone--front{width:66%}
  .shero{padding-top:calc(var(--nav-h) + 48px)}
}

/* Wer Transparenz reduziert hat, bekommt statt Glas eine deckende Fläche */
@media (prefers-reduced-transparency:reduce){
  .nav{background:#fff}
  .mobile-menu{background:#fff}
}
