/* ---------- Fonts ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/Plus_Jakarta_Sans/webfonts/PlusJakartaSans-Regular.woff2") format("woff2"),
       url("../fonts/Plus_Jakarta_Sans/webfonts/PlusJakartaSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/Plus_Jakarta_Sans/webfonts/PlusJakartaSans-SemiBold.woff2") format("woff2"),
       url("../fonts/Plus_Jakarta_Sans/webfonts/PlusJakartaSans-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/Plus_Jakarta_Sans/webfonts/PlusJakartaSans-Bold.woff2") format("woff2"),
       url("../fonts/Plus_Jakarta_Sans/webfonts/PlusJakartaSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --color-red: #D41318;
  --color-black: #000000;
  --color-text: #54565A;
  --color-header-bg: #F4F9FF;
  --color-blue-panel: #E9F2FC;
  --color-footer: #2C2E34;
  --color-page-bg: #ffffff;
  --color-line: #000000;
  --container-width: 1344px;
  --font-base: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  padding-top: var(--header-h, 96px);
  font-family: var(--font-base);
  color: var(--color-black);
  background: var(--color-page-bg);
  -webkit-font-smoothing: antialiased;
}
body.nav-locked { overflow: hidden; padding-right: var(--scrollbar-w, 0px); }
body.nav-locked .site-header { padding-right: var(--scrollbar-w, 0px); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

section { background: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-header-bg);
  padding-block: 16px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  transition: transform .3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo img { height: 64px; width: auto; }

.burger {
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  position: relative;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.burger__bar {
  position: absolute;
  left: 4px;
  height: 3px;
  background: var(--color-black);
  transition: transform .25s ease, opacity .25s ease, width .25s ease, top .25s ease;
}
.burger__bar--top { top: 14px; width: 40px; }
.burger__bar--mid { top: 23px; width: 23px; }
.burger__bar--bottom { top: 32px; width: 40px; }

.burger[aria-expanded="true"] .burger__bar--top { top: 23px; width: 40px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar--mid { opacity: 0; width: 0; }
.burger[aria-expanded="true"] .burger__bar--bottom { top: 23px; width: 40px; transform: rotate(-45deg); }

@media (max-width: 680px) {
  .site-header__logo img { height: 40px; }
  html { scroll-padding-top: 80px; }
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 150;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

.mainnav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(450px, 85vw);
  overflow-y: auto;
  background: var(--color-header-bg);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 200;
  display: flex;
  flex-direction: column;
}
.mainnav.is-open { transform: translateX(0); }
.mainnav > ul {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mainnav > ul:first-child {
  padding: calc(var(--header-h, 96px) + 24px) 32px 32px;
}
.mainnav a {
  font-weight: 600;
  font-size: 1.25rem;
}

.mainnav > ul.mainnav__social {
  margin-top: auto;
  padding: 24px 32px 32px;
  gap: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.mainnav__social a {
  font-size: 1rem;
  font-weight: 400;
}
.mainnav__linkedin { display: inline-flex; align-items: center; gap: 6px; }
.mainnav__linkedin svg { background: var(--color-black); color: var(--color-header-bg); padding: 2px; border-radius: 2px; }


/* ---------- Typography helpers ---------- */
.eyebrow {
  color: var(--color-red);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 3.125rem);
  line-height: 1.1;
  margin-bottom: 16px;
}
.eyebrow--small {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

h1, h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h1 { font-weight: 700; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4.2vw, 3.125rem); }
h3 { font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.7rem); line-height: 1.05; }

/* ---------- Hero ---------- */
.hero {
  padding-block: 64px 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 28px;
}
.hero__sub { color: var(--color-black); margin-top: 20px; font-size: 1.625rem; line-height: 1.3; }
.hero__image img { border-radius: 4px; width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: top center; }

@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; padding-block: 36px 56px; }
}

/* ---------- Intro ---------- */
.intro {
  text-align: center;
  padding-block: 64px;
  max-width: 792px;
}
.intro p { color: var(--color-black); margin-top: 20px; font-size: 1.25rem; line-height: 1.25; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; padding-block: 56px 72px; }
.legal h1 { margin-bottom: 32px; }
.legal__h2 { font-size: 1.1rem; margin-top: 32px; margin-bottom: 8px; }
.legal p, .legal__list { color: var(--color-text); font-size: 0.95rem; line-height: 1.6; }
.legal__list { padding-left: 20px; list-style: disc; }
.legal__list li { margin-bottom: 4px; }
.legal a { color: var(--color-red); }
.legal a:hover { text-decoration: underline; }

/* ---------- Services ---------- */
.services { border-top: 3px solid var(--color-line); border-bottom: 3px solid var(--color-line); }

.services__grid { display: flex; flex-direction: column; }

.services__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  border-bottom: 3px solid var(--color-line);
}
.services__row:last-child { border-bottom: none; }

.services__row > * {
  margin-block: 32px;
  padding-inline: 32px;
  border-right: 3px solid var(--color-line);
}
.services__row > *:last-child { border-right: none; padding-right: 0; }
.services__row > *:first-child { padding-left: 0; }

