/* ==========================================================================
   EMSE – Stylesheet
   Reines CSS, keine Abhängigkeiten. Aufbau:
   1. Tokens  2. Basis  3. Layout & Typo  4. Bausteine  5. Header & Navigation
   6. Seitenbereiche  7. Formulare  8. Footer  9. Animationen  10. Responsive
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  /* Farben */
  --yellow: #ffcc00;
  --yellow-hover: #f1c100;
  --navy: #06182b;
  --navy-2: #0b2238;
  --navy-line: #2d465a;
  --text: #34495e;
  --text-muted: #526777;
  --text-on-navy: #c5d2dc;
  --accent-text: #8a6800;      /* Gelb mit ausreichendem Kontrast auf Hell */
  --bg: #eef3f7;
  --bg-soft: #f5f7f9;
  --surface: #fff;
  --media-bg: #dce5ed;
  --border: #cbd6df;
  --border-soft: #dce4ea;
  --border-input: #9eafbd;
  --error: #a82319;

  /* Maße */
  --container: 1480px;
  --pad: clamp(1.25rem, 5vw, 6rem);
  --space: clamp(4rem, 7vw, 7rem);
  --space-sm: clamp(3rem, 5vw, 5rem);
  --header-h: 82px;
  --radius: 2px;

  /* Bewegung */
  --ease-out: cubic-bezier(.2, .75, .2, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 700ms;
  --shadow: 0 6px 22px rgba(6, 24, 43, .07);
  --shadow-lift: 0 18px 40px -18px rgba(6, 24, 43, .35);
}

/* 2. Basis
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--navy);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
ul { padding-left: 1.2em; }

::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 3px solid #bd8700; outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: -100px;
  left: 1rem;
  padding: .7rem 1rem;
  background: var(--yellow);
  font-weight: 700;
  transition: top var(--dur-fast) ease;
}
.skip-link:focus { top: 1rem; }

/* 3. Layout & Typografie
   ========================================================================== */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.07; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 6vw, 6rem); }
h2 { font-size: clamp(2.35rem, 4.4vw, 4.5rem); }
h3 { font-size: clamp(1.65rem, 2.5vw, 2.5rem); }
p { color: var(--text); text-wrap: pretty; }

.container {
  width: min(100%, calc(var(--container) + 2 * var(--pad)));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--space); }
.section--soft { background: var(--bg); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy p { color: var(--text-on-navy); }
.section--yellow { background: var(--yellow); }
.section--yellow p { color: #26394b; }

.eyebrow {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--accent-text);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section--navy .eyebrow,
.page-hero--navy .eyebrow { color: var(--yellow); }
.section--yellow .eyebrow { color: var(--navy); }

.intro { max-width: 850px; font-size: clamp(1.25rem, 2vw, 1.85rem); line-height: 1.4; }
.mt-lg { margin-top: 3rem; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr);
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.section-heading h2 { margin-bottom: 0; }
.section-heading p { margin-bottom: .25rem; }
.section-heading--solo { display: block; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 7rem);
}

/* 4. Bausteine
   ========================================================================== */

/* Icons (Lucide, https://lucide.dev, ISC-Lizenz) als Inline-SVG */
.icon {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.15em;
}

/* Pfeil – bewegt sich bei Hover des umgebenden Links in seine Richtung */
.arrow { transition: transform var(--dur) var(--ease-out); }
a:hover .arrow,
button:hover .arrow { transform: translateX(4px); }
a:hover .icon--arrow-up-right,
button:hover .icon--arrow-up-right { transform: translate(3px, -3px); }
button:hover .icon--send { transform: translate(3px, -3px) rotate(-6deg); }

/* Textlink mit wachsender Unterstreichung */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .3rem 0;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat,
              linear-gradient(var(--yellow), var(--yellow)) left bottom / 0 3px no-repeat;
  transition: background-size var(--dur) var(--ease-out);
}
.text-link:hover { background-size: 100% 1px, 100% 3px; }

/* Buttons */
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  min-height: 50px;
  padding: .82rem 1.2rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--navy);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
/* Füllfläche, die beim Hover von links einläuft */
.button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--yellow-hover);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.button:hover::before { transform: scaleX(1); }
.button:active { transform: translateY(0); box-shadow: none; }

