/* ========== RESET & TOKENS ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a,
button,
input,
select,
textarea,
[role='button'],
[tabindex] {
  touch-action: manipulation;
}

:root {
  --f-head: 'Outfit', sans-serif;
  --f-body: 'Inter', sans-serif;
  --bp-lg: 1024px;
  --bp-md: 768px;
  --bp-sm: 480px;
  --space-edge: 24px;
  --space-edge-sm: 16px;
  --space-section-sm: 32px;
  --space-section-md: 40px;
  --c-pri: #1a6b4a;
  --c-pri-h: #145a3e;
  --c-pri-lt: #e8f5ee;
  --c-acc: #8c4a3a;
  --c-acc-lt: #f5e6e3;
  --c-dk: #1c1c1f;
  --c-txt: #2d2d30;
  --c-mut: #6b6b73;
  --c-bg: #fafaf8;
  --c-warm: #f5f3f0;
  --c-srf: #fff;
  --c-brd: #e8e6e3;
  --sh-sm: 0 1px 3px rgba(28, 28, 31, 0.06);
  --sh-md: 0 4px 16px rgba(28, 28, 31, 0.08);
  --sh-lg: 0 8px 32px rgba(28, 28, 31, 0.1);
  --sh-hv: 0 12px 40px rgba(28, 28, 31, 0.14);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --mw: 1240px;

  /* z-index tiers */
  --zi-base: 1;
  --zi-dropdown: 100;
  --zi-sticky: 200;
  --zi-overlay: 300;
  --zi-modal: 400;
  --zi-toast: 500;
}

/* ========== DARK MODE ========== */
@media (prefers-color-scheme: dark) {
  :root {
    /* Core surfaces */
    --c-bg: #121214;
    --c-srf: #1c1c1f;
    --c-warm: #1a1a1d;
    --c-brd: #2d2d32;

    /* Text */
    --c-dk: #f4f4f5;
    --c-txt: #e4e4e7;
    --c-mut: #a1a1aa;

    /* Brand — slightly lighter for dark backgrounds */
    --c-pri: #1a9a6a;
    --c-pri-h: #6ee7b7;
    --c-pri-lt: #1a3a2a;
    --c-acc: #f0918a;
    --c-acc-lt: #3a2520;

    /* Shadows — stronger for dark backgrounds */
    --sh-sm: 0 1px 3px rgba(0, 0, 0, 0.24);
    --sh-md: 0 4px 16px rgba(0, 0, 0, 0.32);
    --sh-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --sh-hv: 0 12px 40px rgba(0, 0, 0, 0.48);
  }

  /* --- Nav & Mobile Drawer --- */
  .nav {
    background: rgba(18, 18, 20, 0.92);
  }

  .nav-toggle {
    background: rgba(28, 28, 31, 0.96);
  }

  .mobile-nav-drawer {
    background: rgba(28, 28, 31, 0.98);
    box-shadow: -24px 0 48px rgba(0, 0, 0, 0.36);
  }

  .mobile-nav-overlay {
    background: rgba(0, 0, 0, 0.56);
  }

  /* --- Consent Banner --- */
  .consent-banner {
    background: rgba(28, 28, 31, 0.98);
  }

  /* --- Float Badge (hero) --- */
  .float-badge {
    background: rgba(28, 28, 31, 0.82);
  }

  /* --- Form Inputs --- */
  .login-input,
  .reg-input,
  .q-input,
  .q-textarea,
  .search-input {
    background: var(--c-srf);
    color: var(--c-txt);
    border-color: var(--c-brd);
  }

  .login-input:focus,
  .reg-input:focus,
  .q-input:focus,
  .q-textarea:focus,
  .search-input:focus {
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
  }

  /* --- Focus ring (dark-adjusted) --- */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  summary:focus-visible,
  [tabindex]:not([tabindex='-1']):focus-visible {
    outline-color: rgba(52, 211, 153, 0.36);
  }

  /* --- Section warm background --- */
  .sec-warm {
    background: #1a1a1d;
  }

  .sec-alt {
    background: #161618;
  }

  /* --- Notdienst warm sections --- */
  .nd-cta {
    background: linear-gradient(180deg, #1f1510, #1a1208);
  }

  .nd-card {
    background: var(--c-srf);
    border-color: var(--c-brd);
  }

  /* --- Price table --- */
  .price-tbl tr:nth-child(even) {
    background: var(--c-srf);
  }

  .price-tbl th {
    background: var(--c-srf);
  }

  /* --- Calculator widget --- */
  .calc-widget {
    background: var(--c-srf);
    border-color: var(--c-brd);
  }

  .calc-result-month {
    background: #2a2518;
  }

  /* --- Testimonial cards --- */
  .testimonial {
    background: var(--c-srf);
    border-color: var(--c-brd);
  }

  /* --- CB cards --- */
  .cb-card {
    background: var(--c-srf);
    border-color: var(--c-brd);
  }

  /* --- Service cards --- */
  .svc-card {
    background: var(--c-srf);
    border-color: var(--c-brd);
  }

  /* --- Link block --- */
  .link-block {
    background: #161618;
  }

  .link-tag {
    background: var(--c-srf);
    border-color: var(--c-brd);
  }

  /* --- Search wrap --- */
  .search-wrap {
    background: var(--c-srf);
    border-color: var(--c-brd);
  }

  /* --- White background override --- */
  .bg-white,
  .card-white {
    background: var(--c-srf);
  }

  /* --- Images: slightly lighten on dark to reduce eye strain --- */
  .hero-img img {
    opacity: 0.92;
  }

  /* --- Step indicator badges --- */
  .cb-icon {
    background: var(--c-pri-lt);
    color: var(--c-pri);
  }

  .cb-icon-warm {
    background: #2e2410;
    color: #f0b048;
  }

  .cb-icon-green {
    background: #142a1c;
    color: #4ade80;
  }

  /* --- Page-specific hero backgrounds (dark) --- */

  .page-altmeister {
    --c-pri: #f59e0b;
    --c-pri-h: #fbbf24;
    --c-pri-lt: #2a2010;
  }

  .page-altmeister .hero {
    background: linear-gradient(180deg, #1a1508, #2a1f0a);
  }

  .page-azubi {
    --c-pri: #60a5fa;
    --c-pri-h: #93c5fd;
    --c-pri-lt: #1a2540;
  }

  .page-jobs {
    --c-pri: #818cf8;
    --c-pri-h: #a5b4fc;
    --c-pri-lt: #1a1a30;
  }

  .page-jobs .hero {
    background: linear-gradient(180deg, #141428, #1a1a40);
  }

  .page-stadt .hero,
  .page-bundesland .hero,
  .page-service .hero {
    background: linear-gradient(180deg, var(--c-bg), var(--c-warm));
  }

  /* --- Counter items (dark borders) --- */
  .counter-item {
    background: var(--c-srf);
    border-color: var(--c-brd);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--f-body);
  color: var(--c-txt);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.mobile-nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-head);
  line-height: 1.15;
}

a {
  color: var(--c-pri);
  text-decoration: none;
}

a:hover {
  color: var(--c-pri-h);
}

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

.container {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex='-1']):focus-visible {
  outline: 2px solid var(--c-dk);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: var(--zi-modal);
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--c-dk);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--sh-md);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.login-input:focus,
.reg-input:focus,
.q-input:focus,
.q-textarea:focus,
.search-input:focus {
  border-color: var(--c-pri);
  box-shadow: 0 0 0 4px rgba(26, 107, 74, 0.12);
}

