/* ===== SCHRIFT (lokal gehostet, keine Verbindung zu Google) ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   B-QUADRAT · Markus Bauer – Square Design System
   Brand: #264796 (blue) / #2B2A29 (charcoal) / #EBECEC (light)
   ============================================================ */

:root {
  --blue:      #264796;
  --blue-lt:   #3458B2;
  --blue-dk:   #1A3272;
  --blue-pale: #EBF0FA;
  --charcoal:  #2B2A29;
  --dark:      #0E1220;
  --mid:       #595755;
  --light:     #EBECEC;
  --off-white: #F6F7F9;
  --white:     #FFFFFF;
  --border:    #D4D8E2;

  /* SQUARE – zero rounding everywhere */
  --r: 0px;

  --font: 'Inter', system-ui, sans-serif;

  --shadow:    0 2px 12px rgba(14,18,32,.10);
  --shadow-lg: 0 8px 40px rgba(14,18,32,.15);

  --t: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 64px; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--blue);
  flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
}

.btn svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-lt);
  border-color: var(--blue-lt);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}

.btn-ghost-white:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t);
}

.navbar.scrolled {
  background: var(--dark);
  border-bottom-color: rgba(255,255,255,.07);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  height: 64px;
}

/* Logo block – square left section */
.nav-logo {
  display: flex;
  align-items: center;
  padding: 0 28px 0 0;
  border-right: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
  gap: 0;
  transition: opacity var(--t);
}

.nav-links {
  transition: opacity var(--t);
}

.navbar:not(.scrolled) .nav-logo,
.navbar:not(.scrolled) .nav-links {
  opacity: 0;
  pointer-events: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* Hide the right contact half of the letterhead, show only logo mark */
.nav-logo-wrap {
  height: 44px;
  /* We show the logo SVG. The PHP crops it to the logo area. */
  overflow: hidden;
}

.nav-links {
  display: flex;
  align-items: center;
  padding: 0 0 0 0;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  color: rgba(255,255,255,.7);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,.07);
  white-space: nowrap;
  transition: color var(--t), background var(--t);
}

@media (max-width: 1180px) and (min-width: 1025px) {
  .nav-link { padding: 0 11px; font-size: 0.78rem; }
  .nav-cta  { padding-left: 16px; padding-right: 16px; }
}

.nav-link:first-child { border-left: 1px solid rgba(255,255,255,.07); }

.nav-link:hover { color: var(--white); background: rgba(255,255,255,.06); }

.nav-link.active { color: var(--white); }

.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 28px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: background var(--t);
}

.nav-cta:hover { background: var(--blue-lt); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  transition: var(--t);
}

/* ===== HERO – SPLIT LAYOUT ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Left: logo on light background */
.hero-logo-side {
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

/* Subtle grid overlay */
.hero-logo-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
}

.hero-logo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  /* background matches the SVG's internal gray */
  background: var(--light);
}

/* Right: dark text */
.hero-text-side {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 64px 80px;
  position: relative;
  overflow: hidden;
}

/* Diagonal stripe accent (references the logo motif) */
.hero-text-side::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px, transparent 28px,
    rgba(38,71,150,.06) 28px, rgba(38,71,150,.06) 30px
  );
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-eyebrow-sq {
  width: 12px; height: 12px;
  background: var(--blue);
  flex-shrink: 0;
}

.hero-eyebrow span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero h1 em {
  font-style: normal;
  color: #7AA3FF;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.55);
  max-width: 440px;
  line-height: 1.8;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

/* Stats row – 4 square tiles */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.1);
  position: relative;
  z-index: 1;
}

.hero-stat {
  padding: 20px 0;
  border-right: 1px solid rgba(255,255,255,.08);
}

.hero-stat:last-child { border-right: none; }
.hero-stat:not(:first-child) { padding-left: 20px; }

