/* Pawlak V1.3.6: shared, additive theme. Loaded after the existing stylesheets. */
:root {
  --calm-navy: #172536;
  --calm-warm: #f6f4ef;
  --calm-white: #fff;
  --calm-ink: #243746;
  --calm-muted: #52616e;
  --calm-orange: #ad4f2a;
  --calm-orange-hover: #8d3f21;
  --calm-orange-active: #71331c;
  --calm-line: #e5e9ed;
  --calm-field-border: #667580;
  --calm-whatsapp: #087443;
  --calm-whatsapp-hover: #065d36;
  --calm-error: #a12620;
  --calm-success: #243746;
  --calm-radius: .75rem;
  --brand-50: #f6f4ef;
  --brand-100: #e5e9ed;
  --brand-200: #e5e9ed;
  --brand-300: #667580;
  --brand-400: #ad4f2a;
  --brand-500: #ad4f2a;
  --brand-600: #8d3f21;
  --brand-700: #71331c;
  --navy-800: #172536;
  --navy-900: #172536;
  --slate-50: #f6f4ef;
  --slate-100: #f6f4ef;
  --slate-200: #e5e9ed;
  --slate-400: #52616e;
  --slate-500: #52616e;
  --slate-600: #243746;
  --slate-700: #243746;
  --slate-800: #243746;
  --slate-900: #243746;
  --emerald-500: #243746;
  --emerald-600: #172536;
  --wa: #087443;
  --v2-ink: #243746;
  --v2-muted: #52616e;
  --v2-line: #e5e9ed;
  --v2-surface: #f6f4ef;
  --v2-orange: #ad4f2a;
  --v2-orange-dark: #8d3f21;
  --v2-orange-bright: #f6f4ef;
  --v2-green: #087443;
  --text-accent: #243746;
  --text-muted: #52616e;
}

body { background: var(--calm-warm); color: var(--calm-ink); }
body :is(a, button, input, select, textarea):focus-visible,
body [data-contact-ui="button"][data-contact-action][data-contact-action]:focus-visible {
  outline: 3px solid var(--calm-white) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px var(--calm-navy) !important;
}
body :is(button, input, select, textarea) { font-size: 1rem; }
body button { min-height: 44px; }

/* Surfaces are explicit so photo overlays and footer copy keep their contrast. */
body [data-calm-surface="light"],
body #anfrage[data-calm-surface="light"],
body #schmerz[data-calm-surface="light"],
body #bewertungen[data-calm-surface="light"],
body #ablauf-kurz[data-calm-surface="light"] {
  background: var(--calm-warm) !important;
  color: var(--calm-ink) !important;
}
body [data-calm-surface="light"] + [data-calm-surface="light"] {
  border-top: 1px solid var(--calm-line);
}
body [data-calm-surface="light"] :is(h2, h3, h4, p, li, dt, dd),
body #anfrage[data-calm-surface="light"] :is(h2, h3, p, li),
body [data-calm-surface="light"] :is(.section-title, .section-title-sm, .lead, .quick-request-intro, .quick-request-kicker, .contact-label, .contact-value) {
  color: var(--calm-ink) !important;
}
body [data-calm-surface="light"] :is(h2, h3, h4) {
  overflow-wrap: anywhere;
  hyphens: auto;
}
body [data-calm-surface="light"] :is(.section-label, .section-label::before),
body #anfrage[data-calm-surface="light"] .section-label { color: var(--calm-muted) !important; }
body [data-calm-surface="light"] .section-label::before,
body .quick-request-kicker::before,
body .sitewide-service-area::before { background: var(--calm-muted) !important; }
body [data-calm-surface="light"] :is(p, li, dd) a:not([data-contact-ui="button"]),
body [data-calm-surface="light"] :is(.outcome-proof-link, .price-contact-detail) {
  color: var(--calm-navy) !important;
  text-decoration: underline;
  text-underline-offset: .2em;
}
body [data-calm-surface="light"] :is(.card, .review-card, .city-card, .pain-card, .contact-card, .rating-badge) {
  background: var(--calm-white);
  border-color: var(--calm-line);
  border-radius: var(--calm-radius);
  box-shadow: none;
}
body :is(.card, .review-card, .city-card, .pain-card, .contact-card):hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--calm-field-border);
}
body :is(.hero-kicker-dot, .result-route li::before, .quick-request-benefits span, .contact-form-benefits span) {
  background: var(--calm-ink) !important;
  color: var(--calm-white) !important;
  box-shadow: none !important;
}
body :is(.trust-item svg, .card-list li svg, .trust-indicator .check) { color: var(--calm-ink); }
body :is(.card-icon, .contact-icon) { background: var(--calm-line) !important; color: var(--calm-ink); }
body .contact-icon svg { color: inherit !important; stroke: currentColor !important; }
body .contact-card :is(.contact-label, .contact-value) { overflow-wrap: anywhere; }
body .contact-card .contact-label { text-transform: none; letter-spacing: 0; }

