:root {
  --color-bg: #ffffff;
  --color-bg-muted: #f5f7fa;
  --color-bg-accent: #0b3e6f;
  --color-text: #1c2533;
  --color-text-muted: #5a6475;
  --color-primary: #1b74c6;
  --color-primary-dark: #155a97;
  --color-accent-red: #b91c1c;
  --color-border: #dde3ee;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-full: 999px;
  --content-width: min(1100px, 100% - 3rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a:hover,
 a:focus-visible {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.site-header__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.branding {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  margin: 20px 0;
}

@media(max-width: 992px) {
  .branding {
    margin: 5px 0;
  }
}

.d-flex {
  display: flex;
  flex-direction: column;

}

.branding::before {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  background-image: url('images/a.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: -7px;
}

.branding__title {
      display: inline-flex;
    align-items: self-start;

    
   
 

    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1.02rem;
    line-height: 1.3;
    color: #020617;
    text-align: start;
    justify-content: start;
}

.branding__subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  text-align: start;

}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

.main-nav a {
  position: relative;
  color: var(--color-text);
  text-decoration: none;
  padding-bottom: 0.15rem;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  transition: width 0.2s ease-out;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(248, 250, 252, 0.9);
  cursor: pointer;
  padding: 0;
  position: absolute;
  line-height: 0;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.nav-toggle__bar + .nav-toggle__bar {
  margin-top: 3px;
}

.hero {
  position: relative;
  min-height: clamp(480px, 70vh, 640px);
  display: grid;
  place-items: stretch;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(11, 62, 111, 0.7), rgba(27, 116, 198, 0.4)),
    url('images/keyvisual.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.8));
  mix-blend-mode: soft-light;
  z-index: -1;
}

.hero__content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 5.5rem 0 4.5rem;
  color: #f9fbff;
}

.hero h1 {
  font-size: clamp(1.9rem, 3vw + 1rem, 2.7rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.hero__lead {
  max-width: 38rem;
  font-size: 1.02rem;
  color: rgba(234, 240, 255, 0.9);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out,
    border-color 0.12s ease-out;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent-red), var(--color-primary-dark));
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.46);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #eef3ff;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.section {
  padding: 4.5rem 0 4rem;
}

.section--light {
  background: radial-gradient(circle at 5% 0, #edf4ff, transparent 60%), #f7f9fc;
}

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

.section--accent {
  background: radial-gradient(circle at 0 0, #e3f2ff, transparent 65%), #f8fbff;
}

.section__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.section__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.section__inner--contact {
  align-items: center;
}

.section__header {
  text-align: center;
  margin-bottom: 2rem;
}

.section__header--left {
  text-align: left;
}

.section__header h2 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.section__header h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.5rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent-red), var(--color-primary));
}

.section__header p {
  margin: 0 auto;
  color: var(--color-text-muted);
  max-width: 40rem;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

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

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

#leistungen .grid--3-cols {
  grid-template-columns: minmax(0, 1fr);
}

#leistungen .card {
  border-top: 3px solid var(--color-accent-red);
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.card h3 {
  margin-top: 0.1rem;
  margin-bottom: 0.8rem;
}

.card ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--color-text-muted);
}

.card li + li {
  margin-top: 0.25rem;
}

.facts {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.facts__subtitle {
  margin-top: 0.1rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.facts ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
}

.facts li + li {
  margin-top: 0.3rem;
}

.list--check {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.list--check li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
}

.list--check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.9rem;
  color: var(--color-accent-red);
}

.contact {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem 1.7rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.contact__label {
  font-weight: 600;
  margin-top: 0;
  padding-left: 0.6rem;
  border-left: 3px solid var(--color-accent-red);
}

.contact p {
  margin: 0 0 0.4rem;
}

.contact a {
  font-weight: 500;
}

.contact address {
  font-style: normal;
  margin: 0 0 0.6rem;
}

.site-footer {
  padding: 1.6rem 0 1.4rem;
  background: #020617;
  color: #e5e7eb;
}

.site-footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-footer__small {
  color: #9ca3af;
}

/* ---------- Legal Accordion ---------- */
.legal-accordion {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.legal-item + .legal-item {
  border-top: 1px solid var(--color-border);
}

.legal-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-item summary::-webkit-details-marker {
  display: none;
}

.legal-item summary::after {
  content: '▸';
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.legal-item[open] summary::after {
  transform: rotate(90deg);
}

.legal-content {
  padding: 0 1.2rem 1.2rem;
  color: var(--color-text-muted);
}

.legal-content h3,
.legal-content h4 {
  color: var(--color-text);
  margin: 1rem 0 0.4rem;
}

.legal-content address {
  font-style: normal;
  margin: 0.2rem 0 0.8rem;
}

.legal-content p {
  margin: 0.4rem 0;
}

.legal-content ul {
  margin: 0.4rem 0 0.6rem;
  padding-left: 1.2rem;
}

.legal-source {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

#zertifizierungen .section__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#zertifizierungen .section__header {
  text-align: center;
}

#zertifizierungen .section__header p {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

#logo-slider {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

#logo-slider .splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

#logo-slider img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  filter: saturate(1.05);
}

#logo-slider .splide__arrows {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
}

#logo-slider .splide__arrow {
  background: #f1f5f9;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  pointer-events: auto;
}

#logo-slider .splide__arrow--prev {
  left: -50px;
}

#logo-slider .splide__arrow--next {
  right: -50px;
}

#logo-slider .splide__arrow svg {
  fill: #0f172a;
}

.section {
  scroll-margin-top: 80px;
}

@media (max-width: 992px) {
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-self: flex-end;
  }

  .hero__content {
    padding: 4.5rem 0 3.5rem;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 0.75rem;
    gap: 0.4rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.main-nav--open {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
  }

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

  .section__inner--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --content-width: min(100% - 2rem, 680px);
  }

  .hero__content {
    padding: 4rem 0 3rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  #logo-slider img {
    max-height: 60px;
  }
}
