/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 72px;
}
body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Design Tokens ─── */
:root {
  --primary: #9b1c1c;
  --primary-dark: #7f1d1d;
  --primary-light: #fee2e2;
  --primary-xlight: #fff5f5;
  --text: #111827;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-muted: #f0f0f0;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --max-w: 1300px;
  --px: 1.25rem;
}

/* ─── Utilities ─── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

/* ─── Header ─── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  transition: box-shadow 0.2s;
}
#site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.55rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.1s;
}
.header-cta:hover {
  background: var(--primary-xlight);
  transform: scale(1.05);
}
.header-cta svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
  flex-shrink: 0;
}

/* ─── Main Nav ─── */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}
.main-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    z-index: 99;
  }
  #site-header.nav-open .main-nav {
    display: block;
  }
  #site-header {
    position: sticky;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav a {
    padding: 0.875rem var(--px);
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    color: var(--text);
  }
  .main-nav li:last-child a {
    border-bottom: none;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    order: 3;
    flex-shrink: 0;
  }
  .header-cta {
    order: 2;
  }
  .burger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition:
      transform 0.2s,
      opacity 0.2s;
  }
  #site-header.nav-open .burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  #site-header.nav-open .burger-bar:nth-child(2) {
    opacity: 0;
  }
  #site-header.nav-open .burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ─── Hero ─── */
#hero {
  background: linear-gradient(160deg, var(--primary-xlight) 0%, #fff 65%);
  padding-block: 3.5rem 3rem;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}
#hero h1 {
  font-size: clamp(1.75rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
#hero h1 em {
  color: var(--primary);
  font-style: normal;
}
.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  margin-inline: auto;
  margin-bottom: 2rem;
}
.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(155, 28, 28, 0.35);
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
  position: relative;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(155, 28, 28, 0.4);
}
.btn-primary svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
.btn-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50px;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: ring-pulse 2s ease-in-out infinite;
}
@keyframes ring-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  80%,
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}
.hero-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.hero-note strong {
  color: var(--text);
}
.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}
.hero-stat .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── USP Bar ─── */
#usp {
  background: var(--bg-muted);
  color: var(--text);
  padding-block: 1.1rem;
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  list-style: none;
  text-align: center;
}
.usp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.25rem;
}
.usp-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-right: 0.5rem;
}
.usp-label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ─── Section Shared ─── */
.section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section-header p {
  color: var(--text-muted);
  max-width: 480px;
  margin-inline: auto;
  font-size: 0.95rem;
}

/* ─── Services ─── */
#leistungen {
  padding-block: 3.5rem;
}
.services-grid {
  display: grid;
  gap: 1.25rem;
}
.service-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: #fff;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  background: var(--primary-xlight);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* ─── Why Us ─── */
#warum {
  background: var(--bg-alt);
  padding-block: 3.5rem;
}
.why-grid {
  display: grid;
  gap: 1.25rem;
}
.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.why-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.why-card h3 {
  font-size: 0.975rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.why-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

#schluesselnotdienst {
  padding-block: 3.5rem;
}
.additional-text-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.custom-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.custom-block h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text);
}
.custom-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.custom-block p:last-child {
  margin-bottom: 0;
}

/* ─── FAQ ─── */
#faq {
  padding-block: 3.5rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 780px;
  margin: 0 auto;
}
.faq-list details {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}
.faq-list details[open] {
}
.faq-list summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list details p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ─── Areas ─── */
#einsatzgebiet {
  padding-block: 3.5rem;
}
.areas-wrap {
  background: var(--primary-xlight);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}
.areas-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.areas-intro strong {
  color: var(--text);
}
.districts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.district {
  background: #fff;
  border: 1.5px solid var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
}

.map-wrap {
  margin-top: 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: 400px;
}
.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── CTA ─── */
#kontakt {
  background: var(--primary);
  color: #fff;
  padding-block: 3.5rem;
  text-align: center;
}
#kontakt .section-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
#kontakt h2 {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
#kontakt p {
  opacity: 0.85;
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.btn-white svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}
.contact-note {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ─── Footer ─── */
footer {
  background: #1a0a0a;
  color: #94a3b8;
  font-size: 0.82rem;
  padding-block: 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}
.footer-logo {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: #fff;
}
.footer-copy {
  color: #475569;
}

/* ─── Hero image ─── */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.hero-text {
  width: 100%;
}
.hero-img-wrap {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg, 0 10px 40px rgba(0, 0, 0, 0.14));
  flex-shrink: 0;
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ─── Service card image ─── */
.service-img {
  display: block;
  width: calc(100% + 3.5rem);
  height: 250px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  margin: -1.75rem -1.75rem 1.25rem;
}

/* ─── Area image ─── */
.areas-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 1.5rem;
}

/* ─── Responsive ─── */
@media (min-width: 600px) {
  .usp-item {
    flex-direction: row;
    text-align: left;
  }
  .usp-label {
    font-size: 0.85rem;
  }
}
@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  :root {
    --px: 2rem;
  }
  #hero {
    padding-block: 5rem 4rem;
    text-align: left;
  }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .hero-text {
    flex: 1 1 0;
  }
  .hero-badge,
  .hero-stats {
    justify-content: flex-start;
  }
  .hero-stats {
    justify-content: flex-start;
  }
  .hero-img-wrap {
    flex: 0 0 42%;
    max-width: 42%;
  }
  .service-img {
    height: 280px;
  }
  .areas-img {
    height: 380px;
  }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .hero-cta-group {
    align-items: start;
  }
  .additional-text-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  :root {
    --px: 2.5rem;
  }
}
