/* =====================================================================================================
   Mobile-Version (/mobile/) – wird nur dort zusätzlich zu css/style.css geladen (siehe includes/header.php).
   Gleiche Inhalte und Farben wie die Hauptseite, aber: einspaltig, größere Tippflächen, Menü-Knopf,
   weniger Dekoration. Änderungen an Inhalten macht man nur auf der Hauptseite.
   ===================================================================================================== */

body.is-mobile a, body.is-mobile button { -webkit-tap-highlight-color: transparent; }
body.is-mobile { font-size: 16.5px; line-height: 1.6; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body.is-mobile .wrap { padding-left: 16px; padding-right: 16px; }
body.is-mobile img, body.is-mobile video, body.is-mobile iframe { max-width: 100%; }
body.is-mobile h1 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); line-height: 1.15; }
body.is-mobile h2 { font-size: clamp(1.4rem, 6vw, 1.8rem); line-height: 1.2; }
body.is-mobile h3 { font-size: 1.15rem; }

/* Dekoration reduzieren (schneller, ruhiger) */
body.is-mobile .hero-clouds { display: none; }

/* ---------- Kopf + Menü ---------- */
body.is-mobile .site-header { position: sticky; top: 0; }
body.is-mobile .site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 12px;
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}
body.is-mobile .brand-col { width: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
body.is-mobile .brand-col .social-nav { margin: 0; }
body.is-mobile .brand img { height: 40px; width: auto; }

.m-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-weight: 600;
  color: var(--cream);
  background: rgba(217, 165, 28, 0.14);
  border: 1px solid rgba(217, 165, 28, 0.35);
  border-radius: 10px;
  cursor: pointer;
}
.m-nav-icon, .m-nav-icon::before, .m-nav-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.m-nav-icon { position: relative; }
.m-nav-icon::before, .m-nav-icon::after { content: ""; position: absolute; left: 0; }
.m-nav-icon::before { top: -6px; }
.m-nav-icon::after { top: 6px; }
.m-nav-toggle[aria-expanded="true"] .m-nav-icon { background: transparent; }
.m-nav-toggle[aria-expanded="true"] .m-nav-icon::before { top: 0; transform: rotate(45deg); }
.m-nav-toggle[aria-expanded="true"] .m-nav-icon::after { top: 0; transform: rotate(-45deg); }

body.is-mobile .m-nav-toggle { display: inline-flex; }
body.is-mobile .register-nav {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
  flex-direction: column;
  flex-wrap: nowrap;
  overflow: visible;
  margin: 0;
  gap: 2px;
  padding: 6px 0 4px;
  border-top: 1px solid var(--line-dark);
}
body.is-mobile .register-nav.is-open { display: flex; }
body.is-mobile .register-nav > a,
body.is-mobile .nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  font-size: 1.02rem;
}
body.is-mobile .nav-dropdown { position: static; width: 100%; }
body.is-mobile .nav-dropdown-menu {
  position: static;
  display: none;
  min-width: 0;
  margin: 2px 0 6px 12px;
  padding: 2px 0 2px 8px;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--gold-deep);
  border-radius: 0;
  box-shadow: none;
}
body.is-mobile .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
body.is-mobile .nav-dropdown:hover .nav-dropdown-menu { display: none; }
body.is-mobile .nav-dropdown.is-open:hover .nav-dropdown-menu { display: block; }
body.is-mobile .register-nav .nav-dropdown-menu a { display: flex; align-items: center; min-height: 46px; }

/* ---------- Inhalte ---------- */
body.is-mobile .btn,
body.is-mobile .btn-primary,
body.is-mobile .streamer-link { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
body.is-mobile section { scroll-margin-top: 70px; }
body.is-mobile .hero .wrap { padding-top: 40px; padding-bottom: 48px; }
body.is-mobile .regelwerk-header .wrap { padding-top: 34px; padding-bottom: 30px; }
body.is-mobile table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.is-mobile pre { overflow-x: auto; }
body.is-mobile .prose, body.is-mobile .lede, body.is-mobile .faq-answer { max-width: none; }

/* Listen (Gesetze, Regelwerk): Text darf umbrechen, Zusatzangabe rutscht darunter */
body.is-mobile .gesetze-list a { flex-wrap: wrap; min-height: 56px; }
body.is-mobile .gesetze-list a > span:first-child { flex: 1 1 200px; min-width: 0; }
body.is-mobile .gesetze-list .gesetz-meta { white-space: normal; }
body.is-mobile code, body.is-mobile .md-content, body.is-mobile .faq-answer { overflow-wrap: anywhere; }

/* Mehrspaltige Layouts -> einspaltig */
body.is-mobile .toc ol, body.is-mobile .toc-paper ol { columns: 1; }
body.is-mobile .split, body.is-mobile .feature-list { grid-template-columns: 1fr; gap: 24px; }

/* Karten: einspaltig, Höhe nach Inhalt */
body.is-mobile .streamer-grid,
body.is-mobile .team-grid { grid-template-columns: 1fr; margin-inline: 0; }
body.is-mobile .streamer-card { height: auto; min-height: 0; }
body.is-mobile .team-grid { gap: 12px; }

/* Footer */
body.is-mobile .site-footer .wrap { padding-top: 24px; padding-bottom: 28px; }
body.is-mobile .footer-links { display: flex; flex-direction: column; gap: 0; }
body.is-mobile .footer-links a { display: flex; align-items: center; min-height: 46px; }

/* Tastaturbelegung: die Tastatur-Grafik ist am Handy zu klein – dort zählt die Liste */
body.is-mobile .kb-scroll { display: none; }
body.is-mobile .kb-title { margin-top: 8px; }
body.is-mobile .kb-legend { grid-template-columns: 1fr; }
body.is-mobile .kb-item { min-height: 46px; align-items: center; }

/* Suche (Gesetze/Regelwerk) und Formulare: große Eingabefelder (verhindert Zoomen beim Antippen auf iOS) */
body.is-mobile input[type="text"], body.is-mobile input[type="search"], body.is-mobile input[type="password"],
body.is-mobile input[type="email"], body.is-mobile select, body.is-mobile textarea { font-size: 16px; min-height: 46px; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  body.is-mobile * { animation: none !important; transition: none !important; }
}