.button--outline { background: transparent; }
.button--outline::before { background: var(--navy); }
.button--outline:hover { color: #fff; }

/* Linienliste */
.line-list { margin: 0; padding: 0; list-style: none; }
.line-list li { padding: 1rem 0; border-top: 1px solid var(--border); }
.line-list li:last-child { border-bottom: 1px solid var(--border); }
.line-list--cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 2rem;
  font-weight: 700;
}
.line-list--cols li:nth-last-child(-n + 4) { border-bottom: 1px solid var(--border); }

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.2rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}
.tag-list li {
  padding: .45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  font-weight: 700;
}

/* Hinweisbox */
.notice {
  max-width: 900px;
  padding: 1.4rem 1.7rem;
  border-left: 4px solid var(--yellow);
  background: var(--bg-soft);
}
.notice p:last-child { margin-bottom: 0; }

/* Zitate */
.feature-quote {
  margin: 1.5rem 0;
  padding: .2rem 0 .2rem 1.1rem;
  border-left: 3px solid var(--yellow);
}
.feature-quote p { margin: 0 0 .35rem; font-weight: 600; line-height: 1.45; }
.feature-quote footer { color: var(--text-muted); font-size: .8rem; }

.testimonial {
  max-width: 900px;
  margin: clamp(3.5rem, 6vw, 6rem) auto 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-left: 5px solid var(--yellow);
  background: var(--bg-soft);
}
.testimonial blockquote { margin: 0; }
.testimonial p {
  max-width: 75ch;
  margin: 0 0 1.15rem;
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  line-height: 1.7;
}
.testimonial p:last-of-type { margin-bottom: 1.8rem; }
.testimonial footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .8rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-soft);
}
.testimonial footer strong { color: var(--navy); }
.testimonial footer span { color: var(--text-muted); font-size: .88rem; }

/* 5. Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-h);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow var(--dur) ease, background var(--dur) ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .97); box-shadow: var(--shadow); }

/* Lesefortschritt (Breite via JS über --progress) */
.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
}

.brand { display: inline-flex; flex: none; align-items: center; }
.brand img { width: 154px; transition: opacity var(--dur-fast) ease; }
.brand:hover img { opacity: .8; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(.95rem, 1.7vw, 1.8rem);
  margin-left: auto;
}
.desktop-nav a {
  position: relative;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.desktop-nav a:not(.button) { padding: .75rem 0; }
.desktop-nav a:not(.button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: .32rem;
  left: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.desktop-nav a:not(.button):hover::after,
.desktop-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.header-cta { min-height: 42px; padding: .65rem .9rem; font-size: .82rem; }

/* Menü-Button */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-width: 48px;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: .85rem;
  font-weight: 800;
}
.menu-toggle__label { min-width: 4.25rem; text-align: right; }
.menu-bars { display: grid; gap: 5px; }
.menu-bars span {
  width: 22px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 280ms var(--ease-out), opacity var(--dur-fast) ease;
}
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Navigation (aktiv unter 992px, siehe Responsive) */
.mobile-nav { display: none; }
.mobile-nav[hidden] { display: none !important; }

/* 6. Seitenbereiche
   ========================================================================== */

/* Hero Startseite */
.hero { overflow: hidden; background: var(--bg-soft); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  min-height: min(700px, calc(100vh - var(--header-h)));
  min-height: min(700px, calc(100dvh - var(--header-h)));
  padding-block: clamp(2.5rem, 4vw, 4rem);
}
.hero h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.6rem, 4.7vw, 5.1rem);
  line-height: 1.02;
  hyphens: manual;
}
.hero h1 span { display: block; }
.hero .intro { max-width: 640px; margin-bottom: 0; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.6; }

/* Zweite, emotionale Zeile mit einlaufender gelber Markierung */
.hero-tagline { margin-bottom: 1.4rem; color: var(--navy); font-size: clamp(1.25rem, 1.9vw, 1.7rem); font-weight: 750; letter-spacing: -.02em; }
.hero-tagline span {
  background: linear-gradient(var(--yellow), var(--yellow)) left 88% / 0 .38em no-repeat;
  animation: highlight 900ms var(--ease-out) 650ms forwards;
}

