/* Google Fonts selbst gehostet -- keine Verbindung zu Google beim Seitenaufruf.
   latin + latin-ext decken alle in dieser Sprache vorkommenden Zeichen ab. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-300-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-400-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-500-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-600-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-700-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-800-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-400-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-500-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #fff;
  color: #0d0d0d;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --orange:        #f68d2e;
  --orange-dark:   #d9751a;
  --orange-glow:   rgba(246,141,46,0.22);
  --black:         #0d0d0d;
  --ink-60:        #555;
  --ink-40:        #8a8a8a;
  --ink-20:        #c4c4c4;
  --surface-1:     #f9fafb;
  --surface-2:     #f2f5f7;
  --surface-3:     #e8ecef;
  --dark-1:        #141414;
  --dark-2:        #1c1c1c;
  --dark-3:        #242424;
  --dark-4:        #2e2e2e;

  --br-sm:  6px 0 6px 0;
  --br-md:  10px 0 10px 0;
  --br-lg:  16px 0 16px 0;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);

  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  --max-w: 1200px;
  --section-v: 96px;

  /* Type scale */
  --text-xs:      11px;
  --text-sm:      13px;
  --text-base:    15px;
  --text-lead:    17px;
  --text-card:    clamp(20px, 2vw, 26px);
  --text-section: clamp(30px, 3.5vw, 42px);
  --text-hero:    clamp(42px, 5.2vw, 72px);
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { line-height: 1.1; letter-spacing: -0.03em; }

.overline {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-40);
  display: flex; align-items: center; gap: 10px;
}
.overline::before {
  content: ''; display: block;
  width: 16px; height: 1px;
  background: currentColor; opacity: 0.4; flex-shrink: 0;
}
.overline--orange { color: var(--orange); }
.overline--light  { color: rgba(242,245,247,0.35); }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 24px; } }