/* TEAM_023: Hide CTA zone placeholder labels from end users.
   cta-banners.js replaces these zones with real banners at runtime.
   This CSS prevents the developer annotations from flashing during load. */
.cta-zone-label,
.cta-zone-hint {
  display: none;
}

.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: var(--zi-modal);
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--c-brd);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.98); /* solid fallback for no backdrop-filter */
  color: var(--c-txt);
  box-shadow: var(--sh-lg);
}

@supports (backdrop-filter: blur(16px)) {
  .consent-banner {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

.consent-banner-title {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.consent-banner-copy {
  font-size: 0.875rem;
  color: var(--c-mut);
}

.consent-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.consent-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--c-brd);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.consent-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}

.consent-banner-btn-primary {
  background: var(--c-pri);
  color: #fff;
  border-color: var(--c-pri);
}

.consent-banner-btn-primary:hover {
  background: var(--c-pri-h);
  border-color: var(--c-pri-h);
}

.consent-banner-btn-secondary {
  background: var(--c-srf);
  color: var(--c-dk);
}

.consent-banner-link {
  font-size: 0.875rem;
  font-weight: 600;
}

/* ========== PREVIEW BANNER ========== */
.preview-banner {
  background: linear-gradient(135deg, #1c1c1f, #2a2a30);
  color: #fff;
  text-align: center;
  padding: 12px 24px;
  font-size: 0.8125rem;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: var(--zi-dropdown);
}

.preview-banner span {
  background: var(--c-pri);
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 8px;
}

.preview-banner a {
  color: #8ef;
  margin-left: 6px;
}

/* ========== NAV ========== */
.nav {
  background: rgba(255, 255, 255, 0.95); /* solid fallback for no backdrop-filter */
  border-bottom: 1px solid var(--c-brd);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: var(--zi-sticky);
}

@supports (backdrop-filter: blur(16px)) {
  .nav {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

.nav-inner {
  max-width: var(--mw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--f-head);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--c-dk);
}

.nav-logo em {
  font-style: normal;
  color: var(--c-acc);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  list-style: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--c-brd);
  background: rgba(255, 255, 255, 0.96);
  color: var(--c-dk);
  border-radius: 999px;
  padding: 9px 12px;
  font-family: var(--f-body);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--sh-sm);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle-bars span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

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

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

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

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 31, 0.48);
  z-index: var(--zi-overlay);
}

.mobile-nav-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, calc(100vw - 24px));
  padding: 92px 20px 24px;
  background: rgba(255, 255, 255, 0.98); /* solid fallback for no backdrop-filter */
  box-shadow: -24px 0 48px rgba(28, 28, 31, 0.14);
  z-index: var(--zi-overlay);
  overflow-y: auto;
}

@supports (backdrop-filter: blur(16px)) {
  .mobile-nav-drawer {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
}

.mobile-nav-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-drawer a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--c-srf);
  border: 1px solid var(--c-brd);
  color: var(--c-dk);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: var(--sh-sm);
}

.mobile-nav-drawer a.nav-cta {
  padding: 14px 16px;
  text-align: center;
}

.site-main {
  min-height: calc(100vh - 64px);
}

.route-breadcrumbs {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 16px var(--space-edge);
  font-size: 0.8125rem;
  color: var(--c-mut);
}

.page-breadcrumbs {
  display: none;
}

.route-breadcrumbs nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-breadcrumbs a {
  color: var(--c-mut);
}

.route-breadcrumbs [aria-current='page'] {
  color: var(--c-dk);
  font-weight: 600;
}

.route-breadcrumbs-sep {
  color: #b4b0ab;
}

.section-pad-sm {
  padding: var(--space-section-sm) var(--space-edge);
}

.section-pad-md {
  padding: var(--space-section-md) var(--space-edge);
}

.section-pad-search {
  padding: 0 var(--space-edge) var(--space-section-sm);
}

.section-pad-map {
  padding: 0 var(--space-edge) 24px;
}

.section-boundary-sm {
  max-width: var(--mw);
  margin: 32px auto;
  padding: 0 var(--space-edge);
}

.search-feedback {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--c-mut);
}

.search-feedback.is-ready {
  color: var(--c-pri);
}

.wizard-status {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 0.8125rem;
  color: var(--c-mut);
  background: rgba(255, 255, 255, 0.72);
}

.wizard-status.is-loading {
  border-color: rgba(26, 107, 74, 0.16);
  color: var(--c-pri);
  background: rgba(232, 245, 238, 0.72);
}

.wizard-status.is-success {
  border-color: rgba(34, 197, 94, 0.2);
  color: #166534;
  background: rgba(240, 253, 244, 0.9);
}

.wizard-status.is-error {
  border-color: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
  background: rgba(254, 242, 242, 0.9);
}

.cta-zone.cta-zone-empty,
.cta-zone.cta-zone-host-empty {
  display: none !important;
}

.cta-banner-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}

.cta-banner-wrapper > div {
  position: relative;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.cta-banner-wrapper [class*='absolute'] {
  max-width: 100%;
}

.cta-banner-wrapper.is-overflow-scaled {
  overflow: clip;
  height: var(--cta-overflow-scaled-height);
  min-height: var(--cta-overflow-scaled-height);
}

.cta-banner-wrapper.is-overflow-scaled > .cta-overflow-scale-root {
  width: var(--cta-overflow-natural-width, 100%);
  max-width: none;
  transform: scale(var(--cta-overflow-scale, 1));
  transform-origin: top left;
  will-change: transform;
}

@media (max-width: 768px) {
  .cta-banner-wrapper,
  .cta-banner-wrapper > *,
  .cta-banner-wrapper * {
    min-width: 0;
  }

  .cta-banner-wrapper * {
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .cta-banner-wrapper img,
  .cta-banner-wrapper video,
  .cta-banner-wrapper svg,
  .cta-banner-wrapper canvas {
    max-width: 100%;
    height: auto;
  }

  .cta-banner-wrapper a,
  .cta-banner-wrapper button {
    max-width: 100%;
  }

  .cta-banner-wrapper .inline-flex,
  .cta-banner-wrapper a[class*='inline-flex'],
  .cta-banner-wrapper button[class*='inline-flex'] {
    white-space: normal;
    word-break: break-word;
    text-wrap: balance;
  }
}

.nav-links a {
  color: var(--c-txt);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--c-dk);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-pri);
  border-radius: 2px;
}

