:root {
  --primary: #3FAE5A;
  --secondary: #000000;
  --accent: #F2B705;
  --tech: #1E4F8A;
  --background: #F5F7F9;
  --surface: #ffffff;
  --border: rgba(94, 100, 107, 0.2);
  --text: #000000;
  --muted: #333333;
  --radius: 24px;
  --shadow: 0 28px 60px rgba(94, 100, 107, 0.12);
  --content-pad: clamp(18px, 5vw, 88px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 22px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 1rem;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(94, 100, 107, 0.08);
  backdrop-filter: blur(12px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px var(--content-pad);
  font-size: 13px;
  color: var(--secondary);
}

.topbar a {
  color: var(--tech);
  font-weight: 700;
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 12px var(--content-pad);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1.05;
}

.brand > span:last-child {
  display: grid;
  gap: 2px;
}

.main-nav {
  justify-self: center;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
}

.lang-switcher {
  display: flex;
  align-items: center;
}

.lang-select {
  width: 54px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(94, 100, 107, 0.16);
  background: var(--background);
  color: var(--secondary);
  padding: 0 8px;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.lang-select:hover,
.lang-select:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: var(--primary);
}

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

.brand-logo {
  width: 58px;
  height: 58px;
  display: block;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  font-size: 27px;
  letter-spacing: 0.04em;
}

.brand-name-lab {
  color: var(--muted);
}

.brand-name-safe {
  color: var(--primary);
}

.brand small {
  display: block;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  font-size: 22px;
  font-weight: 400;
  color: var(--secondary);
}

.main-nav a {
  padding: 14px 0;
  transition: color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-cta {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--secondary);
}

.button {
  border: none;
  border-radius: 999px;
  padding: 0 26px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
}

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

.button-primary {
  background: var(--primary);
  color: var(--background);
  box-shadow: 0 18px 42px rgba(63, 174, 90, 0.22);
}

.button-secondary {
  background: rgba(30, 79, 138, 0.08);
  color: var(--tech);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(245, 247, 249, 0.82) 0%, rgba(245, 247, 249, 0.65) 100%),
    url('assets/images/hero-banner.webp') center 25% / cover no-repeat;
  min-height: 720px;
  padding-inline: var(--content-pad);
}

section:not(.hero):not(.footer) {
  padding-inline: var(--content-pad);
  padding-block: 72px;
}

section:not(.hero):not(.footer) + section:not(.hero):not(.footer) {
  padding-top: 92px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6,
section h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--secondary);
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: none;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 66px);
  line-height: 0.98;
}

.hero p:not(.eyebrow) {
  margin: 28px 0 0;
  max-width: 620px;
  color: var(--secondary);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.hero-image,
.service-visual,
.portal-image {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 19 / 9;
}

.service-visual {
  aspect-ratio: 1 / 1;
}

.hero-image img,
.service-visual img,
.portal-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-visual img {
  object-fit: contain;
  object-position: center;
}

.hero-frame {
  position: relative;
  width: min(100%, 380px);
  display: grid;
  gap: 20px;
  align-items: end;
}

.hero-card {
  width: 100%;
  min-height: 220px;
  border-radius: 32px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow);
}

.hero-card.accent {
  width: 84%;
  min-height: 180px;
  background: linear-gradient(180deg, rgba(63, 174, 90, 0.12), rgba(30, 79, 138, 0.08));
  transform: translateX(18px);
}

.section-heading,
.section-grid {
  display: grid;
  gap: 18px;
}

.section-heading {
  max-width: 100%;
  margin-bottom: 40px;
}

.section-heading p,
.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 66px);
  line-height: 0.98;
}

.section-heading h2,
.section-heading h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.04;
}

.aktionsradius {
  border-top: 1px solid var(--border);
}

.aktionsradius-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(4, 38, 66, 0.14);
  background: linear-gradient(140deg, #f8fafc 0%, #edf2f7 100%);
  box-shadow: var(--shadow);
}

.aktionsradius-map-shell {
  padding: 14px;
  background: radial-gradient(circle at 15% 10%, rgba(42, 123, 193, 0.09), transparent 44%), radial-gradient(circle at 85% 90%, rgba(12, 92, 62, 0.1), transparent 48%);
}

.aktionsradius-live-map {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 44, 77, 0.22);
}

