:root {
  --red: #e30613;
  --red-dark: #b9040e;
  --ink: #111318;
  --text: #22262b;
  --muted: #626a73;
  --soft: #f4f5f6;
  --soft-2: #eceff1;
  --line: rgba(17, 19, 24, 0.12);
  --card: #fff;
  --footer: #171a1f;
  --shadow: 0 18px 46px rgba(17, 19, 24, 0.1);
  --shadow-soft: 0 10px 28px rgba(17, 19, 24, 0.08);
  --container: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: var(--font);
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

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

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

.icon {
  width: var(--icon-size, 24px);
  height: var(--icon-size, 24px);
  flex: 0 0 auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke, 1.8);
  stroke-linecap: round;
  stroke-linejoin: round;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(227, 6, 19, 0.35);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 44px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 500;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 300px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.main-nav a {
  position: relative;
  padding-block: 8px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 999px;
  background: var(--red);
  transition: transform 0.18s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 900;
  font-size: 0.92rem;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn .icon {
  --icon-stroke: 2;
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 10px rgba(227, 6, 19, 0.12);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(17, 19, 24, 0.35);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--red);
  transform: translateY(-1px);
}

.btn-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.82rem;
}

.btn[data-appointment].is-pulsing {
  animation: pulseButton 0.36s ease;
}

@keyframes pulseButton {
  50% {
    transform: translateY(-1px) scale(1.025);
  }
}

.hero {
  position: relative;
  overflow: hidden;
  background: #f6f7f8;
}

.hero-home {
  min-height: 560px;
  background-image:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.99) 23%, rgba(255, 255, 255, 0.85) 38%, rgba(255, 255, 255, 0.28) 56%, rgba(255, 255, 255, 0) 73%),
    url("../assets/hero.png");
  background-position: center, right center;
  background-size: cover, cover;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(560px, 49%);
  padding: 58px 0 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 610px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 span,
.accent {
  color: var(--red);
}

.hero-text {
  max-width: 500px;
  margin-bottom: 28px;
  color: var(--text);
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.trust-row .icon {
  --icon-size: 18px;
  --icon-stroke: 1.9;
  stroke: var(--muted);
}

.section {
  padding: 72px 0;
}

.hero-home + .section {
  padding-top: 30px;
}

.section-tight {
  padding: 52px 0;
}

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

.section-head {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h2::after,
.section-title-line::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: var(--red);
}

.section-head.left h2::after,
.section-title-line::after {
  margin-left: 0;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.service-card {
  position: relative;
  min-height: 248px;
  padding: 28px 24px 58px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 6px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: var(--red);
}

.line-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--ink);
}

.line-icon .icon {
  --icon-size: 43px;
  --icon-stroke: 1.65;
}

.service-card h3 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 1.02rem;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.48;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card .text-link {
  position: absolute;
  left: 24px;
  bottom: 24px;
}

.text-link .icon {
  --icon-size: 16px;
  --icon-stroke: 2.1;
  stroke: var(--red);
}

.benefits-band {
  padding: 32px 0;
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 82px;
}

.benefit .line-icon {
  margin: 0;
}

.benefit .line-icon .icon {
  --icon-size: 45px;
  --icon-stroke: 1.6;
}

.benefit span,
.benefit small {
  display: block;
  color: var(--muted);
  line-height: 1.2;
}

.benefit strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.12;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.38fr;
  align-items: center;
  gap: 48px;
}

.about-copy p {
  max-width: 455px;
  color: var(--muted);
  font-size: 0.95rem;
}

.media-panel {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 6px;
  background: #15181d;
  box-shadow: var(--shadow-soft);
}

.media-panel img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.media-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 12, 16, 0.9) 0%, rgba(10, 12, 16, 0.72) 33%, rgba(10, 12, 16, 0.08) 68%);
}

.metrics {
  position: absolute;
  inset: 28px auto 28px 28px;
  z-index: 1;
  width: 220px;
  display: grid;
  gap: 14px;
  color: #fff;
}

