/* Typography: Bahnschrift-first system font stack. */
:root {
  --color-primary: #e1261c;
  --color-primary-dark: #b91c16;
  --color-bg: #ffffff;
  --color-bg-soft: #edf0f3;
  --color-surface: #ffffff;
  --color-text: #1f2933;
  --color-text-muted: #667085;
  --color-border: #d8dde3;
  --color-footer: #151a1f;
  --color-footer-soft: #20272f;
  --color-focus: #ffb4ad;
  --shadow-sm: 0 1px 3px rgba(31, 41, 51, 0.08);
  --shadow-md: 0 12px 34px rgba(31, 41, 51, 0.12);
  --radius: 8px;
  --container: 1180px;
  --container-pad: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 8vw, 6.5rem);
  --font-sans: "Bahnschrift", "Bahnschrift SemiBold", "Segoe UI", Arial, sans-serif;
}

[data-theme="dark"] {
  --color-primary: #ff3b30;
  --color-primary-dark: #d9261d;
  --color-bg: #101418;
  --color-bg-soft: #151a1f;
  --color-surface: #1f2933;
  --color-text: #f9fafb;
  --color-text-muted: #c7cbd1;
  --color-border: #374151;
  --color-footer: #0b0f14;
  --color-footer-soft: #151a1f;
  --color-focus: #ff8f87;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
}

body {
  margin: 0;
  font-family: "Bahnschrift", "Bahnschrift SemiBold", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.container {
  width: min(100% - (var(--container-pad) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading--inline {
  display: grid;
  gap: 1.25rem;
}

.section-heading h2,
.split-section h2,
.maintenance h2,
.faq h2,
.hero h1 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.section-heading h2,
.split-section h2,
.maintenance h2,
.faq h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.section-heading p,
.split-section p,
.maintenance p,
.faq p {
  color: var(--color-text-muted);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary,
.btn--emergency {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--primary:hover,
.btn--emergency:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn--secondary {
  color: var(--color-text);
  background: transparent;
  border-color: var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--light {
  color: var(--color-primary);
  background: #fff;
  border-color: #fff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9rem;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
}

.header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: clamp(150px, 17vw, 190px);
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 1.25rem var(--container-pad) 1.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.nav-menu.is-open {
  display: grid;
  gap: 0.9rem;
}

.nav-menu a:not(.btn) {
  color: var(--color-text);
  font-weight: 750;
}

.nav-menu__button {
  width: 100%;
}

.nav-menu__mobile-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--color-border);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 48px;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--color-border) 82%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--color-surface) 92%, var(--color-bg-soft));
  box-shadow: 0 10px 26px rgba(31, 41, 51, 0.08);
}

.language-switch__button {
  width: 42px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  color: var(--color-text-muted);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 850;
}

.language-switch__button.is-active {
  color: #fff;
  background: var(--color-primary);
}

.theme-toggle {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.95rem;
  border: 1px solid color-mix(in srgb, var(--color-border) 82%, transparent);
  border-radius: 14px;
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-surface) 92%, var(--color-bg-soft));
  font-weight: 750;
  box-shadow: 0 10px 26px rgba(31, 41, 51, 0.08);
}

.theme-toggle--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--color-text);
  box-shadow: inset -5px -3px 0 0 var(--color-bg-soft);
}

[data-theme="dark"] .theme-toggle__icon {
  background: #ffcf62;
  box-shadow: 0 0 0 3px rgba(255, 207, 98, 0.18);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(620px, calc(100svh - 114px), 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--color-footer);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 20, 24, 0.9) 0%, rgba(15, 20, 24, 0.72) 44%, rgba(15, 20, 24, 0.32) 78%, rgba(15, 20, 24, 0.18) 100%),
    linear-gradient(0deg, rgba(15, 20, 24, 0.46) 0%, rgba(15, 20, 24, 0.02) 42%);
}

.hero::after {
  z-index: -1;
  background: linear-gradient(135deg, rgba(31, 41, 51, 0.58) 0%, rgba(31, 41, 51, 0.22) 34%, transparent 58%);
  mix-blend-mode: multiply;
}

.hero__content {
  max-width: 690px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.45rem, 5.6vw, 4.45rem);
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.hero__text {
  max-width: 62ch;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.18rem);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

.hero .eyebrow {
  color: #ffb8b4;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero__emergency {
  display: inline-flex;
  margin-top: 1.1rem;
  color: #fff;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-underline-offset: 0.25em;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__image picture,
.hero__image img {
  width: 100%;
  height: 100%;
}

.hero__image img {
  object-fit: cover;
  object-position: center center;
}

.hero .btn--secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px);
}

.hero .btn--secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.14);
}

.trust-line {
  border-block: 1px solid var(--color-border);
  background: var(--color-surface);
}

.trust-line__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 0;
  padding-block: 1rem;
  color: var(--color-text-muted);
  font-weight: 800;
}

.trust-line__inner span {
  padding-inline: 0.95rem;
}

.trust-line__inner span + span {
  border-left: 1px solid var(--color-border);
}

.services {
  background: var(--color-bg);
}

.services__grid,
.why__grid,
.project-grid {
  display: grid;
  gap: 1rem;
}

.service-card,
.why__grid article,
.project-card,
.faq-item,
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.service-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-height: 260px;
  padding: 1.35rem;
  overflow: hidden;
  color: var(--color-text);
  background-color: var(--color-surface);
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: box-shadow 180ms ease;
}

.service-card:hover {
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.08);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.95) 24%,
      rgba(255, 255, 255, 0.82) 45%,
      rgba(255, 255, 255, 0.46) 66%,
      rgba(255, 255, 255, 0.14) 86%,
      rgba(255, 255, 255, 0.02) 100%);
}