.aktionsradius-live-map::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 350;
  background: linear-gradient(165deg, rgba(13, 70, 103, 0.09) 0%, rgba(13, 70, 103, 0.02) 42%, rgba(13, 70, 103, 0.08) 100%);
}

.aktionsradius-live-map .leaflet-control-zoom {
  border: 1px solid rgba(15, 44, 77, 0.2);
  box-shadow: 0 8px 22px rgba(15, 44, 77, 0.16);
}

.aktionsradius-live-map .leaflet-control-zoom a {
  color: #0f2c4d;
}

.aktionsradius-live-map .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.82);
  color: rgba(15, 44, 77, 0.78);
  font-size: 0.68rem;
  border-radius: 6px 0 0 0;
}

.aktionsradius-live-map .leaflet-control-attribution a {
  color: rgba(15, 44, 77, 0.82);
}

.aktionsradius-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  border: 1px solid rgba(15, 44, 77, 0.18);
  box-shadow: 0 10px 26px rgba(15, 44, 77, 0.18);
}

.aktionsradius-popup .leaflet-popup-content {
  margin: 12px 14px;
}

.aktionsradius-popup-title {
  margin: 0;
  color: #0f2c4d;
  font-size: 1rem;
  font-weight: 700;
}

.aktionsradius-legend {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
}

.aktionsradius-legend-title {
  margin: 0 0 8px;
  color: var(--secondary);
  font-weight: 700;
}

.aktionsradius-legend ul {
  margin: 0;
  padding-left: 20px;
}

.aktionsradius-legend li {
  color: var(--secondary);
  margin-bottom: 6px;
}

.aktionsradius-seo {
  margin-top: 26px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.aktionsradius-seo h3 {
  margin: 0 0 10px;
  color: var(--secondary);
}

.aktionsradius-seo p {
  margin: 0 0 12px;
  color: var(--secondary);
}

.aktionsradius-seo ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.aktionsradius-seo li {
  margin-bottom: 8px;
  color: var(--secondary);
}

.intro {
  border-top: 1px solid var(--border);
}

.section-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.intro-copy p {
  margin: 0 0 18px;
  max-width: 100%;
  color: var(--secondary);
}

.intro-copy h3 {
  margin: 28px 0 8px;
}

.intro-copy ul {
  margin: 10px 0 18px;
  padding-left: 20px;
  color: var(--secondary);
}

.intro-copy li {
  margin-bottom: 8px;
}

.intro-lead {
  margin-bottom: 52px;
}

.intro-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-bottom: 52px;
}

.intro-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
  pointer-events: none;
}

.intro-timeline-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: 2px;
  height: 180px;
  background: linear-gradient(to bottom, transparent, rgba(63, 174, 90, 0.85), transparent);
  box-shadow: 0 0 22px 10px rgba(63, 174, 90, 0.4);
  pointer-events: none;
  will-change: transform;
}

.intro-item {
  width: 44%;
}

.intro-item--left {
  align-self: flex-start;
}

.intro-item--right {
  align-self: flex-end;
}

.intro-vorteil {
  margin-top: 16px;
  text-align: center;
}

.intro-vorteil h3 {
  color: var(--secondary);
  transition: color 0.5s ease;
}

.intro-vorteil h3.is-active {
  color: var(--primary);
}

.intro-vorteil p {
  margin: 8px auto 0;
  color: var(--secondary);
}

.service-grid,
.timeline,
.portal-layout,
.footer-grid,
.contact-detail-list {
  display: grid;
  gap: 24px;
}

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

/* Service Carousel Styles */
.services {
  min-height: calc(100vh - clamp(74px, 8vh, 104px));
  display: flex;
  flex-direction: column;
  padding-top: 20px !important;
  padding-bottom: 14px !important;
}

.services .section-heading {
  margin-bottom: 14px;
}

.services-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.service-ribbon {
  display: grid;
  row-gap: 6px;
  justify-items: center;
  padding: 4px 2px 6px;
}

.service-ribbon-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.service-ribbon::-webkit-scrollbar {
  display: none;
}

.service-ribbon-item {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  padding: 0;
  transition: color 160ms ease;
}

.service-ribbon-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  margin: 0 2px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.service-ribbon-item:hover,
.service-ribbon-item:focus-visible {
  color: var(--secondary);
  outline: none;
}

.service-ribbon-item.active {
  color: var(--primary);
  font-weight: 700;
}

.services-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 18px;
  align-items: stretch;
  min-height: 0;
}