section { padding: var(--section-v) 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: var(--text-base); font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: all 220ms var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange); color: #fff;
  padding: 12px 26px; border-radius: var(--br-md);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--orange-glow);
}
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent; color: rgba(242,245,247,0.55);
  padding: 12px 0; font-weight: 500;
}
.btn-ghost:hover { color: #f2f5f7; }

.btn-ghost-dark {
  background: transparent; color: var(--ink-60);
  padding: 12px 0; font-weight: 500;
}
.btn-ghost-dark:hover { color: var(--black); }

.btn-outline-white {
  background: transparent; color: rgba(242,245,247,0.6);
  border: 1px solid rgba(242,245,247,0.2);
  padding: 11px 24px; border-radius: var(--br-md);
}
.btn-outline-white:hover {
  color: #f2f5f7; border-color: rgba(242,245,247,0.5);
}

.btn svg { flex-shrink: 0; transition: transform 200ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ── Nav ─────────────────────────────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: all;
  display: flex; align-items: center; gap: 2px;
  width: 100%; padding: 0 48px; height: 64px;
  background: transparent;
  /* all 4 sides transparent so border shorthand doesn't fight border-bottom */
  border: 1px solid transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  will-change: width, transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition:
    width 420ms var(--ease),
    background 420ms var(--ease),
    border-color 420ms var(--ease),
    border-radius 420ms var(--ease),
    padding 420ms var(--ease),
    height 420ms var(--ease),
    margin-top 420ms var(--ease),
    box-shadow 420ms var(--ease),
    backdrop-filter 150ms var(--ease) 300ms,
    -webkit-backdrop-filter 150ms var(--ease) 300ms;
}
.nav-inner.scrolled {
  /* fixed px width — `auto` is not interpolatable and causes a hard jump */
  width: 560px;
  height: 48px;
  background: rgba(13,13,13,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 999px;
  /* only color changes, not border shorthand — keeps transition intact */
  border-color: rgba(255,255,255,0.07);
  padding: 5px 8px 5px 20px; margin-top: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  /* blur off immediately when leaving scrolled — no delay */
  transition:
    width 420ms var(--ease),
    background 420ms var(--ease),
    border-color 420ms var(--ease),
    border-radius 420ms var(--ease),
    padding 420ms var(--ease),
    height 420ms var(--ease),
    margin-top 420ms var(--ease),
    box-shadow 420ms var(--ease),
    backdrop-filter 80ms var(--ease),
    -webkit-backdrop-filter 80ms var(--ease);
}
/* .nav-inner.light: color-only overrides for light-background pages.
   No background/backdrop change — nav stays transparent until pill. */

.nav-inner > a { display: flex; align-items: center; }
.nav-logo { display: block; height: 32px; cursor: pointer; flex-shrink: 0; margin-right: 20px; transition: height 350ms var(--ease), filter 350ms var(--ease); }
.nav-inner.scrolled .nav-logo { height: 40px; margin-right: 12px; }
.nav-inner.light.scrolled .nav-logo { filter: brightness(0) invert(1); }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }

.nav-link {
  font-size: var(--text-base); font-weight: 400; cursor: pointer;
  color: rgba(242,245,247,0.5); text-decoration: none;
  padding: 6px 14px; border-radius: 999px;
  transition: color 200ms, background 200ms,
    font-size 420ms var(--ease), padding 420ms var(--ease);
  white-space: nowrap; position: relative;
}
.nav-link:hover, .nav-link.active {
  color: #f2f5f7; background: rgba(255,255,255,0.08);
}
.nav-inner.light:not(.scrolled) .nav-link { color: #888; }
.nav-inner.light:not(.scrolled) .nav-link:hover,
.nav-inner.light:not(.scrolled) .nav-link.active {
  color: var(--black); background: rgba(0,0,0,0.05);
}
.nav-inner.scrolled .nav-link {
  font-size: var(--text-sm); padding: 5px 12px;
  color: rgba(255,255,255,0.75);
}
.nav-inner.scrolled .nav-link:hover,
.nav-inner.scrolled .nav-link.active {
  color: #fff; background: rgba(255,255,255,0.1);
}

/* Dropdown */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #fff; border: 1px solid var(--surface-3);
  border-radius: var(--br-md); box-shadow: var(--shadow-lg);
  min-width: 220px; padding: 6px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.nav-dropdown::before {
  content: ''; position: absolute;
  top: -10px; left: 0; right: 0; height: 10px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1; pointer-events: all; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block; padding: 10px 14px;
  font-size: var(--text-sm); font-weight: 500; color: var(--black);
  text-decoration: none; border-radius: 6px 0 6px 0;
  transition: background 150ms, color 150ms;
}
.nav-dropdown a:hover { background: var(--surface-2); color: var(--black); }
.nav-dropdown a .dd-label {
  font-size: var(--text-xs); color: var(--ink-40); font-weight: 400;
  display: block; margin-top: 1px;
}

.nav-cta {
  font-size: var(--text-base); font-weight: 600;
  background: var(--orange); color: #fff; border: none; cursor: pointer;
  padding: 9px 22px; border-radius: var(--br-md);
  margin-left: 8px; transition: all 350ms var(--ease);
}
.nav-cta:hover { background: var(--orange-dark); }
.nav-cta:active { transform: scale(0.97); }
.nav-inner.scrolled .nav-cta {
  font-size: var(--text-base); padding: 7px 18px; border-radius: 999px; margin-left: 4px;
}

/* ── Hero (dark) ─────────────────────────────────────────── */
.hero {
  background: var(--black);
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 100px;
  position: relative; overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='46.19'%3E%3Cpath d='M0 23.1L40 0L80 23.1L40 46.19Z' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 80px 46.19px;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 50%, black 20%, transparent 100%);
  opacity: 0.5;
}
.hero-glow { display: none; }
/* Two-column hero layout */
.hero-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}
.hero-content {
  position: relative; z-index: 2;
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.hero-content.visible { opacity: 1; transform: translateY(0); }

/* Right column: Lottie animation */
.hero-visual {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-lottie-wrap {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.hero-lottie-wrap lottie-player {
  display: block;
  width: 100%;
  transform: scale(2.3);
  transform-origin: center center;
}

.hero-location {
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
  opacity: 0; transition: opacity 600ms 100ms ease;
}
.hero-location.visible { opacity: 1; }
.hero-location::before {
  content: ''; display: block; width: 20px; height: 1px;
  background: rgba(242,245,247,0.2);
}
.hero-location span {
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(242,245,247,0.35);
}

.hero-headline {
  font-size: var(--text-hero);
  line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 28px;
  color: #f2f5f7;
}
.hero-headline .light { font-weight: 400; }
.hero-headline .heavy { font-weight: 800; }
.hero-headline .accent { font-weight: 800; color: var(--orange); }

.hero-sub {
  font-size: var(--text-lead); font-weight: 400; line-height: 1.7;
  color: rgba(242,245,247,0.5); margin-bottom: 44px;
  max-width: 460px; letter-spacing: 0.01em;
  text-align: justify; text-align-last: left;
  hyphens: auto; -webkit-hyphens: auto;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero-stats {
  display: flex; gap: 40px; margin-top: 56px;
  padding-top: 32px; border-top: 1px solid rgba(242,245,247,0.06);
}
.hero-stat-num {
  font-size: 26px; font-weight: 700; color: #f2f5f7;
  line-height: 1; letter-spacing: -0.01em;
}
.hero-stat-label {
  font-size: var(--text-xs); color: rgba(242,245,247,0.3);
  margin-top: 5px; letter-spacing: 0.03em;
}

/* ── Hero bottom variants ─────────────────────────────── */
.hero-trust-pills,
.hero-testimonial { display: none; }

.hero-trust-pills.active,
.hero-testimonial.active { display: flex; }

.hero-trust-pills {
  flex-wrap: wrap; gap: 8px;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(242,245,247,0.06);
}
.hero-trust-pills span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: 500;
  color: rgba(242,245,247,0.45);
  letter-spacing: 0.02em;
}

.hero-testimonial {
  flex-direction: column; gap: 10px;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(242,245,247,0.06);
}
.hero-testimonial p {
  font-size: var(--text-sm); font-style: italic;
  color: rgba(242,245,247,0.55);
  line-height: 1.6; margin: 0;
}
.hero-testimonial-author {
  font-size: var(--text-xs); color: rgba(242,245,247,0.5);
  letter-spacing: 0.02em;
}

/* ── Section headers ─────────────────────────────────────── */
.section-header { margin-bottom: 52px; }
.section-header h2 {
  font-size: var(--text-section);
  line-height: 1.1; letter-spacing: -0.03em;
  margin-top: 14px;
}
.section-header h2 .light { font-weight: 400; }
.section-header h2 .heavy { font-weight: 800; }
.section-header p {
  font-size: var(--text-base); line-height: 1.7; color: var(--ink-40);
  margin-top: 12px; max-width: 340px;
}

.section-header-row {
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 20px;
}

/* ── Service Cards ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.service-card {
  background: #fff; border: 1px solid var(--surface-3);
  border-radius: var(--br-md); padding: 28px 24px 24px;
  position: relative; overflow: hidden;
  transition: transform 240ms var(--ease), box-shadow 240ms, border-color 200ms;
  cursor: pointer; text-decoration: none; color: inherit; display: block;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: transparent; border-radius: 10px 0 0 0;
  transition: background 200ms;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c8cdd2; }
.service-card:hover::before { background: var(--orange); }

.service-card-icon { width: 48px; height: 48px; margin-bottom: 20px; display: block; }
.service-card h3 { font-size: var(--text-card); font-weight: 700; line-height: 1.2; margin-bottom: 10px; letter-spacing: -0.02em; }
.service-card .service-overline {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(0,0,0,0.3); margin-bottom: 12px;
}
.service-card p { font-size: var(--text-base); line-height: 1.65; color: #666; margin-bottom: 20px; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.service-card li {
  font-size: var(--text-sm); color: #888;
  display: flex; align-items: center; gap: 8px;
}
.service-card li svg { flex-shrink: 0; opacity: 0.35; }
.service-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: var(--text-sm); font-weight: 600;
  color: var(--orange); transition: gap 200ms var(--ease);
}
.service-card:hover .service-card-link { gap: 10px; }

/* ── Tech stack band ─────────────────────────────────────── */
.tech-stack {
  display: flex; align-items: center; gap: 24px;
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--surface-3);
  flex-wrap: wrap;
}
.tech-stack-group {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.tech-stack-label {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-20);
  white-space: nowrap;
}
.tech-stack-divider {
  width: 1px; height: 20px;
  background: var(--surface-3); flex-shrink: 0;
}
.tech-stack-items {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.tech-icon { height: 18px; width: auto; opacity: 0.4; }
.tech-text-badge {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em;
  color: #aaaaaa;
}

/* ── Cases ───────────────────────────────────────────────── */
.cases-grid { display: flex; flex-direction: column; gap: 24px; }

.case-card {
  background: var(--surface-1); border-radius: var(--br-lg);
  overflow: hidden; position: relative;
  box-shadow: var(--shadow-md);
  transition: box-shadow 300ms var(--ease);
}
.case-card:hover { box-shadow: var(--shadow-lg); }

.case-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  min-height: 300px;
}
.case-inner.reverse { direction: rtl; }
.case-inner.reverse > * { direction: ltr; }

/* Compact variant: used on the Leistungen pages, where the reference
   image should read smaller/less dominant than the default half-card size. */
.cases-grid--compact .case-inner { grid-template-columns: 1.5fr 1fr; min-height: 280px; }
/* Modifier für einzelne Cases mit größerem Bildanteil, z.B. Geräte-Mockups
   (Laptop + Smartphone), die sonst durch den Zuschnitt angeschnitten würden. */
.cases-grid--compact .case-inner.case-inner--visual-wide { grid-template-columns: 1fr 1.3fr; }
/* Feste Bildbox statt Zeilenhöhe folgen: die Mockups haben unterschiedliche
   Seitenverhältnisse (Laptop+Phone breiter vs. schmaler) — ohne festes
   Verhältnis würde object-fit:contain sie unterschiedlich groß wirken lassen. */
.cases-grid--compact .case-inner--visual-wide .case-visual {
  align-self: center;
  aspect-ratio: 4 / 3;
}

.case-content {
  padding: 52px 48px; display: flex;
  flex-direction: column; justify-content: center;
}
.case-industry {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.case-industry::before {
  content: ''; display: block; width: 12px; height: 1px;
  background: var(--orange);
}
.case-card h3 {
  font-size: var(--text-card); font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 8px; line-height: 1.15;
}
.case-client {
  font-size: var(--text-sm); color: var(--ink-40); margin-bottom: 20px;
}
.case-client-logo {
  height: 28px; width: auto; display: block;
  opacity: 0.6; filter: grayscale(100%);
}
.case-desc { font-size: var(--text-base); line-height: 1.7; color: var(--ink-60); margin-bottom: 28px; text-align: justify; text-align-last: left; hyphens: auto; -webkit-hyphens: auto; }

.case-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.case-stat-num {
  font-size: 30px; font-weight: 800; color: var(--black);
  letter-spacing: -0.03em; line-height: 1;
}
.case-stat-label { font-size: var(--text-xs); color: var(--ink-40); margin-top: 4px; }

.case-quote {
  font-size: var(--text-base); line-height: 1.65; color: var(--ink-60);
  margin-top: 12px;
}

.case-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: var(--text-sm); font-weight: 600;
  color: var(--orange); text-decoration: none;
  transition: gap 200ms var(--ease);
}
.case-card-link:hover { gap: 10px; }

.case-visual {
  background: var(--surface-1); display: flex;
  align-items: center; justify-content: center;
  padding: 0; position: relative; overflow: hidden;
}
.case-visual::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 60% 50%, rgba(246,141,46,0.08) 0%, transparent 70%);
}
.case-visual img:not(.case-visual-photo):not(.case-visual-device) { width: 100%; max-width: 320px; opacity: 0.9; position: relative; z-index: 1; }
.case-visual .case-visual-photo { width: 100%; height: 100%; max-width: none; object-fit: cover; position: absolute; inset: 0; opacity: 1; }
/* Freistehendes Geräte-Mockup mit transparentem Hintergrund:
   einpassen statt beschneiden — cover würde Laptop und Phone anschneiden. */
