/* Phase 1 – Fehlerbehebung (21.11.2026). Nur Korrekturen, kein Redesign.
   Entfernen = Datei + 1 Zeile in functions.php löschen. */

/* A6: Trust-Leiste lag auf Desktop unter dem fixierten Header */
@media (min-width: 1025px) {
  .trust { margin-top: 104px; }
  body.has-announcement .trust { margin-top: calc(44px + 104px); }
  body:has(.trust) .hero { margin-top: 0; }
}

/* A7: Cookie-Button (Complianz) ganz sichtbar, links unten; Nach-oben-Button in Markenfarbe */
@media (min-width: 1025px) {
  .cmplz-manage-consent.cmplz-show { bottom: 16px !important; left: 16px !important; right: auto !important; }
}
#ast-scroll-top { background-color: #0C0C0C; color: #fff; }
#ast-scroll-top:hover, #ast-scroll-top:focus { background-color: #3EBD5A; color: #0C0C0C; }

/* A9: lange Zeilen im Widerrufsformular umbrechen (Text unverändert) */
.legal-info-box { overflow-wrap: anywhere; word-break: break-word; }

/* A2: Überschrift „Was wir reparieren.“ am Seitenrand (war per align-items:flex-end nach rechts geschoben), Standard-Schwarz */
.services-header h2 { color: var(--black, #0C0C0C); }
@media (max-width: 1024px) {
  .services-header { align-items: flex-start; }
}

/* A3: Reparatur-Karten auf Mobil/Tablet als 2-spaltiges Raster statt unsichtbarer Wischleiste */
@media (max-width: 1024px) {
  .svc-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
    gap: 12px;
    padding-bottom: 0;
  }
  .svc-card, .svc-card.featured {
    flex: none;
    max-width: none;
    min-width: 0;
    padding: 18px 16px;
  }
  .svc-card { display: flex; flex-direction: column; align-items: flex-start; }
  .svc-card .svc-tag { margin-bottom: 12px; }
  .svc-card .svc-btn { margin-top: auto; }
  .svc-card.featured { grid-column: 1 / -1 !important; }
  .svc-grid .svc-btn { display: flex; width: 100%; padding: 8px 10px; text-align: center; }
  .svc-scroll-hint { display: none !important; }
}

/* A4: Preistabelle auf Mobil – Modell-Spalte bleibt stehen, Rand zeigt „weiter wischen“ */
@media (max-width: 1024px) {
  .rp-table-wrap {
    background:
      linear-gradient(to right, #161616 30%, rgba(22,22,22,0)) 0 0,
      linear-gradient(to left, #161616 30%, rgba(22,22,22,0)) 100% 0,
      radial-gradient(farthest-side at 0 50%, rgba(62,189,90,.45), rgba(62,189,90,0)) 0 0,
      radial-gradient(farthest-side at 100% 50%, rgba(62,189,90,.45), rgba(62,189,90,0)) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 16px 100%, 16px 100%;
    background-attachment: local, local, scroll, scroll;
  }
  .rp-price-table th:first-child,
  .rp-price-table td:first-child { position: sticky; left: 0; z-index: 2; background-color: #161616; }
  .rp-price-table th:first-child { background-color: #1e1e1e; }
}

/* A5: Mobiles Menü – keine sichtbaren Scrollbalken, kein seitliches Scrollen */
.mobile-menu { overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.mobile-menu::-webkit-scrollbar { display: none; }

/* A8: Formular Mobil – Kontaktmethode als 3er-Reihe (48 px), Beschreibungsfeld höher */
@media (max-width: 800px) {
  body .contact-method { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
  body .contact-method label { min-height: 48px; padding: 8px 4px; gap: 0; border-radius: 10px; font-size: 14px; }
  body .contact-method label:hover { transform: none; box-shadow: none; }
  body .contact-method label { height: 48px; }
  body .contact-method label span { flex-direction: row; justify-content: center; gap: 4px; white-space: nowrap; letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 600; }
  .form-group textarea[name="description"] { min-height: 140px; }
}

/* A10: Spielkonsolen-Seite Mobil – Raster-Spalte darf nicht breiter als der Bildschirm werden */
@media (max-width: 1024px) {
  .sk-section .sk-spezial-grid { grid-template-columns: minmax(0, 1fr); }
  .sk-section .sk-spezial-grid > * { min-width: 0; }
  .sk-spezial-content, .sk-spezial-content p { overflow-wrap: anywhere; }
}
@media (max-width: 1024px) {
  .sk-section div:has(> .sk-model-table) { overflow-x: auto; max-width: 100%; }
}