.service-nav-arrow {
  position: absolute;
  top: calc(100% - 75px);
  transform: translateY(-100%);
  z-index: 3;
  width: 184px;
  height: 184px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 12.4rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: color 160ms ease, transform 160ms ease;
}

.service-nav-arrow--prev {
  left: -96px;
}

.service-nav-arrow--next {
  right: -96px;
}

.service-nav-arrow:hover,
.service-nav-arrow:focus-visible {
  color: var(--muted);
  transform: translateY(-100%) scale(1.04);
  outline: none;
}

.services-layout > * {
  min-width: 0;
  min-height: 0;
}

.service-carousel-wrapper,
.service-context {
  height: 100%;
  min-height: 0;
}

.service-carousel {
  position: relative;
  height: 100%;
}

.service-card {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: auto;
  height: 100%;
}

.service-card.is-active {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-visual {
  order: 2;
  flex: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: transparent;
  border-radius: 12px;
  min-height: 0;
  margin: 0;
}

.service-visual img {
  object-fit: contain;
  object-position: center;
  transform: scale(0.98);
  transform-origin: center;
}

.service-card h3 {
  order: 1;
  flex: 0 0 auto;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.service-card ul {
  display: none;
}

.service-context {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
  overflow-y: auto;
}

.service-context > .service-context-group {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 9px;
  font-size: 0.56rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid currentColor;
}

.service-context > .service-context-group--betriebsmittel {
  color: #007f5f;
  background: rgba(0, 127, 95, 0.14);
}

.service-context > .service-context-group--anlagen {
  color: #a33a00;
  background: rgba(163, 58, 0, 0.14);
}

.service-context > .service-context-group--maschinen {
  color: #2d4ea2;
  background: rgba(45, 78, 162, 0.14);
}

.service-context > .service-context-group--ladeinfrastruktur {
  color: #7a8a00;
  background: rgba(122, 138, 0, 0.16);
}

.service-context > .service-context-group--photovoltaik {
  color: #8a0060;
  background: rgba(138, 0, 96, 0.14);
}

.service-context h3 {
  margin: 10px 0 8px;
  font-size: 0.9rem;
  color: var(--secondary);
}

.service-context-highlights {
  margin: 0 0 14px;
  padding-left: 18px;
}

.service-context-highlights-label {
  margin: 0 0 4px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--secondary);
  font-weight: 600;
}

.service-context-highlights-text {
  margin: 0 0 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--secondary);
}

.service-context p {
  margin: 0 0 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--secondary);
}

.service-context ul {
  margin: 0;
  padding-left: 18px;
}

.service-context li {
  margin-bottom: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--secondary);
}

/* Carousel Dots Navigation */
.service-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 28px;
  padding: 0;
}

.carousel-dot {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease;
  padding: 0;
  font: inherit;
}

.carousel-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(63, 174, 90, 0.35);
  opacity: 0;
  pointer-events: none;
}

.carousel-dot:hover {
  background: rgba(63, 174, 90, 0.25);
}

.carousel-dot:hover::after {
  animation: dotPulse 0.95s ease-out infinite;
}

@keyframes dotPulse {
  0% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
  }
}

.carousel-dot.active {
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(63, 174, 90, 0.2);
}

.service-number {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(63, 174, 90, 0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.process .timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.timeline span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  color: var(--background);
  background: var(--primary);
  font-weight: 800;
}

.timeline h4 {
  margin: 18px 0 0;
  font-size: 1rem;
}

.timeline p {
  margin: 12px 0 0;
  color: var(--secondary);
  font-weight: 500;
}

/* Prüfumfang section */
.pruefumfang-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  align-items: stretch;
}

.pruef-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.pruef-card h3 {
  margin: 10px 0 20px;
}

.pruef-card ul {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--secondary);
}