.hero-stat strong {
  display: block;
  color: #7AA3FF;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat span {
  color: rgba(255,255,255,.4);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Desktop: passthrough – layout unchanged */
.hero-header-row       { display: contents; }
.hero-header-text      { display: contents; }
.hero-logo-mobile-wrap { display: none; }
.hero-logo-mobile      { display: none; }

/* ===== LEISTUNGEN ===== */
.leistungen {
  padding: 96px 0;
  background: var(--white);
}

.section-head {
  margin-bottom: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.section-head-text {}

.section-head h2 { margin-top: 8px; }

.section-desc {
  font-size: 1rem;
  color: var(--mid);
  max-width: 440px;
  line-height: 1.75;
  margin-top: 12px;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid var(--border);
}

.leistung-card {
  padding: 40px 36px;
  border-right: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  transition: var(--t);
  position: relative;
  background: var(--white);
}

/* Remove right border on last in row */
.leistung-card:nth-child(3n) { border-right: none; }

/* Remove bottom border on last row */
.leistung-card:nth-child(4),
.leistung-card:nth-child(5),
.leistung-card:nth-child(6) { border-bottom: none; }

.leistung-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}

.leistung-card:hover {
  background: var(--off-white);
  z-index: 1;
}

.leistung-card:hover::before { transform: scaleX(1); }

.leistung-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.leistung-num::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--blue);
}

.leistung-card h3 { margin-bottom: 12px; }

.leistung-card p {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.75;
}

/* ===== VORHER / NACHHER ===== */
.vorher-nachher {
  padding: 96px 0;
  background: var(--off-white);
}

.vn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.vn-grid-single { grid-template-columns: minmax(0, 860px); justify-content: center; }

.vn-card {
  margin: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
}

.vn-compare {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
  background: var(--light);
}

.vn-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.vn-img-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.vn-tag {
  position: absolute;
  top: 16px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  padding: 6px 12px;
  pointer-events: none;
  z-index: 2;
}
.vn-tag-before { left: 16px;  background: var(--dark); }
.vn-tag-after  { right: 16px; background: var(--blue); }

.vn-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--white);
  box-shadow: 0 0 12px rgba(14,18,32,.35);
  z-index: 3;
  outline: none;
}
.vn-handle-knob {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  background: var(--blue);
  border: 3px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: background var(--t);
}
.vn-handle-knob svg {
  width: 20px; height: 20px;
  stroke: var(--white); fill: none;
  stroke-width: 2.5; stroke-linecap: square;
}
.vn-compare:hover .vn-handle-knob,
.vn-handle:focus-visible .vn-handle-knob { background: var(--blue-lt); }
.vn-handle:focus-visible .vn-handle-knob { outline: 3px solid var(--blue-pale); }

.vn-caption {
  padding: 16px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal);
  border-top: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.vn-caption::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--blue);
  flex-shrink: 0;
}

/* ===== ARBEITSSCHRITTE ===== */
.ablauf {
  padding: 96px 0;
  background: var(--white);
}

.ab-tabs {
  display: flex;
  margin-bottom: 24px;
  border: 1.5px solid var(--border);
}
.ab-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  background: var(--white);
  border: none;
  border-right: 1.5px solid var(--border);
  font: inherit;
  text-align: left;
  color: var(--mid);
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.ab-tab:last-child { border-right: none; }
.ab-tab strong { font-size: 0.95rem; font-weight: 700; color: var(--charcoal); }
.ab-tab span { font-size: 0.8rem; }
.ab-tab:hover { background: var(--off-white); }
.ab-tab.active { background: var(--blue); color: rgba(255,255,255,.75); }
.ab-tab.active strong { color: var(--white); }

.ab-project {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.ab-project[hidden] { display: none; }

.ab-viewer {
  position: relative;
  aspect-ratio: var(--ar, 4 / 3);
  max-height: 78vh;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--dark);
  touch-action: pan-y;
  user-select: none;
}

.ab-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.ab-slide.active { opacity: 1; }
/* Unscharfer Hintergrund füllt den Rahmen, falls das Bild ein anderes Format hat */
.ab-slide-bg {
  position: absolute;
  inset: -24px;
  background: center / cover no-repeat;
  filter: blur(18px) brightness(.55);
}
.ab-slide img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.ab-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,.25);
  z-index: 3;
}
.ab-progress span {
  display: block;
  height: 100%;
  background: var(--blue-lt);
  transition: width 0.5s ease;
}