.services__intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: stretch;
}
.service-card {
  height: stretch;
}
.services__intro h2 { color: var(--color-red); font-weight: 700; }
.services__arrow { width: 28px; height: 28px; align-self: flex-end; }

.service-card p:last-child { color: var(--color-black); margin-top: 16px; font-size: 1.25rem; line-height: 1.25; }
.service-card h3 { hyphens: auto; }

@media (max-width: 680px) {
  .services__row { grid-template-columns: 1fr; border-bottom: none; }
  .services__row > * {
    margin-block: 0;
    padding: 28px 0;
    border-right: none;
    border-bottom: 3px solid var(--color-line);
  }
  .services__grid > .services__row:last-child > *:last-child { border-bottom: none; }
  .services__intro { padding-top: 28px; flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

/* ---------- Wesentliche (blue panel) ---------- */
.wesentliche { background: var(--color-blue-panel); padding-block: 80px; margin-block: 140px; }

@media (max-width: 680px) {
  .wesentliche { margin-block: 64px; }
}
.wesentliche__inner {
  position: relative;
  max-width: 680px;
  text-align: center;
  padding: 64px 32px;
}
.wesentliche__sketch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.wesentliche__text { position: relative; }
.wesentliche__text p { color: var(--color-black); margin-top: 20px; font-size: 1.25rem; line-height: 1.25; }

@media (max-width: 680px) {
  .wesentliche__sketch {
    inset: auto;
    top: 20px;
    left: 100px;
    width: 120px;
    height: 120px;
    opacity: 0.25;
  }
}

/* ---------- Erklärungen / Slider ---------- */
.erklaerungen { padding-block: 72px; border-top: 3px solid var(--color-line); border-bottom: 3px solid var(--color-line); }
.slider { max-width: 760px; }
.slider__viewport { position: relative; overflow: hidden; transition: height .35s ease; }
.slider__slide { display: flow-root; }
.slider__slide.is-incoming,
.slider__slide.is-outgoing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.slider__text { color: var(--color-black); margin: 20px 0 28px; font-size: 1.25rem; line-height: 1.25; }

.icon-btn-group { display: flex; gap: 10px; }
.icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}
.icon-btn--prev { background: rgba(212, 19, 24, 0.5); color: #fff; }
.icon-btn--next { background: var(--color-red); color: #fff; }
.icon-btn svg { display: block; }

/* ---------- Contact ---------- */
.contact {
  padding-block: 72px 88px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 28px;
}
.contact__text p:not(.contact__name) { color: var(--color-black); margin-top: 20px; font-size: 1.25rem; line-height: 1.25; }
.contact__name { color: var(--color-black); margin-top: 28px; font-size: 1.25rem; line-height: 1.5; font-weight: 400; }
.contact__name strong { font-size: 1.625rem; font-weight: 700; line-height: 1.15; }
.contact__details { margin-top: 12px; font-size: 1.25rem; line-height: 1.5; }
.contact__details a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color .25s ease;
}
.contact__details a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.contact__details a:hover { color: var(--color-red); }
.contact__details a:hover::after { transform: scaleX(1); }
.contact__image img { border-radius: 4px; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center; }

@media (max-width: 680px) {
  .contact { grid-template-columns: 1fr; }
  .contact__image { order: -1; }
  .hero__sub { font-size: 1.25rem!important;}

}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-footer); color: #fff; }
.site-footer__inner {
  padding-block: 64px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
}
.site-footer__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.site-footer__arrow { width: 26px; height: 26px; filter: brightness(0) saturate(100%) invert(20%) sepia(80%) saturate(3000%) hue-rotate(345deg); }
.site-footer h2 { color: #fff; }

.site-footer__contact { font-size: 1.25rem; line-height: 1.25; }
.site-footer__contact span { margin: 0 8px; opacity: 0.5; }
.site-footer__contact a:hover { text-decoration: underline; }
.site-footer__links { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; font-size: 1.25rem; line-height: 1.5; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__linkedin { display: inline-flex; align-items: center; gap: 6px; }
.site-footer__linkedin svg { background: #fff; color: var(--color-footer); padding: 2px; border-radius: 2px; }

@media (max-width: 680px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__links { align-items: flex-start; text-align: left; gap: 0px; }
  .d-s-none {
    display: none;
  }
  .d-sm-block {
    display: block;
  }
}

/* ---------- Cookie Consent Banner ---------- */
/* The library injects its own <style> at runtime (after this stylesheet in the
   DOM), so an equal-specificity .cc_dialog.simple rule here would lose the
   cascade. The extra `body` ancestor raises specificity so this override wins
   regardless of injection order. Its default max-width: 50% has no mobile
   breakpoint, which cramps the banner into a narrow column on phones. */
body .cc_dialog.simple {
  max-width: 100%;
  padding: 15px !important;
}
.cc_cp_footer {
  padding: 10px!important;
}
.cc_cp_footer button {
  margin-right: 0!important;
}
@media (max-width: 370px) {
  .cc_b_cp.ml-1 {
    margin-left: 0!important;
    margin-top: 4px!important;
  }
}