.case-visual .case-visual-device {
  width: 100%; height: 100%; max-width: none;
  object-fit: contain; padding: 28px;
  position: relative; z-index: 1; opacity: 1;
}

/* Compact variant (Leistungen-Seiten): Bild freigestellt mit Abstand zum
   Kartenrand, angeglichen an das Textpadding auf der Content-Seite — statt
   randlos wie im Standard-Case-Card. */
.cases-grid--compact .case-visual { padding: 52px 48px; }
/* object-fit: contain statt cover — die Bildbox hat je nach Breakpoint/Seite
   ein anderes Seitenverhältnis als die Quellbilder (Foto vs. gekipptes
   Mockup); cover hat dadurch unterschiedlich beschnitten/verzerrt.
   Gleiche Lösung wie bei .case-visual-device (Zeile 693). */
.cases-grid--compact .case-visual-photo {
  position: relative; inset: auto;
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: var(--br-md);
  box-shadow: var(--shadow-sm);
}
.cases-grid--compact .case-visual-device { padding: 16px; }

/* Compact case cards: used on the homepage, where full case detail
   (photo, quote, all stats) lives on the dedicated Leistungen/Branchen pages. */
.case-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-mini-card {
  background: var(--surface-1); border-radius: var(--br-md);
  padding: 36px 32px; box-shadow: var(--shadow-sm);
  transition: box-shadow 300ms var(--ease), transform 300ms var(--ease);
}
.case-mini-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.case-mini-card .case-industry { margin-bottom: 14px; }
.case-mini-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; line-height: 1.25; }
.case-mini-card .case-client { font-size: var(--text-sm); color: var(--ink-40); margin-bottom: 14px; }
.case-mini-card .case-desc { font-size: var(--text-sm); line-height: 1.6; color: var(--ink-60); margin-bottom: 20px; }
.case-mini-visual {
  float: right; width: 38%; max-width: 180px; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: var(--br-md);
  margin: 0 0 16px 20px;
}
.case-mini-stats { display: flex; gap: 24px; margin-bottom: 20px; clear: both; }
.case-mini-stats .case-stat-num { font-size: 22px; }
.case-mini-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (max-width: 860px) {
  .case-mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .case-mini-visual { float: none; width: 100%; max-width: none; margin: 0 0 16px; }
}

/* ── Branchen teaser (homepage) ──────────────────────────── */
.branchen-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.branchen-tile {
  position: relative; overflow: hidden; display: block;
  background: #fff; border: 1px solid var(--surface-3);
  border-radius: var(--br-md); padding: 22px; min-height: 160px;
  text-decoration: none; color: var(--black);
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}
.branchen-tile:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.branchen-tile-name {
  position: relative; z-index: 1; display: block; max-width: 60%;
  font-size: var(--text-lead); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em;
}
.branchen-tile-desc {
  position: relative; z-index: 1; display: block; max-width: 60%;
  margin-top: 8px; font-size: var(--text-sm); line-height: 1.5; color: var(--ink-60);
}
.branchen-tile-icon {
  position: absolute; right: 10px; bottom: 6px;
  width: 80px; height: 80px; object-fit: contain; opacity: 0.9;
}
@media (max-width: 640px) {
  .branchen-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .branchen-tiles { grid-template-columns: 1fr; }
}

/* ── Process ─────────────────────────────────────────────── */
.process-grid {
  display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: center;
}
.process-steps { display: flex; flex-direction: column; }
.process-step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 16px; border-bottom: 1px solid var(--surface-3);
  border-radius: 0; background: transparent;
  transition: background 200ms; cursor: default;
}
.process-step:last-child { border-bottom: none; }
.process-step:hover { background: #fff; border-radius: 8px 0 8px 0; }
.process-step:hover .step-num { color: var(--orange); }


.step-num {
  font-size: var(--text-sm); font-weight: 700; color: rgba(0,0,0,0.18);
  letter-spacing: 0.05em; min-width: 28px; padding-top: 3px;
  transition: color 200ms;
}
.step-body { flex: 1; }
.step-title { font-size: var(--text-base); font-weight: 600; color: var(--black); margin-bottom: 4px; }
.step-desc { font-size: var(--text-base); line-height: 1.65; color: var(--ink-40); }


/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  background: var(--black); padding: 80px 0;
}
.cta-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 60px; flex-wrap: wrap;
}
.cta-banner h2 {
  font-size: var(--text-section);
  color: #f2f5f7; margin: 14px 0 12px;
  line-height: 1.08;
}
.cta-banner h2 .light { font-weight: 400; }
.cta-banner h2 .heavy { font-weight: 800; }
.cta-banner h2 .accent { color: var(--orange); font-weight: 800; }
.cta-banner p { font-size: var(--text-base); line-height: 1.7; color: rgba(242,245,247,0.45); }
.cta-banner-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* Boxed variant: CTA as a contained card instead of a full-bleed band
   (used on /branchen/ pages, placed above the FAQ). */
.cta-banner--boxed {
  border-radius: var(--br-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 640px) {
  .cta-banner--boxed { padding: 40px 24px; }
}

/* ── About preview ───────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
/* ── Team ────────────────────────────────────────────────── */
.team-group-photo {
  aspect-ratio: 16 / 7; background: var(--surface-2); border-radius: var(--br-lg);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-40);
}
.team-group-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-group-photo--compact { aspect-ratio: 4 / 3; }
.team-group-caption { margin-top: 14px; font-size: var(--text-sm); color: var(--ink-40); }

