/* =========================================================
   RESPONSIVE.CSS – MOBILE FIRST
   Basis = Smartphone (kein Query nötig)
   Danach min-width-Queries: 480 → 720 → 950 → 1100 → 1280
   Ziel: exakte Viewport-Breite, kein horizontales Scrollen.
   ========================================================= */

/* ---------------------------------------------------------
   0. HORIZONTAL-SCROLL-SPERRE + Grundlagen
   --------------------------------------------------------- */

/* Verhindert jegliches seitliches Scrollen */
html, body {
  overflow-x: clip;          /* clip = kein Scrollbalken, kein Kontextwechsel */
  max-width: 100%;
}

/* Alles darf nie breiter als sein Container sein */
*, *::before, *::after {
  min-width: 0;              /* DAS ist der Klassiker gegen Grid-/Flex-Overflow */
}
img, picture, video, svg, canvas, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lange Wörter / URLs sicher umbrechen */
h1, h2, h3, h4, p, a, li, address, small, strong, label {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Fokus-Sichtbarkeit */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.chips button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------------------------------------------------------
   1. BASIS = SMARTPHONE (≈ 360–479px)
   Alle Layouts einspaltig, kompakte Abstände.
   --------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 100%;
  padding-inline: 16px;      /* ersetzt das margin:auto-Prinzip sauber */
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  height: 68px;
}
.nav-wrap {
  height: 100%;
}
.brand-mark {
  width: 76px;
  height: 56px;
}
.brand strong {
  font-size: 10px;
  letter-spacing: .06em;
}
.brand small {
  font-size: 7px;
  letter-spacing: .08em;
}

.menu-toggle {
  display: block;
  padding: 6px 8px;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
}

/* Navigation als ausklappbares Panel */
nav {
  display: none;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
nav.open {
  display: flex;
  box-shadow: 0 18px 30px rgba(0, 0, 0, .08);
}
nav a {
  padding: 12px 0;
  font-size: 14px;
}
nav.open a:not(.btn) {
  border-bottom: 1px solid var(--line);
}
nav.open a.btn {
  margin-top: 12px;
  text-align: center;
}
.nav-phone {
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  min-height: auto;
  padding: 40px 0 50px;
}
.hero-content {
  padding: 0;
}
.hero h1 {
  font-size: clamp(34px, 9vw, 44px);
  line-height: 1.02;
  letter-spacing: -.04em;
  margin-bottom: 18px;
}
.hero-lead {
  font-size: 15.5px;
  max-width: 100%;
}
.hero-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 26px;
}
.hero-actions .btn {
  width: 100%;
  padding: 14px 16px;
  font-size: 12px;
  letter-spacing: .05em;
}
.hero-location {
  margin-top: 20px;
  font-size: 11.5px;
}

/* ---------- Sektionen ---------- */
.intro {
  padding: 50px 0 40px;
}
.section {
  padding: 55px 0;
}
.cta {
  padding: 55px 0;
}

/* Alle 2-Spalten-Grids → 1 Spalte */
.intro-grid,
.trust-grid,
.accident-grid,
.tires-grid,
.focus-grid,
.vehicles-grid,
.vehicles-inner,
.cta-grid,
.contact-grid {
  grid-template-columns: 1fr;
  gap: 32px;
}

.intro h2,
.section h2 {
  font-size: clamp(28px, 7.5vw, 38px);
  letter-spacing: -.035em;
}
.unfall h2 {
  font-size: clamp(32px, 8.5vw, 44px);
}
.cta h2 {
  font-size: clamp(30px, 8vw, 42px);
}
.contact h2 {
  font-size: clamp(32px, 8.5vw, 46px);
}
.vehicles h2 {
  font-size: clamp(30px, 8vw, 42px);
}

.section-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
}
.section-head > p {
  margin: 0;
  max-width: 100%;
}

/* Service-Karten */
.service-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}
.service-card {
  min-height: auto;
  padding: 22px;
}
.service-card h3 {
  font-size: 21px;
}

/* Panels / Bilder */
.trust-photo-panel {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}
.trust-photo-caption{
  padding: 60px 20px 20px;
}
.trust-photo-caption strong {
  font-size: 22px;
}
.focus-photo,
.vehicle-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
}

/* Trust-Liste */
.trust-list {
  margin-top: 28px;
}
.trust-list > div {
  gap: 14px;
  padding: 14px 0;
}

