/* ── Nav ── */
nav { position: relative; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.nav-cta) { color: #444; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: color 0.2s; }
.nav-links a:not(.nav-cta):hover { color: #FF6B00; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: #333; border-radius: 2px; transition: all 0.3s; }

/* Mittlere Geräte: Logo + Links kompakter */
@media (max-width: 1100px) and (min-width: 901px) {
  .logo img { height: 26px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { font-size: 0.82rem; }
  .nav-cta { padding: 8px 14px; font-size: 0.8rem; white-space: nowrap; }
}

@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: white; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 200; border-top: 1px solid #f0f0f0; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.nav-cta) { padding: 14px 5%; border-bottom: 1px solid #f4f4f4; color: #333; font-size: 1rem; }
  .nav-links .nav-cta { margin: 12px 5%; border-radius: 50px; text-align: center; display: block; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Denkanstoß Grid ── */
.denkanstoss-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: start; }
@media (max-width: 700px) {
  .denkanstoss-grid { grid-template-columns: 1fr; }
  .denkanstoss-divider { display: none; }
}

/* ── Stats Grid ── */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; gap: 16px; text-align: center; } }

/* ── Allgemeine Sections ── */
@media (max-width: 768px) {
  .section { padding: 48px 5% !important; }
  .how-steps { flex-direction: column !important; gap: 16px !important; }
  .step-card { width: 100% !important; max-width: 100% !important; }
  .trustbar { flex-wrap: wrap !important; justify-content: center !important; gap: 16px !important; }
  .testi-grid { grid-template-columns: 1fr !important; }
  .honorar-badges { flex-wrap: wrap !important; }
  .multi-section { flex-direction: column !important; gap: 24px !important; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(1.4rem, 6vw, 2rem) !important; }
  h2 { font-size: clamp(1.2rem, 5vw, 1.7rem) !important; }
  h3 { font-size: clamp(1rem, 4vw, 1.3rem) !important; }
  .hero-actions { flex-direction: column !important; }
  .hero-actions a, .hero-actions .btn { width: 100% !important; text-align: center !important; box-sizing: border-box !important; }
  .cta-buttons { flex-direction: column !important; }
  .cta-buttons a, .cta-buttons .btn { width: 100% !important; text-align: center !important; }
  .benefits-grid { grid-template-columns: 1fr !important; }
  .flip-cards-grid { grid-template-columns: 1fr !important; }
}

/* ── Über uns Team ── */
@media (max-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .dept-section { margin-bottom: 40px !important; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr !important; }
}

/* ── Footer ── */
@media (max-width: 600px) {
  footer .footer-inner { flex-direction: column !important; gap: 24px !important; align-items: center !important; text-align: center !important; }
  footer .footer-links { flex-direction: column !important; align-items: center !important; gap: 8px !important; }
  footer .footer-logo { text-align: center !important; }
}

/* ── Vereinbarung / Formular ── */
@media (max-width: 600px) {
  .wrap { padding: 20px 14px 60px !important; }
  .tabs { border-radius: 10px; }
  .tab-btn { font-size: 0.78rem; padding: 12px 8px; gap: 5px; }
  .tab-btn .icon { font-size: 1rem; }
  .card { padding: 16px; }
  .drop-zone { padding: 32px 16px; }
  .how-steps { grid-template-columns: 1fr !important; gap: 10px; }
  .progress-steps { gap: 4px; }
  .progress-steps .step-label { font-size: 0.65rem; }
  .submit-btn, button[type="submit"] { font-size: 0.95rem; padding: 14px 20px; }
}

/* ── Beratungsseite ── */
@media (max-width: 600px) {
  .form-section { padding: 32px 16px 60px !important; }
  .highlight-box { padding: 14px 16px; font-size: 0.88rem; }
}

/* ── Inline Grid Overrides (für nicht-CSS-Klassen Grids) ── */
@media (max-width: 700px) {
  /* Index Über-die-Zahlen Section */
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] { 
    grid-template-columns: 1fr !important; 
  }
  /* Schritt-Cards etc */
  div[style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }
}
