/* Pawlak V1.3.8: additive brand corrections after calm-theme.v136.
   The nine navigation entries and all existing contact actions are retained. */
body .nav-main {
  container: pawlak-navigation / inline-size;
}
body .nav-main .nav-inner {
  height: 108px;
  min-height: 108px;
  gap: 1.5rem;
}
body .nav-main .nav-inner > a:first-child { flex: 0 0 auto; }
body .nav-main .nav-logo {
  display: block;
  width: 172px !important;
  max-width: 172px !important;
  height: auto !important;
  aspect-ratio: 360 / 154;
  object-fit: contain !important;
}
body .nav-main .nav-links {
  min-width: 0;
  padding-block: 4px;
  gap: 4px;
}
body .nav-main .nav-primary-links { gap: .125rem; }
body .nav-main .nav-primary-links .nav-link {
  min-height: 44px;
  padding: .5rem .625rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}
body .nav-main .nav-contact-actions { gap: .5rem; }
body .nav-main .nav-contact-actions .nav-cta {
  min-height: 48px !important;
  padding: .625rem .875rem;
  font-size: .9rem;
  line-height: 1.35;
}
body .nav-main .nav-contact-actions .nav-cta svg { width: 16px; height: 16px; }
body .nav-main .mobile-menu-btn { flex: 0 0 auto; }
body .mobile-nav > a,
body .mobile-nav .mobile-nav-dropdown > a { font-size: 1.125rem; }

/* Earlier mobile switch preserves readable labels instead of shrinking them.
   Container rem units also allow the menu to reflow with 200% root text. */
@media (max-width: 1180px) {
  body .nav-main .nav-inner { height: 72px; min-height: 72px; }
  body .nav-main .nav-logo { width: 140px !important; max-width: 140px !important; }
  body .nav-main .nav-links { display: none; }
  body .nav-main .mobile-menu-btn { display: flex; }
}
@container pawlak-navigation (max-width: 73.75rem) {
  body .nav-main .nav-inner { height: 72px; min-height: 72px; }
  body .nav-main .nav-logo { width: 140px !important; max-width: 140px !important; }
  body .nav-main .nav-links { display: none; }
  body .nav-main .mobile-menu-btn { display: flex; }
}
@media (max-width: 640px) {
  body .nav-main .nav-inner { height: 64px; min-height: 64px; }
  body .nav-main .nav-logo { width: 116px !important; max-width: 116px !important; }
}

/* The existing white Pawlak asset keeps its intrinsic proportions. */
body .footer .footer-brand-logo {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 360 / 154;
  object-fit: contain;
  margin: 0 0 1.25rem;
  border-radius: 0;
}
body .footer .footer-grid > div { min-width: 0; }
body .footer .footer-grid :is(p, a) {
  font-size: .9375rem !important;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
body .footer :is(h3, h4) {
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: .025em;
}
body .footer .footer-bottom :is(a, span) { font-size: .875rem !important; }
body .footer .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

/* Original provider wordmarks, local only, separate from scores and labels.
   The white plate preserves source colors and clear space on the navy footer. */
body .footer .review-provider-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 184px;
  max-width: 100%;
  min-height: 72px;
  margin: 0 0 .375rem;
  padding: 12px 20px;
  border-radius: .375rem;
  background: var(--calm-white, #fff);
}
body .footer .review-provider-logo {
  display: block;
  width: 140px;
  max-width: 100%;
  height: 28px;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
}
body .footer .pawlak-review-strip__platform { font-size: 1rem; }
body .footer .pawlak-review-strip__date { font-size: .9375rem; }

@media (min-width: 768px) and (max-width: 1024px) {
  body .footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (pointer: coarse) {
  body .footer .footer-links a { min-height: 44px; }
}

/* Pawlak v1.3.8 — content layout only; combined after the existing v136 theme. */
:root {
  --content-section-space: clamp(3.5rem, 6vw, 5.5rem);
  --content-title-size: clamp(1.8rem, 2.8vw, 2.75rem);
  --content-title-small: clamp(1.6rem, 2.3vw, 2.25rem);
  --content-card-gap: 1.25rem;
  --content-reading-width: 70ch;
}

/* Heading roles, not tag-wide rules. Photo heroes and form headings are excluded. */
body .section[data-calm-surface="light"]:not(#anfrage):not(.section-dark) {
  padding-block: var(--content-section-space) !important;
}
body .section[data-calm-surface="light"]:not(#anfrage) .section-title {
  font-size: var(--content-title-size) !important;
  line-height: 1.16;
  letter-spacing: -.025em;
  text-wrap: balance;
}
body .section[data-calm-surface="light"]:not(#anfrage) .section-title-sm {
  font-size: var(--content-title-small);
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: balance;
}
body .section[data-calm-surface="light"]:not(#anfrage) .lead {
  max-width: var(--content-reading-width);
  font-size: 1.075rem;
  line-height: 1.7;
  text-wrap: pretty;
}
body .article-prose > p {
  max-width: var(--content-reading-width);
  text-wrap: pretty;
}
body .article-prose > h2 {
  line-height: 1.2;
  text-wrap: balance;
}
body .article-prose > h3 {
  line-height: 1.3;
  text-wrap: balance;
}

/* The two home card families share one photo window and the same column widths. */
body #schmerz .schmerz-grid,
body #leistungen .leistungen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--content-card-gap) !important;
  align-items: stretch;
}
body #schmerz .schmerz-grid > .card,
body #leistungen .leistungen-grid > .card {
  min-width: 0;
  text-align: left !important;
  border-radius: var(--calm-radius) !important;
}
body #schmerz .schmerz-grid > .card > img,
body #leistungen .leistungen-grid > .card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover;
  object-position: center 20%;
}
body #schmerz .schmerz-grid > .card > div,
body #leistungen .leistungen-grid > .card > div {
  padding: 1.5rem !important;
}
body #schmerz .schmerz-grid > .card h3,
body #leistungen .leistungen-grid > .card h3 {
  margin-bottom: .75rem !important;
  font-size: 1.3rem !important;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-wrap: balance;
}
body #schmerz .schmerz-grid > .card > div > p,
body #leistungen .leistungen-grid > .card > div > p {
  font-size: 1rem !important;
  line-height: 1.65;
  text-wrap: pretty;
}