.service-card > * {
  position: relative;
  z-index: 1;
  max-width: min(320px, 78%);
}

.service-card__icon {
  width: 104px;
  height: 104px;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.service-card h3,
.why__grid h3,
.project-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.service-card p,
.why__grid p,
.project-card p {
  margin: 0;
  color: var(--color-text);
}

.why__grid p,
.project-card p {
  color: var(--color-text-muted);
}

.service-card a {
  color: var(--color-text);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--color-text) 58%, transparent);
  text-underline-offset: 0.24em;
}

.text-link {
  color: var(--color-primary);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--color-primary) 62%, transparent);
  text-underline-offset: 0.24em;
}

.service-card a:hover {
  color: var(--color-text);
  text-decoration-color: var(--color-text);
}

[data-theme="dark"] .service-card {
  color: #fff;
  background-color: #070a0e;
}

[data-theme="dark"] .service-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .service-card::before {
  background:
    linear-gradient(90deg,
      rgba(7, 10, 14, 0.94) 0%,
      rgba(7, 10, 14, 0.91) 24%,
      rgba(7, 10, 14, 0.78) 45%,
      rgba(7, 10, 14, 0.48) 66%,
      rgba(7, 10, 14, 0.16) 86%,
      rgba(7, 10, 14, 0.02) 100%);
}