.metric {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
}

.metric .icon {
  --icon-size: 31px;
  --icon-stroke: 1.75;
  stroke: #fff;
}

.metric strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}

.metric small {
  display: block;
  color: #dfe3e7;
  line-height: 1.25;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

.process-card {
  position: relative;
  min-height: 128px;
  padding: 24px 20px 22px 70px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.process-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -25px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 2px solid #8b929a;
  border-right: 2px solid #8b929a;
  transform: translateY(-50%) rotate(45deg);
}

.step-number {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.process-icon {
  position: absolute;
  left: 22px;
  bottom: 20px;
  width: 30px;
  height: 30px;
  --icon-stroke: 1.8;
  color: var(--ink);
}

.process-card h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.98rem;
}

.process-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
}


/* Kontakt/Footer Farbtausch */
.contact-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    var(--footer);
  color: #fff;
}

.contact-section .section-title-line,
.contact-section h1,
.contact-section h2,
.contact-section h3,
.contact-section .contact-list li,
.contact-section .contact-list a {
  color: #fff;
}

.contact-section .contact-copy p,
.contact-section .contact-list span:not(:first-child) {
  color: #d7dde4;
}

.contact-section .contact-list .icon {
  stroke: var(--red);
}

.contact-section .content-block,
.contact-section .contact-form {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.contact-section .contact-form label {
  color: #fff;
}

.contact-section .contact-form input,
.contact-section .contact-form textarea {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.contact-section .form-note {
  color: #cbd1d7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  align-items: stretch;
  gap: 42px;
}

.contact-copy p {
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 26px;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink);
  font-weight: 800;
}

.contact-list .icon {
  --icon-size: 20px;
  --icon-stroke: 2;
  stroke: var(--red);
}

.map-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft-2);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: none;
}

.map-info {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  width: min(340px, calc(100% - 48px));
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.map-info strong {
  color: var(--ink);
  line-height: 1.2;
}

.map-info span {
  color: var(--muted);
  font-size: 0.9rem;
}

.map-info a {
  margin-top: 4px;
}

.page-hero {
  padding: 78px 0 68px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 46%, rgba(255, 255, 255, 0.5) 100%),
    url("../assets/hero.png") right center / cover;
  border-bottom: 1px solid var(--line);
}

.page-hero .hero-copy {
  width: min(710px, 100%);
  padding: 0;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 4vw, 4rem);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.content-block {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.content-block h3 {
  color: var(--ink);
}

.content-block p,
.content-block li {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
}

.check-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 2px solid var(--red);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 48%, var(--red) 49% 57%, transparent 58%) 5px 8px / 8px 8px no-repeat;
}

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