.pruef-card ul.standard-list {
  list-style: none;
  padding-left: 0;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.pruef-card li {
  margin-bottom: 8px;
}

.pruef-card ul.standard-list li {
  padding: 6px 0;
  margin-bottom: 0;
}

.pruef-note,
.extras-usecase {
  margin: auto 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  line-height: 1.5;
}

.extras-list {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.extra-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px 16px 52px;
}

.extra-item::before {
  content: "+";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
}

.extra-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.extra-item p {
  margin: 0;
  color: var(--secondary);
  font-size: 0.85rem;
  line-height: 1.45;
}


.portal-layout {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.portal-copy p {
  color: var(--secondary);
}

.portal-copy ul {
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--secondary);
}

.portal-copy li {
  margin-bottom: 12px;
}

.portal-visual {
  display: grid;
  place-items: center;
}

.screen-card {
  width: min(100%, 380px);
  min-height: 320px;
  border-radius: 32px;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, var(--background) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.screen-header,
.screen-row,
.screen-chart,
.screen-footer {
  border-radius: 16px;
  background: rgba(94, 100, 107, 0.08);
}

.screen-header {
  width: 60%;
  height: 18px;
  margin-bottom: 20px;
}

.screen-row {
  width: 100%;
  height: 14px;
  margin-bottom: 14px;
}

.screen-row.short {
  width: 65%;
}

.screen-chart {
  width: 100%;
  height: 126px;
  margin: 18px 0;
}

.screen-footer {
  width: 100%;
  height: 18px;
}

.contact {
  padding-bottom: 120px;
}

.contact-copy {
  max-width: 560px;
}

.contact-detail-list {
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 16px;
  margin-top: 24px;
}

.contact-detail-list a {
  color: var(--tech);
  font-weight: 700;
}

.contact-form {
  --form-pad: 28px;
  display: grid;
  gap: 18px;
  margin-top: 32px;
  margin-inline: calc(var(--form-pad) * -1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: var(--form-pad);
}

.contact-form label {
  display: grid;
  gap: 10px;
  font-weight: 700;
  color: var(--secondary);
}

.contact-form label > span {
  padding-left: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: var(--background);
  color: var(--secondary);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(63, 174, 90, 0.15);
}

.contact-consent {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.contact-consent-label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  cursor: pointer;
}

.contact-consent-label > span {
  padding-left: 0;
}

.contact-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.contact-consent-copy {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--secondary);
}

.contact-consent-copy strong {
  color: var(--primary);
}

.contact-consent-copy a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.contact-consent-copy a:focus-visible {
  outline: 2px solid rgba(63, 174, 90, 0.45);
  outline-offset: 2px;
  border-radius: 3px;
}

.contact-consent-error {
  margin: 10px 0 0 32px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: #d93e3e;
}

.contact-consent.is-invalid {
  border-color: rgba(217, 62, 62, 0.55);
  box-shadow: 0 0 0 4px rgba(217, 62, 62, 0.12);
}

.captcha-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 520px);
}

.captcha-dialog::backdrop {
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(4px);
}

.captcha-dialog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
  padding: 28px;
}

.captcha-dialog-card h3 {
  margin: 8px 0 10px;
}

.captcha-dialog-text {
  margin: 0 0 18px;
  color: var(--muted);
}

.captcha-field {
  display: grid;
  gap: 12px;
  font-weight: 700;
  color: var(--secondary);
}

.captcha-question {
  font-size: 1rem;
}

.captcha-answer {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: var(--background);
  color: var(--secondary);
  outline: none;
}

.captcha-answer:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(63, 174, 90, 0.15);
}

.captcha-answer.is-invalid {
  border-color: rgba(217, 62, 62, 0.55);
  box-shadow: 0 0 0 4px rgba(217, 62, 62, 0.12);
}

.captcha-error {
  margin: 12px 0 0;
  color: #d93e3e;
  font-size: 0.78rem;
}

.captcha-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 40px var(--content-pad);
  background: var(--background);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-bottom: 24px;
}

.footer-grid p,
.footer-grid a {
  color: var(--secondary);
}

.footer-grid h3 {
  margin: 0 0 20px;
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 18px;
}

.footer-grid h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 62px;
  height: 5px;
  border-radius: 3px;
  background: var(--primary);
}

.footer-grid a {
  display: block;
  margin-bottom: 7px;
  font-size: 0.9rem;
  line-height: 1.2;
}

.scroll-top-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(63, 174, 90, 0.35);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, color 180ms ease;
  z-index: 90;
}

.scroll-top-button.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
  background: var(--primary);
  color: var(--background);
  outline: none;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .aktionsradius-figure {
    border-radius: 18px;
  }

  .aktionsradius-map-shell {
    padding: 10px;
  }

  .aktionsradius-live-map {
    height: 340px;
  }

  .aktionsradius-legend {
    padding: 16px 18px;
  }

  .aktionsradius-seo {
    padding: 20px;
  }
}