.nav-links a.nav-cta,
a.nav-cta {
  background: var(--c-pri);
  color: #fff;
  padding: 9px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.nav-links a.nav-cta:hover,
a.nav-cta:hover {
  background: var(--c-pri-h);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

/* ========== SEARCH CARD ========== */
.search-card-section {
  padding: 0 var(--space-edge) var(--space-section-sm);
}

.search-card {
  max-width: var(--mw);
  margin: 0 auto;
  background: var(--c-srf);
  border: 1px solid var(--c-brd);
  border-radius: var(--r-xl);
  padding: 28px 28px 24px;
  box-shadow: var(--sh-sm);
}

.search-card-title {
  font-family: var(--f-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-dk);
  margin-bottom: 4px;
}

.search-card-desc {
  font-size: 0.875rem;
  color: var(--c-mut);
  margin-bottom: 16px;
}

.search-card-field {
  position: relative;
  margin-bottom: 16px;
}

.search-card-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border: 1.5px solid var(--c-brd);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-txt);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.search-card-input:focus {
  border-color: var(--c-pri);
  box-shadow: 0 0 0 4px rgba(26, 107, 74, 0.12);
}

.search-card-input::placeholder {
  color: var(--c-mut);
}

.search-card-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.125rem;
  color: var(--c-mut);
  cursor: pointer;
  display: none;
  padding: 4px;
}

.search-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.search-card-leistungen {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--c-brd);
}

.search-card-cta {
  display: none;
  padding-top: 12px;
  border-top: 1px solid var(--c-brd);
}

.search-card-cta .btn-p {
  width: 100%;
  justify-content: center;
  font-size: 0.9375rem;
}

.search-card-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--c-mut);
  margin-top: 8px;
}

.search-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--f-body);
  white-space: nowrap;
  background: transparent;
  color: var(--c-txt);
  border: 1px solid var(--c-brd);
}

.search-tag-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  flex-shrink: 0;
}

.search-tag.active {
  background: var(--c-pri);
  color: #fff;
  border-color: var(--c-pri);
}

.search-tag.active .search-tag-icon {
  opacity: 1;
  filter: brightness(0) invert(1);
}

.search-tag-sm {
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--f-body);
  white-space: nowrap;
  background: var(--c-bg);
  color: var(--c-txt);
  border: 1px solid var(--c-brd);
}

.search-tag-sm.active {
  background: var(--c-pri);
  color: #fff;
  border-color: var(--c-pri);
}

.search-tag-expand {
  margin: 4px 0 12px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--f-body);
  border: 1px solid var(--c-brd);
  background: var(--c-srf);
  color: var(--c-dk);
}

@media (prefers-color-scheme: dark) {
  .search-card-input:focus {
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
  }
}

/* ========== SEARCH BAR ========== */
.search-bar {
  background: var(--c-srf);
  border-bottom: 1px solid var(--c-brd);
  padding: 16px 24px;
}

.search-bar-inner {
  max-width: var(--mw);
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid var(--c-brd);
  border-radius: 100px;
  font-size: 0.9375rem;
  font-family: var(--f-body);
  background: var(--c-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b6b73' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='5'/%3E%3Cpath d='m12 12 4 4'/%3E%3C/svg%3E")
    16px center no-repeat;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition:
    border-color 0.2s,
    outline-color 0.2s;
}

.search-input:focus {
  border-color: var(--c-pri);
}

.search-input::placeholder {
  color: var(--c-mut);
}

.search-btn {
  background: var(--c-pri);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.search-btn:hover {
  background: var(--c-pri-h);
}

/* ========== BUTTONS ========== */
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-pri);
  color: #fff;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(26, 107, 74, 0.25);
}

.btn-p:hover {
  background: var(--c-pri-h);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 107, 74, 0.3);
  color: #fff;
}

.btn-p:active {
  transform: translateY(0) scale(0.98);
}

.btn-s {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--c-dk);
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid var(--c-brd);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-s:hover {
  border-color: var(--c-dk);
  background: var(--c-dk);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ========== SECTION HELPERS ========== */
.sec {
  padding: 72px 24px;
}

.sec-alt {
  background: var(--c-srf);
}

.sec-warm {
  background: var(--c-warm);
}

.sec-hdr {
  text-align: center;
  margin-bottom: 48px;
}

.sec-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-pri);
  margin-bottom: 10px;
}

.sec-hdr h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--c-dk);
  letter-spacing: -0.02em;
}

.sec-hdr p {
  font-size: 1rem;
  color: var(--c-mut);
  max-width: 520px;
  margin: 10px auto 0;
}

/* ========== HERO ========== */
.hero {
  padding: 64px 24px 56px;
  background: linear-gradient(180deg, var(--c-bg), var(--c-warm));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 107, 74, 0.06), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--mw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-1col .hero-inner {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 760px;
}

.hero-1col .hero-inner p {
  margin-left: auto;
  margin-right: auto;
}

.hero-1col .hero-actions {
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-bg, var(--c-pri-lt));
  color: var(--badge-c, var(--c-pri));
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-dk);
  margin-bottom: 16px;
}

.hero h1 .hl {
  color: var(--c-pri);
}

.hero > div p,
.hero-content p {
  font-size: 1.0625rem;
  color: var(--c-txt);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--c-brd);
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--c-mut);
}

.hero-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--c-pri);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
}

.hero-img {
  background: var(--c-srf);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--c-brd);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-ph {
  font-size: 0.875rem;
  color: var(--c-mut);
  text-align: center;
  padding: 32px;
  font-style: italic;
  background: linear-gradient(135deg, #e8f5ee, #f5e6e3 50%, #e8edf5);
}

.float-badge {
  position: absolute;
  bottom: -12px;
  left: 20px;
  background: var(--c-srf);
  color: var(--c-txt);
  padding: 10px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--c-brd);
}

.stars {
  color: #e8a838;
}

/* ========== CONTENT BLOCKS (SEO zones) ========== */
.cb {
  max-width: var(--mw);
  margin: 0 auto;
}

.cb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cb-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.cb-card {
  background: var(--c-srf);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  border: 1px solid var(--c-brd);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-hv);
  border-color: transparent;
}

.cb-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.375rem;
}

.cb-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--c-dk);
}

.cb-card p {
  font-size: 0.875rem;
  color: var(--c-txt);
  line-height: 1.6;
}

/* ========== TEXT CONTENT AREA ========== */
.txt-block {
  max-width: var(--mw);
  margin: 0 auto;
}

.txt-block h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--c-dk);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.txt-block h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--c-dk);
  margin: 22px 0 10px;
  letter-spacing: -0.01em;
}

.txt-block p {
  font-size: 0.9375rem;
  color: var(--c-txt);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 720px;
}

.txt-block ul {
  margin: 12px 0 20px 20px;
  font-size: 0.9375rem;
  color: var(--c-txt);
  line-height: 1.8;
}

/* ---------- Text block layout alternation ---------- */