[data-theme="dark"] .service-card__icon {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .service-card p,
[data-theme="dark"] .service-card a {
  color: #fff;
}

[data-theme="dark"] .service-card a {
  text-decoration-color: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .service-card a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.split-section,
.faq {
  background: var(--color-bg-soft);
}

/* Alternating content sections: image side and background must switch clearly. */
.section--white {
  background: var(--color-bg);
}

.section--soft {
  background: var(--color-bg-soft);
}

.split-section,
.maintenance {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
}

.split-section.section--white,
.maintenance.section--white {
  background: var(--color-bg);
}

.split-section.section--soft,
.maintenance.section--soft {
  background: var(--color-bg-soft);
}

.split-section__grid,
.maintenance__grid,
.contact__grid,
.faq__grid {
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.split-section__content,
.maintenance__content {
  max-width: 620px;
}

.check-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1.4rem 0 2rem;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--color-text);
  font-weight: 750;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: 0;
  width: 0.9rem;
  height: 0.45rem;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}

.image-panel,
.maintenance__image {
  overflow: hidden;
  border-radius: 0;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.image-panel img,
.maintenance__image img {
  width: 100%;
  object-fit: cover;
}

.maintenance {
  background: var(--color-surface);
}

.process {
  color: #fff;
  background: var(--color-footer);
}

.process .eyebrow,
.process .section-heading h2 {
  color: #fff;
}

.process__grid {
  display: grid;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process__grid li {
  padding: 1.3rem 0 1.3rem 1.2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.process__grid span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--color-primary);
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1;
}

.process__grid h3 {
  margin: 0 0 0.45rem;
  color: #fff;
}

.process__grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.why {
  background: var(--color-bg);
}

.why__grid article {
  padding: 1.35rem;
}

.projects {
  background: var(--color-bg-soft);
}

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-card div {
  padding: 1.1rem;
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.faq__intro {
  align-self: start;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 0;
  color: var(--color-text);
  background: transparent;
  text-align: left;
  font-weight: 850;
}

.faq-item button span[aria-hidden="true"] {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.faq-item button span[aria-hidden="true"]::before,
.faq-item button span[aria-hidden="true"]::after {
  content: "";
  position: absolute;
  inset: 8px 2px auto;
  height: 2px;
  background: var(--color-primary);
}

.faq-item button span[aria-hidden="true"]::after {
  transform: rotate(90deg);
  transition: transform 180ms ease;
}

.faq-item button[aria-expanded="true"] span[aria-hidden="true"]::after {
  transform: rotate(0deg);
}

.faq-item__panel {
  display: none;
  padding: 0 1.1rem 1rem;
}

.faq-item.is-open .faq-item__panel {
  display: block;
}

.faq-item__panel p {
  margin: 0;
}

.contact {
  background: var(--color-bg);
}

.contact-card {
  padding: clamp(1.35rem, 4vw, 2rem);
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius);
}

.contact-card h3 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
}

.contact-card address {
  margin-bottom: 1.4rem;
  font-style: normal;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.form-field {
  display: grid;
  gap: 0.38rem;
}

.form-field label {
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.82rem 0.9rem;
  color: var(--color-text);
  background: var(--color-bg-soft);
}

.form-field textarea {
  min-height: 138px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.map {
  margin-top: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-soft);
}

.map iframe {
  display: block;
  width: 100%;
  height: min(62vh, 420px);
  border: 0;
}

.site-footer {
  padding-block: 3rem 1.25rem;
  color: rgba(255, 255, 255, 0.72);
  background: var(--color-footer);
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

.footer__brand img {
  margin-bottom: 1rem;
}

.site-footer h3 {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: 1rem;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  margin-top: 2.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom div {
  display: flex;
  gap: 1rem;
}

.scroll-up {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.scroll-up.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.legal-page {
  min-height: 100vh;
  background: var(--color-bg-soft);
}

.legal-shell {
  width: min(100% - 2rem, 860px);
  margin-inline: auto;
  padding-block: clamp(2rem, 8vw, 5rem);
}

.legal-box {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 5vw, 2.5rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.legal-box h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.legal-box h2 {
  margin: 1.2rem 0 0;
  font-size: 1.15rem;
}

.legal-box p {
  margin: 0;
  color: var(--color-text-muted);
}

.legal-box a {
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (max-width: 520px) {
  .topbar__desktop {
    display: none;
  }

  .hero__actions .btn,
  .button-row .btn {
    width: 100%;
  }

  .trust-line__inner {
    justify-content: flex-start;
  }

  .trust-line__inner span:nth-child(3) {
    border-left: 0;
  }
}

@media (min-width: 680px) {
  .services__grid,
  .why__grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .split-section__grid,
  .maintenance__grid,
  .contact__grid,
  .faq__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split-section--reverse .split-section__content {
    order: 2;
  }

  .section-heading--inline {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .process__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .process__grid li {
    padding: 1.7rem 1.4rem 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .footer__grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

@media (min-width: 1120px) {
  .nav-toggle,
  .nav-menu__mobile-controls {
    display: none;
  }

  .header-actions {
    display: flex;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: clamp(0.35rem, 0.65vw, 0.7rem);
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-menu__button {
    display: none;
  }

  .nav-menu a:not(.btn) {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .header-actions__cta {
    padding-inline: 0.68rem;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* Desktop: Google map spans the full contact section width. */
.contact .map {
  grid-column: 1 / -1;
  width: 100%;
}

@media (min-width: 900px) {
  .contact .map {
    margin-top: 0.25rem;
  }

  .contact .map iframe {
    height: min(58vh, 520px);
  }
}

.service-card--heizungsanlagen {
  background-image: url("assets/images/service-cards/heizungsanlagen.webp");
}

.service-card--waermepumpen {
  background-image: url("assets/images/service-cards/waermepumpen.webp");
}

.service-card--bad-sanitaer {
  background-image: url("assets/images/service-cards/bad-sanitaer.webp");
}

.service-card--badmodernisierung {
  background-image: url("assets/images/service-cards/badmodernisierung.webp");
}

.service-card--wartung-service {
  background-image: url("assets/images/service-cards/wartung-service.webp");
}

.service-card--photovoltaik-solar {
  background-image: url("assets/images/service-cards/photovoltaik-solar.webp");
}

@media (max-width: 767px) {
  .service-card {
    min-height: 240px;
  }

  .service-card::before {
    background:
      linear-gradient(90deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.93) 36%,
        rgba(255, 255, 255, 0.66) 66%,
        rgba(255, 255, 255, 0.18) 100%);
  }

  [data-theme="dark"] .service-card::before {
    background:
      linear-gradient(90deg,
        rgba(7, 10, 14, 0.95) 0%,
        rgba(7, 10, 14, 0.91) 36%,
        rgba(7, 10, 14, 0.66) 66%,
        rgba(7, 10, 14, 0.22) 100%);
  }

  .service-card > * {
    max-width: 82%;
  }
}


/* PATCH: Header cleanup, premium service cards, section image layout. */
@media (min-width: 1120px) {
  .nav-menu .nav-menu__button,
  .nav-menu:not(.is-open) .nav-menu__button {
    display: none !important;
  }

  .nav-menu__mobile-controls {
    display: none !important;
  }

  .header-actions {
    display: flex !important;
    gap: 0.6rem;
  }

  .header__inner {
    gap: clamp(0.7rem, 1vw, 1.1rem);
  }

  .nav-menu {
    flex: 1 1 auto;
    justify-content: flex-end;
    margin-left: 1rem;
    gap: clamp(0.45rem, 0.75vw, 0.85rem);
  }

  .nav-menu a:not(.btn) {
    font-size: 0.86rem;
  }
}

@media (max-width: 1119.98px) {
  .header-actions {
    display: none !important;
  }

  .nav-menu:not(.is-open) .nav-menu__button {
    display: none !important;
  }

  .nav-menu.is-open .nav-menu__button {
    display: inline-flex !important;
    width: 100%;
  }
}

.header-actions .btn,
.nav-menu .btn {
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.82rem 1.05rem;
  line-height: 1;
  white-space: nowrap;
}

/* Leistungen: clean premium cards without corner outlines. */
.services .service-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  align-content: start;
  column-gap: 1rem;
  row-gap: 0.85rem;
  min-height: 275px;
  padding: 1.65rem;
  color: #0f1720;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 22px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 14px 32px rgba(31, 41, 51, 0.08);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.services .service-card::before {
  border-radius: inherit;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.99) 0%,
      rgba(255, 255, 255, 0.97) 25%,
      rgba(255, 255, 255, 0.88) 45%,
      rgba(255, 255, 255, 0.54) 68%,
      rgba(255, 255, 255, 0.14) 100%);
}

.services .service-card::after {
  display: none !important;
}

.services .service-card > * {
  max-width: none !important;
}

.services .service-card__icon {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 78px;
  height: 78px;
  padding: 0 !important;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

.services .service-card h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  color: #0f1720;
  font-size: 1.18rem;
}

.services .service-card p {
  grid-column: 1 / -1;
  grid-row: 2;
  width: min(100%, 360px);
  color: #223046;
  font-weight: 650;
}

.services .service-card a {
  grid-column: 1 / -1;
  grid-row: 3;
  width: max-content;
  color: #0f1720;
  text-decoration: none;
}

.services .service-card a::after {
  background: currentColor;
  opacity: 0.45;
}

.services .service-card:hover {
  transform: translateY(-7px) scale(1.018);
  box-shadow:
    0 20px 42px rgba(31, 41, 51, 0.14),
    0 18px 36px rgba(225, 38, 28, 0.2);
}

.services .service-card:hover a,
.services .service-card a:focus-visible {
  color: var(--color-primary) !important;
}

.services .service-card:hover a::after,
.services .service-card a:focus-visible::after {
  background: var(--color-primary);
  opacity: 1;
}

[data-theme="dark"] .services .service-card {
  color: #fff;
  background-color: #05070a;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] .services .service-card::before {
  background:
    linear-gradient(90deg,
      rgba(5, 7, 10, 0.99) 0%,
      rgba(5, 7, 10, 0.97) 25%,
      rgba(5, 7, 10, 0.86) 45%,
      rgba(5, 7, 10, 0.58) 68%,
      rgba(5, 7, 10, 0.16) 100%);
}

[data-theme="dark"] .services .service-card__icon {
  filter: brightness(0) invert(1) !important;
}

[data-theme="dark"] .services .service-card h3,
[data-theme="dark"] .services .service-card a {
  color: #fff;
}

[data-theme="dark"] .services .service-card p {
  color: rgba(255,255,255,0.88);
}

[data-theme="dark"] .services .service-card:hover {
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.44),
    0 18px 38px rgba(255, 59, 48, 0.24);
}

[data-theme="dark"] .services .service-card:hover a,
[data-theme="dark"] .services .service-card a:focus-visible {
  color: var(--color-primary) !important;
}

/* Full-height, outer-edge aligned section images from Wärmepumpe to Wartung. */
.split-section .image-panel,
.maintenance__image {
  position: relative;
  align-self: stretch;
  min-height: clamp(380px, 50vw, 680px);
  height: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: none !important;
}

.split-section .image-panel img,
.maintenance__image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.split-section .image-panel::after,
.maintenance__image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Image right: fade from text side into image. */
.split-section:not(.split-section--reverse) .image-panel::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.38) 34%, rgba(255,255,255,0) 70%);
}

/* Image left: fade from text side into image. */
.split-section--reverse .image-panel::after,
.maintenance__image::after {
  background: linear-gradient(270deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.38) 34%, rgba(255,255,255,0) 70%);
}

[data-theme="dark"] .split-section:not(.split-section--reverse) .image-panel::after {
  background: linear-gradient(90deg, rgba(16,20,24,0.9) 0%, rgba(16,20,24,0.45) 36%, rgba(16,20,24,0) 72%);
}

[data-theme="dark"] .split-section--reverse .image-panel::after,
[data-theme="dark"] .maintenance__image::after {
  background: linear-gradient(270deg, rgba(16,20,24,0.9) 0%, rgba(16,20,24,0.45) 36%, rgba(16,20,24,0) 72%);
}

@media (min-width: 900px) {
  .split-section__grid,
  .maintenance__grid {
    align-items: stretch;
  }

  .split-section:not(.split-section--reverse) .image-panel {
    width: calc(100% + max(var(--container-pad), calc((100vw - var(--container)) / 2)));
    margin-right: calc(max(var(--container-pad), calc((100vw - var(--container)) / 2)) * -1);
  }

  .split-section--reverse .image-panel,
  .maintenance__image {
    width: calc(100% + max(var(--container-pad), calc((100vw - var(--container)) / 2)));
    margin-left: calc(max(var(--container-pad), calc((100vw - var(--container)) / 2)) * -1);
  }
}

@media (max-width: 767px) {
  .services .service-card {
    min-height: 245px;
    padding: 1.3rem;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .services .service-card__icon {
    width: 62px;
    height: 62px;
  }

  .split-section .image-panel,
  .maintenance__image {
    min-height: 280px;
  }
}


/* Final polish: shadow only below cards, section images edge-to-edge, fade starts fully opaque. */

/* Hover shadow only on the lower edge, not behind the whole card. */
.services .service-card:hover {
  box-shadow:
    0 22px 18px -20px rgba(31, 41, 51, 0.18),
    0 28px 24px -22px rgba(225, 38, 28, 0.42);
}

[data-theme="dark"] .services .service-card:hover {
  box-shadow:
    0 22px 18px -20px rgba(0, 0, 0, 0.55),
    0 28px 24px -22px rgba(255, 59, 48, 0.48);
}

/* Section images from Wärmepumpe through Wartung: no top/bottom breathing gap, full section height on desktop. */
@media (min-width: 900px) {
  .split-section,
  .maintenance {
    padding-block: 0;
  }

  .split-section__grid,
  .maintenance__grid {
    min-height: clamp(560px, 68vh, 760px);
  }

  .image-panel,
  .maintenance__image {
    align-self: stretch;
    min-height: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .image-panel img,
  .maintenance__image img {
    height: 100%;
    min-height: 100%;
    object-fit: cover;
  }

  .split-section__content,
  .maintenance__content {
    padding-block: var(--section-y);
  }

  /* Pull image panels to the outer container edge. */
  .split-section__grid > .image-panel,
  .maintenance__grid > .maintenance__image {
    margin-block: 0;
  }
}

/* Stronger mode-aware fades: begin at solid background to remove hard visible edge. */
.image-panel::after,
.maintenance__image::after {
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 1) 9%,
      rgba(255, 255, 255, 0.86) 24%,
      rgba(255, 255, 255, 0.46) 48%,
      rgba(255, 255, 255, 0.1) 72%,
      rgba(255, 255, 255, 0) 100%);
}

.split-section--reverse .image-panel::after,
.maintenance__image::after {
  background:
    linear-gradient(270deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 1) 9%,
      rgba(255, 255, 255, 0.86) 24%,
      rgba(255, 255, 255, 0.46) 48%,
      rgba(255, 255, 255, 0.1) 72%,
      rgba(255, 255, 255, 0) 100%);
}

.section--soft .image-panel::after {
  background:
    linear-gradient(90deg,
      rgba(237, 240, 243, 1) 0%,
      rgba(237, 240, 243, 1) 9%,
      rgba(237, 240, 243, 0.88) 24%,
      rgba(237, 240, 243, 0.48) 48%,
      rgba(237, 240, 243, 0.1) 72%,
      rgba(237, 240, 243, 0) 100%);
}

.section--soft.split-section--reverse .image-panel::after {
  background:
    linear-gradient(270deg,
      rgba(237, 240, 243, 1) 0%,
      rgba(237, 240, 243, 1) 9%,
      rgba(237, 240, 243, 0.88) 24%,
      rgba(237, 240, 243, 0.48) 48%,
      rgba(237, 240, 243, 0.1) 72%,
      rgba(237, 240, 243, 0) 100%);
}

[data-theme="dark"] .image-panel::after,
[data-theme="dark"] .maintenance__image::after {
  background:
    linear-gradient(90deg,
      rgba(16, 20, 24, 1) 0%,
      rgba(16, 20, 24, 1) 9%,
      rgba(16, 20, 24, 0.88) 24%,
      rgba(16, 20, 24, 0.5) 50%,
      rgba(16, 20, 24, 0.12) 74%,
      rgba(16, 20, 24, 0) 100%);
}

[data-theme="dark"] .split-section--reverse .image-panel::after,
[data-theme="dark"] .maintenance__image::after {
  background:
    linear-gradient(270deg,
      rgba(16, 20, 24, 1) 0%,
      rgba(16, 20, 24, 1) 9%,
      rgba(16, 20, 24, 0.88) 24%,
      rgba(16, 20, 24, 0.5) 50%,
      rgba(16, 20, 24, 0.12) 74%,
      rgba(16, 20, 24, 0) 100%);
}


/* Final correction: shorter card hover shadow and section-aware image fade colors. */

/* Shorten the red hover shadow below service cards by roughly 50%. */
.services .service-card:hover {
  box-shadow:
    0 12px 10px -12px rgba(31, 41, 51, 0.16),
    0 14px 12px -13px rgba(225, 38, 28, 0.36);
}

[data-theme="dark"] .services .service-card:hover {
  box-shadow:
    0 12px 10px -12px rgba(0, 0, 0, 0.48),
    0 14px 12px -13px rgba(255, 59, 48, 0.42);
}

/* Section-aware fade colors: each image fade starts with the actual section background color. */
.section--white,
.maintenance.section--white {
  --section-fade-rgb: 255, 255, 255;
}

.section--soft,
.split-section.section--soft {
  --section-fade-rgb: 237, 240, 243;
}

[data-theme="dark"] .section--white,
[data-theme="dark"] .section--soft,
[data-theme="dark"] .maintenance.section--white,
[data-theme="dark"] .split-section.section--soft {
  --section-fade-rgb: 16, 20, 24;
}

/* Default: text left, image right -> fade from left into image. */
.split-section .image-panel::after,
.maintenance__image::after {
  background:
    linear-gradient(90deg,
      rgba(var(--section-fade-rgb), 1) 0%,
      rgba(var(--section-fade-rgb), 1) 12%,
      rgba(var(--section-fade-rgb), 0.88) 26%,
      rgba(var(--section-fade-rgb), 0.52) 49%,
      rgba(var(--section-fade-rgb), 0.14) 73%,
      rgba(var(--section-fade-rgb), 0) 100%);
}

/* Reversed sections: image left, text right -> fade from right into image. */
.split-section--reverse .image-panel::after {
  background:
    linear-gradient(270deg,
      rgba(var(--section-fade-rgb), 1) 0%,
      rgba(var(--section-fade-rgb), 1) 12%,
      rgba(var(--section-fade-rgb), 0.88) 26%,
      rgba(var(--section-fade-rgb), 0.52) 49%,
      rgba(var(--section-fade-rgb), 0.14) 73%,
      rgba(var(--section-fade-rgb), 0) 100%);
}


/* Final section fade cleanup: no divider lines, consistent fade depth and correct fade direction. */

/* Remove visible separator lines between image/text sections. */
.split-section,
.maintenance {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* Keep the fade color tied to the actual section background. */
.section--white,
.maintenance.section--white {
  --section-fade-rgb: 255, 255, 255;
}

.section--soft,
.split-section.section--soft {
  --section-fade-rgb: 237, 240, 243;
}

[data-theme="dark"] .section--white,
[data-theme="dark"] .section--soft,
[data-theme="dark"] .maintenance.section--white,
[data-theme="dark"] .split-section.section--soft {
  --section-fade-rgb: 16, 20, 24;
}

/* Image on the right: fade begins at the text/image boundary and flows into the image. */
.split-section:not(.split-section--reverse) .image-panel::after {
  background:
    linear-gradient(90deg,
      rgba(var(--section-fade-rgb), 1) 0%,
      rgba(var(--section-fade-rgb), 1) 8%,
      rgba(var(--section-fade-rgb), 0.84) 18%,
      rgba(var(--section-fade-rgb), 0.46) 34%,
      rgba(var(--section-fade-rgb), 0.12) 52%,
      rgba(var(--section-fade-rgb), 0) 68%);
}

/* Image on the left: fade begins at the text/image boundary and flows into the image. */
.split-section--reverse .image-panel::after,
.maintenance__image::after {
  background:
    linear-gradient(270deg,
      rgba(var(--section-fade-rgb), 1) 0%,
      rgba(var(--section-fade-rgb), 1) 8%,
      rgba(var(--section-fade-rgb), 0.84) 18%,
      rgba(var(--section-fade-rgb), 0.46) 34%,
      rgba(var(--section-fade-rgb), 0.12) 52%,
      rgba(var(--section-fade-rgb), 0) 68%);
}

/* Keep section images flush with their section height on desktop. */
@media (min-width: 900px) {
  .split-section,
  .maintenance {
    padding-block: 0 !important;
  }

  .split-section__grid,
  .maintenance__grid {
    min-height: clamp(560px, 68vh, 760px);
  }

  .image-panel,
  .maintenance__image {
    align-self: stretch;
    min-height: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    margin-block: 0;
  }

  .image-panel img,
  .maintenance__image img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
  }

  .split-section__content,
  .maintenance__content {
    padding-block: var(--section-y);
  }
}


/* Final polish: no corner outlines, softer card zoom, correct dark fades, section reveal. */

/* Remove remaining outlines/borders around service cards and broken-looking icon edges. */
.services .service-card,
.services .service-card::before,
.services .service-card::after {
  border: 0 !important;
  outline: 0 !important;
}

.services .service-card {
  background-clip: border-box;
  overflow: hidden;
}

.services .service-card__icon {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain;
}

/* Icon/headline layout: icon and title on one row, text below. */
.services .service-card {
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  align-items: start;
}

.services .service-card__icon {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.services .service-card h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  transition: color 220ms ease;
}

.services .service-card p {
  grid-column: 1 / -1;
  grid-row: 2;
}

.services .service-card a {
  grid-column: 1 / -1;
  grid-row: 3;
}

/* Hover: reduce card zoom by around 30%, keep red bottom shadow. */
.services .service-card:hover {
  transform: translateY(-5px) scale(1.009) !important;
  box-shadow:
    0 10px 9px -11px rgba(31, 41, 51, 0.14),
    0 12px 10px -12px rgba(225, 38, 28, 0.34) !important;
}

[data-theme="dark"] .services .service-card:hover {
  box-shadow:
    0 10px 9px -11px rgba(0, 0, 0, 0.44),
    0 12px 10px -12px rgba(255, 59, 48, 0.40) !important;
}

/* On card hover, title and CTA turn red. */
.services .service-card:hover h3,
.services .service-card:hover a {
  color: var(--color-primary) !important;
}

/* Darkmode icons white, brightmode original SVG color. */
[data-theme="dark"] .services .service-card__icon {
  filter: brightness(0) invert(1);
}

/* Smooth fade-in animations between sections with no color flash. */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="dark"] .js-reveal {
  background-color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Correct fade colors per section including darkmode soft sections. */
.section--white,
.maintenance.section--white {
  --section-fade-rgb: 255, 255, 255;
}

.section--soft,
.split-section.section--soft {
  --section-fade-rgb: 237, 240, 243;
}

[data-theme="dark"] .section--white,
[data-theme="dark"] .maintenance.section--white {
  --section-fade-rgb: 16, 20, 24;
}

[data-theme="dark"] .section--soft,
[data-theme="dark"] .split-section.section--soft {
  --section-fade-rgb: 21, 26, 31;
}

/* Image on right: fade starts fully at text/image edge and fades into image. */
.split-section:not(.split-section--reverse) .image-panel::after {
  background:
    linear-gradient(90deg,
      rgba(var(--section-fade-rgb), 1) 0%,
      rgba(var(--section-fade-rgb), 1) 10%,
      rgba(var(--section-fade-rgb), 0.88) 22%,
      rgba(var(--section-fade-rgb), 0.50) 42%,
      rgba(var(--section-fade-rgb), 0.14) 62%,
      rgba(var(--section-fade-rgb), 0) 78%) !important;
}

/* Image on left: fade starts fully at text/image edge and fades into image. */
.split-section--reverse .image-panel::after,
.maintenance__image::after {
  background:
    linear-gradient(270deg,
      rgba(var(--section-fade-rgb), 1) 0%,
      rgba(var(--section-fade-rgb), 1) 10%,
      rgba(var(--section-fade-rgb), 0.88) 22%,
      rgba(var(--section-fade-rgb), 0.50) 42%,
      rgba(var(--section-fade-rgb), 0.14) 62%,
      rgba(var(--section-fade-rgb), 0) 78%) !important;
}

/* Remove all section separator lines. */
.split-section,
.maintenance {
  border-top: 0 !important;
  border-bottom: 0 !important;
}


/* Remove remaining visible corner arcs on service cards.
   Cause: the normal-state card shadow + image/fade clipping still created a thin edge at the rounded corners. */
.services .service-card {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  clip-path: inset(0 round 22px);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  background-clip: border-box !important;
}

.services .service-card::before {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 22px !important;
  inset: 0;
}

.services .service-card::after {
  display: none !important;
}

.services .service-card:hover {
  border: none !important;
  outline: none !important;
  box-shadow:
    0 10px 9px -11px rgba(31, 41, 51, 0.14),
    0 12px 10px -12px rgba(225, 38, 28, 0.34) !important;
}

[data-theme="dark"] .services .service-card:hover {
  box-shadow:
    0 10px 9px -11px rgba(0, 0, 0, 0.44),
    0 12px 10px -12px rgba(255, 59, 48, 0.40) !important;
}


/* Hover flicker fix: no animated side edges, only text color, subtle zoom and bottom shadow. */
.services .service-card {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  clip-path: none !important;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: paint;
  will-change: transform, box-shadow;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease !important;
}

/* Static overlay: enlarged by 1px so no anti-aliased side line can appear during transform. */
.services .service-card::before {
  inset: -1px !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 23px !important;
  transform: none !important;
  transition: none !important;
  pointer-events: none;
}

.services .service-card::after {
  display: none !important;
  content: none !important;
}

/* Do not animate the image/fade/underlines on hover. */
.services .service-card,
.services .service-card::before,
.services .service-card__icon,
.services .service-card h3,
.services .service-card p,
.services .service-card a,
.services .service-card a::after {
  background-position: right center;
}

.services .service-card a {
  transform: none !important;
  transition: color 180ms ease !important;
}

.services .service-card a::after {
  transform: scaleX(0.42) !important;
  transition: none !important;
  opacity: 0.45;
}

.services .service-card:hover a::after,
.services .service-card a:focus-visible::after {
  transform: scaleX(0.42) !important;
  background: currentColor !important;
  opacity: 0.45;
}

/* Only these states change on hover: card zoom, lower shadow edge, title/link color. */
.services .service-card:hover {
  transform: translate3d(0, -4px, 0) scale(1.006) !important;
  box-shadow:
    0 9px 8px -10px rgba(31, 41, 51, 0.14),
    0 11px 9px -11px rgba(225, 38, 28, 0.34) !important;
}

.services .service-card:hover h3,
.services .service-card:hover a {
  color: var(--color-primary) !important;
}

[data-theme="dark"] .services .service-card:hover {
  box-shadow:
    0 9px 8px -10px rgba(0, 0, 0, 0.44),
    0 11px 9px -11px rgba(255, 59, 48, 0.40) !important;
}

@media (prefers-reduced-motion: reduce) {
  .services .service-card,
  .services .service-card:hover {
    transform: none !important;
    transition: none !important;
  }
}


/* Directional reveal animations:
   - Text left sections enter left-to-right.
   - Text right sections enter right-to-left.
   - Ablauf remains bottom-up. */
.js-reveal.reveal-from-left {
  transform: translateX(-42px);
}

.js-reveal.reveal-from-right {
  transform: translateX(42px);
}

.js-reveal.reveal-from-bottom {
  transform: translateY(34px);
}

.js-reveal.reveal-from-left.is-visible,
.js-reveal.reveal-from-right.is-visible,
.js-reveal.reveal-from-bottom.is-visible {
  transform: translate(0, 0);
}

@media (max-width: 899px) {
  .js-reveal.reveal-from-left,
  .js-reveal.reveal-from-right {
    transform: translateY(28px);
  }

  .js-reveal.reveal-from-left.is-visible,
  .js-reveal.reveal-from-right.is-visible {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal.reveal-from-left,
  .js-reveal.reveal-from-right,
  .js-reveal.reveal-from-bottom {
    transform: none;
  }
}


/* Reveal direction rule:
   content sections animate from image side toward text side, outside -> inside.
   Image right = reveal from right.
   Image left = reveal from left.
   Ablauf remains bottom-up. */


/* Final two fixes:
   1) remove remaining card shadow/corner outline completely in normal state.
   2) hero eyebrow in red. */

/* No shadow outline / halo around service tiles in normal state. */
.services .service-card {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  background-clip: padding-box !important;
  transform-origin: center center;
}

.services .service-card::before,
.services .service-card::after {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Keep hover limited to zoom + lower red edge, no side halo. */
.services .service-card:hover {
  border: 0 !important;
  outline: 0 !important;
  box-shadow:
    0 10px 8px -12px rgba(225, 38, 28, 0.38) !important;
}

[data-theme="dark"] .services .service-card:hover {
  box-shadow:
    0 10px 8px -12px rgba(255, 59, 48, 0.42) !important;
}

/* Hero label requested in red. */
.hero .eyebrow {
  color: var(--color-primary) !important;
}


/* Mirror hero image horizontally so the Wärmepumpe becomes more visible on the right side. */
.hero img,
.hero picture img,
.hero__media img,
.hero-media img {
  transform: scaleX(-1);
  transform-origin: center center;
}


/* Deep fix for service-card pixel edges:
   The remaining 1px side/corner artefact was caused by scaling the rounded card itself
   while the card also carried the background image + fade overlay. The outer card now
   stays geometrically static. Only the internal image/fade layer zooms. */
.services .service-card {
  position: relative;
  isolation: isolate;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  background-image: none !important;
  background-color: transparent !important;
  transform: none !important;
  transition: box-shadow 220ms ease !important;
  contain: layout paint;
}

/* Move all image/fade rendering to one oversized internal layer.
   Oversizing prevents subpixel gaps at rounded corners and side edges. */
.services .service-card::before {
  content: "" !important;
  position: absolute !important;
  inset: -3px !important;
  z-index: -1 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 25px !important;
  background-position: right center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  transform: scale(1) translateZ(0) !important;
  transform-origin: center center !important;
  transition: transform 220ms ease !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  pointer-events: none;
}

/* Keep after-layer completely disabled. */
.services .service-card::after {
  content: none !important;
  display: none !important;
}

/* Per-card image + lightmode fade on the oversized internal layer. */
.services .service-card--heizungsanlagen::before {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.96) 23%, rgba(255,255,255,0.82) 43%, rgba(255,255,255,0.48) 65%, rgba(255,255,255,0.08) 100%),
    url("assets/images/service-cards/heizungsanlagen.webp") !important;
}

.services .service-card--waermepumpen::before {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.96) 23%, rgba(255,255,255,0.82) 43%, rgba(255,255,255,0.48) 65%, rgba(255,255,255,0.08) 100%),
    url("assets/images/service-cards/waermepumpen.webp") !important;
}

.services .service-card--bad-sanitaer::before {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.96) 23%, rgba(255,255,255,0.82) 43%, rgba(255,255,255,0.48) 65%, rgba(255,255,255,0.08) 100%),
    url("assets/images/service-cards/bad-sanitaer.webp") !important;
}

.services .service-card--badmodernisierung::before {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.96) 23%, rgba(255,255,255,0.82) 43%, rgba(255,255,255,0.48) 65%, rgba(255,255,255,0.08) 100%),
    url("assets/images/service-cards/badmodernisierung.webp") !important;
}