@media (max-width: 1040px) {
  body.menu-open {
    overflow: hidden;
  }

  .nav-shell {
    position: relative;
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(94, 100, 107, 0.2);
  }

  .nav-cta {
    display: none;
  }

  .nav-end {
    gap: 12px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  .main-nav.is-open a {
    padding: 14px 18px;
    border-top: 1px solid rgba(94, 100, 107, 0.12);
  }

  .main-nav.is-open a:first-child {
    border-top: 0;
  }
}

/* ── Mehrwert ──────────────────────────────────────────── */
.mehrwert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.mehrwert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.mehrwert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(63, 174, 90, 0.12);
  color: var(--primary);
  margin-bottom: 20px;
}

.mehrwert-card h3 {
  margin: 0 0 10px;
}

.mehrwert-card p {
  margin: 0;
  color: var(--secondary);
}

/* ── Fallbeispiel ──────────────────────────────────────── */
.fallbeispiel-text {
  margin-bottom: 40px;
}

.fallbeispiel-text p {
  color: var(--secondary);
  margin: 0 0 14px;
}

.fallbeispiel-chart-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.fallbeispiel-annotations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.fb-annotation {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: var(--shadow);
  border-left-width: 4px;
  border-left-style: solid;
}

.fb-annotation--early {
  border-left-color: var(--primary);
}

.fb-annotation--late {
  border-left-color: #D93E3E;
}

.fb-annotation-year {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.fb-annotation--early .fb-annotation-year { color: var(--primary); }
.fb-annotation--late  .fb-annotation-year { color: #D93E3E; }

.fb-annotation-label {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 1rem;
}

.fb-annotation-sub {
  margin: 0;
  color: var(--secondary);
  font-size: 0.82rem;
  line-height: 1.6;
}

.fallbeispiel-fazit {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 48px;
  box-shadow: var(--shadow);
}

.fallbeispiel-fazit p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.fallbeispiel-fazit em {
  font-style: normal;
  color: var(--primary);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.faq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.faq-card h3 {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 1rem;
}

.faq-card p {
  margin: 0;
  color: var(--secondary);
}

@media (max-width: 860px) {
  html {
    font-size: 19px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand strong {
    font-size: 21px;
    letter-spacing: 0.02em;
  }

  .brand small {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .lang-select {
    width: 48px;
    height: 42px;
    border-radius: 12px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 18px;
    background-position: center 18%;
  }

  .hero-copy {
    padding: 84px 0 36px;
  }

  .hero p:not(.eyebrow) {
    margin-top: 20px;
  }

  .section-grid,
  .services-layout,
  .portal-layout,
  .pruefumfang-layout,
  .mehrwert-grid,
  .faq-grid,
  .footer-grid,
  .service-grid,
  .process .timeline {
    grid-template-columns: 1fr;
  }

  .intro-item {
    width: 100%;
  }

  .intro-timeline-line {
    display: none;
  }

  .hero {
    padding-bottom: 32px;
  }

  .services {
    min-height: auto;
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  .services-stage {
    display: block;
  }

  .service-ribbon {
    row-gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 2px;
  }

  .service-ribbon-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .service-carousel-wrapper {
    padding: 0;
    height: auto;
  }

  .service-carousel {
    min-height: auto;
    height: auto;
  }

  .service-card {
    padding: 22px;
    border-radius: 22px;
  }

  .service-context {
    padding: 22px;
    border-radius: 20px;
    height: auto;
    overflow: visible;
  }

  .service-carousel-dots {
    margin-top: 12px;
  }

  .service-nav-arrow {
    display: none;
  }

  .pruef-card,
  .mehrwert-card,
  .faq-card,
  .timeline article {
    padding: 22px;
    border-radius: 20px;
  }

  .contact {
    padding-bottom: 84px;
  }

  .contact-detail-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-form {
    --form-pad: 22px;
  }
}

@media (max-width: 680px) {
  html {
    font-size: 17px;
  }

  .hero-copy {
    padding-top: 72px;
  }

  .hero h1 {
    font-size: clamp(30px, 8.5vw, 38px);
    line-height: 1.02;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-card.accent {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  section {
    padding-block: 52px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .button {
    min-height: 48px;
    padding: 0 22px;
  }
}

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

  .nav-end {
    gap: 8px;
  }

  .faq-card h3 {
    font-size: 0.95rem;
  }
}