/* Right-aligned text block (visual rhythm on desktop) */
@media (min-width: 768px) {
  .txt-block-reverse {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .txt-block-reverse h2,
  .txt-block-reverse h3,
  .txt-block-reverse p,
  .txt-block-reverse ul,
  .txt-block-reverse .check-list {
    text-align: left;
    max-width: 720px;
  }
}

/* Alternating subtle background for visual rhythm */
.txt-block-alt {
  background-color: #f8f7f5;
  border-radius: 12px;
  padding: 2rem;
  margin-left: -1rem;
  margin-right: -1rem;
}

@media (prefers-color-scheme: dark) {
  .txt-block-alt {
    background-color: #1c1c1f;
  }
}

/* Mobile: reset alternation to natural flow */
@media (max-width: 640px) {
  .txt-block-reverse {
    display: block;
  }
  .txt-block-alt {
    margin-left: 0;
    margin-right: 0;
    padding: 1.25rem;
    border-radius: 8px;
  }
}

.txt-split > div {
  min-width: 0;
}

.txt-split > div:first-child h3:first-child,
.txt-split > div:last-child h3:first-child {
  margin-top: 0;
}

.txt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ========== CTA ZONE (neutral placeholder for trackable banners) ========== */
.cta-zone {
  max-width: var(--mw);
  margin: 0 auto;
  border: 2px dashed var(--c-brd);
  border-radius: var(--r-xl);
  padding: 0;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: var(--c-bg);
  position: relative;
  overflow: hidden;
}

/* Hide CMS placeholder copy until a real banner is injected. */
.cta-zone[data-cta-zone] {
  display: none;
}

.cta-zone::before {
  content: 'CTA BANNER ZONE';
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-mut);
  opacity: 0.5;
}

.cta-zone-label {
  font-size: 0.75rem;
  color: var(--c-mut);
  font-weight: 500;
}

.cta-zone-hint {
  font-size: 0.6875rem;
  color: var(--c-mut);
  opacity: 0.5;
}

/* New banner zones (data-banner-zone) — center injected banners */
[data-banner-zone] {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 var(--space-edge);
  text-align: center;
}
[data-banner-zone] > div,
[data-banner-zone] > section,
[data-banner-zone] > a {
  display: inline-block;
  max-width: 100%;
  text-align: left;
}

/* OLD banner-zone kept for backwards compat */
.banner-zone {
  max-width: var(--mw);
  margin: 0 auto;
  border-radius: var(--r-xl);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner-dark {
  background: linear-gradient(135deg, var(--c-dk), #2d3a4a);
  color: #fff;
}

.banner-dark h2 {
  color: #fff;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
}

.banner-dark p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.0625rem;
  max-width: 500px;
  margin: 0 auto 28px;
}

.banner-green {
  background: linear-gradient(135deg, #0f5132, #1a6b4a);
  color: #fff;
}

.banner-green h2 {
  color: #fff;
}

.banner-green p {
  color: rgba(255, 255, 255, 0.7);
}

.banner-warm {
  background: linear-gradient(135deg, #f8e8d4, #f5e6e3);
  color: var(--c-dk);
}

.banner-zone::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.banner-zone .btn-p,
.banner-zone .btn-s {
  position: relative;
}

.banner-zone .btn-p:hover {
  background: #22c970;
  box-shadow: 0 8px 24px rgba(34, 201, 112, 0.3);
}

/* ========== SERVICE CARDS ========== */
.svc-grid {
  max-width: var(--mw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.svc-card {
  background: var(--c-srf);
  border-radius: var(--r-md);
  padding: 20px 16px;
  border: 1px solid var(--c-brd);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  border-color: var(--c-pri);
}

.svc-card,
.cb-card,
.testimonial,
.calc-widget {
  min-width: 0;
}

.svc-card .ic {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.svc-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-dk);
}

.svc-card p {
  font-size: 0.75rem;
  color: var(--c-txt);
  margin-top: 1px;
}

/* ========== LIVE COUNTER STRIP ========== */
.counter-strip {
  max-width: var(--mw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 24px;
}

.counter-item {
  background: var(--c-srf);
  border: 1px solid var(--c-brd);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s;
}

.counter-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.counter-link:focus-visible {
  outline: 3px solid rgba(26, 107, 74, 0.18);
  outline-offset: 3px;
}

.counter-item:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.counter-num {
  font-family: var(--f-head);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--c-pri);
  letter-spacing: -0.03em;
}

.counter-label {
  font-size: 0.8125rem;
  color: var(--c-mut);
  margin-top: 4px;
  font-weight: 500;
}

.counter-link:hover .counter-num,
.counter-link:focus-visible .counter-num {
  color: var(--c-pri-h);
}

/* ========== PRICE CALCULATOR WIDGET ========== */
.calc-widget {
  background: var(--c-srf);
  border: 1px solid var(--c-brd);
  border-radius: var(--r-xl);
  padding: 32px;
  max-width: 400px;
}

.calc-widget h3 {
  font-family: var(--f-head);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--c-dk);
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: var(--c-txt);
}

.calc-row label {
  font-weight: 500;
}

.calc-row input[type='range'] {
  width: 140px;
  accent-color: var(--c-pri);
}

.calc-row .calc-val {
  font-weight: 700;
  color: var(--c-pri);
  min-width: 60px;
  text-align: right;
}

.calc-result {
  margin-top: 16px;
  padding: 16px;
  background: var(--c-pri-lt);
  border-radius: var(--r-md);
  text-align: center;
}

.calc-result-num {
  font-family: var(--f-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--c-pri);
}

.calc-result-label {
  font-size: 0.75rem;
  color: var(--c-mut);
  margin-top: 2px;
}

/* ========== TESTIMONIAL CARD ========== */
.testimonial {
  background: var(--c-srf);
  border: 1px solid var(--c-brd);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
}

.testimonial::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--c-pri);
  opacity: 0.15;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
}

.testimonial p {
  font-size: 0.9375rem;
  color: var(--c-txt);
  line-height: 1.7;
  font-style: italic;
  padding-left: 8px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-left: 8px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-pri-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-pri);
}

.testimonial-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-dk);
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--c-mut);
}

.testimonial p,
.testimonial-role {
  overflow-wrap: anywhere;
}

/* ========== FAQ ACCORDION ========== */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--c-brd);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-dk);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--f-body);
}

.faq-q::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--c-pri);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-q.open::after {
  content: '−';
}

.faq-a {
  padding: 0 0 18px;
  font-size: 0.875rem;
  color: var(--c-txt);
  line-height: 1.7;
  display: none;
}

.faq-a.show {
  display: block;
}

/* ========== INTERNAL LINK BLOCK ========== */
.link-block {
  padding: 48px 24px;
  background: var(--c-warm);
  border-top: 1px solid var(--c-brd);
}

.link-block-inner {
  max-width: var(--mw);
  margin: 0 auto;
}

.link-block h3 {
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-dk);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.link-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.link-cols h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-dk);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.link-cols ul {
  list-style: none;
}

.link-cols li {
  margin-bottom: 6px;
}

.link-cols a {
  font-size: 0.8125rem;
  color: var(--c-mut);
  transition: color 0.2s;
}

.link-cols a:hover {
  color: var(--c-pri);
}

