/* ==========================================================================
   Werkraum 3D – MOBIL-Layout (unter 900 px Breite)
   <link rel="stylesheet" href="/assets/css/mobile.css" media="(max-width: 899.98px)">
   Schwerpunkte: Daumen-Bedienung, große Tap-Flächen (min. 48 px),
   Off-Canvas-Menü, feste Anfrage-Leiste unten, kurze Ladewege.
   ========================================================================== */

:root { --header-h: 72px; }

body { font-size: 1rem; padding-bottom: 76px; } /* Platz für CTA-Leiste */
h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); }
h2 { font-size: clamp(1.65rem, 6.6vw, 2.1rem); }
.container { padding-inline: 20px; }
.section { --section-pad: 64px; }
.section-head { margin-bottom: 32px; }

/* ---------- Header & Off-Canvas-Menü ---------- */
.brand img { height: 66px; margin-left: -10px; }
.header-cta { display: none; }

.nav-toggle {
  display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
  border: 0; background: transparent; color: var(--mint-50); cursor: pointer; border-radius: var(--radius);
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.site-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--olive-900); overflow-y: auto; overscroll-behavior: contain;
  padding: 12px 20px 40px;
  transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
}
.nav-open .site-nav { transform: none; visibility: visible; }
.nav-open { overflow: hidden; }

.nav-list { display: grid; }
.nav-item { border-bottom: 1px solid var(--line-dark); }
.nav-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 60px; font-size: 1.7rem; background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.nav-link svg { width: 22px; height: 22px; transition: transform .2s; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.subnav { list-style: none; margin: 0; padding: 0 0 14px; display: none; }
.nav-link[aria-expanded="true"] + .subnav { display: grid; gap: 4px; }
.subnav a {
  display: block; padding: 12px 16px; border-radius: var(--radius); text-decoration: none;
  background: rgba(243, 250, 243, .06); font-weight: 500;
}
.subnav a small { display: block; font-weight: 300; opacity: .7; }
.subnav a[aria-current="page"] { background: rgba(167, 201, 149, .2); }
.nav-mobile-extra { display: grid; gap: 12px; margin-top: 28px; }
.nav-mobile-extra .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero { min-height: calc(88svh - var(--header-h)); display: flex; align-items: flex-end; }
.hero::before { background: linear-gradient(180deg, rgba(22, 31, 22, .8) 0%, rgba(22, 31, 22, .92) 70%); }
.hero__content { padding-block: 64px 44px; }
.hero__sub { font-size: 1.2rem; margin-bottom: 14px; }
.hero p.lead { font-size: 1.05rem; }
.hero .btn-row .btn { flex: 1 1 100%; }
.page-hero { padding-block: 48px 40px; }

/* ---------- Grids → einspaltig ---------- */
.split, .cards-2, .cards-3, .contact-grid, .product-top, .product-body, .form__grid { display: grid; gap: 28px; }
.split__media { order: -1; }
.split__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.steps { grid-template-columns: 1fr; gap: 14px; }
.step { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
.step::before { grid-row: span 2; margin: 0; }
.step h3 { margin-bottom: .25em; }
.footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
.footer-brand { grid-column: 1 / -1; }

/* Karten als horizontaler Wisch-Slider (spart Scrollweg) */
.cards-3.cards--swipe {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: -20px; padding: 4px 20px 20px; scrollbar-width: none;
}
.cards-3.cards--swipe::-webkit-scrollbar { display: none; }
.cards--swipe > .card { flex: 0 0 82%; scroll-snap-align: start; }
.swipe-hint { font-size: .85rem; opacity: .7; margin: -4px 0 0; }
.swipe-hint.vat-note { margin-top: 20px; }

/* ---------- Produktseite ---------- */
.product-gallery .gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px;
  margin-inline: -20px; padding-inline: 20px; scrollbar-width: none;
}
.product-gallery .gallery::-webkit-scrollbar { display: none; }
.product-gallery .gallery > * { flex: 0 0 78%; scroll-snap-align: center; aspect-ratio: 4 / 3; }
.gallery--4 { grid-template-columns: repeat(2, 1fr); }
.calc { padding: 22px 18px; }
.calc__fields { grid-template-columns: 1fr; }
.price-table th, .price-table td { padding: 12px 8px; font-size: .95rem; }
.box { padding: 22px 18px; }
.video { border-radius: var(--radius); }

/* Inputs: 16 px verhindert Auto-Zoom auf iOS */
.field input, .field textarea { font-size: 16px; }

/* ---------- Feste Anfrage-Leiste unten ---------- */
.mobile-cta {
  display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(22, 31, 22, .97); border-top: 1px solid var(--line-dark);
  backdrop-filter: blur(8px);
}
.mobile-cta .btn { flex: 1; min-height: 52px; padding-inline: 12px; white-space: nowrap; }
@media (max-width: 359px) { .mobile-cta .btn { font-size: .92rem; padding-inline: 8px; } }
.mobile-cta .btn--icon { flex: 0 0 52px; padding: 0; color: var(--mint-50); }
.nav-open .mobile-cta { display: none; }

/* Hover-Effekte auf Touch nicht "kleben" lassen */
@media (hover: none) {
  .card:hover, .btn:hover { transform: none; }
}

/* Produktseite: Preise & Rechner direkt unter die Bilder ziehen */
.product-main { display: contents; }
.product-main > * { order: 2; }
.product-main > .product-gallery { order: 0; }
.product-aside { order: 1; }
.product-main > [style*="margin-top"] { margin-top: 12px !important; }

/* Preistabelle auf dem Handy: kompakter, damit "1 Woche (7 Tage)" in eine Zeile passt */
.product-aside .box { padding: 20px 14px; }
.price-table th, .price-table td { padding: 12px 6px; font-size: .92rem; }
.price-table td:last-child { padding-left: 12px; }

/* Cookie-Banner auf dem Handy: Buttons nebeneinander, volle Breite */
.consent__inner { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); }
.consent__buttons .btn { flex: 1 1 40%; min-width: 0; padding-inline: 10px; }
.consent__buttons [data-consent="settings"], .consent__buttons [data-consent="save"] { order: 1; flex-basis: 100%; }
