/* AMIRI Rechtsanwalt – gemeinsame Styles
   Schriften werden lokal geladen (keine Verbindung zu Google).
   Jost und Josefin Sans: Dateien optional in assets/fonts/ ablegen (siehe Anleitung);
   ohne sie greift automatisch Poppins als Ersatz. */

@font-face { font-family: "Inter"; src: url("inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("inter-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("inter-600.woff") format("woff"); font-weight: 600; font-display: swap; }

@font-face { font-family: "Jost"; src: url("jost-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("jost-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("jost-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("josefin-sans-300.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("josefin-sans-400.woff") format("woff"); font-weight: 400; font-display: swap; }

@font-face { font-family: "Poppins"; src: url("poppins-300.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("poppins-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("poppins-500.woff") format("woff"); font-weight: 500 600; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: #0E1A26; transition: color .15s ease; }
a:hover { color: #C2410C; }
a[style*="background: #C2410C"]:hover, button[type="submit"]:hover { filter: brightness(0.92); color: #FFFFFF !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #C2410C; outline-offset: 2px;
}
input, select, textarea { font: inherit; color: inherit; }
input:focus, select:focus, textarea:focus { border-color: #0E1A26 !important; background: #FFFFFF !important; }

/* Auswahlfelder (Radio) – gewählte Option hervorheben */
.choice { cursor: pointer; border: 1px solid #D6D3CB !important; background: transparent !important; }
.choice:has(input:checked) { border: 1.5px solid #0E1A26 !important; background: #F7F6F3 !important; }
.choice input { accent-color: #C2410C; }

/* Spam-Schutz: unsichtbares Feld */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Navigation auf kleinen Bildschirmen: eine Zeile zum Wischen */
@media (max-width: 900px) {
  .main-nav { order: 3; width: 100%; flex-wrap: nowrap !important; overflow-x: auto; gap: 22px !important; font-size: 14.5px !important; padding: 6px 0 2px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; }
}
@media (max-width: 600px) {
  form[style*="padding: 40px"] { padding: 24px !important; }
  section div[style*="padding: 64px 56px"] { padding: 40px 24px !important; }
  section div[style*="padding: 72px 64px"] { padding: 40px 24px !important; }
  div[style*="padding: 24px 48px 40px"] { padding: 12px 22px 28px !important; }
}

/* Spalten auf dem Handy volle Breite */
@media (max-width: 640px) {
  [style*="flex: 1 1 340px"], [style*="flex: 1 1 360px"], [style*="flex: 1 1 380px"], [style*="flex: 1 1 400px"],
  [style*="flex: 1 1 420px"], [style*="flex: 1 1 440px"], [style*="flex: 1 1 480px"], [style*="flex: 1 1 520px"],
  [style*="flex: 1 1 540px"], [style*="flex: 1 1 560px"], [style*="flex: 999 1 600px"], [style*="flex: 0 1 400px"], [style*="flex: 0 1 440px"] {
    flex-basis: 100% !important; min-width: 0 !important; max-width: 100% !important;
  }
  #unfall-check { margin-left: 12px !important; margin-right: 12px !important; }
}
html, body { overflow-x: clip; }
form input:not([type="radio"]):not([type="checkbox"]), form select, form textarea { width: 100%; min-width: 0; max-width: 100%; }

/* Handy: feste Leiste unten + Bewertungen zum Wischen */
.mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #0E1A26; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15); font-family: Inter, system-ui, sans-serif; }
.mobile-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; }
.mobile-bar .mb-call { border: 1.5px solid #F7F6F3; color: #F7F6F3; }
.mobile-bar .mb-cta { background: #C2410C; color: #FFFFFF; }
@media (max-width: 640px) {
  .mobile-bar { display: flex; }
  body:has(.mobile-bar) { padding-bottom: 76px; }
  .reviews { flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 0 24px 8px; scrollbar-width: none; }
  .reviews::-webkit-scrollbar { display: none; }
  .reviews > figure { flex: 0 0 86% !important; scroll-snap-align: center; }
}
