/* V1.4.0: layout only. Preserve copy, actions, imagery and accessible controls. */
:root {
  --compact-space: clamp(2.5rem, 5vw, 4rem);
  --compact-gap: 1rem;
}

/* Provider artwork and every linked label share the same center axis. */
body .footer .pawlak-review-strip__list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
body .footer .pawlak-review-strip__list a {
  align-items: center;
  text-align: center;
}
body .footer .review-provider-mark {
  margin-inline: auto;
}
body .footer .pawlak-review-strip__link {
  align-self: center;
}
body :is(.contact-form, .quick-request-card) button[type="submit"] { font-size: 1rem; }
body .price-guide-figure img { aspect-ratio: 16 / 10; object-fit: cover; object-position: center; }
body .scope-price-label {
  font-size: 1.5rem !important;
  line-height: 1.25;
}
/* Text enlargement must reflow, not spill outside its layout tracks. */
body .city-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.25rem), 1fr));
}
body .city-grid > .city-card {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}
body .thanks-trust-bar {
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
body .thanks-trust-bar > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
body #danke-title { color: var(--calm-ink) !important; }
body [data-calm-surface="light"] .contact-card:is([data-contact-action="phone"], [data-contact-action="email"]) .contact-icon svg {
  color: var(--calm-ink) !important;
  stroke: currentColor !important;
}

@media (max-width: 1024px) {
  body .section[data-calm-surface="light"]:not(.section-dark):not(#anfrage),
  body #anfrage[data-calm-surface="light"],
  body #bewertungen[data-calm-surface="light"],
  body :is(.final-cta-v2, .contact-cta-compact)[data-calm-surface="light"],
  body .outcome-proof[data-calm-surface="light"] {
    padding-block: var(--compact-space) !important;
  }
  body .section[data-calm-surface="light"] :is(.section-title, .section-title-sm),
  body .outcome-proof-copy h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem) !important;
    line-height: 1.2;
  }
  body .section[data-calm-surface="light"] .lead,
  body .outcome-proof-copy > p,
  body .value-teaser-copy p {
    font-size: 1rem !important;
    line-height: 1.6;
  }
  body .trust-inner {
    min-height: 0;
    gap: .5rem;
    padding-block: .75rem;
  }
  body .trust-inner .trust-item {
    min-height: 48px;
    padding: .5rem .625rem;
  }
  body .contact-form .form-group,
  body .quick-request-card .quick-form-group {
    margin-bottom: .875rem;
  }
  body .contact-form .form-row,
  body .quick-request-card .quick-form-row { gap: 0 1rem; }
  body :is(.contact-form, .quick-request-card) :is(input, select, textarea) {
    font-size: 1rem;
    line-height: 1.4;
  }
  body :is(.contact-form, .quick-request-card) textarea {
    height: 96px;
    min-height: 96px;
  }
  body :is(.final-cta-v2, .contact-cta-compact) .contact-card {
    min-height: 76px;
    padding: .75rem .875rem;
  }
}

