/* Shared Heizung-Notdienst identity. Component styles still own their layouts. */
body.hn-theme {
  --hn-heading: #fff;
  --hn-copy: #c4d4e8;
  --hn-accent: #ffd43b;
  --hn-link: #ffe06b;
  --hn-border: #b9d3f03d;
  --hn-quiet: #ffffff08;
  --muted: #c4d4e8;
  --hn-radius: 16px;
  --red: #db2138;
  --red-dark: #b5192d;
  color: #eef4fc;
  background-color: #071b32;
  background-image:
    linear-gradient(#c3dcff06 1px, transparent 1px),
    linear-gradient(90deg, #c3dcff06 1px, transparent 1px),
    radial-gradient(ellipse at 85% 5%, #1b538a88, transparent 48%),
    radial-gradient(ellipse at 3% 68%, #17436c55, transparent 45%),
    linear-gradient(140deg, #0b2d56, #061427 76%);
  background-size: 80px 80px, 80px 80px, auto, auto, auto;
  font-size: 16px;
  line-height: 1.6;
}

/* Light reading and working surfaces reset the inherited canvas colors. */
body.hn-theme :is(
  .hn-surface, .lead-form, .partner-application-form, .platform-card,
  .platform-preview, .service-choice, .service-scope, .service-company-card,
  .service-brief, .service-empty, .service-cost-result, .service-role-card,
  .service-result-notice, .service-management-cards article,
  .service-tools-links > a, .service-role-links > a, .home-replacement,
  .home-secondary-section, .home-guide-card, .guide-card, .guide-article,
  .guide-side-links, .guide-topic-links > a, .guide-search, .guide-no-results, .related-grid > a,
  .author-story, .editorial-card, .author-transparency, .author-guides,
  .trade-benefits article, .visibility-card, .trade-faq-card, .pricing-card,
  .annual-benefits article, .annual-table-wrap, .annual-profile-demo,
  .annual-company-search, .directory-summary, .directory-card,
  .directory-empty, .catalogue-empty, .catalogue-admin-entry,
  .catalogue-profile > *, .catalogue-packages, .catalogue-request,
  .company-comparison-search, .company-comparison-table-wrap, .company-compare-tray,
  .firm-map-filters, .firm-map-workspace, .firm-map-list-heading,
  .error-code-search, .error-code-card, .error-code-empty,
  .error-code-method li, .error-code-facts article, .side-code-search,
  .home-code-example, .brand-directory-card, .error-code-more-brands,
  .home-code-strip, .brand-code-search, .code-directory-list a,
  .country-guide-band, .water-topic-links > a, .contact-brief-panel,
  .search-criteria-toggle > summary, .partner-region-filter,
  .fault-choices label, .fault-result, .fault-summary,
  .result-box, .offer-box, .legal-card, .live-status-card,
  .admin-card, .reader-admin-card, .nw-panel, .nw-email,
  .platform-table-wrap, .service-table-scroll, .cookie-banner, .quote-third
) {
  --hn-heading: #102b4b;
  --hn-copy: #52657e;
  --hn-accent: #b5192d;
  --hn-link: #1c4c7e;
  --hn-border: #d1dfef;
  --hn-quiet: #eef3f9;
  --muted: #52657e;
  color: #102b4b;
  background-color: #fff;
  border-color: #d1dfef;
  border-radius: var(--hn-radius);
}

body.hn-theme :is(h1, h2, h3, h4, h5, h6) {
  color: var(--hn-heading);
  letter-spacing: -.035em;
}
body.hn-theme :is(.kicker, .eyebrow) {
  color: var(--hn-accent);
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: .12em;
}
body.hn-theme :is(label, legend) { color: var(--hn-heading); }
body.hn-theme label { font-size: 1rem; }
body.hn-theme :is(input, select, textarea) { color: #102b4b; font-size: 1rem; }
body.hn-theme :is(input, textarea)::placeholder { color: #596c83; opacity: 1; }
body.hn-theme select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, #52657e 50%), linear-gradient(135deg, #52657e 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
body.hn-theme :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #e7a824;
  outline-offset: 4px;
}
body.hn-theme :is(.button, .header-cta) {
  min-height: 46px;
  border-radius: 999px;
  font-size: .9375rem;
  line-height: 1.35;
  text-align: center;
}
body.hn-theme .button:is(.primary, .dark, .danger),
body.hn-theme .header-cta { color: #fff; background: var(--red); box-shadow: 0 7px 20px #ed253e24; }
body.hn-theme .button:is(.primary, .dark, .danger):hover,
body.hn-theme .header-cta:hover { background: var(--red-dark); }
body.hn-theme .button:is(.ghost, .outline) {
  color: var(--hn-link);
  background: var(--hn-quiet);
  border: 1px solid var(--hn-border);
  box-shadow: none;
}
body.hn-theme .button:is(.ghost, .outline):hover { border-color: currentColor; }
body.hn-theme :is(.text-link, .service-text-link) { color: var(--hn-link); }

/* One masthead and one country/language treatment throughout the portal. */
body.hn-theme .topbar { color: #102b4b; background: #f4f7fbf5; }
body.hn-theme .topbar nav { color: #405875; }
body.hn-theme > .platform-language-links { background: transparent; }
body.hn-theme > .platform-language-links a { color: #d4e2f3; }
body.hn-theme > .platform-language-links a[aria-current="page"] { color: #ffd43b; }
body.hn-theme .mobile-navigation > summary { color: #102b4b; }
body.hn-theme .mobile-navigation nav { color: #102b4b; background: #f4f7fb; }
body.hn-theme .dach-entry { color: #eef4fc; background: transparent; }
body.hn-theme :is(.dach-kicker, .dach-entry-note) { color: #c4d4e8; }
body.hn-theme :is(.country-choice, .service-country-tabs a, .company-comparison-countries a) {
  color: var(--hn-link);
  background: var(--hn-quiet);
  border: 1px solid var(--hn-border);
  border-radius: 10px;
}
body.hn-theme .country-choice .country-detail { color: #c4d4e8; }
body.hn-theme :is(.country-choice.is-active, .service-country-tabs a[aria-current="page"], .company-comparison-countries a[aria-current="page"]) {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
body.hn-theme .country-choice.is-active .country-detail { color: #fff; }
body.hn-theme .country-choice.is-active::before { background: #ffd43b; }
body.hn-theme :is(.country-choice, .service-country-tabs a, .company-comparison-countries a):hover { border-color: #b9d3f0; }

/* Existing hero layouts share the same canvas, accent rule and typography. */
body.hn-theme :is(
  .hero, .service-hero, .guide-hub-hero, .guide-hero, .directory-heading,
  .trade-hero, .author-hero, .error-code-hero, .code-brand-hero,
  .service-results-heading, .firm-map-heading, .company-comparison-heading
) {
  position: relative;
  isolation: isolate;
  color: #eef4fc;
  background: transparent;
}
body.hn-theme :is(
  .hero, .service-hero, .guide-hub-hero, .guide-hero, .directory-heading,
  .trade-hero, .author-hero, .error-code-hero, .code-brand-hero,
  .service-results-heading
)::before {
  content: "";
  position: absolute;
  top: 24px;
  left: clamp(22px, 7vw, 112px);
  width: 104px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ed253e 0 58%, #ffd43b 58% 100%);
  pointer-events: none;
}
body.hn-theme :is(.hero, .service-hero, .guide-hub-hero, .guide-hero, .directory-heading, .trade-hero, .author-hero, .error-code-hero, .code-brand-hero, .company-comparison-heading)::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: 3.5rem;
  right: 5%;
  width: clamp(160px, 27vw, 360px);
  aspect-ratio: 1;
  border: 1px solid #ffd43b1c;
  border-radius: 50%;
  box-shadow: 0 0 0 40px #9ec8ff05, 0 0 0 80px #9ec8ff04;
}
body.hn-theme :is(.hero, .service-hero, .guide-hub-hero, .guide-hero, .directory-heading, .trade-hero, .author-hero, .error-code-hero, .code-brand-hero, .service-results-heading, .firm-map-heading, .company-comparison-heading) h1 {
  color: #fff;
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
body.hn-theme :is(.hero-highlight, .company-comparison-heading h1 span) { color: #ffd43b; }
body.hn-theme :is(.service-hero, .guide-hub-hero, .guide-hero, .directory-heading, .code-brand-hero, .error-code-hero) p:not(.eyebrow):not(.kicker),
body.hn-theme :is(.hero-lead, .service-lead, .trade-hero-lead, .author-intro, .service-results-heading > p:not(.kicker)) { color: var(--hn-copy); }

/* Transparent sections keep the texture continuous between page families. */
body.hn-theme :is(
  .directory-page, .firm-map-page, .result-page, .partner-page,
  .service-section-muted, .service-role-links, .service-management-band,
  .partner-section, .trade-intro, .trade-visibility, .trade-process, .author-process, .author-disclosure,
  .guide-code-promo, .guide-trust, .home-code-finder, .home-ratgeber,
  .error-code-library, .error-code-directory, .error-code-brands,
  .error-code-method, .code-brand-catalog, .code-brand-cta, .brand-source-panel
) { background: transparent; }
body.hn-theme :is(.service-section-muted, .service-management-band, .partner-section, .guide-code-promo) { border-block: 1px solid #b9d3f01c; }
body.hn-theme :is(
  .service-body-copy, .service-section-head > p, .service-steps p,
  .service-management-band p:not(.kicker), .service-management-cards p,
  .service-scope p, .service-choice p, .service-tools-links p,
  .partner-application-copy > p:not(.kicker), .partner-application-copy ul,
  .annual-benefits > p:not(.kicker), .annual-comparison > p:not(.kicker),
  .annual-preview-copy > p:not(.kicker), .annual-faq > p:not(.kicker),
  .guide-code-promo p:not(.kicker), .trade-intro p, .trade-process p,
  .guide-trust p:not(.kicker), .directory-results-head > p,
  .guide-results-summary > p, .compact-section-head > p,
  .code-brand-cta p:not(.kicker), .author-process p:not(.kicker), .author-disclosure p:not(.kicker),
  .firm-map-notice, .firm-map-summary > p, .firm-map-about p,
  .form-note, .fine-print, .optional, .platform-help, .privacy-note, .service-copy-status,
  .company-comparison-note, .company-comparison-scroll-note
) { color: var(--hn-copy); }
body.hn-theme .partner-section > div:last-child > p { color: var(--hn-copy); }
body.hn-theme .firm-map-about a { color: var(--hn-link); }
body.hn-theme .guide-editorial-note a { color: var(--hn-link); }
body.hn-theme .home-guide-footer a { color: var(--hn-link); }
body.hn-theme .home-code-mark { background: #102b4b; }
body.hn-theme .author-guide-grid span { color: var(--hn-accent); }
body.hn-theme .author-guide-grid small { color: var(--hn-copy); }
body.hn-theme .platform-file-label { color: var(--hn-link) !important; }
body.hn-theme :is(.platform-notice, .coverage-gap) {
  --hn-heading: #49340f;
  --hn-copy: #684817;
  --hn-accent: #873924;
  --hn-link: #66421b;
  color: #49340f;
}
body.hn-theme :is(.platform-notice, .coverage-gap) p { color: var(--hn-copy); }
body.hn-theme :is(.service-hero-note, .platform-intro-band, .guide-cta, .annual-price, .platform-metrics article, .how) {
  --hn-heading: #fff;
  --hn-copy: #d1deee;
  --hn-accent: #ffd43b;
  --hn-link: #ffe06b;
  --hn-border: #b9d3f03d;
  --hn-quiet: #ffffff08;
  --muted: #d1deee;
  color: #eef4fc;
  background: #ffffff08;
  border: 1px solid #b9d3f03d;
  border-radius: var(--hn-radius);
}
body.hn-theme .service-hero-note p { color: #d1deee; }
body.hn-theme :is(.safety-strip, .guide-hub-safety) { color: #fff; background: #501725; }
body.hn-theme .safety-strip a { background: var(--red); }
body.hn-theme :is(.directory-summary, .directory-card, .service-company-card, .platform-card, .lead-form, .partner-application-form, .guide-article, .company-comparison-search) {
  box-shadow: 0 16px 45px #0000001f;
}
body.hn-theme :is(.lead-form, .partner-application-form, .company-comparison-search) { border-top: 4px solid var(--red); }
body.hn-theme :is(.guide-side-links a, .related-grid a, .service-tools-links a, .code-directory-list a):hover { border-color: #7c9abf; }
body.hn-theme .company-comparison { position: relative; isolation: isolate; padding-top: 2.5rem; }
body.hn-theme .company-comparison-heading { padding-top: 1.5rem; }
body.hn-theme .company-comparison-heading::before {
  content: ""; position: absolute; top: 0; left: 0; width: 104px; height: 4px;
  border-radius: 3px; background: linear-gradient(90deg, #ed253e 0 58%, #ffd43b 58% 100%);
}
body.hn-theme .company-comparison-empty { padding: 1.25rem 1.5rem; background: #ffffff06; border-color: #b9d3f03d; border-left: 3px solid #ffd43b; border-radius: 0 12px 12px 0; }
body.hn-theme .company-comparison-empty p { color: #c4d4e8; }
body.hn-theme .company-comparison-empty h2 { font-size: 1.25rem; }
body.hn-theme .company-comparison-search { padding: 1.5rem 1.75rem; }
body.hn-theme .company-comparison-table { background: #fff; }
body.hn-theme .company-comparison-notice { color: #49340f; }
body.hn-theme :is(.guide-shell, .service-two-columns, .platform-form-grid, .quote-input-grid) > * { min-width: 0; }
body.hn-theme :is(.guide-article, .legal-card, .platform-card) { overflow-wrap: anywhere; }
body.hn-theme .guide-table { max-width: 100%; overflow-x: auto; }
body.hn-theme footer { color: #bdcde0; background: #061426; border-top: 1px solid #b9d3f029; }

@media (max-width: 800px) {
  body.hn-theme :is(.hero, .service-hero, .guide-hub-hero, .guide-hero, .directory-heading, .trade-hero, .author-hero, .error-code-hero, .code-brand-hero, .service-results-heading)::before { left: 22px; top: 20px; }
  body.hn-theme :is(.hero, .service-hero, .guide-hub-hero, .guide-hero, .directory-heading, .trade-hero, .author-hero, .error-code-hero, .code-brand-hero, .company-comparison-heading)::after { width: 180px; right: 1rem; }
  body.hn-theme .company-comparison { padding-top: 1.5rem; }
  body.hn-theme .company-comparison-search { padding: 1.25rem; }
}

@media print {
  body.hn-theme { color: #102b4b; background: #fff; }
  body.hn-theme main { --hn-heading: #102b4b; --hn-copy: #40556f; --hn-accent: #102b4b; --hn-link: #102b4b; }
  body.hn-theme :is(main, section, article, aside, header, form) { color: #102b4b; background: transparent; box-shadow: none; }
  body.hn-theme :is(h1, h2, h3, p, label, legend) { color: #102b4b !important; }
  body.hn-theme :is(section, header)::before, body.hn-theme :is(section, header)::after { display: none; }
}