/* Animiertes Bienen-Logo */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 430px;
  margin-right: calc(-1 * var(--pad));
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 204, 0, .28), transparent 58%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64v33M0 16-28 0M56 16 84 0' fill='none' stroke='%2306182b' stroke-opacity='.07' stroke-width='1.2'/%3E%3C/svg%3E"),
    var(--media-bg);
  perspective: 900px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 6px;
  height: 30%;
  background: var(--yellow);
}
.bee-mark {
  width: min(88%, 560px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 30px 40px rgba(6, 24, 43, .18));
}
.bee-hex, .bee, .bee__body, .bee__wings, .bee__antenna, .bee-bar, .bee-dot { transform-box: fill-box; }
.bee-hex, .bee { transform-origin: center; }
.bee-hex__glint {
  fill: none;
  stroke: #ffe28a;
  stroke-width: 26;
  stroke-linecap: round;
  stroke-dasharray: 240 3156;
  opacity: 0;
  animation: glint 2.6s ease-in-out 2.2s both;
}
.bee-bar, .bee-dot { fill: #0b0b0b; }
.bee-lines--left .bee-bar { transform-origin: right center; }
.bee-lines--right .bee-bar { transform-origin: left center; }
.bee-dot { transform-origin: center; }
.bee__wings { transform-origin: 100% 40%; }
.bee__antenna--left { transform-origin: 100% 100%; }
.bee__antenna--right { transform-origin: 0 100%; }
.bee__code path { stroke: #0b0b0b; }

/* Unterseiten-Hero */
.page-hero { padding-block: clamp(2.75rem, 4.5vw, 4.75rem); background: var(--bg-soft); }
.page-hero + .section { padding-top: var(--space-sm); }
.page-hero h1 { max-width: 1100px; margin-bottom: 1.8rem; }
.page-hero .intro { margin-bottom: 0; }
.page-hero--navy { background: var(--navy); color: #fff; }
.page-hero--navy .intro { color: var(--text-on-navy); }

/* Startseite: Kurzvorstellung */
.home .section { padding-block: var(--space-sm); }
.home .home-summary {
  padding-block: clamp(2.75rem, 4vw, 4rem);
  border-block: 1px solid var(--border-soft);
  background: var(--bg);
}
.home-summary h2 { max-width: 850px; font-size: clamp(2rem, 3.5vw, 3.5rem); }
.home-summary .intro { margin-bottom: 0; font-size: clamp(1.1rem, 1.5vw, 1.4rem); }

.statement {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 6vw, 8rem);
  align-items: start;
}
.statement p { max-width: 680px; }

/* Software-Features */
.software-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}
.software-feature + .software-feature { margin-top: clamp(3rem, 6vw, 5rem); }
.section-heading + .software-feature { margin-top: 0; }
.software-feature--reverse .feature-media { order: -1; }
.feature-copy p { max-width: 560px; }

.feature-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--media-bg);
  transition: box-shadow var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.feature-media img { width: 100%; transition: transform 900ms var(--ease-out); }
.feature-media:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.feature-media:hover img { transform: scale(1.02); }
.feature-media figcaption {
  position: relative;
  padding: .55rem .75rem;
  background: var(--surface);
  color: #53687a;
  font-size: .76rem;
}

/* Leistungen */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
}
.service-item {
  position: relative;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
}
/* Gelbe Linie wächst beim Hover über die Trennlinie */
.service-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.service-item:hover::before { transform: scaleX(1); }
.service-number {
  display: block;
  margin-bottom: 3rem;
  color: var(--accent-text);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.service-item h2,
.service-item h3 { margin-bottom: 1rem; }
.service-item p { max-width: 530px; }

/* Projekte / Referenzen */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter-button {
  min-width: 94px;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--navy);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.filter-button:hover { border-color: var(--navy); }
.filter-button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }

/* Immer zwei gleich große Projekte nebeneinander */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.2rem clamp(1.25rem, 2.5vw, 2rem);
}
.project { min-width: 0; }
.project[hidden] { display: none; }