/* Header/footer stay dark; normal links are light and underlined on interaction. */
body :is(.nav-main, .mobile-nav, .footer) {
  background: var(--calm-navy) !important;
  color: var(--calm-warm);
  backdrop-filter: none;
  box-shadow: none !important;
}
body :is(.nav-main, .mobile-nav) :is(.nav-link, .mobile-dropdown-toggle, .dd-arrow),
body .mobile-nav a:not([data-contact-ui="button"]),
body .footer :is(p, a, h2, h3, h4, span),
body .footer .footer-bottom :is(a, span) { color: var(--calm-warm) !important; }
body .nav-link { min-height: 44px; display: inline-flex; align-items: center; }
body .nav-dropdown-menu { background: var(--calm-navy); border-color: var(--calm-field-border); }
body .nav-dropdown-menu a { min-height: 44px; color: var(--calm-warm); display: flex; align-items: center; }
body :is(.nav-link, .nav-dropdown-menu a, .footer a):hover {
  color: var(--calm-white) !important;
  text-decoration: underline;
  text-underline-offset: .2em;
}
body .nav-link.active { color: var(--calm-white); background: #243746; }
body .footer .pawlak-review-strip__list a {
  background: var(--calm-ink);
  border-color: var(--calm-field-border);
  box-shadow: none;
}
body .footer .pawlak-review-strip__list a:hover { background: var(--calm-navy); border-color: var(--calm-warm); }
body .footer .pawlak-review-strip__list strong { color: var(--calm-white); }
body .footer .pawlak-review-strip__link { text-decoration: underline; }
body .hero-kicker, body .hero-v2 h1 .hero-emphasis { color: var(--calm-warm) !important; }
body .hero-kicker {
  width: fit-content;
  max-width: 100%;
  padding: .375rem .625rem;
  border-radius: .375rem;
  background: var(--calm-navy);
}
body .hero-kicker .hero-kicker-dot { background: var(--calm-warm) !important; }
body .hero-v2-benefits svg { color: var(--calm-warm); }
body [data-calm-surface="dark"] :is(.section-label, .hero-kicker, .breadcrumb, .breadcrumb a) { color: var(--calm-warm) !important; }
body [data-calm-surface="dark"] .section-label::before { background: var(--calm-warm); }

/* Contact hierarchy. Attribute repetition deliberately outranks legacy CTA rules. */
body [data-contact-ui="button"][data-contact-action][data-contact-action] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-width: 44px;
  min-height: 48px;
  max-width: 100%;
  border: 1px solid var(--calm-field-border) !important;
  border-radius: .65rem !important;
  background: var(--calm-white) !important;
  color: var(--calm-ink) !important;
  box-shadow: none !important;
  text-decoration: none;
  text-align: center;
  line-height: 1.35;
  transform: none !important;
  animation: none !important;
  transition: background-color .15s ease, border-color .15s ease !important;
}
body .calm-request-action {
  padding: .8rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
}
body [data-contact-ui="button"][data-contact-action="request"][data-contact-action] {
  background: var(--calm-orange) !important;
  border-color: var(--calm-orange) !important;
  color: var(--calm-white) !important;
}
body [data-contact-ui="button"][data-contact-action="request"][data-contact-action]:hover {
  background: var(--calm-orange-hover) !important;
  border-color: var(--calm-orange-hover) !important;
}
body [data-contact-ui="button"][data-contact-action="request"][data-contact-action]:active {
  background: var(--calm-orange-active) !important;
  border-color: var(--calm-orange-active) !important;
}
body [data-contact-ui="button"][data-contact-action="whatsapp"][data-contact-action] {
  background: var(--calm-whatsapp) !important;
  border-color: var(--calm-whatsapp) !important;
  color: var(--calm-white) !important;
}
body [data-contact-ui="button"][data-contact-action="whatsapp"][data-contact-action]:hover {
  background: var(--calm-whatsapp-hover) !important;
  border-color: var(--calm-whatsapp-hover) !important;
}
body [data-contact-ui="button"][data-contact-action]:is([data-contact-action="phone"], [data-contact-action="email"]):hover {
  background: var(--calm-line) !important;
  border-color: var(--calm-ink) !important;
}
body [data-calm-surface="dark"] [data-contact-ui="button"]:is([data-contact-action="phone"], [data-contact-action="email"]),
body .nav-main [data-contact-ui="button"]:is([data-contact-action="phone"], [data-contact-action="email"]),
body .mobile-nav [data-contact-ui="button"]:is([data-contact-action="phone"], [data-contact-action="email"]) {
  background: var(--calm-ink) !important;
  border-color: var(--calm-warm) !important;
  color: var(--calm-white) !important;
}
body [data-calm-surface="dark"] [data-contact-ui="button"]:is([data-contact-action="phone"], [data-contact-action="email"]):hover {
  background: var(--calm-navy) !important;
}
body [data-contact-ui="button"][data-contact-action] :is(span, small, strong, div) { color: inherit !important; }
body [data-contact-ui="button"] .contact-icon { background: transparent !important; color: inherit !important; }
body [data-contact-ui="button"] svg { color: inherit !important; }
body .floating-contact-stack [data-contact-ui="button"] { border-radius: 999px !important; }