.link-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.link-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--c-brd);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-txt);
  background: var(--c-srf);
  transition: all 0.2s;
}

.link-tag:hover {
  border-color: var(--c-pri);
  color: var(--c-pri);
  background: var(--c-pri-lt);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--c-dk);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 24px 28px;
}

.footer-grid {
  max-width: var(--mw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 260px;
  margin-top: 12px;
}

.footer h4 {
  font-family: var(--f-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: var(--mw);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.95);
}

/* ========== STEP NUMBERS ========== */
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-pri);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

/* ========== PAGE TYPE VISUAL VARIANTS ========== */

/* Stadt pages: blue accent */
.page-stadt {
  --c-pri: #2563eb;
  --c-pri-h: #1d4ed8;
  --c-pri-lt: #dbeafe;
}

.page-stadt .hero {
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
}

/* Bundesland pages: deep blue-green */
.page-bundesland {
  --c-pri: #0d7377;
  --c-pri-h: #0a5e61;
  --c-pri-lt: #e0f7fa;
}

.page-bundesland .hero {
  background: linear-gradient(180deg, #e0f7fa, #f0fdfa);
}

/* Service pages: warm orange */
.page-service {
  --c-pri: #ea580c;
  --c-pri-h: #c2410c;
  --c-pri-lt: #ffedd5;
}

.page-service .hero {
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
}

/* Pro pages: dark forest */
.page-pro .hero {
  background: linear-gradient(180deg, #0d2818, #1a4731);
  color: #fff;
}

.page-pro .hero h1 {
  color: #fff;
}

.page-pro .hero p,
.page-pro .hero-content p {
  color: rgba(255, 255, 255, 0.7);
}

/* Altmeister pages: warm amber */
.page-altmeister {
  --c-pri: #b45309;
  --c-pri-h: #92400e;
  --c-pri-lt: #fef3c7;
}

.page-altmeister .hero {
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
}

/* Azubi pages: bright blue */
.page-azubi {
  --c-pri: #2563eb;
  --c-pri-h: #1d4ed8;
  --c-pri-lt: #dbeafe;
}

.page-azubi .hero {
  background: linear-gradient(180deg, #1e3a5f, #2563eb);
  color: #fff;
}

.page-azubi .hero h1 {
  color: #fff;
}

.page-azubi .hero p,
.page-azubi .hero-content p {
  color: rgba(255, 255, 255, 0.7);
}

/* Jobs page: warm slate */
.page-jobs {
  --c-pri: #6366f1;
  --c-pri-h: #4f46e5;
  --c-pri-lt: #eef2ff;
}

.page-jobs .hero {
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .txt-split {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .hero-inner,
  .txt-split {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .cb-grid {
    grid-template-columns: 1fr;
  }

  .cb-grid-2 {
    grid-template-columns: 1fr;
  }

  .svc-grid {
    grid-template-columns: 1fr 1fr;
  }

  .link-cols {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 8px;
  }

  .footer-brand p {
    max-width: 100%;
    margin: 12px auto 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .route-breadcrumbs,
  .section-pad-sm,
  .section-pad-md,
  .section-pad-search,
  .section-pad-map {
    padding-left: var(--space-edge-sm);
    padding-right: var(--space-edge-sm);
  }

  .section-boundary-sm {
    padding-left: var(--space-edge-sm);
    padding-right: var(--space-edge-sm);
  }

  .counter-strip {
    grid-template-columns: 1fr 1fr;
  }

  .cb-grid-2 {
    grid-template-columns: 1fr;
  }

  .reviews-grid,
  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .altmeister-rechner-grid {
    grid-template-columns: 1fr;
  }

  .legal-chip-row {
    flex-wrap: wrap;
  }

  .legal-chip-row a {
    overflow-wrap: anywhere;
  }

  .hero,
  .sec,
  .txt-block,
  .cb,
  .contact-card,
  .job-card,
  #search-card {
    min-width: 0;
  }

  .hero-actions,
  .hero-trust,
  .footer-bottom {
    flex-wrap: wrap;
  }

  .footer-grid,
  .footer-grid > div,
  .footer-bottom,
  .footer-bottom > div {
    min-width: 0;
  }

  .footer a {
    overflow-wrap: anywhere;
  }

  .hero-actions .btn-p,
  .hero-actions .btn-s,
  .footer-bottom div {
    width: 100%;
    justify-content: center;
  }

  .hero-img img {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .cta-banner-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: clip;
    contain: layout paint;
  }

  #leistungen-map,
  #stadt-map,
  .leaflet-container {
    max-width: 100%;
    overflow: hidden;
    contain: layout paint;
  }

  .leaflet-pane,
  .leaflet-map-pane,
  .leaflet-tile-pane,
  .leaflet-overlay-pane,
  .leaflet-shadow-pane,
  .leaflet-marker-pane,
  .leaflet-popup-pane,
  .leaflet-proxy {
    max-width: 100%;
  }

  .price-tbl {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .price-tbl th,
  .price-tbl td {
    min-width: 120px;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim {
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-play-state: paused;
  opacity: 0;
}

.anim.is-visible {
  animation-play-state: running;
}

.d1 {
  animation-delay: 0.1s;
}

.d2 {
  animation-delay: 0.2s;
}

.d3 {
  animation-delay: 0.3s;
}

.d4 {
  animation-delay: 0.4s;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.counter-anim {
  animation: countUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-play-state: paused;
  opacity: 0;
}

.counter-anim.is-visible {
  animation-play-state: running;
}

/* ========== ICON COLORS ========== */
.ic-yellow {
  background: #fef3e2;
  color: #e8a838;
}

.ic-blue {
  background: #e0f0ff;
  color: #3b82f6;
}

.ic-red {
  background: #ffeaea;
  color: #ef4444;
}

.ic-purple {
  background: #f0e8ff;
  color: #8b5cf6;
}

.ic-green {
  background: #e8f5ee;
  color: #16a34a;
}

.ic-brown {
  background: #fef3e2;
  color: #b45309;
}

.ic-orange {
  background: #ffedd5;
  color: #ea580c;
}

.ic-teal {
  background: #e0f7fa;
  color: #0891b2;
}

/* ========== PRICE TABLE ========== */
.price-tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-brd);
  margin-top: 16px;
}

.price-tbl th {
  background: var(--c-bg);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-dk);
  border-bottom: 1px solid var(--c-brd);
}

.price-tbl td {
  padding: 12px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--c-brd);
}

.price-tbl tr:last-child td {
  border-bottom: none;
}

.price-tbl tr:hover td {
  background: var(--c-pri-lt);
}

/* ========== JOB CARDS ========== */
.job-card {
  background: var(--c-srf);
  border: 1px solid var(--c-brd);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all 0.25s;
  cursor: pointer;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-hv);
  border-color: transparent;
}

.job-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--c-mut);
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-open {
  background: #e8f5ee;
  color: #16a34a;
}

.tag-urgent {
  background: #ffeaea;
  color: #ef4444;
}

/* Step number circles (wizard) */
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-head);
  font-size: 0.9375rem;
  font-weight: 800;
  background: var(--c-pri);
  color: #fff;
}

/* link-cols for categorized 4-column layouts */
.link-cols {
  display: grid;
  gap: 24px;
}

.link-cols h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-dk);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.link-cols ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-cols a {
  font-size: 0.875rem;
  color: var(--c-pri);
}