.ab-count {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 3;
  padding: 6px 12px;
  background: var(--dark);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ab-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px; height: 44px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border: 2px solid var(--white);
  cursor: pointer;
  transition: background var(--t), opacity var(--t);
}
.ab-nav svg {
  width: 20px; height: 20px;
  stroke: var(--white); fill: none;
  stroke-width: 2.5; stroke-linecap: square;
}
.ab-nav:hover { background: var(--blue-lt); }
.ab-nav:disabled { opacity: 0; pointer-events: none; }
.ab-prev { left: 12px; }
.ab-next { right: 12px; }

.ab-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border);
}
.ab-steps li { border-bottom: 1.5px solid var(--border); }
.ab-steps li:last-child { border-bottom: none; }

.ab-step {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: none;
  font: inherit;
  text-align: left;
  color: var(--charcoal);
  cursor: pointer;
  transition: background var(--t);
}
.ab-step:hover { background: var(--off-white); }
.ab-step.active { background: var(--blue-pale); }

.ab-step-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mid);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.ab-step.active .ab-step-num {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.ab-step-body { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.ab-step-body strong { font-size: 0.95rem; font-weight: 700; }
.ab-step-text {
  display: none;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--mid);
}
.ab-step.active .ab-step-text { display: block; }

/* ===== ÜBER UNS ===== */
.ueber-uns {
  background: var(--light);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left: large logo display */
.ueber-logo-side {
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
  border-right: 1.5px solid var(--border);
  position: relative;
}

.ueber-logo-img {
  width: 100%;
  max-width: 380px;
  background: var(--light);
}

.ueber-logo-caption {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1.5px solid var(--border);
  width: 100%;
  max-width: 380px;
}

.ueber-logo-caption .sq-icon {
  width: 44px; height: 44px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ueber-logo-caption .sq-icon svg {
  width: 22px; height: 22px;
  stroke: #fff; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.ueber-logo-caption-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.ueber-logo-caption-text span {
  font-size: 0.78rem;
  color: var(--mid);
}

/* Right: text */
.ueber-text-side {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ueber-text-side h2 { margin: 8px 0 20px; }

.ueber-text-side .section-desc {
  margin-bottom: 36px;
  max-width: 100%;
}

.ueber-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
  border: 1.5px solid var(--border);
}

.ueber-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--border);
  font-size: 0.92rem;
}

.ueber-list-item:last-child { border-bottom: none; }

.ueber-list-item .sq {
  width: 8px; height: 8px;
  background: var(--blue);
  flex-shrink: 0;
}

.ueber-list-item strong { font-weight: 600; }

/* ===== VORTEILE ===== */
.vorteile {
  background: var(--dark);
  padding: 0;
}

.vorteile-head {
  padding: 80px 32px 56px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.vorteile-head .label::before { background: #7AA3FF; }
.vorteile-head .label { color: #7AA3FF; }
.vorteile-head h2 { color: var(--white); margin-top: 8px; }
.vorteile-head .section-desc { color: rgba(255,255,255,.45); margin-top: 12px; }

.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.07);
}

.vorteil-item {
  padding: 48px 40px;
  border-right: 1px solid rgba(255,255,255,.07);
  transition: var(--t);
  position: relative;
}

.vorteil-item:last-child { border-right: none; }

.vorteil-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}

.vorteil-item:hover::before { transform: scaleX(1); }

.vorteil-item:hover { background: rgba(255,255,255,.03); }

.vorteil-num {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(38,71,150,.3);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  transition: color var(--t);
}

.vorteil-item:hover .vorteil-num { color: rgba(122,163,255,.4); }

.vorteil-item h3 { color: var(--white); margin-bottom: 10px; }

.vorteil-item p {
  color: rgba(255,255,255,.42);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ===== PARTNER STRIP ===== */
.partner {
  background: var(--off-white);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  padding: 0;
}

.partner-inner {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.partner-label-block {
  padding: 22px 32px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.partner-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}

.partner-tag {
  padding: 22px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mid);
  border-right: 1.5px solid var(--border);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}

.partner-tag:hover {
  color: var(--blue);
  background: var(--blue-pale);
}

/* ===== KONTAKT ===== */
.kontakt {
  padding: 96px 0;
  background: var(--white);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1.5px solid var(--border);
  margin-top: 56px;
}

.kontakt-card {
  padding: 40px 36px;
  border-right: 1.5px solid var(--border);
  transition: background var(--t);
  position: relative;
}

.kontakt-card:last-child { border-right: none; }

.kontakt-card:hover { background: var(--off-white); }

.kontakt-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--border);
}