/* Every existing form uses one field system; honeypots and transport stay intact. */
body :is(.contact-form, .quick-request-card),
body #anfrage :is(.contact-form, .quick-request-card) {
  background: var(--calm-white) !important;
  border: 1px solid var(--calm-line) !important;
  border-radius: var(--calm-radius);
  color: var(--calm-ink);
  box-shadow: none !important;
}
body :is(.contact-form, .quick-request-card) :is(h2, h3, p, span),
body #anfrage :is(.contact-form, .quick-request-card) :is(h2, h3, p, span) { color: var(--calm-ink) !important; }
body :is(.form-group, .quick-form-group) label,
body #anfrage :is(.form-group, .quick-form-group) label {
  color: var(--calm-ink) !important;
  font-size: .9375rem;
  line-height: 1.45;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
body :is(.form-group, .quick-form-group) :is(input, select, textarea),
body #anfrage :is(.form-group, .quick-form-group) :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  background: var(--calm-white) !important;
  color: var(--calm-ink) !important;
  border: 1px solid var(--calm-field-border) !important;
  border-radius: .5rem;
  padding: .75rem .875rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  color-scheme: light;
}
body :is(.form-group, .quick-form-group) textarea { min-height: 110px; resize: vertical; }
body :is(.form-group, .quick-form-group) :is(input, textarea)::placeholder { color: var(--calm-muted); opacity: 1; }
body :is(.form-group, .quick-form-group) :is(input, select, textarea):focus {
  border-color: var(--calm-navy) !important;
}
body :is(.form-group, .quick-form-group) :is(input, select, textarea)[aria-invalid="true"],
body :is(.form-group, .quick-form-group) :is(input, select, textarea):user-invalid {
  border: 2px solid var(--calm-error) !important;
}
body .form-runtime-status,
body #anfrage .form-runtime-status { background: var(--calm-warm); color: var(--calm-success) !important; }
body .form-runtime-status:empty,
body #anfrage .form-runtime-status:empty {
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}
body .form-runtime-status.is-error,
body #anfrage .form-runtime-status.is-error { color: var(--calm-error) !important; }
body .form-success { background: var(--calm-warm); border-color: var(--calm-ink); color: var(--calm-ink); }
body :is(.form-privacy, .quick-form-privacy) a { color: var(--calm-navy) !important; text-decoration: underline; text-underline-offset: .2em; }
body .price-contact-row { border-color: var(--calm-line); }
body .price-contact-row dd { color: var(--calm-ink); }
body .price-contact-assurance { border-color: var(--calm-line); }
body .price-contact-summary .price-contact-small { border-color: var(--calm-field-border); }
body .price-contact-summary .price-contact-detail { color: var(--calm-navy); }