.link-cols a:hover {
  text-decoration: underline;
}

/* Text split (2-column text) */
.txt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 640px) {
  .txt-split {
    grid-template-columns: 1fr;
  }

  .link-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0 16px;
  }

  .nav-inner {
    height: 60px;
  }

  .nav-logo {
    font-size: 1.25rem;
  }

  .mobile-nav-drawer {
    width: calc(100vw - 12px);
    padding-top: 84px;
  }

  .svc-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .link-cols,
  .counter-strip {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn-p,
  .hero-actions .btn-s,
  .btn-p,
  .btn-s {
    width: 100%;
    justify-content: center;
  }

  .route-breadcrumbs {
    font-size: 0.75rem;
  }

  .wizard-status {
    font-size: 0.75rem;
  }
}

.txt-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--c-dk);
  max-width: 840px;
  margin-bottom: 24px;
}

.txt-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--c-pri-lt);
  color: var(--c-pri);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-service .txt-split {
  gap: 24px;
  margin: 24px 0 28px;
}

.page-service .txt-split > div,
.page-service .txt-panel {
  background: #fff7ed;
  border: 1px solid var(--c-brd);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 24px 24px 10px;
}

.page-service .txt-panel {
  margin-top: 24px;
}

.page-service .txt-split > div p,
.page-service .txt-split > div ul,
.page-service .txt-panel p,
.page-service .txt-panel ul {
  max-width: none;
}

.page-service .txt-panel .price-tbl {
  margin-top: 4px;
  margin-bottom: 18px;
}

/* Expandable link section button */
.link-expand-btn {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--c-brd);
  background: var(--c-bg);
  color: var(--c-pri);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--f-body);
  cursor: pointer;
  transition: all 0.2s;
  vertical-align: middle;
}

.link-expand-btn:hover {
  border-color: var(--c-pri);
  background: var(--c-pri-lt);
}

/* Hidden link tags (for expand pattern) */
.link-tags-hidden {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
}

/* ========== TEAM_024: BUTTON SYSTEM (D4/D5) ========== */

.btn-p,
.btn-s {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-xl);
  font-family: var(--f-head);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

/* Primary button */
.btn-p {
  background: var(--c-pri);
  color: #fff;
  border-color: var(--c-pri);
  box-shadow: var(--sh-sm);
}

.btn-p:hover {
  background: var(--c-pri-h);
  border-color: var(--c-pri-h);
  color: #fff;
  box-shadow: var(--sh-md);
  transform: translateY(-1px);
}

.btn-p:active {
  transform: translateY(0);
  box-shadow: var(--sh-sm);
}

/* Secondary / outline button */
.btn-s {
  background: var(--c-srf);
  color: var(--c-dk);
  border-color: var(--c-brd);
}

.btn-s:hover {
  border-color: var(--c-pri);
  color: var(--c-pri);
  background: var(--c-pri-lt);
  transform: translateY(-1px);
}

.btn-s:active {
  transform: translateY(0);
}

/* Focus states */
.btn-p:focus-visible,
.btn-s:focus-visible {
  outline: 2px solid var(--c-dk);
  outline-offset: 3px;
}

/* Disabled state */
.btn-p:disabled,
.btn-p[aria-disabled='true'] {
  background: var(--c-mut);
  border-color: var(--c-mut);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.65;
}

.btn-s:disabled,
.btn-s[aria-disabled='true'] {
  border-color: var(--c-brd);
  color: var(--c-mut);
  cursor: not-allowed;
  transform: none;
  opacity: 0.65;
}

/* Loading state */
.btn-p.is-loading,
.btn-s.is-loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn-p.is-loading::after,
.btn-s.is-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  margin-left: 6px;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== TEAM_024: FOOTER (F3/D3 + U6) ========== */

.footer {
  background: var(--c-dk);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 24px 24px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

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

.footer-brand {
  padding-right: 24px;
}

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand .nav-logo em {
  color: #f0918a;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  opacity: 0.7;
}

.footer h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 8px;
}

.footer li a {
  font-size: 0.8125rem;
}

.footer-bottom {
  max-width: var(--mw);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.footer-bottom a {
  font-size: 0.75rem;
}

/* Footer mobile (U6) */
@media (max-width: 1024px) {
  .footer-grid,
  .footer-grid-5col {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 40px var(--space-edge-sm) 20px;
  }
  .footer-grid,
  .footer-grid-5col {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 24px 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-grid > div {
    width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 32px var(--space-edge-sm) 16px;
  }
  .footer-grid,
  .footer-grid-5col {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 20px 16px;
  }
}

/* ========== TEAM_024: FORM FIELDS (A7/F3) ========== */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-dk);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--c-brd);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-family: var(--f-body);
  color: var(--c-txt);
  background: var(--c-srf);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--c-pri);
  box-shadow: 0 0 0 3px var(--c-pri-lt);
}

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

.form-input::placeholder {
  color: var(--c-mut);
  opacity: 0.6;
}

/* ========== NOTDIENST / URGENT THEME — TEAM_024 ========== */

.hero-notdienst {
  background: linear-gradient(180deg, #fef2f2, #fecaca);
  padding: 56px 24px;
}

.hero-badge-urgent {
  background: #fecaca;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.hero-title-urgent {
  color: #dc2626;
}

.btn-urgent {
  background: #dc2626;
  box-shadow: 0 2px 12px rgba(220, 38, 38, 0.4);
}

.btn-urgent:hover {
  background: #b91c1c;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.5);
}

.float-badge-urgent {
  border-color: #fca5a5;
}

/* ---- Search Card Component ---- */

.search-wrap {
  max-width: var(--mw);
  margin: 0 auto;
  background: var(--c-srf);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  padding: 28px 28px 24px;
  border: 1px solid var(--c-brd);
}

.search-wrap h3 {
  font-family: var(--f-head);
  font-size: 1.25rem;
  color: var(--c-dk);
  margin: 0 0 4px;
}

.search-wrap .search-subtitle {
  color: var(--c-mut);
  font-size: 0.875rem;
  margin: 0 0 16px;
}

.search-input-wrap {
  position: relative;
  margin-bottom: 16px;
}

.search-input,
#search-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-brd);
  font-size: 0.9375rem;
  font-family: var(--f-body);
  color: var(--c-txt);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: var(--c-srf);
  caret-color: var(--c-pri);
}

.search-input:focus,
#search-input:focus {
  border-color: var(--c-pri);
}

.search-input::placeholder,
#search-input::placeholder {
  color: var(--c-mut);
}

