/* ============================================================
   mobile.css: Feinschliff für Handys (iPhone, Android)
   Wird auf allen Seiten ZULETZT geladen und gilt nur bis 760px.
   Desktop bleibt unverändert.
   ============================================================ */

/* Schwebender Button "Haaranalyse starten" – nur Handy (Element: layout.js) */
.mobile-cta {
  display: none;
}

@media (max-width: 760px) {
  /* ---------- Grundgerüst ---------- */
  body {
    font-size: 16px;
    line-height: 1.65;
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .container,
  .container--narrow {
    width: calc(100% - 32px);
  }

  h1 { font-size: clamp(34px, 9.6vw, 42px); line-height: 1.06; letter-spacing: -0.02em; }
  h2 { font-size: clamp(28px, 7.8vw, 34px); line-height: 1.1; letter-spacing: -0.015em; }
  h3 { font-size: 20px; }

  .lead { font-size: 17px; }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .section {
    padding-block: 56px;
    scroll-margin-top: 84px;
  }

  .section--tight {
    padding-block: 36px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-head p {
    margin-top: 14px;
  }

  /* Glas etwas deckender: Text ist auf dem Handy besser lesbar */
  .glass {
    --radius: 26px;
    background: rgba(255, 255, 255, 0.66);
  }

  .card {
    padding: 26px 22px;
  }

  /* Grosse, gut tippbare Buttons */
  .btn {
    min-height: 54px;
    padding: 15px 24px;
    font-size: 15.5px;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-row .btn {
    width: 100%;
  }

  .chip {
    padding: 7px 13px;
    font-size: 12.5px;
  }

  /* ---------- Kopfzeile: EINE ruhige Glas-Leiste ---------- */
  .site-header {
    top: calc(10px + env(safe-area-inset-top));
  }

  .site-header__inner {
    width: calc(100% - 20px);
    padding: 6px 6px 6px 8px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(248, 246, 243, 0.92);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    backdrop-filter: blur(20px) saturate(1.3);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 10px 30px rgba(102, 92, 87, 0.14);
    transition: background-color 300ms ease;
  }

  .site-header.is-scrolled .site-header__inner {
    background: rgba(248, 246, 243, 0.97);
  }

  /* Die Teile in der Leiste brauchen kein eigenes Glas mehr */
  .site-header .brand__mark,
  .site-header .nav__bar,
  .site-header.is-scrolled .brand__mark,
  .site-header.is-scrolled .nav__bar {
    border: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    animation: none;
  }

  .site-header .brand__mark {
    width: 42px;
    height: 42px;
    font-size: 16px;
    color: #fff;
    background: var(--taupe-dark);
  }

  .site-header.is-scrolled .brand__mark {
    background: var(--taupe-dark);
  }

  .site-header .brand {
    gap: 10px;
  }

  .site-header .brand__text {
    display: flex;
  }

  .site-header .brand__name {
    font-size: 17px;
  }

  .site-header .brand__sub {
    font-size: 9.5px;
    letter-spacing: 0.18em;
  }

  .site-header__inner {
    animation: header-in 600ms var(--ease) backwards;
  }

  .no-intro .site-header__inner {
    animation: none;
  }

  .nav__bar {
    padding: 0;
  }

  .nav__label {
    display: none;
  }

  .nav__toggle {
    width: 42px;
    height: 42px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(102, 92, 87, 0.12);
  }

  .nav__toggle span:nth-child(1) { top: 15px; }
  .nav__toggle span:nth-child(2) { top: 20px; }
  .nav__toggle span:nth-child(3) { top: 25px; }

  /* Klapp-Menü: deckend, damit nichts durchscheint */
  .site-header .nav__panel,
  .site-header.is-scrolled .nav__panel {
    top: calc(100% + 8px);
    left: 10px;
    right: 10px;
    padding: 8px;
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 24px 60px rgba(48, 45, 43, 0.22);
  }

  /* Offenes Menü: schwebenden Button ausblenden */
  html:has(.nav.is-open) .mobile-cta {
    opacity: 0;
    pointer-events: none;
  }

  .nav__item {
    padding: 14px 18px;
    font: 500 19px/1.2 var(--font-head);
  }

  /* ---------- Schwebender Haaranalyse-Button ---------- */
  .mobile-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    box-shadow: 0 16px 40px rgba(48, 45, 43, 0.28);
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition:
      opacity 300ms ease,
      transform 450ms var(--ease);
  }

  .show-cta .mobile-cta {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  /* ---------- Startseite ---------- */
  .hero-home,
  .monat-hero {
    padding-top: calc(86px + env(safe-area-inset-top));
    padding-bottom: 24px;
  }

  .hero-home__grid,
  .monat-hero__grid {
    gap: 26px;
  }

  .hero-home__visual .photo {
    aspect-ratio: 4 / 5;
    max-height: 62vh;
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 24px 50px rgba(102, 92, 87, 0.2);
  }

  .hero-home__text h1 {
    margin-bottom: 16px;
  }

  .hero-home__text .lead {
    margin-bottom: 24px;
  }

  .photo-caption {
    left: 12px;
    right: auto;
    bottom: 12px;
    padding: 8px 16px 8px 8px;
  }

  .photo-caption .brand__mark {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .photo-caption strong {
    font-size: 15px;
  }

  .split-card .btn {
    width: 100%;
    margin-top: 22px;
  }

  .intro-me {
    gap: 26px;
  }

  .intro-me .photo {
    width: 78%;
    max-width: 320px;
  }

  .intro-me .chips {
    margin: 18px 0 22px;
  }

  .intro-me .btn {
    width: 100%;
  }

  /* Schritte: kompakt, Nummer links */
  .steps {
    gap: 12px;
  }

  .step {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 14px;
    padding: 22px 20px;
  }

  .step__no {
    grid-row: span 2;
    margin: 0;
    font-size: 36px;
  }

  .step h3 {
    margin-bottom: 6px;
  }

  .step p {
    font-size: 15px;
  }

  /* Ergebnisse: zum Wischen statt endlos scrollen */
  .gallery {
    display: flex;
    gap: 12px;
    margin-inline: -16px;
    padding: 4px 16px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery > .result {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .gallery-actions {
    margin-top: 16px;
  }

  .gallery-actions .btn {
    width: 100%;
  }

  .cta-card {
    padding: 40px 22px;
  }

  .cta-card p {
    margin: 14px auto 24px;
  }

  /* ---------- Unterseiten ---------- */
  .page-head {
    padding-top: calc(108px + env(safe-area-inset-top));
    padding-bottom: 24px;
  }

  .about {
    gap: 28px;
    padding-top: calc(96px + env(safe-area-inset-top));
  }

  .about__aside {
    max-width: 320px;
  }

  .story .quote {
    margin: 1.3em 0;
    padding-left: 16px;
    font-size: 20px;
  }

  .legal {
    padding: 26px 20px;
  }

  /* ---------- MONAT ---------- */
  .monat-hero__visual {
    max-width: none;
  }

  .monat-hero__visual .photo--wide {
    border-radius: 28px;
  }

  .monat-hero .btn {
    width: 100%;
  }

  .duo {
    gap: 12px;
  }

  .seals {
    gap: 10px;
  }

  .seal {
    padding: 20px 12px 18px;
  }

  .seal__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
  }

  .seal strong {
    font-size: 17px;
  }

  .seal > span:last-child {
    font-size: 12.5px;
  }

  .seals__claim {
    font-size: 19px;
  }

  .growth__card {
    padding: 34px 20px;
    border-radius: 30px;
  }

  .pillars {
    margin: 28px 0;
  }

  .pillars li {
    flex-direction: row;
    gap: 16px;
    padding: 16px 4px;
    text-align: left;
  }

  .pillars__no {
    font-size: 30px;
  }

  .pillars strong {
    font-size: 20px;
  }

  .growth__photo,
  .scalp__photo {
    max-width: 300px;
  }

  .cycle {
    padding: 20px;
  }

  .info {
    padding: 24px 20px;
  }

  /* ---------- Footer ---------- */
  .site-footer {
    padding: 20px 0 24px;
  }

  .footer {
    gap: 26px;
    padding: 28px 22px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    padding: 18px 6px 0;
  }
}

/* Sehr kleine Handys (iPhone SE, Mini) */
@media (max-width: 370px) {
  .site-header .brand__sub {
    display: none;
  }

  .gallery > .result {
    flex-basis: 90%;
  }

  .seals {
    grid-template-columns: 1fr 1fr;
  }
}
