/* ============================================================
   WENKE SYSTEMTECHNIK · Design System
   Palette aus Logo-Navy abgeleitet, Stil-Anleihen interractlabs
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

/* ---------- Tokens ---------- */
:root {
  /* Paper / ink */
  --paper:        #F4F1EA;
  --paper-deep:   #E9E5DB;
  --paper-2:      #FBF9F4;
  --ink:          #0A1020;
  --ink-2:        #2A3344;
  --ink-3:        #6C7689;
  --ink-4:        #A6ADBC;
  --line:         rgba(10, 16, 32, 0.10);
  --line-strong:  rgba(10, 16, 32, 0.20);

  /* Brand */
  --brand:        #001B49;  /* aus Logo */
  --brand-hi:     #2A5BB5;  /* heller Akzent */
  --brand-soft:   #E5EBF6;  /* sehr helles Blau für Pills/Backgrounds */

  /* Dark surface (für Hero, CTA-Bänder, Footer) */
  --surface-dark:     #06101F;
  --surface-dark-2:   #0B1A33;
  --paper-on-dark:    #F0EDE5;
  --line-on-dark:     rgba(240, 237, 229, 0.15);
  --line-on-dark-2:   rgba(240, 237, 229, 0.35);
  --ink-on-dark-3:    rgba(240, 237, 229, 0.65);

  /* Fonts */
  --font-display: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --container:   1240px;
  --pad-x:       max(20px, 5vw);
  --section-py:  clamp(72px, 9vw, 128px);
  --section-py-sm: clamp(48px, 6vw, 80px);

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast:      .18s;
  --t-base:      .35s;
  --t-slow:      .8s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Base typography ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
}

@media (min-width: 768px) { body { font-size: 18px; } }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); font-weight: 300; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); font-weight: 300; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.65rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.005em; }

p { text-wrap: pretty; max-width: 68ch; }
p + p { margin-top: 1em; }

strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

/* ---------- Eyebrow label (technisches Mini-Label) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink-3);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--ink-on-dark-3); }
.eyebrow.on-dark::before { background: var(--ink-on-dark-3); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--section-py);
  position: relative;
}
.section--tight { padding-block: var(--section-py-sm); }

.section--dark {
  background: var(--surface-dark);
  color: var(--paper-on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper-on-dark); }
.section--dark p { color: var(--ink-on-dark-3); }

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.section--dark .divider { background: var(--line-on-dark); }

/* Stack helper */
.stack > * + * { margin-top: var(--stack-gap, 1rem); }
.stack-2  { --stack-gap: 0.5rem; }
.stack-4  { --stack-gap: 1rem; }
.stack-6  { --stack-gap: 1.5rem; }
.stack-8  { --stack-gap: 2rem; }
.stack-12 { --stack-gap: 3rem; }

/* Grid helper */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Section header (eyebrow + headline + supporting copy) */
.section-head {
  max-width: 880px;
  margin-bottom: 56px;
  display: grid;
  gap: 18px;
}
.section-head__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  max-width: 64ch;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--paper-on-dark);
  --btn-bd: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out);
}
.btn .btn__arrow {
  width: 18px;
  height: 18px;
  display: inline-block;
  position: relative;
  transition: transform var(--t-base) var(--ease-out);
}
.btn .btn__arrow svg { width: 100%; height: 100%; }
.btn:hover { transform: translateY(-1px); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper-on-dark);
  --btn-bd: var(--ink);
}

.btn--on-dark {
  --btn-bg: var(--paper-on-dark);
  --btn-fg: var(--surface-dark);
  --btn-bd: var(--paper-on-dark);
}
.btn--ghost.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--paper-on-dark);
  --btn-bd: var(--line-on-dark-2);
}
.btn--ghost.btn--on-dark:hover {
  --btn-bg: var(--paper-on-dark);
  --btn-fg: var(--surface-dark);
  --btn-bd: var(--paper-on-dark);
}