.project__link { display: block; text-decoration: none; }
.project__image {
  position: relative;
  display: block;
  aspect-ratio: 1.55;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #e6ebef;
}
.project__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 900ms var(--ease-out);
}
/* Dezenter Navy-Schleier mit gelber Kante beim Hover */
.project__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 24, 43, .28));
  box-shadow: inset 0 -4px 0 var(--yellow);
  opacity: 0;
  transition: opacity var(--dur) ease;
}
.project__link:hover .project__image img { transform: scale(1.04); }
.project__link:hover .project__image::after { opacity: 1; }

.project__meta {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding-top: 1.05rem;
}
.project__meta h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 2rem); }
.project__meta p {
  margin: .15rem 0 0;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project__meta .arrow { width: 1.6rem; height: 1.6rem; margin-top: .2rem; stroke-width: 1.75; }

/* Event-Internet */
.event-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(3rem, 7vw, 9rem);
  align-items: center;
}
.event-grid .intro { margin-bottom: 2rem; }

.network-flow {
  position: relative;
  margin: 0;
  padding: 0;
  border-top: 1px solid #385063;
  list-style: none;
}
.network-flow li {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1rem 1.6rem;
  border-bottom: 1px solid #385063;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.network-flow li span { color: var(--yellow); }
/* Signalpunkt pro Station */
.network-flow li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(255, 204, 0, .5);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--border);
}
.fact-grid div { padding: 1.4rem 1rem 1.4rem 0; border-right: 1px solid var(--border); }
.fact-grid div:not(:first-child) { padding-left: 1.5rem; }
.fact-grid div:last-child { border-right: 0; }
.fact-grid strong { display: block; font-size: 1.25rem; }
.fact-grid span,
.process-list span,
.about-list span {
  color: var(--accent-text);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.process-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}
.process-list li { padding: 1.2rem 0 1.6rem; border-top: 1px solid var(--border); }
.process-list strong { display: block; margin-bottom: .4rem; font-size: 1.22rem; }
.process-list p { max-width: 570px; margin: 0; }