/* ---------- Formular / CTA ---------- */
form {
  padding: 20px;
  width: 100%;
}
.form-row {
  grid-template-columns: 1fr;
  gap: 0;
}
.chips {
  gap: 8px;
}
.chips button {
  flex: 1 1 100%;
  padding: 11px 14px;
  font-size: 12.5px;
}
input, textarea {
  font-size: 16px;   /* iOS-Zoom verhindern */
  padding: 14px 4px;
}
.form-submit {
  width: 100%;
}

.contact-mini {
  margin-top: 24px;
}
.contact-mini a {
  font-size: 20px;
  word-break: break-word;
}

/* ---------- Kontakt / Öffnungszeiten ---------- */
.big-phone {
  font-size: 24px;
  margin: 18px 0;
}
.hours > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px 0;
}
.hours strong {
  text-align: left;
}

/* ---------- Footer ---------- */
footer {
  padding: 40px 0 20px;
}
.footer-grid {
  grid-template-columns: 1fr;
  gap: 22px;
}
.footer-brand {
  grid-column: auto;
}
.footer-grid > div:not(.footer-brand) {
  font-size: 13px;
}
.copyright {
  margin-top: 30px;
  font-size: 10px;
}

/* ---------- Legal-Seiten ---------- */
.legal-hero {
  padding: 90px 0 40px;
}
.legal-hero h1 {
  font-size: clamp(30px, 9vw, 46px);
}
.legal-hero p:not(.eyebrow) {
  font-size: 15.5px;
}
.legal-copy h2 {
  /*font-size: 1.35em;*/
  margin: 30px 0 12px;
}
.legal-copy ul {
  padding-left: 18px;
}

/* ---------------------------------------------------------
   2. KLEINES TABLET / GROSSES SMARTPHONE (≥ 480px)
   --------------------------------------------------------- */
@media (min-width: 480px) {
  .container {
    padding-inline: 20px;
  }

  .hero h1 {
    font-size: clamp(40px, 8vw, 54px);
  }
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero-actions .btn {
    width: auto;
    padding: 15px 21px;
    font-size: 13px;
  }

  /* Service-Karten 2 Spalten */
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Chips umbrechen wieder natürlich */
  .chips button {
    flex: 0 0 auto;
  }

  /* Trust-Liste wieder horizontal */
  .trust-list > div {
    flex-direction: row;
    gap: 18px;
    padding: 16px 0;
  }

  /* Hours-Zeile: Bezeichnung + Wert nebeneinander */
  .hours > div {
    grid-template-columns: 1fr auto;
    gap: 20px;
  }
  .hours strong {
    text-align: right;
  }
}

/* ---------------------------------------------------------
   3. TABLET HOCHFORMAT (≥ 720px)
   --------------------------------------------------------- */
@media (min-width: 720px) {
  .container {
    padding-inline: 24px;
  }

  .site-header {
    height: 76px;
  }
  .nav-wrap {
    height: 100%;
  }

  .brand-mark {
    width: 96px;
    height: 70px;
  }
  .brand strong { font-size: 12px; }
  .brand small  { font-size: 9px; }

  .hero {
    min-height: 540px;
    padding: 60px 0;
  }
  .hero-content {
    padding: 40px 0;
  }
  .hero h1 {
    font-size: clamp(48px, 8vw, 68px);
    margin-bottom: 22px;
  }
  .hero-lead {
    font-size: 17px;
  }

  .intro {
    padding: 65px 0 50px;
  }
  .section {
    padding: 75px 0;
  }
  .cta {
    padding: 75px 0;
  }

  .intro h2,
  .section h2 {
    font-size: clamp(34px, 5.5vw, 48px);
  }

  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .section-head > p {
    max-width: 320px;
  }

  .service-card {
    min-height: 240px;
    padding: 25px;
  }

  /* Formular wieder 2-spaltig */
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  form {
    padding: 28px;
  }

  /* Footer wieder 2 Spalten */
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }

  .big-phone {
    font-size: 28px;
  }

  .legal-hero {
    padding: 120px 0 55px;
  }
  .legal-hero h1 {
    font-size: clamp(42px, 7vw, 64px);
  }
}

/* ---------------------------------------------------------
   4. TABLET QUER / KLEINER DESKTOP (≥ 950px)
   Ab hier wird das Original-Layout wieder aufgegriffen.
   --------------------------------------------------------- */