/* Inline arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--brand);
  position: relative;
  padding-bottom: 2px;
}
.arrow-link::after {
  content: "";
  position: absolute;
  left: 0; right: auto; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
  transform-origin: left center;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.arrow-link .arr { transition: transform var(--t-base) var(--ease-out); display: inline-block; }
.arrow-link:hover { color: var(--brand-hi); }
.arrow-link:hover::after { opacity: 1; }
.arrow-link:hover .arr { transform: translateX(5px); }
.section--dark .arrow-link { color: var(--paper-on-dark); }
.section--dark .arrow-link:hover { color: var(--paper-on-dark); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  padding-block: 14px;
  transition: background var(--t-base) var(--ease-out),
              backdrop-filter var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              padding var(--t-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(244, 241, 234, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
  padding-block: 10px;
}
.site-header.on-dark {
  color: var(--paper-on-dark);
}
.site-header.on-dark.is-scrolled {
  background: rgba(6, 16, 31, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line-on-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 1.02rem;
}
.brand-mark__sigil {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
}
.brand-mark__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}
.brand-mark__text .name { font-weight: 600; letter-spacing: 0.08em; font-size: 0.95rem; }
.brand-mark__text .role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.site-header.on-dark .brand-mark__text .role { color: var(--ink-on-dark-3); }

.nav-list {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 8px 2px;
  transition: color var(--t-fast) var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-base) var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.site-header.on-dark .nav-link { color: rgba(240, 237, 229, 0.7); }
.site-header.on-dark .nav-link:hover,
.site-header.on-dark .nav-link.is-active { color: var(--paper-on-dark); }

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.nav-cta:hover { background: var(--ink); color: var(--paper-on-dark); border-color: var(--ink); }
.site-header.on-dark .nav-cta { border-color: var(--line-on-dark-2); }
.site-header.on-dark .nav-cta:hover {
  background: var(--paper-on-dark);
  color: var(--surface-dark);
  border-color: var(--paper-on-dark);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle__bar {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.nav-toggle__bar:nth-child(1) { top: 14px; }
.nav-toggle__bar:nth-child(2) { top: 19px; }
.nav-toggle__bar:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-list, .nav-cta-wrap { display: none; }
  .mobile-nav-open .nav-list,
  .mobile-nav-open .nav-cta-wrap { display: flex; }

  .nav-list {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--paper);
    padding: 24px var(--pad-x);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .nav-link { font-size: 1.2rem; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-cta-wrap {
    position: fixed;
    inset: auto 0 0 0;
    padding: 16px var(--pad-x) calc(16px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .nav-cta { width: 100%; text-align: center; display: block; }
  body.mobile-nav-open { overflow: hidden; }
  .site-header.on-dark .nav-list,
  .site-header.on-dark .nav-cta-wrap { background: var(--surface-dark); border-color: var(--line-on-dark); }
  .site-header.on-dark .nav-link { color: var(--paper-on-dark); border-color: var(--line-on-dark); }
}

.nav-cta-wrap { display: flex; }

/* ---------- HERO (variations: dark / light) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero--dark { background: var(--surface-dark); color: var(--paper-on-dark); }
.hero--dark h1, .hero--dark p { color: var(--paper-on-dark); }
.hero--compact { min-height: 70svh; }

.hero__grid {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero__noise {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("../img/noise.svg");
}
.hero__glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 91, 181, 0.30) 0%, rgba(42, 91, 181, 0) 60%);
  pointer-events: none;
  filter: blur(20px);
  top: -200px; right: -200px;
  z-index: 1;
}
.hero__glow-2 {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 27, 73, 0.45) 0%, rgba(0, 27, 73, 0) 60%);
  pointer-events: none;
  filter: blur(20px);
  bottom: -150px; left: -150px;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 5;
  width: 100%;
}
.hero__lede {
  display: grid;
  gap: 28px;
  max-width: 22ch;
}
.hero__supporting {
  margin-top: 36px;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}
.hero__supporting p { max-width: 48ch; color: var(--ink-on-dark-3); font-size: 1.08rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-self: end; }
@media (max-width: 800px) {
  .hero__supporting { grid-template-columns: 1fr; }
  .hero__actions { justify-self: start; }
}

.hero__rule {
  margin-top: 60px;
  height: 1px;
  background: var(--line-on-dark);
  width: 0;
  transition: width 2.2s var(--ease-out);
}
.is-loaded .hero__rule { width: 100%; }

.hero__meta {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-on-dark-3);
}
.hero__meta dt { color: rgba(240, 237, 229, 0.45); margin-bottom: 6px; }
.hero__meta dd { color: var(--paper-on-dark); font-weight: 500; }
@media (max-width: 700px) { .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; } }

/* Page header (non-Startseite) */
.page-hero {
  padding: 180px 0 100px;
  background: var(--surface-dark);
  color: var(--paper-on-dark);
  position: relative;
  overflow: hidden;
}
.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-hero h4 { color: var(--paper-on-dark); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 18ch; }
.page-hero .eyebrow { color: rgba(240, 237, 229, 0.7); }
.page-hero .eyebrow::before { background: rgba(240, 237, 229, 0.7); }
.page-hero p.lede { color: var(--ink-on-dark-3); max-width: 60ch; font-size: 1.1rem; margin-top: 24px; }
.page-hero .breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 36px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 237, 229, 0.55);
}
.page-hero .breadcrumb a:hover { color: var(--paper-on-dark); }
.page-hero .breadcrumb span.sep { opacity: 0.5; }
.page-hero__grid { position: absolute; inset: 0; opacity: 0.4; pointer-events: none; }
.page-hero__glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 91, 181, 0.25) 0%, rgba(42, 91, 181, 0) 60%);
  filter: blur(20px);
  top: -300px; right: -100px;
  pointer-events: none;
}

