/* Phase 3 – Startseite (21.11.2026): C1 Hero Desktop, C3 Hero Mobil, C4 Sticky-Leiste, C5 Formular, C6 Karten, C9 News, C12 Navigation.
   Nur Darstellung; Texte, Reihenfolge der Sektionen und Formularfelder bleiben. Rückbau: Datei + Zeile in functions.php löschen. */

/* ── C12 Desktop-Navigation: 15 px, normale Schreibweise; „Reparatur wählen“ als klarer Button ── */
@media (min-width: 1025px) {
  nav .nav-links a { font-size: 15px; text-transform: none; letter-spacing: 0; }
  nav .nav-links { gap: 22px; align-items: center; }
  nav .nav-links li:nth-child(2) a {
    border: 1.5px solid var(--green-text); color: var(--green-text) !important; border-radius: var(--btn-radius);
    padding: 8px 16px; font-weight: 700 !important;
  }
  nav .nav-links li:nth-child(2) a:hover { background: var(--mint); }
}

/* ── C1 Hero Desktop: so hoch wie der Bildschirm unter Header + Trust-Leiste; Panel ohne Scrollen sichtbar ── */
@media (min-width: 1025px) {
  body .hero { min-height: calc(100vh - 150px); }
  body .hero-left { padding-top: 48px; padding-bottom: 48px; }
  body .hero-right { padding-top: 40px; padding-bottom: 40px; }
  body .hero-right .shop-addr { margin-bottom: 14px; }
  body .hero-right .contact-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
  body .hero-right .contact-link { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; }
}

/* ── C6 Reparatur-Karten Desktop: Button einzeilig, Tag über dem Button, Schnellwahl-Chips ── */
.svc-card.featured .svc-btn { white-space: nowrap; flex-shrink: 0; align-self: center; }
.svc-card.featured .svc-tag { margin-bottom: 4px; }
.svc-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.svc-quick a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none;
}
.svc-quick a:hover, .svc-quick a:focus-visible { background: var(--green); border-color: var(--green); color: #0c0c0c; }

.svc-card:not(.featured) { display: flex; flex-direction: column; align-items: flex-start; }
.svc-card:not(.featured) .svc-tag { margin-bottom: 12px; }
.svc-card:not(.featured) .svc-btn { margin-top: auto; }

/* ── C9 News-Karten mit Vorschaubild 16:9 ── */
.news-card-img { display: block; max-width: none; width: calc(100% + 48px); margin: -24px -24px 6px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px 16px 0 0; background: var(--sand); }

/* ── C5 Formular: kompakter ── */
.upload-area, .photo-upload, .upload-zone { padding: 12px 16px; }

/* ── Mobil ── */
@media (max-width: 768px) {
  /* C3 Hero: nur der grüne Hauptbutton („Anrufen“ steckt in der Sticky-Leiste), straffere Abstände */
  body .hero-btns .btn-ghost { display: none; }
  body .hero-left { padding-top: 24px !important; padding-bottom: 24px; }
  body .hero-sub { margin-bottom: 20px; }
  body .hero-stats { margin-top: 20px; }
  /* C3 Trust-Leiste als 2×2-Raster, nichts abgeschnitten */
  body .trust { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  body .trust-item { flex: none !important; white-space: normal !important; padding: 10px 12px !important; border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.1) !important; font-size: 12px !important; line-height: 1.3; }
  body .trust-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1) !important; }
  body .trust-item:nth-last-child(-n+2) { border-bottom: none !important; }
  /* C3 Öffnungszeiten: einklappbar – eingeklappt nur die „Heute“-Zeile */
  .hours-list .h-row:not(.h-today) { display: none; }
  .hours-list.open .h-row:not(.h-today) { display: flex; }
  .hours-list .h-today { cursor: pointer; }
  .hours-list .h-today::after { content: ''; width: 8px; height: 8px; margin: 6px 0 0 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; flex-shrink: 0; }
  .hours-list.open .h-today::after { transform: rotate(-135deg); margin-top: 10px; }
  .svc-quick { margin-top: 12px; }
}

/* ── C4 Sticky-Leiste: erst nach dem Hero, nicht über dem Formular ── */
.mobile-sticky-bar { transition: transform .25s ease; }
.mobile-sticky-bar.is-hidden { transform: translateY(110%); pointer-events: none; }