.services .service-card--wartung-service::before {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.96) 23%, rgba(255,255,255,0.82) 43%, rgba(255,255,255,0.48) 65%, rgba(255,255,255,0.08) 100%),
    url("assets/images/service-cards/wartung-service.webp") !important;
}

.services .service-card--photovoltaik-solar::before {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.96) 23%, rgba(255,255,255,0.82) 43%, rgba(255,255,255,0.48) 65%, rgba(255,255,255,0.08) 100%),
    url("assets/images/service-cards/photovoltaik-solar.webp") !important;
}

/* Darkmode: same geometry, black fade. */
[data-theme="dark"] .services .service-card--heizungsanlagen::before {
  background-image:
    linear-gradient(90deg, rgba(5,7,10,1) 0%, rgba(5,7,10,0.96) 23%, rgba(5,7,10,0.84) 43%, rgba(5,7,10,0.56) 65%, rgba(5,7,10,0.12) 100%),
    url("assets/images/service-cards/heizungsanlagen.webp") !important;
}

[data-theme="dark"] .services .service-card--waermepumpen::before {
  background-image:
    linear-gradient(90deg, rgba(5,7,10,1) 0%, rgba(5,7,10,0.96) 23%, rgba(5,7,10,0.84) 43%, rgba(5,7,10,0.56) 65%, rgba(5,7,10,0.12) 100%),
    url("assets/images/service-cards/waermepumpen.webp") !important;
}