/* ---------- Cards (services) ---------- */
.card-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.card-grid .card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 32px 32px;
  background: var(--paper);
  transition: background var(--t-base) var(--ease-out);
  min-height: 320px;
}
.card__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-top: auto;
  color: var(--ink);
  text-wrap: balance;
}
.card__desc {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 38ch;
}
.card__arrow {
  position: absolute;
  top: 30px; right: 28px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out);
}
.card__arrow svg { width: 14px; height: 14px; }
.card:hover { background: var(--paper-2); }
.card:hover .card__arrow {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--paper-on-dark);
  transform: rotate(-45deg) translate(2px, -2px);
}

/* Pill-list (used on cards & content sections) */
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
}

/* ---------- Phases (Projektbegleitung step list) ---------- */
.phase-list {
  border-top: 1px solid var(--line);
}
.phase {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--t-base) var(--ease-out);
  position: relative;
}
.phase__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  padding-top: 6px;
}
.phase__body { max-width: 64ch; }
.phase__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--ink);
  text-wrap: balance;
}
.phase__copy { color: var(--ink-2); }
.phase__icon {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-base) var(--ease-out);
}
.phase:hover .phase__icon { background: var(--ink); color: var(--paper-on-dark); border-color: var(--ink); transform: rotate(-45deg); }
@media (max-width: 700px) {
  .phase { grid-template-columns: 1fr; gap: 12px; }
  .phase__icon { display: none; }
}

/* ---------- Big "lede" paragraph ---------- */
.big-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1.18;
  color: var(--ink);
  max-width: 32ch;
  text-wrap: balance;
}

/* ---------- Two-column meta (used for stats + region) ---------- */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.meta-grid .item dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.meta-grid .item dd {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}
.section--dark .meta-grid { border-color: var(--line-on-dark); }
.section--dark .meta-grid .item dt { color: var(--ink-on-dark-3); }
.section--dark .meta-grid .item dd { color: var(--paper-on-dark); }
@media (max-width: 800px) { .meta-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ---------- Two-column layout block ---------- */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.split--reverse { grid-template-columns: 7fr 5fr; }
.split--narrow { grid-template-columns: 4fr 6fr; gap: 60px; }
@media (max-width: 900px) {
  .split, .split--reverse, .split--narrow { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease-out);
}
.accordion__btn:hover { color: var(--brand); }
.accordion__plus {
  width: 22px; height: 22px;
  position: relative;
  flex-shrink: 0;
}
.accordion__plus::before,
.accordion__plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform var(--t-base) var(--ease-out);
}
.accordion__plus::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.accordion__plus::after { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.accordion__item.is-open .accordion__plus::after { transform: translateX(-50%) rotate(90deg); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-base) var(--ease-out);
}
.accordion__inner {
  padding-bottom: 24px;
  max-width: 70ch;
  color: var(--ink-2);
}
.accordion__inner ul {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.accordion__inner ul li {
  position: relative;
  padding-left: 18px;
}
.accordion__inner ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 1px;
  background: var(--ink-3);
}