.kontakt-sq {
  width: 40px; height: 40px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kontakt-sq svg {
  width: 18px; height: 18px;
  stroke: var(--white); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.kontakt-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}

.kontakt-card-body {
  font-size: 0.9rem;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kontakt-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.kontakt-row:last-child { border-bottom: none; }
.kontakt-row > :last-child { min-width: 0; overflow-wrap: anywhere; }

.kontakt-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  flex-shrink: 0;
  width: 96px;
}

.kontakt-row a { color: var(--blue); transition: color var(--t); }
.kontakt-row a:hover { color: var(--blue-lt); }

/* Note bar below cards */
.kontakt-note {
  margin-top: 20px;
  padding: 24px 32px;
  background: var(--blue-pale);
  border: 1.5px solid rgba(38,71,150,.15);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.kontakt-note-sq {
  width: 8px; height: 8px;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 7px;
}

.kontakt-note p {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.75;
}

.kontakt-note strong { color: var(--charcoal); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.5);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-col {
  padding: 56px 40px;
  border-right: 1px solid rgba(255,255,255,.07);
}

.footer-col:last-child { border-right: none; }

/* Logo col */
.footer-logo-img {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.86rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-col h4::before {
  content: '';
  width: 12px; height: 12px;
  background: var(--blue);
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-link {
  display: block;
  padding: 8px 0;
  font-size: 0.86rem;
  color: rgba(255,255,255,.45);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color var(--t);
}

.footer-link:hover { color: var(--white); }

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 0.86rem;
}

.footer-contact-row svg {
  width: 13px; height: 13px;
  stroke: var(--blue-lt); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-row a {
  color: rgba(255,255,255,.45);
  transition: color var(--t);
}

.footer-contact-row a:hover { color: var(--white); }

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 40px;
  font-size: 0.8rem;
}

.footer-bottom-links { display: flex; gap: 0; }

.footer-bottom-link {
  padding: 0 18px;
  color: rgba(255,255,255,.35);
  border-right: 1px solid rgba(255,255,255,.1);
  transition: color var(--t);
  font-size: 0.8rem;
}

.footer-bottom-link:first-child { padding-left: 0; }
.footer-bottom-link:last-child { border-right: none; }
.footer-bottom-link:hover { color: var(--white); }

/* ===== IMAGE STRIP – auto-scrolling marquee ===== */
.img-strip {
  overflow: hidden;
  height: clamp(220px, 28vw, 400px);
}

.img-strip-track {
  display: flex;
  /* each image is square: height of strip */
  width: max-content;
  animation: img-marquee calc(var(--n, 5) * 4s) linear infinite;
}

.img-strip:hover .img-strip-track {
  animation-play-state: paused;
}

@keyframes img-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.img-strip-item {
  flex-shrink: 0;
  height: clamp(220px, 28vw, 400px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-right: 2px solid var(--white);
}

.img-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88) saturate(1.1);
  transition: filter 0.4s;
}

.img-strip:hover .img-strip-item img {
  filter: brightness(1) saturate(1.15);
}

/* ===== LIGHTBOX ===== */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14,18,32,.95);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lb-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lb-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 20px 80px rgba(0,0,0,.6);
  transform: scale(0.94);
  transition: transform 0.25s ease;
}

.lb-overlay.open .lb-img {
  transform: scale(1);
}

.lb-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lb-close:hover { background: rgba(255,255,255,.2); }

/* Make strip images clickable */
.img-strip-item { cursor: zoom-in; }

/* ===== INNER PAGES (Impressum/Datenschutz) ===== */
.page-hero {
  background: var(--dark);
  padding: 100px 0 56px;
  border-bottom: 3px solid var(--blue);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.page-hero .page-sub {
  color: rgba(255,255,255,.45);
  margin-top: 12px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-hero .page-sub::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--blue);
  flex-shrink: 0;
}

.page-content {
  padding: 80px 0 100px;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 48px 0 14px;
  padding-left: 16px;
  border-left: 3px solid var(--blue);
  letter-spacing: -0.01em;
}

.page-content h2:first-of-type { margin-top: 0; }