.news-card {
  padding: 26px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.news-card time {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card h2 {
  font-size: 1.12rem;
  line-height: 1.25;
}

.news-card h2::after {
  display: none;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 13px;
  color: var(--text);
  background: #fff;
}

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

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer {
  padding: 48px 0 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    var(--footer);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 0.65fr 0.65fr 1.18fr;
  gap: 34px;
  align-items: start;
}

.footer-logo {
  width: 260px;
  filter: none;
}

.site-footer h3 {
  margin-bottom: 14px;
  font-size: 0.94rem;
}

.site-footer p,
.site-footer a:not(.btn) {
  color: #cbd1d7;
  font-size: 0.86rem;
}

.site-footer a:not(.btn) {
  display: block;
  margin-bottom: 8px;
}

.footer-cta {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.copyright {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #9ca4ad;
  font-size: 0.78rem;
  text-align: center;
}


/* Footer nach Farbtausch hell */
.site-footer {
  background: #fff;
  color: var(--text);
  border-top: 1px solid var(--line);
}

.site-footer h3 {
  color: var(--ink);
}

.site-footer p,
.site-footer a:not(.btn) {
  color: var(--muted);
}

.site-footer a:not(.btn):hover {
  color: var(--red);
}

.footer-cta {
  border-color: var(--line);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.copyright {
  border-top-color: var(--line);
  color: var(--muted);
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(72px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.reveal {
  opacity: 1;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

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

@media (max-width: 1120px) {
  .brand img {
    width: 240px;
  }

  .main-nav {
    gap: 16px;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-home {
    min-height: 0;
    background-image:
      linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.92) 44%, rgba(255, 255, 255, 0.08) 100%),
      url("../assets/hero.png");
    background-position: center, center;
  }

  .hero-inner {
    min-height: 650px;
    align-items: flex-start;
  }

  .hero-copy {
    width: min(700px, 100%);
    padding-top: 58px;
  }

  .card-grid,
  .benefits-grid,
  .process-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-card:not(:last-child)::after {
    display: none;
  }

  .about-grid,
  .contact-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .header-inner {
    min-height: 78px;
  }

  .brand img {
    width: 210px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    position: fixed;
    left: 22px;
    right: 22px;
    top: 88px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px;
  }

  .main-nav a::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 56px 0;
  }

  .hero-inner {
    min-height: 620px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .hero-cta .btn {
    width: 100%;
  }

  .trust-row span {
    white-space: normal;
  }

  .card-grid,
  .benefits-grid,
  .process-grid,
  .news-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .benefit {
    min-height: 70px;
  }

  .media-panel,
  .media-panel img {
    min-height: 360px;
  }

  .metrics {
    inset: 22px 22px auto;
    width: auto;
  }

  .map-card,
  .map-card iframe {
    min-height: 430px;
  }

  .map-info {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }
}

/* Eingebaute Einzel-SVG-Icons */
.icon-img {
  width: var(--icon-size, 24px);
  height: var(--icon-size, 24px);
  display: inline-block;
  object-fit: contain;
  flex: 0 0 auto;
}
.btn .icon-img {
  --icon-size: 18px;
  filter: brightness(0) invert(1);
}
.btn-outline .icon-img {
  filter: none;
}
.trust-row .icon-img {
  --icon-size: 18px;
}
.line-icon .icon-img {
  --icon-size: 48px;
}
.metric .icon-img {
  --icon-size: 31px;
  filter: brightness(0) invert(1);
}
.process-icon-img {
  --icon-size: 31px;
  position: absolute;
  left: 24px;
  bottom: 24px;
}
.contact-list .icon-img {
  --icon-size: 20px;
}
.section-title-line.with-section-icon {
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* Fix: metrics icons inside media panels must not inherit full image sizing */
.media-panel .metrics .metric .icon-img,
.media-panel .metrics .metric .icon {
  width: 31px;
  height: 31px;
  min-width: 31px;
  min-height: 31px;
  max-width: 31px;
  max-height: 31px;
  object-fit: contain;
  display: block;
  flex: 0 0 31px;
}

.media-panel .metrics .metric .icon-img {
  filter: brightness(0) invert(1);
}

.media-panel .metrics .metric {
  grid-template-columns: 44px minmax(0, 1fr);
}

.media-panel .metrics .metric span {
  min-width: 0;
}

/* Polish pass: clean service bullets and stronger mobile layout */
.check-list {
  gap: 12px;
  margin-top: 20px;
}

.check-list li {
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: var(--text);
  line-height: 1.48;
}

.check-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(227, 6, 19, 0.09);
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(227, 6, 19, 0.18);
}

.content-block {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.content-block:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 6, 19, 0.18);
  box-shadow: 0 20px 44px rgba(17, 19, 24, 0.1);
}

.section-title-line.with-section-icon {
  flex-wrap: wrap;
  column-gap: 14px;
  row-gap: 8px;
  line-height: 1.12;
}

.section-title-line.with-section-icon::after {
  align-self: center;
  margin: 0 0 0 2px;
}

.section-icon {
  width: 42px;
  height: 42px;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero .hero-copy {
  position: relative;
  z-index: 1;
}

/* Mobile quality pass */
@media (max-width: 1120px) {
  .header-inner {
    gap: 18px;
  }

  .section {
    padding: 64px 0;
  }

  .page-hero {
    padding: 66px 0 58px;
  }

  .content-block {
    padding: 28px;
  }

  .footer-grid {
    gap: 28px;
  }
}

@media (max-width: 860px) {
  .site-header {
    backdrop-filter: blur(18px);
  }

  .header-inner {
    min-height: 76px;
  }

  .brand img {
    width: 190px;
  }

  .main-nav {
    top: 84px;
    max-height: calc(100vh - 108px);
    overflow: auto;
  }

  .main-nav a {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(17, 19, 24, 0.06);
    font-size: 1rem;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a::before {
    content: "";
    width: 3px;
    border-radius: 999px;
    background: transparent;
  }

  .main-nav a.is-active::before,
  .main-nav a:hover::before {
    background: var(--red);
  }

  .page-hero {
    background-position: center, 66% center;
  }

  .split-grid {
    gap: 22px;
  }

  .content-block {
    border-radius: 10px;
  }

  .map-info {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand img {
    width: 168px;
  }

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

  .page-hero {
    padding: 52px 0 48px;
    background-image:
      linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 62%, rgba(255,255,255,0.78) 100%),
      url("../assets/hero.png");
    background-position: center, center;
  }

  h1,
  .page-hero h1 {
    font-size: clamp(2.05rem, 10.8vw, 3.15rem);
    line-height: 1.06;
    letter-spacing: -0.015em;
  }

  h2 {
    font-size: clamp(1.55rem, 8.2vw, 2rem);
  }

  .hero-text,
  .section-head p,
  .content-block p,
  .content-block li,
  .about-copy p,
  .contact-copy p {
    font-size: 0.97rem;
  }

  .hero-cta {
    gap: 12px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
  }

  .content-block {
    padding: 22px;
    box-shadow: 0 10px 24px rgba(17, 19, 24, 0.07);
  }

  .content-block:hover {
    transform: none;
  }

  .section-title-line.with-section-icon {
    align-items: flex-start;
    gap: 10px;
  }

  .section-title-line.with-section-icon::after {
    flex-basis: 28px;
    margin-left: 52px;
  }

  .section-icon {
    width: 34px;
    height: 34px;
    margin-top: 2px;
  }

  .check-list {
    gap: 10px;
  }

  .check-list li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
  }

  .check-list li::before {
    width: 20px;
    height: 20px;
    font-size: 0.78rem;
  }

  .benefit,
  .metric {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .media-panel,
  .media-panel img {
    min-height: 390px;
  }

  .media-panel::before {
    background: linear-gradient(180deg, rgba(10, 12, 16, 0.92) 0%, rgba(10, 12, 16, 0.62) 42%, rgba(10, 12, 16, 0.1) 100%);
  }

  .metrics {
    inset: 20px 20px auto;
    width: auto;
    max-width: 280px;
  }

  .process-card {
    min-height: auto;
    padding: 22px 20px 22px 68px;
  }

  .process-icon-img {
    left: 22px;
    bottom: 22px;
  }

  .contact-section {
    padding-top: 56px;
  }

  .contact-list li {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .map-card,
  .map-card iframe {
    min-height: 440px;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-logo {
    width: min(260px, 100%);
  }

  .footer-cta {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .brand img {
    width: 150px;
  }

  .container {
    width: min(100% - 26px, var(--container));
  }

  .content-block {
    padding: 20px;
  }

  .section-title-line.with-section-icon {
    font-size: clamp(1.45rem, 8.5vw, 1.8rem);
  }
}

/* Mobile index polish: compact horizontal cards, balanced media metrics, symmetric burger menu */
@media (max-width: 640px) {
  /* Homepage service cards: icon + title on one line, body underneath */
  .card-grid .service-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 12px;
    align-items: center;
    min-height: auto;
    padding: 24px 22px 62px;
  }

  .card-grid .service-card .line-icon {
    grid-column: 1;
    grid-row: 1;
    width: 48px;
    height: 48px;
    margin: 0;
    align-self: center;
    justify-self: start;
  }

  .card-grid .service-card .line-icon .icon-img,
  .card-grid .service-card .line-icon .icon {
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
  }

  .card-grid .service-card h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: clamp(1.32rem, 7.6vw, 1.72rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
  }

  .card-grid .service-card p {
    grid-column: 1 / -1;
    margin-top: 2px;
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .card-grid .service-card .text-link {
    left: 22px;
    bottom: 22px;
    font-size: 0.92rem;
  }

  /* Über-uns image metrics: distribute over full image height on mobile */
  .about-grid .media-panel {
    min-height: 470px;
  }

  .about-grid .media-panel img {
    min-height: 470px;
    object-position: center;
  }

  .about-grid .media-panel::before {
    background: linear-gradient(90deg, rgba(10, 12, 16, 0.92) 0%, rgba(10, 12, 16, 0.72) 42%, rgba(10, 12, 16, 0.18) 78%, rgba(10, 12, 16, 0.06) 100%);
  }

  .about-grid .metrics {
    inset: 28px auto 28px 24px;
    width: min(230px, calc(100% - 48px));
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
  }

  .about-grid .metric {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .about-grid .metric strong {
    font-size: 1.35rem;
  }

  /* Burger button: optical centering and equal line lengths */
  .nav-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 9px;
  }

  .nav-toggle span {
    position: absolute;
    left: 50%;
    width: 19px;
    height: 2px;
    margin: 0;
    transform: translateX(-50%);
  }

  .nav-toggle span:nth-child(1) { top: 14px; }
  .nav-toggle span:nth-child(2) { top: 21px; }
  .nav-toggle span:nth-child(3) { top: 28px; }
}

/* Mobile open navigation: larger text and real icons */
@media (max-width: 860px) {
  .main-nav {
    padding: 10px;
    border-radius: 14px;
  }

  .main-nav a {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    justify-content: start;
    gap: 13px;
    padding: 17px 16px;
    font-size: 1.55rem;
    line-height: 1.12;
    letter-spacing: -0.025em;
  }

  .main-nav a::before {
    content: "";
    width: 26px;
    height: 26px;
    border-radius: 0;
    background-color: transparent !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: none;
  }

  .main-nav a[href*="leistungen"]::before { background-image: url("../assets/icons/car-check.svg"); }
  .main-nav a[href*="ueber-uns"]::before { background-image: url("../assets/icons/security.svg"); }
  .main-nav a[href*="kompetenz"]::before { background-image: url("../assets/icons/precision.svg"); }
  .main-nav a[href*="ablauf"]::before { background-image: url("../assets/icons/anfrage.svg"); }
  .main-nav a[href*="aktuelles"]::before { background-image: url("../assets/icons/gutachten.svg"); }
  .main-nav a[href*="kontakt"]::before { background-image: url("../assets/icons/calendar.svg"); }

  .main-nav a::after {
    display: none;
  }
}

@media (max-width: 420px) {
  .main-nav a {
    font-size: 1.35rem;
    padding: 15px 14px;
  }

  .main-nav a::before {
    width: 24px;
    height: 24px;
  }
}


/* Feinschliff: Back-to-top und mobiles Burgermenü */
.scroll-top {
  font-size: 0;
  box-shadow: 0 8px 18px rgba(227, 6, 19, 0.18);
}

.scroll-top::before {
  content: "↑";
  display: block;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  transform: translateY(-1px);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.scroll-top:hover::before {
  transform: translateY(-3px);
}

@media (max-width: 860px) {
  .main-nav {
    border-color: rgba(15, 18, 22, 0.16);
  }

  .main-nav a {
    border-bottom: 1px solid rgba(15, 18, 22, 0.14);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a:hover,
  .main-nav a.is-active {
    background: rgba(227, 6, 19, 0.045);
  }
}

html[data-theme="dark"] .main-nav a {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}