.team-members { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; margin-top: 32px; }
.team-member-photo {
  aspect-ratio: 1 / 1; margin-bottom: 18px; overflow: hidden;
  background: var(--surface-2); border-radius: var(--br-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-20);
}
.team-member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.team-member-name { font-size: var(--text-lead); font-weight: 700; letter-spacing: -0.01em; }
.team-member-role {
  margin: 4px 0 10px; font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-40);
}
.team-member-focus { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.team-member-focus li {
  font-size: var(--text-xs); font-weight: 600; color: var(--ink-60);
  padding: 3px 10px; border: 1px solid var(--ink-20); border-radius: 10px 0 10px 0;
}
.team-members--compact .team-member-photo { margin-bottom: 10px; }
.team-members--compact { margin-top: 0; gap: 20px 12px; }
.team-members--compact .team-member-name { font-size: var(--text-sm); }
/* Team-Cluster (Startseite): kompakt, überlappend, leicht gekippt, ohne Namen */
.team-collage { position: relative; width: 100%; max-width: 520px; margin-left: auto; aspect-ratio: 520 / 320; }
.team-collage-item {
  position: absolute; width: 31%; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--surface-2); border: 4px solid #fff; border-radius: 10px 0 10px 0;
  box-shadow: 0 8px 24px rgba(13,13,13,.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: var(--ink-20);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.team-collage-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.team-collage-item:nth-child(1) { left: 0;   top: 22%; --tilt: -3deg;  z-index: 1; }
.team-collage-item:nth-child(2) { left: 23%; top: 0;   --tilt: 2deg;   z-index: 2; }
.team-collage-item:nth-child(3) { left: 46%; top: 28%; --tilt: -2deg;  z-index: 3; }
.team-collage-item:nth-child(4) { left: 69%; top: 4%;  --tilt: 3deg;   z-index: 4; }
.team-collage-item:hover { transform: rotate(0deg) scale(1.05); z-index: 5; box-shadow: 0 14px 34px rgba(13,13,13,.22); }

/* Variante mit 6 Kacheln: Team + Logo + Leipzig (Ziegelmuster in zwei Reihen) */
.team-collage--wide { aspect-ratio: 520 / 372; }
.team-collage--wide .team-collage-item { width: 29%; }
.team-collage--wide .team-collage-item:nth-child(1) { left: 0;   top: 5%;  }
.team-collage--wide .team-collage-item:nth-child(2) { left: 33%; top: 0;   }
.team-collage--wide .team-collage-item:nth-child(5) { left: 66%; top: 7%;  --tilt: -2.5deg; }
.team-collage--wide .team-collage-item:nth-child(6) { left: 6%;  top: 49%; --tilt: 2deg; }
.team-collage--wide .team-collage-item:nth-child(3) { left: 38%; top: 52%; }
.team-collage--wide .team-collage-item:nth-child(4) { left: 70%; top: 46%; }
.team-collage-item--logo {
  position: relative; background: var(--black);
  background-image:
    radial-gradient(ellipse at 82% 12%, rgba(246,141,46,.16), transparent 52%),
    radial-gradient(ellipse at 8% 95%, rgba(255,255,255,.07), transparent 55%);
}
.team-collage-item--logo::before { /* weicher, organischer Fleck */
  content: ""; position: absolute; width: 85%; height: 75%; left: -18%; bottom: -22%;
  background: rgba(255,255,255,.05); border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; transform: rotate(-14deg);
}
.team-collage-item--logo img { position: relative; width: 72%; height: auto; object-fit: contain; }
.team-collage-item--city { background: var(--surface-1); color: var(--ink-60); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }

.team-member-bio { font-size: var(--text-sm); line-height: 1.6; color: var(--ink-60); }

.values-list { display: flex; flex-direction: column; gap: 24px; }
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0; margin-top: 7px;
}
.value-title { font-size: var(--text-base); font-weight: 600; margin-bottom: 4px; }
.value-desc { font-size: var(--text-base); line-height: 1.65; color: var(--ink-60); }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px;
  align-items: stretch;
}
.testimonial-card {
  background: #fff; border: 1px solid var(--surface-3);
  border-radius: var(--br-md); padding: 24px;
  transition: box-shadow 240ms;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }

/* ── Testimonial-Wall: 3 Spalten ─────────────────────────── */
.testimonials-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.testimonials-wall-col { display: flex; flex-direction: column; gap: 16px; }
.testimonials-wall .testimonial-card { height: auto; }
@media (max-width: 900px) { .testimonials-wall { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .testimonials-wall { grid-template-columns: 1fr; } }
.testimonial-quote {
  font-size: var(--text-base); line-height: 1.7; color: var(--ink-60);
  font-style: italic; margin: 0;
  flex: 1 1 auto;
  min-height: 0;
}
/* Kernaussage leicht betont — 600 statt 700, damit es beim Überfliegen
   hängen bleibt, ohne den Rest des Zitats zu entwerten. */
.testimonial-quote strong { font-weight: 600; color: var(--black); }
.testimonial-footer {
  flex-shrink: 0;
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-radius: var(--br-sm);
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-brand {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--surface-3);
  background: var(--surface-1);
}
.testimonial-brand[src$=".svg"] {
  object-fit: contain;
  padding: 6px;
}
.testimonial-author { font-size: var(--text-sm); font-weight: 600; color: var(--black); }
.testimonial-role { font-size: var(--text-xs); color: var(--ink-40); margin-top: 2px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--black); border-top: 1px solid var(--dark-2);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-logo { height: 72px; display: block; margin-bottom: 20px; }
.footer-tagline {
  font-size: var(--text-sm); line-height: 1.65; color: rgba(242,245,247,0.4);
  margin-bottom: 20px; max-width: 220px;
}
.footer-location {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(242,245,247,0.22);
}
.footer-col-title {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: var(--text-sm); color: rgba(242,245,247,0.4);
  text-decoration: none; transition: color 150ms;
}
.footer-col a:hover { color: #f2f5f7; }
.footer-bottom {
  border-top: 1px solid var(--dark-2); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: var(--text-xs); color: rgba(242,245,247,0.22); }
.footer-legal { display: flex; gap: 20px; }
/* Rechtliche Links (Impressum, Datenschutz, Cookie-Einstellungen) müssen gut lesbar sein: 4,9:1 statt 1,9:1. */
.footer-legal a {
  font-size: var(--text-xs); color: rgba(242,245,247,0.5);
  text-decoration: none; transition: color 150ms;
}
.footer-legal a:hover { color: rgba(242,245,247,0.85); }
.footer-legal button {
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
  font-size: var(--text-xs); color: rgba(242,245,247,0.5); transition: color 150ms;
}
.footer-legal button:hover { color: rgba(242,245,247,0.85); }

/* ── Contact Modal ───────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(13,13,13,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 300ms var(--ease);
}
.modal-overlay.open {
  opacity: 1; pointer-events: all; visibility: visible;
}
.modal {
  background: #fff; border-radius: var(--br-lg);
  width: 100%; max-width: 560px; padding: 40px;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 300ms var(--spring);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--surface-2); border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms;
}
.modal-close:hover { background: var(--surface-3); }
.modal h2 { font-size: 28px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.03em; }
.modal .modal-sub { font-size: var(--text-base); color: var(--ink-60); margin-bottom: 28px; }

.form-row { display: flex; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 4px; flex: 1; margin-bottom: 14px; }
.form-group label { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.03em; }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit; font-size: 16px;
  padding: 10px 12px; border: 1.5px solid var(--surface-3);
  border-radius: var(--br-sm); outline: none; color: var(--black);
  background: #fff; transition: border-color 200ms;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ── Subpage hero (light) ────────────────────────────────── */
.page-hero {
  background: var(--black); padding: 140px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px); font-weight: 800;
  color: #f2f5f7; margin: 16px 0 20px;
}
.page-hero h1 .light { font-weight: 400; }
.page-hero h1 .accent { color: var(--orange); font-weight: 800; }
.page-hero p { font-size: var(--text-lead); line-height: 1.7; color: rgba(242,245,247,0.5); max-width: 520px; text-align: justify; text-align-last: left; hyphens: auto; -webkit-hyphens: auto; }

/* ── Feature list (service subpages) ─────────────────────── */
/* Fest auf 3 Spalten statt auto-fit — bei 6 Karten passten bislang
   4 in eine Reihe, was die letzten zwei unschön absetzte. */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--surface-1); border: 1px solid var(--surface-3);
  border-radius: var(--br-md); padding: 28px 24px;
  transition: box-shadow 240ms var(--ease), transform 240ms var(--ease);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card .feature-icon { width: 40px; height: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: var(--text-lead); font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: var(--text-base); line-height: 1.65; color: var(--ink-60); text-align: justify; text-align-last: left; hyphens: auto; -webkit-hyphens: auto; }