@media (min-width: 1175px) {
  .container {
    padding-inline: 0;
    width: min(var(--max), calc(100% - 40px));
  }

  .site-header {
    height: 82px;
  }
  .brand-mark {
    width: 110px;
    height: 80px;
  }
  .brand strong { font-size: 14px; letter-spacing: .09em; }
  .brand small  { font-size: 10px; letter-spacing: .12em; }

  /* Desktop-Navigation wieder sichtbar */
  .menu-toggle {
    display: none;
  }
  nav {
    display: flex !important;
    position: static;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none !important;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    font-size: 13px;
    font-weight: 650;
  }
  nav a {
    padding: 0;
    border: 0 !important;
    font-size: 13px;
    margin: 0;
  }
  nav a.btn {
    margin-top: 0;
  }
  .nav-phone {
    display: inline-block;
    font-weight: 800;
  }

  .hero {
    min-height: 600px;
    padding: 0;
  }
  .hero-content {
    padding: 80px 0;
  }
  .hero h1 {
    font-size: clamp(52px, 6vw, 82px);
    max-width: 780px;
    margin-bottom: 28px;
  }
  .hero-lead {
    font-size: 18px;
    max-width: 620px;
  }
  .hero-actions {
    flex-direction: row;
  }
  .hero-actions .btn {
    width: auto;
    padding: 15px 21px;
    font-size: 13px;
  }

  /* 2-Spalten-Grids wieder aktivieren */
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }
  .unfall-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
  .focus-grid {
    grid-template-columns: 1fr 1.25fr;
    gap: 60px;
    align-items: center;
  }
  .vehicles-grid {
    grid-template-columns: 1fr 1.25fr;
    gap: 60px;
    align-items: center;
  }
  .cta-grid {
    grid-template-columns: .8fr 1.2fr;
    gap: 60px;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .service-card {
    min-height: 270px;
    padding: 27px;
  }

  /* Panels wieder mit fester Höhe */
  .trust-photo-panel {
    height: 440px;
    aspect-ratio: auto;
  }
  /*
  .vehicle-placeholder {
    height: 360px;
    aspect-ratio: auto;
  }
  .vehicle-photo-panel {
    height: 440px;
    aspect-ratio: auto;
  }
  */
  .focus-photo,
  .vehicle-photo {
    aspect-ratio: 16 / 9;
    order: 0; /* keine Umdrehung mehr nötig */
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
  }
  .footer-brand {
    grid-column: auto;
  }

  .intro {
    padding: 80px 0 55px;
  }
  .section {
    padding: 90px 0;
  }
  .cta {
    padding: 100px 0;
  }
}

/* ---------------------------------------------------------
   5. GROSSER DESKTOP (≥ 1100px)
   --------------------------------------------------------- */
@media (min-width: 1100px) {
  .container {
    width: min(var(--max), calc(100% - 48px));
  }

  nav {
    gap: 24px;
  }

  .intro-grid,
  .trust-grid,
  .accident-grid,
  .tires-grid,
  .focus-grid,
  .vehicles-grid,
  .cta-grid,
  .contact-grid {
    gap: 90px;
  }
  .cta-grid {
    gap: 100px;
  }
  .contact-grid {
    gap: 100px;
  }

  .hero {
    min-height: 690px;
  }
  .hero-content {
    padding: 95px 0;
  }

  .trust-photo-panel {
    height: 480px;
  }
  /*
  .vehicle-placeholder {
    height: 390px;
  }
  .vehicle-photo-panel {
    height: 480px;
  }
  */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ---------------------------------------------------------
   6. SEHR BREITE DESKTOPS (≥ 1280px) – nur Feinschliff
   --------------------------------------------------------- */
@media (min-width: 1280px) {
  .hero h1 {
    font-size: 82px;
  }
  .hero-content {
    padding: 100px 0;
  }
}

/* ---------------------------------------------------------
   7. LANDSCAPE-SONDERFALL (flache Viewports)
   --------------------------------------------------------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 30px 0;
  }
  .hero-content {
    padding: 20px 0;
  }
  .hero h1 {
    font-size: clamp(28px, 5.5vw, 42px);
    margin-bottom: 14px;
  }
  nav.open {
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
}

/* ---------------------------------------------------------
   8. Hover nur mit echtem Pointer
   --------------------------------------------------------- */
@media (hover: none) {
  .btn:hover,
  nav a:not(.btn):hover,
  .footer-grid a:hover {
    transform: none;
  }
  .btn:hover {
    background: var(--accent);
    border-color: var(--accent);
  }
}

/* Animation bei reduzierter Bewegung abschalten */
@media (prefers-reduced-motion: reduce) {
  #services .service-card-extra {
    transition: none;
  }
}

@media (max-width: 720px) {
  .hero-badge {
    width: 80px;
    top: 15px;
    right: 15px;
  }
}