[data-theme="dark"] .services .service-card--bad-sanitaer::before {
  background-image:
    linear-gradient(90deg, rgba(5,7,10,1) 0%, rgba(5,7,10,0.96) 23%, rgba(5,7,10,0.84) 43%, rgba(5,7,10,0.56) 65%, rgba(5,7,10,0.12) 100%),
    url("assets/images/service-cards/bad-sanitaer.webp") !important;
}

[data-theme="dark"] .services .service-card--badmodernisierung::before {
  background-image:
    linear-gradient(90deg, rgba(5,7,10,1) 0%, rgba(5,7,10,0.96) 23%, rgba(5,7,10,0.84) 43%, rgba(5,7,10,0.56) 65%, rgba(5,7,10,0.12) 100%),
    url("assets/images/service-cards/badmodernisierung.webp") !important;
}

[data-theme="dark"] .services .service-card--wartung-service::before {
  background-image:
    linear-gradient(90deg, rgba(5,7,10,1) 0%, rgba(5,7,10,0.96) 23%, rgba(5,7,10,0.84) 43%, rgba(5,7,10,0.56) 65%, rgba(5,7,10,0.12) 100%),
    url("assets/images/service-cards/wartung-service.webp") !important;
}

[data-theme="dark"] .services .service-card--photovoltaik-solar::before {
  background-image:
    linear-gradient(90deg, rgba(5,7,10,1) 0%, rgba(5,7,10,0.96) 23%, rgba(5,7,10,0.84) 43%, rgba(5,7,10,0.56) 65%, rgba(5,7,10,0.12) 100%),
    url("assets/images/service-cards/photovoltaik-solar.webp") !important;
}