/* ---------- CTA banner ---------- */
.cta-band {
  background: var(--surface-dark);
  color: var(--paper-on-dark);
  padding: clamp(64px, 8vw, 120px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--paper-on-dark);
  max-width: 22ch;
}
.cta-band p { color: var(--ink-on-dark-3); margin-top: 24px; max-width: 56ch; font-size: 1.08rem; }
.cta-band .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band__glow {
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 91, 181, 0.18) 0%, transparent 60%);
  filter: blur(40px);
  top: -200px; right: -300px;
  pointer-events: none;
}

/* ---------- Quote ---------- */
.quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: var(--ink);
  max-width: 32ch;
  text-wrap: balance;
  position: relative;
  padding-left: 24px;
}
.quote::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--brand);
}

/* ---------- Definition list (used for credentials) ---------- */
.dl-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.dl-list .row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.dl-list .row dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 4px;
}
.dl-list .row dd { color: var(--ink); font-weight: 500; }
@media (max-width: 700px) {
  .dl-list .row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.field { display: grid; gap: 8px; }
.field.span-2 { grid-column: span 2; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}
.field textarea { min-height: 160px; resize: vertical; }
.field .hint { font-size: 0.82rem; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
}

.checkbox {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.9rem; color: var(--ink-2);
}
.checkbox input { margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  color: var(--paper-on-dark);
  padding: 80px 0 28px;
  position: relative;
  overflow: hidden;
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 237, 229, 0.55);
  margin-bottom: 18px;
  font-weight: 500;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-on-dark);
}
.site-footer ul { display: grid; gap: 10px; }
.site-footer a {
  color: rgba(240, 237, 229, 0.78);
  font-size: 0.95rem;
  transition: color var(--t-fast) var(--ease-out);
}
.site-footer a:hover { color: var(--paper-on-dark); }
.footer-brand {
  display: grid; gap: 24px; max-width: 36ch;
}
.footer-claim {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--paper-on-dark);
  text-wrap: balance;
}
.footer-addr { color: rgba(240, 237, 229, 0.7); font-size: 0.9rem; line-height: 1.5; font-style: normal; }
.footer-addr strong { color: var(--paper-on-dark); font-weight: 500; }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 237, 229, 0.5);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px 24px; }
.footer-bottom a:hover { color: var(--paper-on-dark); }

@media (max-width: 900px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 560px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: span 1; }
}

/* ---------- Scroll reveal ----------
   Reveals are progressive enhancement: default to visible so non-JS / pre-JS
   renders stay readable. Only when html.js is present do we hide them and let
   the IntersectionObserver fade them in.
*/
.reveal { transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-stagger > * { transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
html.js .reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.06s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.18s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.30s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.36s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.42s; }

/* ---------- Custom cursor (desktop only) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity .2s ease, width .25s var(--ease-out), height .25s var(--ease-out), background .25s var(--ease-out);
  opacity: 0;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #FFFEEA;
}
.cursor-ring {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 254, 234, 0.5);
}
.has-cursor .cursor-dot,
.has-cursor .cursor-ring { opacity: 1; }
.has-cursor .cursor-ring.is-hover {
  width: 80px; height: 80px;
  border-color: rgba(255, 254, 234, 0.8);
}
.has-cursor .cursor-dot.is-hover { opacity: 0; }
@media (max-width: 900px) { .cursor-dot, .cursor-ring { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Sub-page service list (inside Leistungen page) ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-list .svc {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding var(--t-base) var(--ease-out);
}
.svc:hover { padding-left: 12px; }
.svc__num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.18em; color: var(--ink-3); }
.svc__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.svc__title small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-2);
  margin-top: 8px;
  letter-spacing: 0;
  max-width: 60ch;
}
.svc__arrow {
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: all var(--t-base) var(--ease-out);
}
.svc:hover .svc__arrow {
  background: var(--brand);
  color: var(--paper-on-dark);
  border-color: var(--brand);
  transform: rotate(-45deg);
}
@media (max-width: 700px) {
  .svc-list .svc { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .svc__arrow { justify-self: end; }
}

/* ---------- Service detail callouts ---------- */
.callout {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  padding: 24px 28px;
  border-radius: 0 6px 6px 0;
}
.callout strong { color: var(--brand); }

/* ---------- Helpers ---------- */
.text-center { text-align: center; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); }
.uppercase { text-transform: uppercase; letter-spacing: 0.14em; }
.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;
}

