/* ==========================================================================
   Repairnow – Reparatur-Unterseiten (/reparatur/…), erzeugt von tools/build-pages.py
   Baut auf style.css auf (Farben, Buttons, Footer, FAQ, Mobilleiste).
   ========================================================================== */

.subpage .header .container { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.subpage .header__actions { margin-left: auto; }
.lang-links { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); }
.lang-links a { display: grid; place-items: center; min-width: 40px; min-height: 34px; border-radius: 999px; font-weight: 600; font-size: .8125rem; text-decoration: none; color: var(--muted); }
.lang-links a[aria-current] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.lang-links a:not([aria-current]):hover { color: var(--ink); }

.crumbs { padding-top: 20px; font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

.hero-sub { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(20px, 3vw, 32px); }
.hero-sub h1 { max-width: 20ch; }
.hero-sub h1 { margin-top: 14px; font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
.hero-sub .lead { margin-top: 16px; font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.hero-sub__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.block { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(28px, 4vw, 44px); }
.block > h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 20px; }
.block > h2 ~ h2 { margin-top: 36px; }
.block .note { margin-top: 14px; font-size: .9375rem; color: var(--muted); max-width: 70ch; }
.block .faq { margin-inline: 0; }
.block .more { margin-top: 18px; }

/* Preistabelle */
.price-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
.price-table thead th { border-top: 0; background: var(--surface); font-family: var(--font-head); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price-table tbody th { font-weight: 600; font-family: var(--font-head); font-size: 1.0625rem; }
.price-table .dur { color: var(--muted); white-space: nowrap; }
.price-table .dur .icon { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; margin-right: 6px; }
.price-table .price { white-space: nowrap; }
.price-table .price strong { font-family: var(--font-head); font-size: 1.1875rem; }
.price-table .price small { display: block; font-size: .8125rem; color: var(--muted); }
.price-table .on-request { font-weight: 600; color: var(--ink-2); }
.price-table .act { text-align: right; width: 1%; }
.price-table tr.diag { background: var(--surface); }

/* Vorteile */
.trust ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-block: 8px; }
.trust li { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--surface); font-size: .9375rem; color: var(--ink-2); }
.trust .icon { color: var(--red-ink); width: 22px; height: 22px; margin-top: 1px; }
.trust strong { color: var(--ink); }

/* Modelle */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.model-card { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-decoration: none; transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast); }
.model-card:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.model-card span { font-family: var(--font-head); font-weight: 600; }
.model-card small { color: var(--muted); font-size: .875rem; }
.model-card--brand { padding: 22px; }
.model-card--brand span { font-size: 1.1875rem; }
.model-links { display: flex; flex-wrap: wrap; gap: 8px; }
.model-links a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); text-decoration: none; font-size: .9375rem; }
.model-links a:hover { background: var(--ink); color: #fff; }

.subpage .cta-band { margin-top: clamp(28px, 4vw, 44px); }

/* Ortsseiten */
.route { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.route li { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.route .icon { color: var(--red-ink); width: 22px; height: 22px; margin-top: 2px; }
.route strong { display: block; font-family: var(--font-head); }
.route span { color: var(--muted); font-size: .9375rem; }
.price-table--popular tbody th a { text-decoration: none; }
.price-table--popular tbody th a:hover { text-decoration: underline; }
.footer__towns { margin-top: 40px; max-width: none !important; font-size: .875rem; }
.footer__towns a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 900px) {
  .trust ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .subpage .header .container { min-height: 64px; }
  .trust ul { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; }
  /* Preistabelle als Karten */
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr { display: block; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px; border-top: 1px solid var(--line); }
  .price-table tbody tr:first-child { border-top: 0; }
  .price-table th, .price-table td { padding: 0; border: 0; }
  .price-table tbody th { grid-column: 1; }
  .price-table .price { grid-column: 2; grid-row: 1; text-align: right; }
  .price-table .dur { grid-column: 1; font-size: .875rem; }
  .price-table .act { grid-column: 2; grid-row: 2; width: auto; }
  .price-table .act .btn { min-height: 36px; padding: 6px 14px; }
  .price-table .price small { font-size: .75rem; }
}