/* Hover: no card geometry animation. Only internal image zoom + text red + lower shadow edge. */
.services .service-card:hover {
  transform: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow:
    0 11px 9px -12px rgba(225, 38, 28, 0.36) !important;
}

.services .service-card:hover::before {
  transform: scale(1.018) translateZ(0) !important;
}

[data-theme="dark"] .services .service-card:hover {
  box-shadow:
    0 11px 9px -12px rgba(255, 59, 48, 0.42) !important;
}

.services .service-card:hover h3,
.services .service-card:hover a {
  color: var(--color-primary) !important;
}

/* Preserve original-color icons in bright mode and white icons in dark mode. */
.services .service-card__icon {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

[data-theme="dark"] .services .service-card__icon {
  filter: brightness(0) invert(1) !important;
}


/* Mobile header fix:
   - Emergency button visible immediately outside burger menu.
   - Phone topbar remains sticky while scrolling on mobile/tablet. */
@media (max-width: 1119px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 70;
  }

  .site-header {
    top: 38px;
    z-index: 69;
  }

  .header__inner {
    gap: 0.55rem;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: clamp(128px, 36vw, 165px);
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
  }

  .header-actions .language-switch,
  .header-actions .theme-toggle,
  .header-actions .btn--primary {
    display: none !important;
  }

  .header-actions .btn--emergency {
    display: inline-flex !important;
    min-height: 42px;
    padding: 0.68rem 0.85rem;
    border-radius: 9px;
    font-size: 0.82rem;
    line-height: 1;
    white-space: nowrap;
  }

  .nav-toggle {
    margin-left: 0;
    flex: 0 0 auto;
  }
}