.search-clear {
  display: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.125rem;
  color: var(--c-mut);
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-grid-sm {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.search-cta-wrap {
  display: none;
  margin-top: 16px;
}

.search-cta-link {
  display: block;
  background: var(--c-pri);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.search-cta-link:hover {
  opacity: 0.9;
}

.search-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--c-mut);
  margin: 8px 0 0;
}

/* ---- Counter Num Red Variant ---- */

.counter-num-red {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---- Emergency Type Cards ---- */

.cb-card-water {
  border-left: 4px solid #dc2626;
}

.cb-card-water .cb-icon {
  background: #fef2f2;
  color: #dc2626;
}

.cb-card-heat {
  border-left: 4px solid #ea580c;
}

.cb-card-heat .cb-icon {
  background: #ffedd5;
  color: #ea580c;
}

.cb-card-power {
  border-left: 4px solid #eab308;
}

.cb-card-power .cb-icon {
  background: #fef9c3;
  color: #eab308;
}

/* ---- CTA Zone Padding ---- */

.section-cta-pad {
  padding: 24px 24px;
}

/* ---- Price Table Hint ---- */

.price-hint {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--c-mut);
}

/* ---- Link Block Heading Spacing ---- */

.link-block h3 + .link-tags + h3 {
  margin-top: 24px;
}

/* ---- Footer Sub-heading Spacing ---- */

.footer h4.footer-subheading {
  margin-top: 20px;
}

/* ---- Hero Trust SVG Icons ---- */

.hero-trust-icon {
  width: 16px;
  height: 16px;
}

/* ---- CB-Icon Color Variants ---- */

.cb-icon-warm {
  background: #fef3e2;
  color: #e8a838;
}

.cb-icon-green {
  background: #e8f5ee;
  color: #16a34a;
}

.cb-icon-blue {
  background: #e0f2fe;
  color: #0284c7;
}

.cb-icon-purple {
  background: #f3e8ff;
  color: #7c3aed;
}

/* ---- Altmeister/Azubi Rechner Grid ---- */

.altmeister-rechner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 640px) {
  .altmeister-rechner-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---- Calculator Result: Monthly Variant ---- */

.calc-result-month {
  margin-top: 8px;
  background: #fef3c7;
}

.calc-result-month .calc-result-num {
  font-size: 1.375rem;
}

/* ---- Testimonial Stacking ---- */

.testimonial + .testimonial {
  margin-top: 16px;
}

/* ---- Azubi Dark Hero Theme ---- */

.page-azubi .hero-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-azubi .hl {
  color: #60a5fa;
}

.page-azubi .btn-p-blue {
  background: #2563eb;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.4);
}

.page-azubi .btn-s-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.page-azubi .hero-trust {
  border-color: rgba(255, 255, 255, 0.15);
}

.page-azubi .hero-trust-item {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Section Label Color Variants (sec-label) ---- */

.sec-label-blue {
  color: #2563eb;
}

/* ========== EXIT-INTENT POPUP (G4) ========== */
.exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 31, 0.56);
  z-index: var(--zi-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.exit-popup-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.exit-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: calc(var(--zi-modal) + 1);
  width: min(480px, calc(100vw - 32px));
  padding: 40px 32px;
  border-radius: var(--r-xl);
  background: var(--c-srf);
  border: 1px solid var(--c-brd);
  box-shadow: var(--sh-lg);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.exit-popup-overlay.is-visible + .exit-popup,
.exit-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.exit-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--c-warm);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--c-mut);
  transition: background 0.2s ease;
}

.exit-popup-close:hover {
  background: var(--c-brd);
}

.exit-popup-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--c-pri-lt);
  color: var(--c-pri);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.exit-popup h2 {
  font-family: var(--f-head);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--c-dk);
  margin-bottom: 8px;
}

.exit-popup p {
  font-size: 0.9375rem;
  color: var(--c-mut);
  line-height: 1.5;
  margin-bottom: 20px;
}

.exit-popup-form {
  display: flex;
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
}

.exit-popup-input {
  flex: 1;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--c-brd);
  border-radius: 999px;
  background: var(--c-warm);
  color: var(--c-txt);
  font: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.exit-popup-input:focus {
  border-color: var(--c-pri);
  box-shadow: 0 0 0 3px rgba(26, 107, 74, 0.12);
}

.exit-popup-submit {
  min-height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: var(--c-pri);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.exit-popup-submit:hover {
  background: var(--c-pri-h);
  transform: translateY(-1px);
}

.exit-popup-hint {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--c-mut);
}

.exit-popup-success {
  display: none;
}

.exit-popup.is-success .exit-popup-form,
.exit-popup.is-success p:not(.exit-popup-success) {
  display: none;
}

.exit-popup.is-success .exit-popup-success {
  display: block;
  color: var(--c-pri);
  font-weight: 600;
  font-size: 1rem;
}

@media (max-width: 480px) {
  .exit-popup {
    padding: 28px 20px;
  }

  .exit-popup-form {
    flex-direction: column;
  }

  .exit-popup h2 {
    font-size: 1.25rem;
  }
}

/* ========== SHARE FAB (G3) ========== */
.share-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--zi-sticky);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--c-pri);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-md);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.share-fab:hover {
  background: var(--c-pri-h);
  transform: scale(1.08);
}

.share-fab:active {
  transform: scale(0.95);
}

.share-toast {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: var(--zi-sticky);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--c-dk);
  color: var(--c-bg);
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}

.share-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== ONBOARDING BANNER (G5) ========== */
.onboarding-banner {
  position: relative;
  max-width: var(--mw);
  margin: 16px auto;
  padding: 28px 32px;
  background: var(--c-srf);
  border: 1px solid var(--c-brd);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.onboarding-banner.is-dismissed {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.onboarding-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--c-warm);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: var(--c-mut);
  transition: background 0.2s ease;
}

.onboarding-close:hover {
  background: var(--c-brd);
}

.onboarding-header {
  text-align: center;
  margin-bottom: 20px;
}