.page-content p {
  font-size: 0.96rem;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 16px;
}

.page-content a { color: var(--blue); }

/* Platzhalter, die vor dem Livegang ersetzt werden müssen */
.page-content .todo { color: #d00000; font-weight: 700; }
.page-content a:hover { text-decoration: underline; }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }
.reveal-d6 { transition-delay: 0.48s; }

/* ===== MOBILE MENU: always visible when open ===== */
.nav-links.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ===== TABLET (≤ 1024px) ===== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-logo-side { display: none; }
  .hero-text-side { padding: 120px 48px 72px; min-height: 100vh; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .vn-grid { grid-template-columns: 1fr; }

  .ueber-uns { grid-template-columns: 1fr; }
  .kontakt-card { padding: 32px 22px; }
  .ueber-logo-side { display: none; }
  .ueber-text-side { padding: 72px 48px; }

  .vorteile-grid { grid-template-columns: repeat(2, 1fr); }
  .vorteile-head { padding: 72px 48px 48px; }

  .footer-main { grid-template-columns: 1fr; }
  .footer-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); padding: 48px 40px; }
  .footer-col:last-child { border-bottom: none; }
}

/* ===== NAV: Hamburger bis Tablet-Breite ===== */
@media (max-width: 1024px) {
  /* ── Nav ── */
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--dark);
    align-items: flex-start;
    padding: 8px 0 24px;
    z-index: 99;
    overflow-y: auto;
  }
  .nav-link {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 52px;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 16px 24px;
    font-size: 0.95rem;
    align-items: center;
  }
  .nav-link:first-child { border-top: 1px solid rgba(255,255,255,.07); }
  .nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    margin: 16px 20px 0;
    padding: 15px 20px;
    width: calc(100% - 40px);
    font-size: 0.88rem;
  }
}