/* Value credit: one complete image, one reading column, one existing action. */
body .value-teaser { padding-inline: 1rem; }
body .value-teaser-inner { width: min(100%, 900px); margin-inline: auto; }
body .value-teaser-media > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 55% center;
  border-radius: var(--calm-radius);
  box-shadow: none;
}
body .value-teaser-copy {
  width: min(100%, var(--content-reading-width));
  margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
}
body .value-teaser-copy h2 {
  margin: 0 0 1.25rem;
  font-size: var(--content-title-size);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.025em;
  text-wrap: balance;
}
body .value-teaser-copy p {
  margin: 0 0 1rem;
  font-size: 1.075rem;
  line-height: 1.7;
  text-wrap: pretty;
}
body .value-teaser-copy p:last-child { margin-bottom: 0; }
body .value-teaser-action { margin-top: 1.75rem; text-align: center; }
body .value-teaser-action > a {
  max-width: 100%;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

/* Remove only the stale half-width decorative wash, never a photo overlay. */
body .final-cta-v2[data-calm-surface="light"]::before { content: none; }
body .final-cta-v2 > .container > .grid-3 { max-width: 1000px !important; }
body .final-cta-v2 .contact-card { gap: .625rem !important; padding-inline: .875rem; }
body .final-cta-v2 .contact-card > .contact-icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
}
body .final-cta-v2 .contact-card > div:last-child { min-width: 0; }
body .final-cta-v2 .contact-card[data-contact-action="email"] .contact-value {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: manual;
}

@media (min-width: 640px) {
  body #schmerz .schmerz-grid,
  body #leistungen .leistungen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  body #schmerz .schmerz-grid,
  body #leistungen .leistungen-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body .final-cta-v2 > .container > .grid-3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
  }
}

/* Text enlargement: preserve type sizes, allow long German words to reflow. */
body main h1 {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
body main :is(.btn-primary, .btn-secondary, .btn-outline, .btn-white, .faq-q, button[type="submit"]) {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
body main .faq-q { line-height: 1.45; }
body main .faq-q .faq-chev { flex: 0 0 18px; }
body main :is(.card, .contact-card) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body main .contact-card > div { min-width: 0; }
body main .card[style*="display:flex"] > div:last-child { min-width: 0; }
body main :is(.sitewide-service-area, .quick-request-kicker, .section-label) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
}
body main :is(.grid-2, .grid-3, .grid-4, .grid-auto, .grid-auto-sm, .grid-auto-md,
  .contact-conversion-grid, .quick-request-layout, .form-row, .quick-form-row,
  .article-author) > * { min-width: 0; }
body main :is(.contact-form p, .quick-form-privacy, .page-header p,
  .article-author p, .form-group label, .quick-form-group label,
  .price-guide p, .price-guide figcaption, .price-contact-form-kicker,
  .price-contact-form-intro) {
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
}
body .footer :is(h3, h4) {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}
@media (max-width: 900px) {
  body .contact-form .form-row { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 641px) and (max-width: 900px) {
  body .trust-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body .trust-inner > .trust-item {
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}
@media (max-width: 639px) {
  body main :is(.grid-2, .grid-3, .grid-4, .grid-auto, .grid-auto-sm, .grid-auto-md,
    .vorteile-grid, .vorteile-grid-unten) {
    grid-template-columns: minmax(0, 1fr);
  }
  body main div[style*="grid-template-columns:repeat(auto-fit,minmax("] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body main .article-author { grid-template-columns: minmax(0, 1fr); }
}
