/* ═══════════════════════════════════════════════
   ZEQIRI SECURITY — Mobile Re-Layout
   Geladen nur bei (max-width: 768px)
   Desktop-Regeln aus styles.css bleiben unberuehrt.
   ═══════════════════════════════════════════════ */

/* ── Root: Mobile-Spacing & Container ── */
:root {
  --container: min(640px, 100% - 2rem);
  --section-pad: clamp(3rem, 12vw, 4.5rem);
  --tap: 48px;
}

html { scroll-padding-top: 72px; }
body { font-size: 16px; line-height: 1.55; }

/* ── Typografie: Mobile-Skalen ── */
h1 { font-size: clamp(2.2rem, 10vw, 3rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 7.5vw, 2.3rem); line-height: 1.1; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

/* ══════════════════════════════════
   NAV — kompakt, Hamburger-First
   ══════════════════════════════════ */
.nav {
  width: 100%;
  left: 0;
  transform: none;
  padding: 0.75rem 1rem;
  background: rgba(11,11,11,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav.scrolled {
  padding: 0.6rem 1rem;
  background: rgba(11,11,11,0.95);
}
.nav-logo img { height: 44px; }
.nav-links { display: none; }
.nav-cta { display: none; }

.nav-toggle {
  display: block;
  width: var(--tap);
  height: var(--tap);
  margin: -12px;
  padding: 12px;
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle span:nth-child(3) { top: 30px; }
.nav-toggle.active span:nth-child(1) { top: 24px; }
.nav-toggle.active span:nth-child(3) { top: 24px; }

.mobile-nav { gap: 1.75rem; padding: 2rem; }
.mobile-nav a { font-size: 1.6rem; }
.mobile-nav .btn-pill { font-size: 0.95rem; padding: 1rem 1.75rem; }

/* ══════════════════════════════════
   HERO — vertikal gestackt
   ══════════════════════════════════ */
.hero {
  min-height: 100dvh;
  padding: 6rem 0 3rem;
  display: flex;
  align-items: stretch;
}
.hero-image img {
  filter: brightness(0.55) saturate(0.7);
  object-position: 15% 25%;
}
.hero-image::after {
  background:
    linear-gradient(to bottom,
      rgba(11,11,11,0.5) 0%,
      rgba(11,11,11,0.35) 35%,
      rgba(11,11,11,0.85) 85%,
      var(--bg-primary) 100%);
}
.hero-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
  min-height: calc(100dvh - 9rem);
}
.hero-content { max-width: 100%; }
.hero-title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
.hero-word { display: block; }
.hero-word--accent { margin-left: 0; }

/* hero-side aus dem Absolute-Layout holen und zentriert darunter */
.hero-side {
  position: static;
  transform: none;
  text-align: center;
  align-items: center;
  width: 100%;
}
.hero-tagline {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}
.hero-side .btn-pill {
  width: 100%;
  max-width: 320px;
  justify-content: center;
  min-height: var(--tap);
  font-size: 0.95rem;
}

/* Stats: 3-Spalten bleiben aber kompakt */
.hero-stats {
  position: static;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 1rem; }
.hero-stat-label { font-size: 0.68rem; line-height: 1.3; }
.hero-scroll { display: none; }

/* ══════════════════════════════════
   LEISTUNGEN — 1 Spalte, flexible Bildhoehe
   ══════════════════════════════════ */
.leistungen .service-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}
.service-card {
  margin-top: 0 !important;
  padding: 0;
}
.service-card .image-card {
  height: auto !important;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.25rem !important;
}
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; line-height: 1.55; }
.service-features { gap: 0.5rem; margin-top: 1rem; }
.feature-tag { font-size: 0.7rem; padding: 0.3rem 0.7rem; }
.service-card .btn-ghost {
  min-height: var(--tap);
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

/* ══════════════════════════════════
   VERGLEICH — 1 Spalte
   ══════════════════════════════════ */
.vergleich .compare-cards {
  grid-template-columns: 1fr;
  gap: 1rem;
}
.compare-card {
  padding: 1.25rem;
  transform: none !important;
}
.compare-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
}
.compare-card h4 { margin-bottom: 0.75rem; }
.compare-them, .compare-us { padding: 0.75rem; }
.compare-them p, .compare-us p { font-size: 0.9rem; }
.compare-label { font-size: 0.65rem; }

/* ══════════════════════════════════
   UNTERSCHIED — Andere unten, Zeqiri oben
   ══════════════════════════════════ */
.unterschied .diff-grid {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.diff-card { padding: 1.5rem; }
.diff-card--us { order: -1; }              /* Zeqiri zuerst */
.diff-card--them { opacity: 0.85; }
.diff-list li {
  font-size: 0.95rem;
  gap: 0.75rem;
  padding: 0.5rem 0;
}
.diff-card--us .btn-pill {
  min-height: var(--tap);
}

/* ══════════════════════════════════
   UEBER UNS — Text zuerst, Bild danach
   ══════════════════════════════════ */
.ueber-uns .ueber-uns-content {
  grid-template-columns: 1fr;
  gap: 2rem;
}
.ueber-uns-text p { font-size: 0.98rem; }
.ueber-uns .image-card {
  height: auto !important;
  aspect-ratio: 3 / 2;
}
.values-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.value-badge { padding: 1rem 0.75rem; }
.value-icon { width: 36px; height: 36px; }
.value-badge span { font-size: 0.85rem; }

/* ══════════════════════════════════
   KONTAKT — gestackt, tap-freundlich
   ══════════════════════════════════ */
.kontakt .kontakt-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}
.kontakt-info h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.kontakt-item {
  padding: 1rem 0;
  gap: 0.85rem;
}
.kontakt-item-icon { flex-shrink: 0; width: 40px; height: 40px; }
.kontakt-item-text strong {
  font-size: 1rem;
  word-break: break-word;
}
.kontakt-item-text span { font-size: 0.82rem; }
.kontakt .image-card {
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin-top: 1.5rem !important;
}

.kontakt-form { padding: 1.5rem; }
.form-row {
  grid-template-columns: 1fr;
  gap: 1rem;
}
.form-group label { font-size: 0.85rem; }
.form-group input,
.form-group select,
.form-group textarea {
  font-size: 16px;          /* verhindert iOS-Auto-Zoom */
  padding: 0.85rem 1rem;
  min-height: var(--tap);
}
.form-group textarea { min-height: 120px; }
.form-checkbox label { font-size: 0.85rem; gap: 0.6rem; }
.form-checkbox input { min-width: 20px; min-height: 20px; }
.btn-submit {
  min-height: 52px;
  font-size: 0.95rem;
  width: 100%;
}

/* ══════════════════════════════════
   FOOTER — 1 Spalte, kompakt
   ══════════════════════════════════ */
footer { padding: 2.5rem 0 1.5rem; }
.footer-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer-brand img { height: 34px; }
.footer-brand p { font-size: 0.9rem; }
.footer-col h4 {
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}
.footer-col a {
  padding: 0.4rem 0;
  font-size: 0.9rem;
}
.footer-bottom {
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.75rem;
  text-align: center;
  padding-top: 1.5rem;
}

/* ══════════════════════════════════
   ALLGEMEIN — Section-Divider & CTA-Polish
   ══════════════════════════════════ */
.section-divider { margin: 0 1rem; }
section { padding: var(--section-pad) 0; }

/* Alle Buttons tap-freundlich */
.btn-pill, .btn-ghost, .btn-submit, .nav-cta {
  min-height: var(--tap);
}

/* Reveal-Blur auf Mobile abschwaechen (schont GPU) */
.reveal {
  filter: none;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.visible { transform: translateY(0); }

/* Hover-Tilt-Transforms (aus animations.js) auf Mobile neutralisieren */
.service-card, .compare-card {
  transform: none !important;
}
.service-card:hover, .compare-card:hover {
  transform: none !important;
}

/* Scroll-Progress duenner */
.scroll-progress { height: 2px; }

/* Kleine Screens <= 380px: extra Kompression */
@media (max-width: 380px) {
  :root { --section-pad: 2.5rem; }
  .hero-stats { gap: 0.5rem; }
  .hero-stat-label { font-size: 0.62rem; }
  h1, .hero-title { font-size: 2rem; }
  .container { width: min(100% - 1.5rem, 640px); }
}

/* Safari 100dvh Fallback */
@supports not (height: 100dvh) {
  .hero { min-height: 100vh; }
  .hero-layout { min-height: calc(100vh - 9rem); }
}