/* ===== PHONE (≤ 768px) ===== */
@media (max-width: 768px) {
  .container { padding: 0 18px; }

  .vorher-nachher { padding: 64px 0; }
  .vn-tag { top: 10px; font-size: 0.6rem; padding: 4px 8px; }
  .vn-tag-before { left: 10px; }
  .vn-tag-after  { right: 10px; }

  /* ── Hero ── */
  .hero-text-side {
    padding: 80px 18px 44px;
    min-height: 100svh;
  }

  /* Eyebrow über voller Breite */
  .hero-text-side .hero-eyebrow { margin-bottom: 14px; }

  /* Logo + Titel nebeneinander: gleich hoch, zusammen volle Breite.
     --fs skaliert mit der Viewport-Breite, das Logo skaliert mit --fs.
     Logo-Breite = 3.94 × --fs → sichtbare Logo-Höhe = Höhe der drei Textzeilen.
     Negative Ränder gleichen den Leerraum in der Logo-SVG aus. */
  .hero-header-row {
    --pad: 18px;
    --gap: 24px;
    --fs: calc((100vw - 2 * var(--pad) - var(--gap)) / 9.75);
    display: flex;
    align-items: center;
    gap: var(--gap);
    margin-bottom: 20px;
  }
  .hero-logo-mobile-wrap {
    display: block;
    flex-shrink: 0;
    width: calc(var(--fs) * 3.94);
    margin: calc(var(--fs) * -1.6) calc(var(--fs) * -0.386) calc(var(--fs) * -0.4);
  }
  .hero-logo-mobile {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
  }
  .hero-header-text {
    display: block;
    flex: 1;
    min-width: 0;
  }
  /* WICHTIG: spezifischer als .hero h1 damit die kleinere Schrift gilt */
  .hero-text-side .hero-header-text h1 {
    font-size: var(--fs);
    margin-bottom: 0;
    line-height: 1.15;
  }

  .hero-sub {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 22px;
    margin-top: 16px;
  }
  .hero-cta {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
  }
  .hero-cta .btn { justify-content: center; width: 100%; }

  /* Stats 2 × 2 */
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat { padding: 14px 0; }
  .hero-stat:nth-child(even) { padding-left: 14px; }
  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.08); }
  .hero-stat:nth-child(3) { padding-left: 0; }
  .hero-stat strong { font-size: 1.05rem; }
  .hero-stat span   { font-size: 0.6rem; }

  /* ── Slideshow ── */
  .img-strip { height: 190px; }
  .img-strip-item { height: 190px; }
  .img-strip-track { animation-duration: calc(var(--n, 5) * 5s); }

  /* ── Leistungen ── */
  .leistungen { padding: 52px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 24px; }
  .section-desc { max-width: 100%; font-size: 0.9rem; }
  .leistungen-grid { grid-template-columns: 1fr; border: none; }
  /* Reset desktop nth-child border-removals, then re-apply for single col */
  .leistung-card {
    border-right: 1.5px solid var(--border);
    border-bottom: 1.5px solid var(--border);
    padding: 22px 18px;
  }
  .leistung-card:first-child { border-top: 1.5px solid var(--border); }
  .leistung-card:nth-child(3n)  { border-right: 1.5px solid var(--border); }
  .leistung-card:nth-child(4),
  .leistung-card:nth-child(5),
  .leistung-card:nth-child(6)   { border-bottom: 1.5px solid var(--border); }
  .leistung-card:last-child     { border-bottom: none; }

  /* ── Arbeitsschritte ── */
  .ablauf { padding: 64px 0; }
  .ab-tab { padding: 12px 14px; }
  .ab-tab span { font-size: 0.72rem; }
  .ab-project { grid-template-columns: 1fr; gap: 16px; }
  .ab-viewer { max-height: none; }
  .ab-nav { width: 38px; height: 38px; }
  .ab-prev { left: 8px; }
  .ab-next { right: 8px; }
  .ab-count { top: 12px; left: 10px; font-size: 0.6rem; padding: 4px 8px; }
  .ab-step { padding: 14px; gap: 12px; }

  /* ── Über uns ── */
  .ueber-text-side { padding: 44px 18px; }
  .ueber-text-side h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .ueber-list-item { padding: 13px 14px; font-size: 0.86rem; }

  /* ── Vorteile ── */
  .vorteile-head {
    padding: 48px 18px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .vorteile-grid { grid-template-columns: 1fr; }
  .vorteil-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 28px 18px;
  }
  .vorteil-item:last-child { border-bottom: none; }
  .vorteil-num { font-size: 2rem; margin-bottom: 12px; }

  /* ── Partner ── */
  .partner-inner { flex-direction: column; }
  .partner-label-block {
    width: 100%;
    border-bottom: 1.5px solid rgba(38,71,150,.3);
    padding: 13px 18px;
    justify-content: center;
  }
  .partner-tags { padding: 0; }
  .partner-tag { padding: 14px 18px; font-size: 0.8rem; }

  /* ── Kontakt ── */
  .kontakt { padding: 52px 0; }
  .kontakt-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .kontakt-card { border-right: none; border-bottom: 1.5px solid var(--border); padding: 22px 18px; }
  .kontakt-card:last-child { border-bottom: none; }
  .kontakt-note { padding: 16px 18px; flex-direction: column; gap: 8px; }
  .kontakt-lbl { width: 92px; }
  .kontakt-grid + .kontakt-note { margin-top: 16px; }

  /* ── Footer ── */
  .footer-main { grid-template-columns: 1fr; }
  .footer-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); padding: 36px 18px; }
  .footer-col:last-child { border-bottom: none; }
  .footer-col p { max-width: 100%; font-size: 0.84rem; }
  .footer-logo-img { height: 60px; margin-bottom: 14px; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 16px 18px; gap: 10px; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }

  /* ── Subpages ── */
  .page-hero { padding: 80px 0 40px; }
  .page-content { padding: 48px 0 72px; }
}

/* ===== SMALL PHONE (≤ 420px) ===== */
@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .hero-text-side { padding: 76px 14px 40px; }
  .hero-header-row { --pad: 14px; }
  .hero-sub { font-size: 0.86rem; margin-top: 14px; margin-bottom: 18px; }
  .hero-stat strong { font-size: 0.95rem; }

  .img-strip { height: 150px; }
  .img-strip-item { height: 150px; }

  .leistung-card { padding: 18px 14px; }
  .ueber-text-side { padding: 36px 14px; }
  .vorteile-head { padding: 40px 14px 24px; }
  .vorteil-item { padding: 24px 14px; }
  .kontakt-card { padding: 18px 14px; }
  .footer-col { padding: 30px 14px; }
}