/* Disclosure text is information, never styled as a sales action. */
body :is(.ai-content-label, .ai-image-note, .ai-visual-note, .outcome-disclaimer, .comparison-note),
body [data-calm-surface="light"] :is(.ai-content-label, .ai-image-note, .ai-visual-note, .outcome-disclaimer, .comparison-note) {
  color: var(--calm-muted) !important;
  font-size: .8125rem;
  line-height: 1.55;
}
body .ai-content-badge {
  background: var(--calm-line) !important;
  border-color: var(--calm-field-border) !important;
  color: var(--calm-ink) !important;
  box-shadow: none;
}
body [data-calm-surface="dark"] :is(.ai-content-label, .ai-image-note, .ai-visual-note) { color: var(--calm-warm) !important; }
body :is(.outcome-shot figcaption, .comparison-label) {
  background: var(--calm-navy) !important;
  color: var(--calm-white) !important;
}
body #projektgalerie .card span[style*="16,185,129"] {
  background: var(--calm-navy) !important;
  color: var(--calm-white) !important;
}
body .cookie-banner { background: var(--calm-navy); color: var(--calm-warm); }
body .cookie-banner a { color: var(--calm-warm); }
body .cookie-banner .cb-accept { background: var(--calm-orange); color: var(--calm-white); }
body .cookie-banner .cb-defer { border-color: var(--calm-warm); color: var(--calm-warm); }

@media (max-width: 640px) {
  body :is(.hero-v2-actions, .hero-cta-row),
  body .price-contact-page .hero-cta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
    width: 100%;
  }
  body :is(.hero-v2-actions, .hero-cta-row) a {
    width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: .8rem .9rem;
  }
  body :is(.hero-v2-actions, .hero-cta-row) a span { min-width: 0; }
  body .mobile-nav { padding-inline: 1rem; }
  body .mobile-nav [data-contact-ui="button"] { white-space: normal; }
  body :is(.quick-form-row, .form-row) { grid-template-columns: minmax(0, 1fr); }
  body :is(.contact-form, .quick-request-card) { min-width: 0; padding: 1.125rem; }
  body .contact-card { min-width: 0; }
  body .contact-card .contact-value { font-size: 1rem; }
  body :is(.contact-quick-links, .quick-request-alternatives) a { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  body :is(.reveal, .reveal.visible, .card, .contact-card, [data-contact-ui="button"]) {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
@media (forced-colors: active) {
  body [data-contact-ui="button"][data-contact-action] { border: 2px solid ButtonText !important; }
  body :is(a, button, input, select, textarea):focus-visible,
  body [data-contact-ui="button"][data-contact-action][data-contact-action]:focus-visible { outline: 3px solid Highlight !important; box-shadow: none !important; }
}