/* ── Leistungsumfang: Akkordeon ──────────────────────────── */
/* Boxen liegen untereinander, nur eine ist offen. Trennt
   Projektphasen (nummeriert) von laufenden Leistungen. */
.scope-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.scope-col {
  background: #fff; border: 1px solid var(--surface-3);
  border-radius: var(--br-lg); padding: 0; overflow: hidden;
}
.scope-col-head {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 24px 28px; margin: 0; border: 0;
  background: none; font: inherit; color: inherit; text-align: left;
  cursor: pointer; transition: background 200ms var(--ease);
}
.scope-col-head:hover { background: rgba(0,0,0,0.02); }
.scope-col-head h3 { flex: 1; font-size: var(--text-lead); font-weight: 700; letter-spacing: -0.01em; }
.scope-chevron {
  flex-shrink: 0; width: 20px; height: 20px;
  color: var(--orange); transition: transform 260ms var(--ease);
}
.scope-col-head[aria-expanded="true"] .scope-chevron { transform: rotate(180deg); }
.scope-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease);
}
.scope-col-head[aria-expanded="true"] + .scope-panel { grid-template-rows: 1fr; }
.scope-panel > div { overflow: hidden; min-height: 0; }
.scope-panel-inner { padding: 4px 28px 32px; }
.scope-label {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-40); margin-bottom: 18px;
}
.scope-steps, .scope-services { list-style: none; }
.scope-steps { counter-reset: scope; margin-bottom: 30px; }
.scope-steps li, .scope-services li { position: relative; padding-left: 40px; margin-bottom: 18px; }
.scope-steps li:last-child, .scope-services li:last-child { margin-bottom: 0; }
.scope-steps li { counter-increment: scope; }
.scope-steps li::before {
  content: counter(scope); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: var(--br-md);
  background: var(--surface-2); color: var(--ink-40);
  font-size: var(--text-xs); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
/* Orange nur hier: markiert die laufende Betreuung als das,
   was uns von einer reinen Projektagentur unterscheidet. */
.scope-services li::before {
  content: ""; position: absolute; left: 6px; top: 9px;
  width: 14px; height: 2px; background: var(--orange);
}
.scope-steps strong, .scope-services strong {
  display: block; font-size: var(--text-base); font-weight: 700;
  color: var(--black); margin-bottom: 3px;
}
.scope-steps span, .scope-services span {
  display: block; font-size: var(--text-base); line-height: 1.6; color: var(--ink-60);
}
.scope-divider { border-top: 1px solid var(--surface-3); padding-top: 26px; }
@media (prefers-reduced-motion: reduce) {
  .scope-panel, .scope-chevron { transition: none; }
}

/* Icon-Chip: hält die Icons auf hellem Grund klar abgesetzt
   (die SVGs enthalten #0d0d0d-Flächen). */
.icon-chip {
  background: var(--surface-2); border-radius: var(--br-md);
  padding: 8px; width: 48px; height: 48px;
}

/* ── Hauptangebot dezent hervorheben ─────────────────────── */
/* Nutzt die vorhandene 2px-Leiste, die sonst nur beim Hover
   erscheint — ein Akzent, kein zweites Farbsystem. */
.service-card--featured::before { background: var(--orange); }
.service-card--featured { border-color: #d8dde2; box-shadow: var(--shadow-sm); }

/* ── Website-Check: mehrstufiges Formular ────────────────── */
.check-form {
  background: #fff; border: 1px solid var(--surface-3);
  border-radius: var(--br-lg); padding: 36px 40px 32px;
  max-width: 780px; margin: 0 auto;
}
.check-progress { height: 3px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
/* Breite setzt das JS — die Schrittzahl ist variabel, weil Schritt 3
   entfällt, wenn noch keine Website existiert. */
.check-progress-bar {
  height: 100%; width: 20%; background: var(--orange);
  border-radius: 999px; transition: width 380ms var(--ease);
}
.check-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 14px 0 26px;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-40);
}
.check-step { display: none; border: 0; padding: 0; margin: 0; }
.check-step.is-active { display: block; animation: check-step-in 320ms var(--ease); }
@keyframes check-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.check-question {
  font-size: clamp(20px, 2.2vw, 26px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.25; padding: 0; margin-bottom: 6px;
}
.check-hint { font-size: var(--text-base); color: var(--ink-40); margin-bottom: 22px; }
.check-options { display: grid; gap: 10px; }
.check-options--chips { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Optionskarte: Input bleibt fokussierbar, nur visuell ersetzt. */
.check-option { position: relative; display: block; cursor: pointer; }
.check-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-option-body {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: #fff;
  border: 1px solid var(--surface-3); border-radius: var(--br-md);
  transition: border-color 180ms, background 180ms, transform 180ms var(--ease);
  height: 100%;
}
/* Icon-Kachel links; färbt sich bei Auswahl orange ein. */
.check-option-icon {
  flex-shrink: 0; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-radius: var(--br-sm);
  color: var(--ink-40);
  transition: background 180ms, color 180ms;
}
.check-option input:checked + .check-option-body .check-option-icon {
  background: var(--orange); color: #fff;
}
.check-option-text { flex: 1; min-width: 0; }
.check-option:hover .check-option-body { border-color: #c8cdd2; transform: translateY(-1px); }
.check-option input:focus-visible + .check-option-body { outline: 2px solid var(--orange); outline-offset: 2px; }
.check-option input:checked + .check-option-body { border-color: var(--orange); background: rgba(246,141,46,0.06); }
/* Kreis fuer Einfach-, abgeflachtes Quadrat fuer Mehrfachauswahl.
   Sitzt rechts — Icon links, Auswahlzustand rechts. */
.check-mark {
  flex-shrink: 0; margin-left: auto; width: 22px; height: 22px;
  border: 1.5px solid var(--surface-3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 180ms, background 180ms;
}
.check-option input[type="checkbox"] + .check-option-body .check-mark { border-radius: 6px 0 6px 0; }
.check-mark svg { opacity: 0; transform: scale(0.6); transition: opacity 160ms, transform 160ms var(--ease); }
.check-option input:checked + .check-option-body .check-mark { border-color: var(--orange); background: var(--orange); }
.check-option input:checked + .check-option-body .check-mark svg { opacity: 1; transform: scale(1); }
.check-option-title { font-size: var(--text-base); font-weight: 600; line-height: 1.35; }
.check-option-sub { display: block; font-size: var(--text-sm); color: var(--ink-40); margin-top: 2px; }

.check-fields { display: grid; gap: 14px; }
/* Zweite Frage innerhalb eines Schrittes optisch absetzen. */
.check-subgroup { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--surface-3); }
.check-sublabel {
  font-size: var(--text-base); font-weight: 700; margin-bottom: 4px;
}
.check-subhint { font-size: var(--text-sm); color: var(--ink-40); margin-bottom: 14px; }
.check-options--compact { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.check-options--compact .check-option-body { padding: 12px 14px; gap: 10px; }
.check-options--compact .check-option-icon { width: 30px; height: 30px; }
.check-options--compact .check-option-title { font-size: var(--text-sm); }
.check-options--compact .check-mark { width: 18px; height: 18px; }
.check-optional { font-weight: 400; color: var(--ink-40); }
.check-nav {
  display: flex; align-items: center; gap: 12px;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--surface-3);
}
.check-nav .check-spacer { margin-left: auto; }
/* Globaler Button-Hover schiebt SVGs nach rechts — beim Zurück-Pfeil umkehren. */
.check-nav [data-check-back]:hover svg { transform: translateX(-3px); }
.check-form.is-first [data-check-back] { visibility: hidden; }
.check-form:not(.is-last) [data-check-submit] { display: none; }
.check-form.is-last [data-check-next] { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.check-error { font-size: var(--text-sm); color: #c0392b; margin-top: 12px; display: none; }
.check-error.visible { display: block; }
.check-success { text-align: center; padding: 28px 0; }
.check-success-mark {
  width: 52px; height: 52px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
/* ── Score-Ergebnis (Digitalisierungscheck etc.) ──────────── */
.check-result { text-align: center; padding: 12px 0 4px; }
.check-score { position: relative; width: 120px; height: 120px; margin: 0 auto 20px; }
.check-score svg circle:last-child { transition: stroke-dashoffset 700ms var(--ease); }
.check-score-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--black);
}
.check-result-title { font-size: clamp(20px, 2.2vw, 24px); font-weight: 800; margin-bottom: 10px; }
.check-result-text {
  font-size: var(--text-base); line-height: 1.7; color: var(--ink-60);
  max-width: 440px; margin: 0 auto 24px;
}
@media (max-width: 768px) {
  .check-form { padding: 26px 22px 24px; }
  .check-nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .check-form[data-step] .check-step { animation: none; }
  .check-progress-bar, .check-option-body, .check-mark svg { transition: none; }
}

/* ── FAQ-Akkordeon ────────────────────────────────────────── */
/* Anders als das Website-Check-Akkordeon (nur eine Box offen):
   hier bleibt jede Frage unabhängig, mehrere können offen sein. */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
/* Wide variant: stretches across the container, questions in two columns
   (used on /branchen/ pages, which have fewer but longer-answer FAQs). */
.faq-list--wide {
  max-width: none; margin: 0; display: grid;
  grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto);
  grid-auto-flow: column; gap: 10px 24px; align-items: start;
}
/* Uniform collapsed height: sized for the longest (two-line) question,
   shorter ones center inside it instead of leaving mismatched frames. */
.faq-list--wide .faq-question { min-height: 86px; }
@media (max-width: 768px) {
  .faq-list--wide { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; gap: 10px; }
}
.faq-item {
  background: #fff; border: 1px solid var(--surface-3);
  border-radius: var(--br-md); overflow: hidden;
}
.faq-question {
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 20px 24px; margin: 0; border: 0;
  background: none; font: inherit; color: inherit; text-align: left;
  cursor: pointer; transition: background 180ms var(--ease);
}
.faq-question:hover { background: rgba(0,0,0,0.02); }
.faq-question-text { flex: 1; font-size: var(--text-base); font-weight: 700; }
.faq-chevron {
  flex-shrink: 0; width: 18px; height: 18px;
  color: var(--orange); transition: transform 240ms var(--ease);
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 300ms var(--ease);
}
.faq-question[aria-expanded="true"] + .faq-panel { grid-template-rows: 1fr; }
.faq-panel > div { overflow: hidden; min-height: 0; }
.faq-answer {
  padding: 0 24px 22px; font-size: var(--text-base);
  line-height: 1.7; color: var(--ink-60);
  text-align: justify; text-align-last: left;
  hyphens: auto; -webkit-hyphens: auto;
}
@media (prefers-reduced-motion: reduce) {
  .faq-panel, .faq-chevron { transition: none; }
}

/* ── Jobs ────────────────────────────────────────────────── */
.job-card {
  background: #fff; border: 1px solid var(--surface-3);
  border-radius: var(--br-lg); padding: 32px;
  transition: box-shadow 240ms;
}
.job-card:hover { box-shadow: var(--shadow-md); }
.job-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.job-tag {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-40);
  background: var(--surface-2); padding: 4px 10px;
  border-radius: 999px;
}
.job-tag.orange { background: rgba(246,141,46,0.1); color: var(--orange); }
.job-card h3 { font-size: var(--text-card); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.job-card h3 a { color: inherit; text-decoration: none; }
.job-card h3 a:hover { color: var(--orange); }
.job-card p { font-size: var(--text-base); line-height: 1.7; color: var(--ink-60); margin-bottom: 20px; }
.job-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.job-card li { font-size: var(--text-base); color: var(--ink-60); display: flex; gap: 10px; }
.job-card li::before { content: '—'; color: var(--orange); flex-shrink: 0; }

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ── Mobile Nav Hamburger ─────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: transparent; border: none; cursor: pointer;
  padding: 8px; margin-left: 8px; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(242,245,247,0.85); border-radius: 2px;
  transition: transform 320ms var(--ease), opacity 320ms var(--ease), width 320ms var(--ease);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-inner.light:not(.scrolled) .nav-hamburger span { background: rgba(13,13,13,0.7); }

/* ── Mobile menu body (inside nav-inner, hidden by default) ── */
.mobile-menu-body { display: none; }

/* ── Mobile menu content styles ──────────────────────────── */
.mobile-menu-links {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.mobile-menu-label {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange);
  padding: 20px 4px 6px; display: block;
}
.mobile-menu-label:first-child { padding-top: 0; }
.mobile-menu-links a {
  font-size: var(--text-lead); font-weight: 400;
  color: rgba(242,245,247,0.55); text-decoration: none;
  padding: 12px 4px; display: block;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 200ms;
}
.mobile-menu-links a:last-child { border-bottom: none; }
.mobile-menu-links a:hover { color: #f2f5f7; }
.mobile-menu-links a.mobile-menu-main {
  font-size: var(--text-lead); font-weight: 500;
  color: rgba(242,245,247,0.75);
}
.mobile-menu-cta { padding-top: 24px; }
.mobile-menu-cta .btn { width: 100%; justify-content: center; }

/* ── Rechtstexte (Inhalt 1:1, Typografie wie restliche Site) ─ */
.legal-page .legal-hero {
  background: var(--surface-1);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.legal-page .legal-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.legal-page .legal-hero .legal-hero-lead {
  font-size: var(--text-lead);
  line-height: 1.7;
  color: var(--ink-60);
  max-width: 520px;
}
.legal-page .legal-body {
  background: #fff;
  padding: var(--section-v) 0 120px;
}
.legal-page .legal-prose {
  max-width: 720px;
  margin: 0 auto;
}
.legal-page .legal-prose h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--black);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal-page .legal-prose h2:first-child {
  margin-top: 0;
}
.legal-page .legal-prose h3 {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--black);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.legal-page .legal-prose h4 {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.35;
  color: var(--black);
  margin-top: 1.35rem;
  margin-bottom: 0.45rem;
}
.legal-page .legal-prose p {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--ink-60);
  margin-bottom: 1rem;
}
.legal-page .legal-prose ul,
.legal-page .legal-prose ol {
  margin: 0 0 1.1rem 1.15rem;
  padding-left: 0.35rem;
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--ink-60);
}
.legal-page .legal-prose li {
  margin-bottom: 0.4rem;
}
.legal-page .legal-prose a {
  color: var(--orange-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.legal-page .legal-prose a:hover {
  color: var(--orange);
}
.legal-page .legal-prose strong {
  font-weight: 700;
  color: var(--black);
}
@media (max-width: 768px) {
  .legal-page .legal-hero { padding: 120px 0 64px; }
  .legal-page .legal-body { padding: 64px 0 80px; }
}

/* ── Landingpage /demo/ (Hotelakquise) ───────────────────── */
/* Schlanke Nav ohne Menü: nur Logo + Anruf (Pillar 5: keine Ablenkung). */
.nav-inner--landing { justify-content: space-between; }
.nav-landing-cta {
  font-size: var(--text-sm); font-weight: 600; text-decoration: none;
  color: #fff; background: var(--orange);
  padding: 8px 18px; border-radius: 999px;
  transition: background 200ms var(--ease);
}
.nav-landing-cta:hover { background: var(--orange-dark); }

.demo-hero { padding: 108px 0 72px; }
.demo-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.demo-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.demo-btn-call { padding: 14px 28px; }
.demo-btn-block { width: 100%; justify-content: center; }
.demo-hero-proof {
  display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px;
  font-size: var(--text-sm); color: rgba(242,245,247,0.45);
}
.demo-hero-proof-num { font-weight: 800; color: #f2f5f7; margin-right: 4px; }

.demo-video video {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  background: var(--dark-2); border-radius: var(--br-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.demo-video figcaption {
  text-align: center;
  margin-top: 12px; font-size: var(--text-xs); line-height: 1.5;
  color: rgba(242,245,247,0.35);
}

/* Live-Demo-Karte im Hero: die Probe soll das Erste sein, was man sieht */
.demo-live {
  position: relative; scroll-margin-top: 96px;
  background: var(--dark-2); color: #f2f5f7;
  border: 1px solid var(--dark-4); border-radius: var(--br-lg);
  padding: 24px 28px; box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.demo-live.is-flash { animation: demo-live-flash 1.2s var(--ease); }
@keyframes demo-live-flash {
  0%, 100% { border-color: var(--dark-4); }
  30% { border-color: var(--orange); box-shadow: 0 0 0 6px var(--orange-glow), 0 24px 60px rgba(0,0,0,0.45); }
}
.demo-live-head {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(242,245,247,0.5);
}
.demo-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #3ecf6e;
  box-shadow: 0 0 0 0 rgba(62,207,110,0.6); animation: demo-live-dot 2s infinite;
}
@keyframes demo-live-dot { 70% { box-shadow: 0 0 0 8px rgba(62,207,110,0); } 100% { box-shadow: 0 0 0 0 rgba(62,207,110,0); } }
.demo-live-title {
  font-size: clamp(20px, 1.8vw, 24px); font-weight: 800; letter-spacing: -0.03em;
  margin: 10px 0 4px; color: #f2f5f7;
}
.demo-hero .demo-live-sub { font-size: var(--text-sm); line-height: 1.6; color: rgba(242,245,247,0.55); }

.demo-live-stage { display: flex; flex-direction: column; align-items: center; padding: 18px 0 14px; }
.demo-live-btn {
  position: relative; width: 80px; height: 80px; border-radius: 50%;
  border: none; cursor: pointer; color: #fff; background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px var(--orange-glow);
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.demo-live-btn:hover { background: var(--orange-dark); transform: scale(1.04); }
.demo-live-btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.demo-live-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--orange); animation: demo-live-ring 2.2s infinite var(--ease);
  pointer-events: none;
}
@keyframes demo-live-ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.55); opacity: 0; } }
.demo-live-ic-end, .demo-live-bars { display: none; }
.demo-live-bars { gap: 4px; align-items: center; height: 30px; }
.demo-live-bars i { display: block; width: 4px; height: 8px; border-radius: 2px; background: #fff; }
.demo-live-status { margin-top: 12px; font-size: var(--text-base); font-weight: 700; color: #f2f5f7; text-align: center; }
.demo-live-meta { margin-top: 4px; font-size: var(--text-xs); color: rgba(242,245,247,0.4); }

/* aktive Zustände: Auflegen-Symbol, Button wird dunkel */
.demo-live[data-state="connecting"] .demo-live-btn,
.demo-live[data-state="listening"] .demo-live-btn,
.demo-live[data-state="speaking"] .demo-live-btn { background: var(--dark-4); box-shadow: none; }
.demo-live[data-state="connecting"] .demo-live-ring { animation-duration: 1s; }
.demo-live[data-state="listening"] .demo-live-ring,
.demo-live[data-state="speaking"] .demo-live-ring,
.demo-live[data-state="unavailable"] .demo-live-ring,
.demo-live[data-state="ended"] .demo-live-ring { display: none; }
.demo-live[data-state="listening"] .demo-live-ic-mic,
.demo-live[data-state="connecting"] .demo-live-ic-mic { display: none; }
.demo-live[data-state="listening"] .demo-live-ic-end,
.demo-live[data-state="connecting"] .demo-live-ic-end { display: block; }
.demo-live[data-state="speaking"] .demo-live-ic-mic { display: none; }
.demo-live[data-state="speaking"] .demo-live-bars { display: flex; }
.demo-live[data-state="speaking"] .demo-live-bars i { animation: demo-live-bar 0.9s infinite ease-in-out; }
.demo-live-bars i:nth-child(2) { animation-delay: -0.6s !important; }
.demo-live-bars i:nth-child(3) { animation-delay: -0.3s !important; }
.demo-live-bars i:nth-child(4) { animation-delay: -0.75s !important; }
.demo-live-bars i:nth-child(5) { animation-delay: -0.45s !important; }
@keyframes demo-live-bar { 0%, 100% { height: 8px; } 50% { height: 28px; } }
.demo-live[data-state="unavailable"] .demo-live-btn { background: var(--dark-4); box-shadow: none; cursor: default; }

.demo-live [hidden] { display: none !important; }
/* .page-hero p würde sonst Schriftgröße, Farbe und Breite der Kartentexte überschreiben */
.demo-hero .demo-live p { max-width: none; }
.demo-live-body { height: 150px; position: relative; }
.demo-live-prompts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--text-xs); color: rgba(242,245,247,0.4); }
.demo-live-chip {
  font-size: var(--text-xs); color: rgba(242,245,247,0.75);
  background: var(--dark-3); border: 1px solid var(--dark-4);
  padding: 6px 10px; border-radius: var(--br-sm);
}
.demo-live-log {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  height: 100%; overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
}
.demo-hero .demo-live-line {
  flex-shrink: 0; font-size: var(--text-sm); line-height: 1.5; color: rgba(242,245,247,0.85);
  padding: 10px 12px; border-radius: var(--br-md); background: var(--dark-3);
  animation: demo-live-in 300ms var(--ease);
}
.demo-live-line.is-user { background: transparent; border: 1px solid var(--dark-4); margin-left: 24px; }
.demo-live-line span {
  display: block; margin-bottom: 2px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242,245,247,0.4);
}
.demo-live-line.is-agent span { color: var(--orange); }
@keyframes demo-live-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.demo-hero .demo-live-fallback p { font-size: var(--text-sm); line-height: 1.6; color: rgba(242,245,247,0.7); margin-bottom: 14px; }
.demo-live-after { margin-top: 12px; }
.demo-hero .demo-live-privacy {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--dark-4);
  font-size: 11px; line-height: 1.55; color: rgba(242,245,247,0.35);
}
.demo-live-privacy a, .demo-live-phone a { color: rgba(242,245,247,0.7); }
.demo-live-phone { margin-top: 10px; font-size: var(--text-sm); color: rgba(242,245,247,0.5); }

@media (prefers-reduced-motion: reduce) {
  .demo-live-ring, .demo-live-dot, .demo-live-bars i { animation: none !important; }
}

.demo-video-section { background: var(--black); padding-top: 24px; }
.demo-video-section .section-header h2 { color: #f2f5f7; }
.demo-video { max-width: 960px; margin: 0 auto; }

.demo-footnote { font-size: var(--text-xs); color: var(--ink-40); margin-top: -12px; }

.demo-apaleo {
  margin-top: 24px; background: #fff; border-radius: var(--br-lg);
  box-shadow: var(--shadow-sm); padding: 40px 48px;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px;
}
.demo-apaleo-head h3 { font-size: var(--text-card); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; }
.demo-apaleo-head p { font-size: var(--text-sm); line-height: 1.65; color: var(--ink-40); }
.demo-apaleo-list {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px;
}
.demo-apaleo-list li {
  font-size: var(--text-base); line-height: 1.55; color: var(--ink-60);
  padding-left: 20px; position: relative;
}
.demo-apaleo-list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 2px 0 2px 0; background: var(--ink-20);
}
.demo-apaleo-list strong { color: var(--black); font-weight: 600; }

.demo-tool {
  font-family: 'JetBrains Mono', monospace; font-size: var(--text-xs); font-weight: 400;
  color: var(--ink-40); background: var(--surface-2);
  padding: 2px 6px; border-radius: 4px; margin-left: 6px; white-space: nowrap;
}

.demo-person { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.demo-person-avatar {
  width: 52px; height: 52px; border-radius: var(--br-md); flex-shrink: 0;
  background: var(--dark-3); color: #f2f5f7;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--text-base);
}
.demo-person-name { font-size: var(--text-base); font-weight: 700; color: #f2f5f7; }
.demo-person-role { font-size: var(--text-sm); color: rgba(242,245,247,0.45); }

.demo-hero h1 { font-size: clamp(34px, 3.8vw, 54px); }
.demo-contact .cta-banner-inner > div:first-child { flex: 1 1 420px; max-width: 620px; }

.demo-sticky { display: none; }

@media (max-width: 1024px) {
  .demo-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .demo-apaleo { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
}
@media (max-width: 768px) {
  .demo-hero { padding: 104px 0 56px; }
  .demo-hero-ctas .btn { width: 100%; justify-content: center; }
  .demo-apaleo-list { grid-template-columns: 1fr; }
  .demo-apaleo { padding: 28px 24px; }
  .demo-live { padding: 24px 20px; }
  .demo-tool { display: none; }
  .demo-ref .case-content { padding: 32px 24px; }
  .demo-ref .case-stats { gap: 24px; }
  /* Anruf bleibt im Daumenbereich; Footer bekommt Platz darunter */
  .demo-sticky {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(13,13,13,0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--dark-4);
    transform: translateY(100%); transition: transform 300ms var(--ease);
  }
  .demo-sticky.is-visible { transform: none; }
  .demo-hero-proof { gap: 20px; }
  .demo-live-body { height: 170px; }
  body:has(.demo-sticky) .site-footer { padding-bottom: 96px; }
  .nav-inner--landing:not(.scrolled) { align-items: center; }
  .nav-inner--landing.scrolled { align-items: center; padding-right: 6px; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: 1fr; gap: 48px; }
  .process-grid .process-illustration { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .team-members { grid-template-columns: repeat(2, 1fr); }
  .case-inner { grid-template-columns: 1fr; }
  .case-inner.reverse { direction: ltr; }
  .case-visual { min-height: 240px; }
  .cases-grid--compact .case-inner { grid-template-columns: 1fr; min-height: auto; }
  .cases-grid--compact .case-inner.case-inner--visual-wide { grid-template-columns: 1fr; }
  .cases-grid--compact .case-visual { padding: 0 48px 40px; min-height: 220px; }
}
@media (max-width: 480px) {
  .team-members { gap: 24px 16px; }
  .team-member-photo { font-size: 32px; }
}
@media (max-width: 768px) {
  :root { --section-v: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-two-col { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { display: none; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  /* ── Mobile nav alignment: flex-start + compensated padding ─ */
  /* 11px = (48px pill - 26px logo) / 2  →  visually centered    */
  .nav-inner.scrolled {
    width: min(560px, calc(100vw - 32px));
    align-items: flex-start;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 15px;
    /* Keep the same visual outer spacing as left/right (16px). */
    margin-top: 16px;
    /* Use the actual rendered value of border-radius: 999px at h:48px.
       At 48px height, 999px caps to 24px vertically — same appearance,
       but now border-radius doesn't change during height animation → no oval */
    border-radius: 24px;
  }
  .nav-inner:not(.scrolled) { padding: 16px 20px; align-items: flex-start; }
  .nav-links, .nav-cta { display: none; }
  /* Hamburger sized to logo height (26px) so both items share
     the same top/bottom position → visually centered in the pill */
  .nav-hamburger {
    display: flex; margin-left: auto;
    width: 40px; height: 40px; padding: 12px; gap: 4px;
  }
  .nav-hamburger span { width: 16px; }

  /* ── Pill expands only in height — width/radius/margin unchanged ── */
  #site-nav.mobile-open { bottom: 0; }

  .nav-inner.mobile-open {
    height: calc(100dvh - 32px); /* 16px top + 16px bottom */
    position: relative;
    overflow: hidden;
    /* border-radius, width, margin-top, padding all inherited from
       .scrolled — nothing changes except height → clean expansion */
  }

  .nav-inner.mobile-open .mobile-menu-body {
    position: absolute;
    top: 48px; left: 0; right: 0; bottom: 0;
    padding: 4px 20px 28px;
    display: flex; flex-direction: column;
    overflow-y: auto;
    animation: mobilemenu-in 280ms var(--ease) 320ms both;
  }

  /* Preserves top alignment during close so logo doesn't
     snap to center while height is still contracting */
  .nav-inner.mobile-closing {
    align-items: flex-start;
    padding-top: 4px;
  }

  @keyframes mobilemenu-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
  /* flex-basis:420px zielt auf die Spaltenbreite im Desktop-Zweispalter;
     in der Column-Richtung auf Mobile wird daraus sonst eine Mindesthöhe
     von 420px und reißt eine Lücke vor den Kontakt-Buttons auf. */
  .demo-contact .cta-banner-inner > div:first-child { flex-basis: auto; max-width: none; }
  .form-row { flex-direction: column; gap: 0; }
}