/* ---------- Cookie Banner ---------- */
#wst-cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 200;
  padding: 0;
  pointer-events: none;
}
.wst-cb {
  background: var(--surface-dark);
  color: var(--paper-on-dark);
  border-top: 1px solid var(--line-on-dark);
  pointer-events: auto;
  transform: translateY(100%);
  transition: transform 0.55s var(--ease-out);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.25);
}
#wst-cookie-banner.is-visible .wst-cb { transform: translateY(0); }
.wst-cb__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px var(--pad-x);
  display: grid;
  gap: 22px;
}
.wst-cb__head { display: grid; gap: 10px; max-width: 80ch; }
.wst-cb__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--paper-on-dark);
  margin: 0;
}
.wst-cb__lede { color: var(--ink-on-dark-3); font-size: 0.95rem; line-height: 1.55; max-width: 80ch; }
.wst-cb__lede a { color: var(--paper-on-dark); text-decoration: underline; text-decoration-color: var(--line-on-dark-2); text-underline-offset: 3px; }
.wst-cb__lede a:hover { text-decoration-color: var(--paper-on-dark); }

.wst-cb__opts {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 800px) { .wst-cb__opts { grid-template-columns: 1fr; } }

.wst-cb__opt {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: rgba(240, 237, 229, 0.03);
  border: 1px solid var(--line-on-dark);
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.wst-cb__opt:hover { background: rgba(240, 237, 229, 0.06); border-color: var(--line-on-dark-2); }
.wst-cb__opt input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  border: 1px solid var(--line-on-dark-2);
  border-radius: 3px;
  background: transparent;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--t-fast) var(--ease-out);
}
.wst-cb__opt input[type=checkbox]:checked {
  background: var(--paper-on-dark);
  border-color: var(--paper-on-dark);
}
.wst-cb__opt input[type=checkbox]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--surface-dark);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.wst-cb__opt input[type=checkbox]:disabled {
  background: rgba(240, 237, 229, 0.4);
  border-color: rgba(240, 237, 229, 0.4);
  cursor: not-allowed;
}
.wst-cb__opt input[type=checkbox]:disabled::after { border-color: var(--surface-dark); }
.wst-cb__opt-body { display: grid; gap: 4px; }
.wst-cb__opt-title {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--paper-on-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.wst-cb__opt-meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-on-dark-3);
  font-weight: 500;
}
.wst-cb__opt-desc { font-size: 0.83rem; line-height: 1.45; color: var(--ink-on-dark-3); }

.wst-cb__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.wst-cb__btn {
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--line-on-dark-2);
  background: transparent;
  color: var(--paper-on-dark);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.wst-cb__btn:hover {
  background: rgba(240, 237, 229, 0.1);
  border-color: var(--paper-on-dark);
}
.wst-cb__btn--primary {
  background: var(--paper-on-dark);
  color: var(--surface-dark);
  border-color: var(--paper-on-dark);
}
.wst-cb__btn--primary:hover { background: rgba(240, 237, 229, 0.9); border-color: rgba(240, 237, 229, 0.9); }
.wst-cb__btn--ghost { opacity: 0.85; }
.wst-cb__legal { font-size: 0.78rem; color: var(--ink-on-dark-3); margin: 0; }
.wst-cb__legal a { color: var(--paper-on-dark); text-decoration: underline; text-decoration-color: var(--line-on-dark-2); text-underline-offset: 3px; }
.wst-cb__legal a:hover { text-decoration-color: var(--paper-on-dark); }

@media (max-width: 600px) {
  .wst-cb__inner { padding: 22px var(--pad-x); }
  .wst-cb__actions .wst-cb__btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .cursor-dot, .cursor-ring { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