.onboarding-wave {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.onboarding-header h3 {
  font-family: var(--f-head);
  font-size: 1.375rem;
  color: var(--c-dk);
  margin-bottom: 4px;
}

.onboarding-header p {
  font-size: 0.875rem;
  color: var(--c-mut);
}

.onboarding-steps {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.onboarding-step {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--c-brd);
  border-radius: var(--r-lg);
  background: var(--c-warm);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.onboarding-step:hover {
  border-color: var(--c-pri);
}

.onboarding-step.is-done {
  border-color: var(--c-pri);
  background: var(--c-pri-lt);
}

.onboarding-check {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-brd);
  color: var(--c-mut);
  font-weight: 700;
  font-size: 0.8125rem;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.onboarding-step.is-done .onboarding-check {
  background: var(--c-pri);
  color: #fff;
}

.onboarding-step strong {
  font-size: 0.875rem;
  color: var(--c-dk);
}

.onboarding-step small {
  font-size: 0.75rem;
  color: var(--c-mut);
}

.onboarding-actions {
  text-align: center;
}

.onboarding-cta {
  font-size: 0.9375rem;
  padding: 12px 28px;
}

@media (max-width: 640px) {
  .onboarding-steps {
    flex-direction: column;
  }

  .onboarding-banner {
    margin: 12px 16px;
    padding: 20px;
  }

  .share-fab {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ========== SEARCH INPUT FOCUS RING ========== */
.search-input:focus-visible {
  outline: 2px solid var(--c-pri);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(var(--c-pri-rgb, 59, 130, 246), 0.15);
}

/* ========== BODY TEXT MAX-WIDTH ========== */
.txt-block p,
article p {
  max-width: 75ch;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-color-scheme: dark) {
  .nav {
    background: rgba(18, 18, 20, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .nav-toggle {
    background: rgba(28, 28, 31, 0.96);
    color: var(--c-txt);
  }

  .mobile-nav-drawer {
    background: rgba(28, 28, 31, 0.98);
    box-shadow: -24px 0 48px rgba(0, 0, 0, 0.36);
  }

  .mobile-nav-overlay {
    background: rgba(0, 0, 0, 0.56);
  }

  .footer {
    background: #0f1012;
    color: rgba(244, 244, 245, 0.72);
  }

  .footer a {
    color: rgba(244, 244, 245, 0.74);
  }

  .footer h4,
  .footer-brand .nav-logo {
    color: #fff;
  }

  .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.12);
    color: rgba(244, 244, 245, 0.48);
  }

  .footer-bottom a {
    color: rgba(244, 244, 245, 0.58);
  }

  .search-input:focus-visible {
    outline-color: var(--c-acc, #60a5fa);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
  }

  .q-checkline {
    background: var(--c-srf, #1e1e2e);
    border-color: var(--c-brd, #3f3f46);
  }
}

@media (prefers-color-scheme: dark) {
  .section-boundary-sm > div:has(#search-input),
  #search-card,
  .search-wrap {
    background: var(--c-srf);
    border-color: var(--c-brd);
    box-shadow: var(--sh-sm);
  }

  .search-input,
  #search-input {
    background: var(--c-srf);
    color: var(--c-txt);
    border-color: var(--c-brd);
  }

  .search-input::placeholder,
  #search-input::placeholder {
    color: var(--c-mut);
  }

  .page-stadt {
    --c-pri: #60a5fa;
    --c-pri-h: #93c5fd;
    --c-pri-lt: #172554;
  }

  .page-stadt .hero {
    background: linear-gradient(180deg, #0f172a, #172554);
  }

  .page-bundesland {
    --c-pri: #5eead4;
    --c-pri-h: #99f6e4;
    --c-pri-lt: #10363a;
  }

  .page-bundesland .hero {
    background: linear-gradient(180deg, #0f2d30, #123c40);
  }

  .page-service {
    --c-pri: #fb923c;
    --c-pri-h: #fdba74;
    --c-pri-lt: #3b2414;
  }

  .page-service .hero {
    background: linear-gradient(180deg, #20150f, #341d14);
  }

  .page-service .hero-badge {
    --badge-bg: rgba(251, 146, 60, 0.16);
    --badge-c: #fdba74;
    border: 1px solid rgba(251, 146, 60, 0.24);
  }

  .page-altmeister {
    --c-pri: #f59e0b;
    --c-pri-h: #fbbf24;
    --c-pri-lt: #2a2010;
  }

  .page-altmeister .hero {
    background: linear-gradient(180deg, #1a1508, #2a1f0a);
  }

  .page-jobs {
    --c-pri: #818cf8;
    --c-pri-h: #a5b4fc;
    --c-pri-lt: #1a1a30;
  }

  .page-jobs .hero {
    background: linear-gradient(180deg, #141428, #1a1a40);
  }

  .hero-notdienst {
    background: linear-gradient(180deg, #3f1010, #5a1616);
  }

  .hero-notdienst h1,
  .hero-notdienst .hero-title-urgent {
    color: #fff;
  }

  .hero-notdienst .hero-badge-urgent {
    background: rgba(248, 113, 113, 0.14);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.24);
  }

  .hero-notdienst .hero-trust {
    border-top-color: rgba(248, 113, 113, 0.18);
  }

  .hero-notdienst .hero-trust-item {
    color: rgba(255, 255, 255, 0.76);
  }

  .hero-sanierung {
    background: linear-gradient(180deg, #24160a, #3a2410);
  }

  .hero-sanierung .hero-badge {
    --badge-bg: rgba(251, 191, 36, 0.12);
    --badge-c: #fcd34d;
    border-color: rgba(251, 191, 36, 0.22);
  }

  .hero-sanierung h1 {
    color: #f4f4f5;
  }

  .hero-sanierung h1 span {
    color: #fbbf24;
  }

  .hero-sanierung p {
    color: rgba(255, 255, 255, 0.74);
  }

  .hero-sanierung .btn-p {
    background: #b45309;
    box-shadow: 0 2px 12px rgba(180, 83, 9, 0.3);
  }

  .hero-sanierung .btn-s {
    background: rgba(0, 0, 0, 0.14);
    border-color: rgba(251, 191, 36, 0.28);
    color: #fcd34d;
  }
}

/* ========== PLAN 04 PREP: CSS classes to replace inline styles ========== */
/* Once Plan 04 replaces inline style="" attrs with these classes,
   the forced overrides in dark-mode can be removed. */
.hero-sanierung-bg {
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
}

.hero-badge-sanierung {
  background: var(--c-pri-lt);
  color: var(--c-pri);
}

.footer-grid-5col {
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
}

@media (max-width: 1024px) {
  .footer-grid-5col {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid-5col {
    grid-template-columns: 1fr;
  }
}

.svc-grid-4col {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.reviews-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-cards-grid-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

/* ========== KEY FACTS BOX ========== */
.key-facts-box {
  background: var(--c-srf);
  border-left: 4px solid var(--c-pri);
}

.key-facts-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-mut);
  margin-bottom: 10px;
}

.key-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.key-facts-list li {
  font-size: 0.875rem;
  color: var(--c-txt);
  padding-left: 20px;
  position: relative;
}

.key-facts-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c-pri);
  font-weight: 700;
}

@media (min-width: 640px) {
  .key-facts-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* Wizard mobile responsive fixes (auftrag-einstellen) */
@media (max-width: 640px) {
  .wiz-wrap,
  .wiz-layout,
  .wiz-main {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  .wiz-layout {
    grid-template-columns: 1fr;
  }

  .wiz-progress {
    max-width: 100%;
    overflow: hidden;
  }

  .wiz-panel {
    max-width: 100%;
    box-sizing: border-box;
  }

  .wiz-panel input,
  .wiz-panel select,
  .wiz-panel textarea,
  .q-input,
  .q-textarea {
    width: 100%;
    box-sizing: border-box;
  }

  .wiz-nav {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .wiz-nav .btn-back,
  .wiz-nav .btn-next {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .gw-grid {
    grid-template-columns: 1fr;
  }

  .gw-card {
    max-width: 100%;
    box-sizing: border-box;
  }

  .q-card {
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px;
  }

  .q-options {
    flex-direction: column;
  }

  .q-opt {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