@media (min-width: 420px) and (max-width: 1024px) {
  body .contact-form .form-row,
  body .quick-request-card .quick-form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --content-section-space: 2.5rem;
    --content-title-size: 1.75rem;
    --content-title-small: 1.625rem;
    --content-card-gap: 1rem;
  }
  body .section[data-calm-surface="light"]:not(.section-dark):not(#anfrage),
  body #anfrage[data-calm-surface="light"],
  body #bewertungen[data-calm-surface="light"],
  body :is(.final-cta-v2, .contact-cta-compact)[data-calm-surface="light"],
  body .outcome-proof[data-calm-surface="light"] {
    padding-block: 2.5rem !important;
  }
  body .section[data-calm-surface="light"] :is(.section-title, .section-title-sm),
  body .outcome-proof-copy h2,
  body #ablauf-kurz h2,
  body #anfrage .section-title {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }
  body .section[data-calm-surface="light"] :is(.lead, p),
  body #anfrage .lead {
    line-height: 1.6;
  }
  body .section-label { font-size: .875rem; margin-bottom: .875rem; }
  body .trust-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: .75rem 0;
    gap: .5rem .75rem;
  }
  body .trust-inner .trust-item {
    min-width: 0;
    min-height: 44px;
    padding: .375rem;
    gap: .5rem;
    border: 0;
    font-size: .875rem;
    line-height: 1.35;
    text-align: left;
    justify-content: flex-start;
  }
  body .trust-inner .trust-item:last-child { grid-column: 1 / -1; justify-content: center; }
  body .trust-item svg { width: 22px; height: 22px; flex: 0 0 22px; }
  body .outcome-proof-grid,
  body .result-stage-grid,
  body #anfrage .contact-conversion-grid { gap: 1.5rem; }
  body .outcome-proof-copy h2 { margin-bottom: 1rem; }
  body .contact-form,
  body #anfrage .contact-form,
  body .quick-request-card { padding: 1rem; }
  body #anfrage .contact-form h3 { font-size: 1.25rem; margin-bottom: 1rem; }
  body .contact-form .form-group label { margin-bottom: .375rem; }
  body .contact-form .form-group :is(input, select),
  body .quick-request-card .quick-form-group :is(input, select) {
    min-height: 48px;
    padding: .625rem .75rem;
  }
  body #anfrage .contact-form-benefits { margin-top: 1rem; gap: .625rem; }
  body #anfrage .contact-quick-links { margin-top: 1.25rem; gap: .5rem; }
  body #ablauf-kurz .grid-auto-sm { gap: 1.25rem; margin-top: 1.5rem !important; }
  body #ablauf-kurz .card { grid-template-columns: 38px minmax(0, 1fr); column-gap: .75rem; }
  body #ablauf-kurz .card > div:first-child {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
  }
  body #ablauf-kurz .card h3 { font-size: 1.125rem !important; line-height: 1.3; }
  body #ablauf-kurz .card p { line-height: 1.6; }
  body #bewertungen .rating-badge {
    display: grid;
    gap: 0;
    padding: .5rem 1rem;
  }
  body #bewertungen .rating-source { padding: .75rem 0; }
  body #bewertungen .rating-source strong { font-size: 1.375rem; }
  body #bewertungen .rating-source span { font-size: .8125rem; line-height: 1.45; }
  body #bewertungen .rating-badge .sep { width: 100%; height: 1px; margin: 0; }
  body .footer .pawlak-review-strip__list { gap: .75rem; }
  body .footer .pawlak-review-strip__list a { padding: .875rem 1rem; gap: .25rem; }
  body .footer .review-provider-mark { width: 144px; min-height: 52px; padding: .625rem 1rem; }
  body .footer .review-provider-logo { width: 112px; height: 24px; }
  body .footer .pawlak-review-strip__list strong { font-size: 1.5rem; }
  body :is(.final-cta-v2, .contact-cta-compact) > .container > :is(.grid-3, .grid-4) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.5rem;
  }
  body :is(.final-cta-v2, .contact-cta-compact) .contact-card { gap: .5rem !important; min-height: 76px; }
  body :is(.final-cta-v2, .contact-cta-compact) .contact-card > .contact-icon { width: 24px; height: 24px; flex-basis: 24px; }
  body :is(.final-cta-v2, .contact-cta-compact) .contact-card .contact-value { font-size: 1rem; line-height: 1.35; }
  body :is(.final-cta-v2, .contact-cta-compact) .contact-card[data-contact-action="email"],
  body :is(.final-cta-v2, .contact-cta-compact) .contact-card[data-contact-action="request"] { grid-column: 1 / -1; }
  body .price-guide-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  body .price-guide-card { padding: 1rem; }
  body .price-guide-card p { font-size: 1rem; line-height: 1.55; }
  body .price-guide-card h3 { font-size: 1.125rem; margin-block: .625rem; }
  body .price-guide .price-guide-amount { font-size: 1.75rem; }
  body .price-guide-figure img { aspect-ratio: 16 / 9; }
  body .scope-price-label { font-size: 1.375rem !important; }
  body main .card:has(> .scope-price-label) { padding: 1.25rem; }
}