/* Über uns */
.about-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 3rem;
  margin-top: 2.5rem;
}
.about-list div { padding: 1rem 0; border-top: 1px solid var(--border); font-size: 1.3rem; font-weight: 700; }
.about-list span { display: block; margin-bottom: .6rem; }

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
}
.team-person {
  display: grid;
  grid-template-columns: minmax(125px, .7fr) 1fr;
  gap: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.team-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 1rem;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.team-photo::before {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  border-top: 2px solid var(--yellow);
  border-right: 2px solid var(--yellow);
  transition: width var(--dur) var(--ease-out), height var(--dur) var(--ease-out);
}
.team-person:hover .team-photo::before { width: 40px; height: 40px; }
.team-photo__initial {
  color: #385068;
  font-size: clamp(5rem, 8vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.09em;
  transition: color var(--dur) ease, transform var(--dur-slow) var(--ease-out);
}
.team-person:hover .team-photo__initial { color: #4a6782; transform: translateY(-4px); }
.team-photo__label {
  color: var(--yellow);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.team-person__copy .eyebrow { margin-bottom: .8rem; }
.team-person__copy h3 { margin-bottom: 1rem; }
.team-person__copy p { font-size: 1rem; }

/* CTA-Band */
.cta-band { padding-block: clamp(2rem, 3.5vw, 3.25rem); }
.cta-band .container {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.cta-band .eyebrow { margin-bottom: .7rem; }
.cta-band h2 { margin-bottom: .65rem; font-size: clamp(2rem, 3.4vw, 3.3rem); }
.cta-band p { margin-bottom: 0; }
.cta-band .button { flex: none; white-space: nowrap; }

/* Rechtstexte */
.legal-copy { max-width: 850px; }
.legal-copy h2 { margin-top: 2.5rem; font-size: clamp(1.7rem, 2.5vw, 2.4rem); }
.legal-copy h2:first-child { margin-top: 0; }

/* 7. Formulare
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(3rem, 8vw, 10rem);
}
.contact-layout h2 { font-size: clamp(2rem, 3vw, 3rem); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.2rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full,
.checkbox-field,
.form-note,
.form-status { grid-column: 1 / -1; }

.field label,
.checkbox-field label { font-size: .85rem; font-weight: 750; transition: color var(--dur-fast) ease; }
.field:focus-within label { color: var(--accent-text); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .72rem .85rem;
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--navy);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--navy); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, .55);
}
.field textarea { min-height: 160px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"].shake { animation: shake 360ms ease; }

.field-error {
  min-height: 1.1em;
  margin: 0;
  color: var(--error);
  font-size: .77rem;
}

.checkbox-field { display: flex; align-items: start; gap: .7rem; }
.checkbox-field input { flex: none; width: 21px; height: 21px; margin: .12rem 0; accent-color: var(--navy); }

.form-note { margin: 0; font-size: .87rem; }
.form-status { margin: 0; font-weight: 700; animation: fade-up var(--dur) var(--ease-out); }
.form-status[hidden] { display: none; }
.contact-form .button { justify-self: start; }

/* 8. Footer
   ========================================================================== */
.site-footer { padding-top: clamp(4rem, 7vw, 7rem); background: var(--navy); color: #fff; }

.footer-claim {
  padding-bottom: clamp(3rem, 6vw, 6rem);
  border-bottom: 1px solid #365064;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2rem;
  padding-block: 3.5rem;
}
.footer-brand img { width: 200px; }
.footer-brand p { max-width: 220px; color: var(--text-on-navy); font-size: .85rem; }

.footer-col h2 {
  color: var(--yellow);
  font-size: .72rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  width: fit-content;
  margin: .6rem 0;
  color: #dce5ec;
  font-size: .87rem;
  text-decoration: none;
  transition: color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.footer-col a:hover { color: #fff; transform: translateX(3px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid #365064;
  color: #9cb1c2;
  font-size: .75rem;
}
.footer-bottom p { margin: 0; color: inherit; }

.footer-brand p strong { color: #fff; }
.footer-brand p a,
.footer-brand address a { color: #fff; text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.footer-brand p { max-width: 340px; line-height: 1.6; }
.footer-brand address { margin-top: 1rem; color: var(--text-on-navy); font-size: .85rem; font-style: normal; line-height: 1.6; }

/* 8b. Inhaltsbausteine für Leistungs- und Projektseiten
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Brotkrumen */
.breadcrumb { margin-bottom: 1.5rem; font-size: .8rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .3rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; color: var(--border-input); }
.breadcrumb a { color: var(--navy); font-weight: 650; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.page-hero--navy .breadcrumb li,
.page-hero--navy .breadcrumb a { color: var(--text-on-navy); }

/* Startseite: zwei Schwerpunkte */
.service-duo-section { padding-block: var(--space-sm); }
.service-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); }
.duo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.6rem, 3.2vw, 2.75rem);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur) ease;
}
.duo-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.duo-card:hover { transform: translateY(-6px); border-color: var(--border); box-shadow: var(--shadow-lift); }
.duo-card:hover::before { transform: scaleX(1); }
.duo-card h2 { margin-bottom: 1rem; font-size: clamp(2rem, 3.2vw, 3rem); }
.duo-card p { max-width: 560px; }
.duo-card .tag-list { margin: .5rem 0 1.8rem; }
.duo-card .button { margin-top: auto; }
.duo-card .service-number { margin-bottom: 1.2rem; }
.duo-card__icon,
.feature-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.6rem;
  background: var(--navy);
  color: var(--yellow);
  transition: transform var(--dur-slow) var(--ease-out);
}
.duo-card__icon .icon,
.feature-card__icon .icon { width: 26px; height: 26px; }
.duo-card:hover .duo-card__icon { transform: rotate(-8deg) scale(1.06); }

/* Fakten (Was, Wer, Für wen, Kontakt) */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin: 0; align-self: start; }
.facts div { padding: 1.1rem 0 1.3rem; border-top: 1px solid var(--border); }
.facts dt {
  margin-bottom: .45rem;
  color: var(--accent-text);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.facts dd { margin: 0; color: var(--text); font-size: .98rem; }
.facts a { font-weight: 700; color: var(--navy); }

/* Feature-Karten */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.feature-grid--two { grid-template-columns: 1fr 1fr; }
.feature-card {
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.feature-card:hover .feature-card__icon { transform: translateY(-3px); }
.feature-card__icon { width: 48px; height: 48px; margin-bottom: 1.2rem; }
.feature-card h3 { margin-bottom: .7rem; font-size: clamp(1.25rem, 1.7vw, 1.55rem); letter-spacing: -.03em; }
.feature-card p { margin: 0; font-size: .98rem; }

/* Ablauf mit Nummern */
.process-list--steps { grid-template-columns: repeat(5, 1fr); gap: 0 1.5rem; margin-top: 0; }
.process-list--steps li { position: relative; padding-top: 1.4rem; }
.process-list--steps li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 120ms + 200ms);
}
.process-list--steps li.is-visible::before { transform: scaleX(1); }
.process-list--steps p { font-size: .95rem; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.faq-layout h2 { font-size: clamp(2rem, 3.2vw, 3.1rem); }
.faq { border-bottom: 1px solid var(--border); }
.faq__item { border-top: 1px solid var(--border); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); letter-spacing: -.02em; line-height: 1.3; transition: color var(--dur-fast) ease; }
.faq__item summary:hover h3 { color: var(--accent-text); }
.faq__icon { width: 1.4rem; height: 1.4rem; transition: transform var(--dur) var(--ease-out); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__answer { padding: 0 2.5rem 1.4rem 0; }
.faq__item[open] .faq__answer { animation: fade-up var(--dur) var(--ease-out); }
.faq__answer p { margin: 0; }

/* Projektseiten */
.case-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.case-media { margin: 0; }
.case-facts { margin: 0; }
.case-facts div { padding: 1rem 0; border-top: 1px solid var(--border); }
.case-facts div:last-child { border-bottom: 1px solid var(--border); }
.case-facts dt { margin-bottom: .3rem; color: var(--accent-text); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.case-facts dd { margin: 0; font-weight: 650; }
.case-facts a { color: var(--navy); }

.module-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.module-list li { position: relative; padding: 1.2rem 0 1.4rem; border-top: 1px solid var(--border); }
.module-list strong { display: block; margin-bottom: .35rem; font-size: 1.2rem; }
.module-list p { margin: 0; font-size: .95rem; }
.module-status {
  position: absolute;
  top: 1.3rem;
  right: 0;
  color: #1f6b3a;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.module-status--soon { color: var(--text-muted); }

.related-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  text-decoration: none;
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.related-link > span { display: grid; gap: .2rem; }
.related-link strong { font-size: 1.1rem; }
.related-link span span { color: var(--text-muted); font-size: .88rem; }
.related-link:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.feature-quote--large { max-width: 760px; margin-top: 3rem; }
.feature-quote--large p { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }

.services-list--three { grid-template-columns: repeat(3, 1fr); }

.contact-address {
  display: flex;
  gap: .8rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-style: normal;
  line-height: 1.6;
}
.contact-address .icon { margin-top: .25rem; color: var(--accent-text); }

/* 9. Animationen
   ========================================================================== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes media-in {
  from { opacity: 0; clip-path: inset(0 0 0 100%); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes settle {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
@keyframes grow-y {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 204, 0, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 204, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
}
@keyframes shake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Einstieg: Hero-Inhalte laufen gestaffelt ein */
.hero .eyebrow,
.hero h1 span,
.hero-inner > div > p,
.hero .button-row,
.page-hero .container > * { animation: fade-up var(--dur-slow) var(--ease-out) both; }
.hero .eyebrow { animation-delay: 40ms; }
.hero h1 span:nth-child(1) { animation-delay: 110ms; }
.hero h1 span:nth-child(2) { animation-delay: 180ms; }
.hero h1 span:nth-child(3) { animation-delay: 250ms; }
.hero-tagline { animation-delay: 320ms; }
.hero .intro { animation-delay: 400ms; }
.hero .button-row { animation-delay: 480ms; }
.page-hero .container > :nth-child(2) { animation-delay: 90ms; }
.page-hero .container > :nth-child(3) { animation-delay: 180ms; }
.page-hero .container > :nth-child(4) { animation-delay: 270ms; }
.page-hero .container > :nth-child(5) { animation-delay: 360ms; }

@keyframes highlight { to { background-size: 100% .38em; } }
@keyframes hex-in {
  from { opacity: 0; transform: scale(.82) rotate(-30deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes bee-in {
  from { opacity: 0; transform: translate(-60px, 60px) scale(.6) rotate(-12deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes bee-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-16px) rotate(1.2deg); }
}
/* Flügel: kurzes Summen, dann Pause */
@keyframes wing-buzz {
  0%, 46%, 100% { transform: rotate(0); }
  4%, 12%, 20%, 28%, 36% { transform: rotate(-16deg); }
  8%, 16%, 24%, 32%, 40% { transform: rotate(7deg); }
}
@keyframes antenna {
  0%, 100% { transform: rotate(0); }
  50%      { transform: rotate(-7deg); }
}
@keyframes glint {
  0%   { stroke-dashoffset: 0; opacity: 0; }
  12%, 85% { opacity: 1; }
  100% { stroke-dashoffset: -3396; opacity: 0; }
}
@keyframes bar-in {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}
@keyframes bar-pulse {
  0%, 100% { transform: scaleX(1); }
  50%      { transform: scaleX(.55); }
}

.hero-visual { animation: media-in 1000ms var(--ease-out) 100ms both; }
.hero-visual::before { transform-origin: top; animation: grow-y 700ms var(--ease-out) 900ms both; }
.bee-hex { animation: hex-in 1100ms var(--ease-out) 250ms both; }
.bee { animation: bee-in 1200ms var(--ease-out) 650ms both; }
/* Logo läuft einmal durch und bleibt dann stehen */
.bee__body { transform-origin: center; animation: bee-float 4s ease-in-out 1.9s 1; }
.bee__wings { animation: wing-buzz 3.4s ease-in-out 1.6s 1; }
.bee__antenna { animation: antenna 2.6s ease-in-out 1.8s 1; }
.bee__antenna--right { animation-delay: 2.1s; }
.bee-bar,
.bee-dot { animation: bar-in 600ms var(--ease-out) both; animation-delay: calc(1100ms + var(--i, 0) * 90ms); }
/* Danach bewegen sich nur noch die Striche rechts */
.bee-lines--right .bee-bar {
  animation: bar-in 600ms var(--ease-out) both, bar-pulse 2.8s ease-in-out infinite;
  animation-delay: calc(1100ms + var(--i, 0) * 90ms), calc(2400ms + var(--i, 0) * 220ms);
}

/* Scroll-Reveal (Klassen werden per JS gesetzt, ohne JS bleibt alles sichtbar) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Netzwerk-Signalpunkte pulsieren gestaffelt, sobald sichtbar */
.network-flow li.is-visible::before { animation: pulse 2.4s ease-out infinite; animation-delay: calc(var(--i, 0) * 300ms + 600ms); }

/* Referenzfilter: eingeblendete Projekte */
.project.is-filtered-in { animation: fade-up 450ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }

/* 10. Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .desktop-nav { gap: .9rem; }
  .desktop-nav a { font-size: .77rem; }
  .header-cta { display: none; }
  .hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
  .footer-grid { grid-template-columns: 2fr repeat(2, 1fr); row-gap: 2.5rem; }
  .process-list--steps { grid-template-columns: repeat(3, 1fr); }
  .related-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1050px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-person { grid-template-columns: 180px 1fr; }
}

@media (max-width: 992px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }

  .mobile-nav {
    position: fixed;
    z-index: 99;
    inset: var(--header-h) 0 0;
    display: block;
    background: rgba(6, 24, 43, .65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur) ease, visibility var(--dur) ease;
  }
  .mobile-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

  .mobile-panel {
    display: flex;
    flex-direction: column;
    width: min(100%, 460px);
    min-height: 100%;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    margin-left: auto;
    padding: 1.35rem clamp(1.25rem, 4vw, 2rem) 1.5rem;
    overflow-y: auto;
    background: var(--navy);
    color: #fff;
    box-shadow: -18px 0 48px rgba(0, 0, 0, .18);
    opacity: 0;
    transform: translateX(22px);
    transition: transform var(--dur) var(--ease-out), opacity var(--dur) ease;
  }
  .mobile-nav.is-open .mobile-panel { opacity: 1; transform: none; }

  .mobile-panel__intro {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .15rem 0 1rem;
    border-bottom: 1px solid #375065;
    color: var(--yellow);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .mobile-panel__intro span:last-child { color: #93a9bb; }

  .mobile-panel > a {
    opacity: 0;
    transform: translateY(8px);
    transition: transform 280ms var(--ease-out), opacity 280ms ease;
  }
  .mobile-nav.is-open .mobile-panel > a {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 30ms + 45ms);
  }
  .mobile-panel > a:not(.button) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 51px;
    padding: .72rem 0;
    border-bottom: 1px solid var(--navy-line);
    color: #edf4f9;
    font-size: clamp(1.28rem, 3vw, 1.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
    text-decoration: none;
  }
  /* Lucide "chevron-right" als Maske, eingefärbt über background-color */
  .mobile-panel > a:not(.button)::after {
    content: "";
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    background-color: #829cb0;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform var(--dur-fast) ease, background-color var(--dur-fast) ease;
  }
  .mobile-panel > a:not(.button):hover::after { background-color: var(--yellow); transform: translateX(4px); }
  .mobile-panel > a[aria-current]:not(.button) { color: var(--yellow); }
  .mobile-panel > a[aria-current]:not(.button)::after { background-color: var(--yellow); }

  .mobile-panel .button {
    justify-content: space-between;
    min-height: 48px;
    margin-top: 1.5rem;
    padding: .75rem 1rem;
    border-color: var(--yellow);
    font-size: .9rem;
  }

  .mobile-panel__footer {
    display: grid;
    gap: .2rem;
    margin-top: auto;
    padding-top: 2rem;
    color: #9db2c2;
    font-size: .77rem;
  }
  .mobile-panel__footer a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    width: fit-content;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-panel__footer a:hover { color: var(--yellow); }

  .hero-inner { grid-template-columns: 1fr; gap: 2rem; min-height: 0; padding-block: 3rem 0; }
  .hero-visual { min-height: 360px; }

  .section-heading,
  .statement,
  .event-grid,
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .section-heading { gap: 1rem; }

  .software-feature { gap: 2.5rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .faq-layout,
  .case-intro { grid-template-columns: 1fr; gap: 2rem; }
  .services-list--three { grid-template-columns: 1fr 1fr; }
  .module-list { grid-template-columns: 1fr 1fr; }
  .hero-visual { margin-right: calc(-1 * var(--pad)); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --pad: 2rem; --space: 4.5rem; --space-sm: 3.5rem; }

  .hero h1 { font-size: clamp(2.5rem, 7.4vw, 3.6rem); }

  .software-feature,
  .split { grid-template-columns: 1fr; }
  .software-feature--reverse .feature-media { order: 0; }

  .line-list--cols { grid-template-columns: repeat(2, 1fr); }
  .line-list--cols li:nth-last-child(-n + 4) { border-bottom: 0; }
  .line-list--cols li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--border); }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band .container { flex-direction: column; align-items: start; }
  .service-duo,
  .feature-grid--two,
  .related-links { grid-template-columns: 1fr; }
  .process-list--steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  :root { --pad: 1.25rem; --space: 3.5rem; --space-sm: 3rem; --header-h: 72px; }

  body { font-size: 17px; }
  .header-inner { gap: 1rem; }
  .brand img { width: 135px; }

  .hero-inner { padding-top: 2.5rem; }
  .hero h1 { font-size: clamp(2.15rem, 9.6vw, 2.8rem); }
  .hero-visual { min-height: 300px; margin-left: calc(-1 * var(--pad)); }
  .page-hero h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }

  .services-list,
  .process-list,
  .about-list,
  .contact-form { grid-template-columns: 1fr; }

  .project-grid { grid-template-columns: 1fr; row-gap: 2.2rem; }

  .fact-grid { grid-template-columns: 1fr; }
  .fact-grid div,
  .fact-grid div:not(:first-child) { padding: 1rem 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .fact-grid div:last-child { border-bottom: 0; }

  .team-person { grid-template-columns: 110px 1fr; gap: 1rem; }
  .team-photo__initial { font-size: 5rem; }
  .team-person__copy p { font-size: .92rem; }

  .footer-grid { gap: 2rem 1rem; }
  .feature-grid,
  .facts,
  .module-list,
  .services-list--three,
  .process-list--steps { grid-template-columns: 1fr; }
  .faq__answer { padding-right: 0; }
  .hero-tagline { margin-bottom: 1rem; }
  .footer-bottom { display: block; }
}

/* Bewegung reduzieren, wenn das Betriebssystem es wünscht */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-nav, .cta-band, .site-footer, .skip-link { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