@media (max-width: 420px) {
  .brand img {
    width: clamp(108px, 31vw, 132px);
  }

  .header-actions .btn--emergency {
    min-height: 40px;
    padding-inline: 0.68rem;
    font-size: 0.76rem;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }
}


/* Mobile emergency button position fix:
   Notdienst sits outside the burger menu, directly left of the right-aligned burger button. */
@media (max-width: 1119px) {
  .header__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .brand {
    order: 1;
    flex: 0 1 auto;
  }

  .nav-menu {
    order: 2;
  }

  .header-actions {
    order: 3;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    margin-left: auto !important;
    flex: 0 0 auto;
  }

  .nav-toggle {
    order: 4;
    margin-left: 0 !important;
    flex: 0 0 auto;
  }

  /* Only the external mobile Notdienst button remains visible in header-actions. */
  .header-actions .language-switch,
  .header-actions .theme-toggle,
  .header-actions .btn--primary {
    display: none !important;
  }

  .header-actions .btn--emergency {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.68rem 0.86rem;
    margin-right: 0.5rem;
    border-radius: 9px;
    font-size: 0.82rem;
    line-height: 1;
    white-space: nowrap;
  }

  /* Remove Notdienst from the opened burger menu to avoid duplication. */
  .nav-menu .btn--emergency.nav-menu__button {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .header-actions .btn--emergency {
    min-height: 40px;
    padding-inline: 0.65rem;
    margin-right: 0.42rem;
    font-size: 0.74rem;
  }
}
