/* ==========================================================================
   KAANA IT – Website Styles
   Struktur: Tokens -> Fonts -> Base -> Layout -> Komponenten -> Sections
             -> Footer -> Motion -> Media Queries
   CI-Basis: Styleguide 2023 (Master): Blau #0E1D42, Orange #F99D33,
             Hurme Geometric Sans 1, Radius 0-4 px, Buttons 48 px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Farben (Master-CI) */
  --color-primary: #0e1d42;
  --color-accent: #f99d33;
  --color-white: #ffffff;

  /* Akzent-Apostroph aus der Bildmarke (Polygon 2.83 13.99 / 10.05 0 / 2.89 0 / 0 8.25,
     Box 10.05 x 13.99) - als clip-path fuer CSS-Pseudoelemente */
  --mark-clip: polygon(28.76% 0, 100% 0, 28.16% 100%, 0 58.97%);
  --mark-ratio: 10.05 / 13.99;

  /* Abgeleitete Farben (aus Blau) */
  --color-text: #0e1d42;
  --color-text-muted: #4b5570;
  --color-text-subtle: #7a8299;
  --color-text-on-brand: #ffffff;
  --color-text-on-brand-muted: rgba(255, 255, 255, 0.72);

  --color-bg: #ffffff;
  --color-bg-tint: #f4f5f8;
  --color-bg-tint-strong: #e9ebf1;
  --color-bg-brand: #0e1d42;
  --color-bg-brand-deep: #0a1533;

  --color-border: rgba(14, 29, 66, 0.12);
  --color-border-strong: rgba(14, 29, 66, 0.24);
  --color-border-on-brand: rgba(255, 255, 255, 0.16);

  --color-accent-soft: rgba(249, 157, 51, 0.16);
  --color-accent-hover: #f7901a;
  --color-primary-hover: #16295c;

  /* Typografie */
  --font-sans: "Hurme Geometric Sans 1", Arial, Helvetica, sans-serif;
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;

  --text-xs: 0.8125rem;                            /* 13px */
  --text-sm: 0.9375rem;                            /* 15px */
  --text-base: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem);
  --text-h2: clamp(1.875rem, 1.5rem + 1.5vw, 2.75rem);
  --text-h1: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
  --text-display: clamp(2.5rem, 1.9rem + 2.9vw, 4.375rem);

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.6;

  /* Abstaende (CI-Skala 8/16/24/40/64/96) */
  --space-1: 0.5rem;   /* 8 */
  --space-2: 1rem;     /* 16 */
  --space-3: 1.5rem;   /* 24 */
  --space-4: 2.5rem;   /* 40 */
  --space-5: 4rem;     /* 64 */
  --space-6: 6rem;     /* 96 */
  --space-section: clamp(4.5rem, 8vw, 8rem);
  --space-gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Layout */
  --container-width: 1280px;
  --container-wide: 1400px;
  --container-narrow: 820px;
  --measure: 65ch;
  --header-height: 84px;
  --header-height-compact: 68px;

  /* Radius (CI: 0-4 px fuer Buttons, Cards leicht groesser) */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Schatten – sehr subtil */
  --shadow-sm: 0 1px 2px rgba(14, 29, 66, 0.06);
  --shadow-md: 0 8px 24px -12px rgba(14, 29, 66, 0.22);
  --shadow-lg: 0 24px 48px -24px rgba(14, 29, 66, 0.35);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 600ms;
  --dur-slow: 800ms;
  --dur-leave: 160ms;
  --dur-enter: 460ms;
  --dur-fade: 380ms;
  --dur-settle: 520ms;
  --stagger: 80ms;
  --enter-delay: 70ms;
  --enter-stagger: 55ms;

  /* Fokus */
  --focus-ring: 2px solid var(--color-primary);
  --focus-offset: 3px;
}

/* --------------------------------------------------------------------------
   2. Fonts
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Hurme Geometric Sans 1";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/hurme-geometric-sans-1-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Hurme Geometric Sans 1";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/hurme-geometric-sans-1-semibold.woff2") format("woff2");
}

@font-face {
  font-family: "Hurme Geometric Sans 1";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/hurme-geometric-sans-1-bold.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   3. Base / Reset
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height-compact) + 1rem);
  /* Scrollbar-Platz immer reservieren: keine Breitenspruenge zwischen
     scrollenden und nicht scrollenden Seiten bzw. bei offenem Menue */
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--text-h1); line-height: var(--leading-tight); }
h2 { font-size: var(--text-h2); line-height: 1.15; }
h3 { font-size: var(--text-h3); }

p {
  max-width: var(--measure);
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-primary);
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

svg {
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

strong {
  font-weight: var(--weight-semibold);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 2px;
}

::selection {
  background: var(--color-accent-soft);
  color: var(--color-primary);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-Link */
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-gutter);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  position: relative;
  padding-block: var(--space-section);
}

.section--tint {
  background: var(--color-bg-tint);
}

.section--brand {
  background: var(--color-bg-brand);
  color: var(--color-text-on-brand);
}

.section--flush-top {
  padding-top: 0;
}

.section__head {
  display: grid;
  gap: var(--space-2);
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center p {
  margin-inline: auto;
}

.section__head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-3);
}

.section__head--split .section__head-copy {
  max-width: 760px;
  display: grid;
  gap: var(--space-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Akzent-Apostroph = Bildmarke (identisch mit #wf-mark im Hero-Diagramm:
   Polygon 2.83 13.99 / 10.05 0 / 2.89 0 / 0 8.25, Box 10.05 x 13.99) */
.eyebrow::before {
  content: "";
  height: 0.85rem;
  aspect-ratio: var(--mark-ratio);
  background: var(--color-accent);
  clip-path: var(--mark-clip);
  flex: none;
}

.section--brand .eyebrow {
  color: var(--color-text-on-brand-muted);
}

.section__lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.section--brand .section__lead {
  color: var(--color-text-on-brand-muted);
}

/* --------------------------------------------------------------------------
   5. Komponenten
   -------------------------------------------------------------------------- */

/* Buttons (CI: 48 px Hoehe, Radius 0-4 px; Orange traegt Blau, Blau traegt Weiss) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.5rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn__arrow {
  width: 1rem;
  height: 1rem;
  flex: none;
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-primary);
}

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

.btn--secondary:hover {
  background: var(--color-primary-hover);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border-strong);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-tint);
}

.section--brand .btn--outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.section--brand .btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--lg {
  min-height: 56px;
  padding: 0 2rem;
  font-size: var(--text-base);
}

/* Textlink mit Pfeil */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  min-height: 44px;
}

.link-arrow svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur-fast) var(--ease-out);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.section--brand .link-arrow {
  color: var(--color-white);
}

/* Cards – zurueckhaltend: Border, Radius, kein Shadow */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.card--interactive:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.card__title {
  font-size: var(--text-h3);
}

.card__text {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.card__link {
  margin-top: auto;
  padding-top: var(--space-1);
  font-size: var(--text-sm);
}

.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* Chips / Tags */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.875rem;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  color: var(--color-primary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.section--tint .chip {
  background: var(--color-bg);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0 0.55rem;
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--color-bg-tint);
  border-radius: 3px;
}

/* Reduzierter Browser-Frame fuer Screenshots */
.frame {
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.25rem;
  padding: 0 0.875rem;
  background: var(--color-bg-tint);
  border-bottom: 1px solid var(--color-border);
}

.frame__bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-border-strong);
}

.frame__bar span:first-child {
  background: var(--color-accent);
}

.frame__body {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-tint);
}

.frame__body img,
.frame__body svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text-Platzhalter, wenn noch kein Screenshot vorliegt */
.frame__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-2);
  text-align: center;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  background:
    linear-gradient(135deg, transparent 49.5%, var(--color-border) 49.5%, var(--color-border) 50.5%, transparent 50.5%),
    var(--color-bg-tint);
}

/* Screenshot-Placeholder (skizziertes UI, Farben inline im Sprite,
   da CSS-Selektoren nicht in <use>-Shadow-Trees greifen) */
.ui-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.placeholder-note {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   6. Header / Navigation
   -------------------------------------------------------------------------- */

/* Header liegt fixed ausserhalb des Layoutflusses: der kompakte Zustand
   veraendert so nie die Dokumenthoehe (kein Zittern an der Scroll-Schwelle). */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-height);
  transition: min-height var(--dur-fast) var(--ease-out);
}

.site-header.is-scrolled .header__inner {
  min-height: var(--header-height-compact);
}

/* Seitenwechsel: war der Header auf der vorigen Seite kompakt, startet er
   hier bereits kompakt (Klasse kommt aus dem Inline-Script im <head>, also
   vor dem ersten Paint) und bleibt so, bis wirklich gescrollt wird. */
.header-compact .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
}

.header-compact .header__inner {
  min-height: var(--header-height-compact);
}

/* Beim Wechsel keine Groessen-Interpolation: sonst ruckelt die Leiste,
   wenn kompakt uebernommen und im naechsten Frame wieder geaendert wird. */
.header-compact .site-header,
.header-compact .header__inner,
.header-compact .logo img,
html.is-leaving .site-header,
html.is-leaving .header__inner,
html.is-leaving .logo img {
  transition: none;
}

/* Platz fuer den fixed Header */
main {
  padding-top: var(--header-height);
}

/* Bei offenem Mobile-Menue kein backdrop-filter: er wuerde den Header zum
   Containing Block fuer die fixed positionierte Navigation machen. */
body.nav-open .site-header {
  background: var(--color-bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
}

.logo img,
.logo svg {
  width: clamp(140px, 12vw, 176px);
  height: auto;
  transition: width var(--dur-fast) var(--ease-out);
}

.site-header.is-scrolled .logo img,
.header-compact .logo img {
  width: clamp(140px, 11vw, 160px);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1vw, 0.75rem);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--color-primary);
}

/* Aktive Seite: kleine orange Schraegform als Marker */
.nav__link[aria-current="page"] {
  position: relative;
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 6px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transform-origin: left center;
  /* Marker waechst beim Ankommen unter dem neuen Menuepunkt heran ... */
  animation: nav-marker-in var(--dur-enter) var(--ease-out) both;
  animation-delay: calc(var(--enter-delay) + var(--enter-stagger) * 2);
}

/* ... und zieht sich beim Verlassen mit dem Inhalt zurueck */
.is-leaving .nav__link[aria-current="page"]::after {
  transform-origin: right center;
  animation: nav-marker-out var(--dur-leave) var(--ease-out) forwards;
}

@keyframes nav-marker-in {
  from { transform: scaleX(0); }
  to   { transform: none; }
}

@keyframes nav-marker-out {
  to { transform: scaleX(0); }
}

.nav__cta {
  margin-left: 0.25rem;
}

/* Sprachwahl DE | EN (gespeichert im Cookie kaana-lang, siehe js/main.js) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.lang-switch__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 44px;
  padding: 0 0.4rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out);
}

.lang-switch__link + .lang-switch__link {
  border-left: 1px solid var(--color-border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  min-height: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
  background-clip: padding-box;
}

.lang-switch__link:hover {
  color: var(--color-primary);
}

.lang-switch__link[aria-current="true"] {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  /* Gleiche Funktionsliste in beiden Zustaenden, sonst interpoliert der
     Browser ueber eine Matrix und die Linien skalieren kurz vor dem Ende. */
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.nav-toggle__bars {
  transform: translateX(-50%);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  left: 0;
}

.nav-toggle__bars::before { transform: translateY(-7px) rotate(0deg); }
.nav-toggle__bars::after  { transform: translateY(7px) rotate(0deg); }

/* Mittlere Linie per background-color: opacity am Element wuerde das X
   (die Pseudo-Balken) mit ausblenden. */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(0) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3.5rem, 7vw, 6.5rem);
  overflow: clip;
}

/* Schraegform-Motiv (aus Bildmarke/Briefpapier) als inline SVG:
   Seitenverhaeltnis bleibt unabhaengig von der Viewport-Breite erhalten. */
.brand-shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  height: auto;
  color: var(--color-bg-tint);
  fill: currentColor;
}

.hero .brand-shape {
  top: -8%;
  right: -4%;
  width: min(34vw, 520px);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero__copy {
  display: grid;
  gap: var(--space-3);
}

.hero__title {
  font-size: var(--text-display);
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero__title em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.09em;
  background: var(--color-accent);
  border-radius: 2px;
  z-index: -1;
}

.hero__lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.hero__note::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--color-border-strong);
}

.hero__visual {
  position: relative;
}

.workflow {
  width: 100%;
  height: auto;
  overflow: visible;
}

.workflow .wf-node {
  fill: var(--color-bg);
  stroke: var(--color-border);
  stroke-width: 1;
}

.workflow .wf-node--highlight {
  fill: var(--color-primary);
  stroke: var(--color-primary);
}

.workflow .wf-node--final {
  stroke: var(--color-primary);
  stroke-width: 1.5;
}

.workflow .wf-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  fill: var(--color-primary);
}

.workflow .wf-label--light {
  fill: var(--color-white);
}

.workflow .wf-sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11.5px;
  fill: var(--color-text-subtle);
}

.workflow .wf-sub--light {
  fill: rgba(255, 255, 255, 0.72);
}

.workflow .wf-mark {
  fill: var(--color-accent);
}

.workflow .wf-badge {
  fill: var(--color-accent);
}

.workflow .wf-check {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Gestrichelte Verbindungen mit langsamem Drift */
.workflow .wf-dash {
  fill: none;
  stroke: var(--color-border-strong);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 4 5;
  animation: wf-drift 16s linear infinite;
}

/* Orange Impulse, die entlang der Verbindungen nach unten wandern */
.workflow .wf-pulse {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 22 700;
  stroke-dashoffset: 22;
  opacity: 0.95;
  animation: wf-pulse 9s linear infinite;
}

.workflow .wf-pulse--delay {
  animation-delay: -4.5s;
}

.workflow .wf-junction {
  fill: var(--color-accent);
  stroke: var(--color-bg);
  stroke-width: 2;
  paint-order: stroke;
}

/* Knoten blenden gestaffelt ein, sobald der Hero sichtbar ist */
.js .workflow .wf-step {
  opacity: 0;
  transform: translateY(12px);
  transform-box: fill-box;
}

.js .hero__visual.is-visible .wf-step {
  animation: wf-in 700ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 130ms + 200ms);
}

.js .workflow .wf-lines,
.js .workflow .wf-junctions,
.js .workflow .wf-pulses {
  opacity: 0;
  transition: opacity 600ms var(--ease-out) 900ms;
}

.js .hero__visual.is-visible .wf-lines,
.js .hero__visual.is-visible .wf-junctions,
.js .hero__visual.is-visible .wf-pulses {
  opacity: 1;
}

@keyframes wf-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wf-drift {
  to {
    stroke-dashoffset: -90;
  }
}

@keyframes wf-pulse {
  to {
    stroke-dashoffset: -722;
  }
}

/* --------------------------------------------------------------------------
   8. Kennzahlen (Trust)
   -------------------------------------------------------------------------- */

.stats {
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.stat {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding-left: 1.5rem;
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  height: 1.35rem;
  aspect-ratio: var(--mark-ratio);
  background: var(--color-accent);
  clip-path: var(--mark-clip);
}

.stat__value {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  font-weight: var(--weight-bold);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   9. Typische Herausforderungen
   -------------------------------------------------------------------------- */

/* Zitate als Sprechblasen mit dezenten Avataren (Silhouetten aus dem Sprite).
   Chat-Rhythmus: ungerade Eintraege Avatar links, gerade Eintraege Avatar rechts,
   jeweils leicht versetzt. */
.problem-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 2.4vw, 1.75rem);
}

.problem {
  display: grid;
  grid-template-columns: var(--avatar-size) minmax(0, 1fr);
  gap: var(--space-2);
  align-items: start;
  --avatar-size: 3.25rem;
  width: max-content;
  max-width: min(100%, 46rem);
  justify-self: start;
}

.problem:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) var(--avatar-size);
  justify-self: end;
}

.problem:nth-child(even) .problem__avatar {
  order: 2;
}

.problem__avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  overflow: hidden;
  color: var(--color-primary);
  background: var(--color-bg-tint-strong);
  border: 1px solid var(--color-border);
  margin-top: 0.15rem;
}

.problem__avatar svg {
  width: 100%;
  height: 100%;
}

.problem__bubble {
  position: relative;
  padding: clamp(1rem, 1.6vw, 1.35rem) clamp(1.1rem, 1.8vw, 1.5rem);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  border-top-left-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-primary);
  text-wrap: pretty;
  max-width: none;
}

/* Zeiger zur Sprecherin / zum Sprecher: aeusseres Dreieck = Rand, inneres = Fuellung */
.problem__bubble::before,
.problem__bubble::after {
  content: "";
  position: absolute;
  top: 0.95rem;
  width: 0;
  height: 0;
  border-style: solid;
}

.problem__bubble::before {
  left: -9px;
  border-width: 8px 9px 8px 0;
  border-color: transparent var(--color-border) transparent transparent;
}

.problem__bubble::after {
  left: -7.5px;
  top: calc(0.95rem + 1px);
  border-width: 7px 8px 7px 0;
  border-color: transparent var(--color-bg) transparent transparent;
}

/* Zitatzeichen als CI-Akzent: deutsche Anfuehrungszeichen in Orange */
.problem__quote {
  quotes: "\201E" "\201C";
}

.problem__quote::before,
.problem__quote::after {
  color: var(--color-accent);
  font-weight: var(--weight-bold);
  font-size: 1.2em;
  line-height: 0;
}

.problem__quote::before {
  content: open-quote;
}

.problem__quote::after {
  content: close-quote;
}

/* Gespiegelte Blase, wenn der Avatar rechts steht */
.problem:nth-child(even) .problem__bubble {
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-sm);
}

.problem:nth-child(even) .problem__bubble::before {
  left: auto;
  right: -9px;
  border-width: 8px 0 8px 9px;
  border-color: transparent transparent transparent var(--color-border);
}

.problem:nth-child(even) .problem__bubble::after {
  left: auto;
  right: -7.5px;
  border-width: 7px 0 7px 8px;
  border-color: transparent transparent transparent var(--color-bg);
}


.problems__bridge {
  display: grid;
  gap: var(--space-2);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--color-border);
}

/* Ueberleitung in Lead-Groesse: erster Satz betont, Rest als ruhiger Fliesstext */
.problems__bridge-title {
  position: relative;
  padding-left: 1.4rem;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  color: var(--color-primary);
  max-width: 62ch;
  text-wrap: pretty;
}

/* Bildmarken-Apostroph vor der Ueberleitung (wie Eyebrow / Kennzahlen) */
.problems__bridge-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  height: 0.9em;
  aspect-ratio: var(--mark-ratio);
  background: var(--color-accent);
  clip-path: var(--mark-clip);
}

.problems__bridge-title span {
  color: var(--color-text-muted);
  font-weight: var(--weight-regular);
}

/* --------------------------------------------------------------------------
   10. Loesungen
   -------------------------------------------------------------------------- */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.section__foot {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--space-4);
}

.section__foot--center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   11. So koennen wir starten (Prozess)
   -------------------------------------------------------------------------- */

.process {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.process__steps {
  --marker-size: 3rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
}

/* Graue Grundlinie zwischen den Markern */
.process__steps::before {
  content: "";
  position: absolute;
  top: calc(var(--marker-size) / 2);
  left: calc(var(--marker-size) / 2);
  right: calc(var(--marker-size) / 2);
  height: 1px;
  background: var(--color-border-strong);
}

/* Fortschritt (JS setzt die Breite bis zum zuletzt freigeschalteten Marker) */
.process__progress {
  position: absolute;
  top: calc(var(--marker-size) / 2);
  left: calc(var(--marker-size) / 2);
  width: 0;
  height: 2px;
  margin-top: -0.5px;
  background: var(--color-accent);
  border-radius: 1px;
  pointer-events: none;
  overflow: hidden;
  transition: width 600ms var(--ease-out);
}

.process-step {
  position: relative;
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.process-step__marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--marker-size);
  height: var(--marker-size);
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  transition:
    color 320ms var(--ease-out),
    background-color 320ms var(--ease-out),
    border-color 320ms var(--ease-out),
    box-shadow 320ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.process-step__marker svg {
  width: 1.375rem;
  height: 1.375rem;
}

/* Freigeschaltet (ohne JS: Schritt 1 statisch) */
.process-step--start .process-step__marker,
.process-step.is-unlocked .process-step__marker {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.process-step__body {
  display: grid;
  gap: var(--space-2);
}

.process-step h3 {
  font-size: var(--text-lg);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Abschluss-Badge (Haken) am letzten Marker, per JS eingefuegt */
.process-step__badge {
  position: absolute;
  right: -0.35rem;
  bottom: -0.35rem;
  display: grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--color-white);
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.process-step__badge svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* ---- Interaktiver Modus (JS aktiv) ---------------------------------- */

/* Gesperrte Schritte: Inhalt unsichtbar, Platz bleibt (Zeilenhoehe stabil) */
.js .process__steps.is-interactive .process-step__body > * {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 420ms var(--ease-out),
    transform 420ms var(--ease-out),
    visibility 0s linear 420ms;
}

.js .process__steps.is-interactive .process-step.is-unlocked .process-step__body > * {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

/* Sequenz: Titel -> Beschreibung */
.js .process__steps.is-interactive .process-step.is-unlocked .process-step__body > h3 {
  transition-delay: 120ms;
}

.js .process__steps.is-interactive .process-step.is-unlocked .process-step__body > p {
  transition-delay: 260ms;
}

/* Naechster freischaltbarer Schritt: der Kreis selbst ist das Control
   (Akzent, sanfter Puls, Hover/Fokus nur auf dem Kreis) */
.js .process__steps.is-interactive .process-step.is-next .process-step__marker {
  color: var(--color-accent);
  border-color: var(--color-accent);
  cursor: pointer;
  animation: process-pulse 2.4s var(--ease-out) infinite;
}

.js .process__steps.is-interactive .process-step.is-next .process-step__marker:hover,
.js .process__steps.is-interactive .process-step.is-next .process-step__marker:focus-visible {
  color: var(--color-white);
  background: var(--color-accent);
  transform: scale(1.08);
  animation-play-state: paused;
  box-shadow: 0 0 0 6px rgba(249, 157, 51, 0.18);
}

.js .process__steps.is-interactive .process-step.is-next .process-step__marker:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.js .process__steps.is-interactive .process-step.is-next .process-step__marker:active {
  transform: scale(0.96);
}

@keyframes process-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(249, 157, 51, 0.4); }
  60%  { box-shadow: 0 0 0 10px rgba(249, 157, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 157, 51, 0); }
}

/* ---- Abschluss: alle Schritte offen ---------------------------------- */

/* Welle: jeder Marker "atmet" einmal kurz, von links nach rechts */
.js .process__steps.is-complete .process-step__marker {
  animation: process-wave 640ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 110ms + 350ms);
}

/* Letzter Marker: wird akzentfarben, mit expandierendem Ring */
.js .process__steps.is-complete .process-step:last-of-type .process-step__marker {
  color: var(--color-primary);
  background: var(--color-accent);
  border-color: var(--color-accent);
  animation:
    process-wave 640ms var(--ease-out) both,
    process-ring 1100ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 110ms + 350ms), calc(var(--i, 0) * 110ms + 520ms);
}

/* Haken-Badge springt nach der Welle herein */
.js .process__steps.is-complete .process-step__badge {
  animation: process-badge 560ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i, 0) * 110ms + 760ms);
}

/* Fortschrittslinie: ein Lichtstreif laeuft einmal durch */
.process__progress::after {
  content: "";
  position: absolute;
  inset: -1px 0;
  width: 18%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-120%);
  opacity: 0;
}

.js .process__steps.is-complete .process__progress::after {
  animation: process-shine 900ms var(--ease-out) 700ms both;
}

@keyframes process-wave {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.14); }
  100% { transform: scale(1); }
}

@keyframes process-ring {
  0%   { box-shadow: 0 0 0 0 rgba(249, 157, 51, 0.55); }
  100% { box-shadow: 0 0 0 22px rgba(249, 157, 51, 0); }
}

@keyframes process-badge {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes process-shine {
  0%   { transform: translateX(-120%); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateX(650%); opacity: 0; }
}

.process__aside {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.process__statement {
  font-size: clamp(1.375rem, 1.15rem + 1vw, 2rem);
  font-weight: var(--weight-bold);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.process__statement span {
  white-space: nowrap;
}

.process__entry {
  display: grid;
  gap: var(--space-2);
}

.process__entry-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   12. Showcase
   -------------------------------------------------------------------------- */

.case--featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(1.75rem, 3.5vw, 3.5rem);
  background: var(--color-bg-tint);
  border-radius: var(--radius-lg);
}

.case__copy {
  display: grid;
  gap: var(--space-3);
}

.case__title {
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.25rem);
}

.case__facts {
  display: grid;
  gap: var(--space-2);
}

.case__fact {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.case__fact dt {
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}

.case__fact dd {
  margin: 0;
  color: var(--color-text-muted);
}

.case__tech {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.case__tech-label {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  margin-right: 0.25rem;
}

.case__visual {
  position: relative;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.case {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  transition:
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.case:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.case .frame {
  box-shadow: none;
}

.case .frame__body {
  aspect-ratio: 16 / 9;
}

.case__kicker {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.case h3 {
  font-size: var(--text-lg);
}

.case p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.case__result {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: var(--weight-semibold);
  margin-top: auto;
  padding-top: var(--space-1);
}

.case__result::before {
  content: "";
  flex: none;
  height: 0.95rem;
  aspect-ratio: var(--mark-ratio);
  background: var(--color-accent);
  clip-path: var(--mark-clip);
  transform: translateY(0.05rem);
}

/* --------------------------------------------------------------------------
   13. Produkte
   -------------------------------------------------------------------------- */

.products {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.products .section__head {
  margin-bottom: 0;
}

.product-list {
  border-top: 1px solid var(--color-border);
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  transition: padding-left var(--dur-fast) var(--ease-out);
}

.product__copy {
  display: grid;
  gap: 0.35rem;
}

.product h3 {
  font-size: var(--text-lg);
}

.product p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.product__arrow {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-text-subtle);
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.product:hover .product__arrow {
  transform: translateX(3px);
  color: var(--color-primary);
}

/* Produktfamilie: Original-Icons und symbolische Produktansichten. */
.product-intro {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.product-intro .breadcrumb {
  margin-bottom: var(--space-3);
}

.product-intro h1 {
  margin: var(--space-1) 0 var(--space-2);
}

.product-intro .section__lead {
  max-width: 58ch;
}

.product-spotlight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--color-bg-tint);
  border-block: 1px solid var(--color-border);
}

.product-spotlight__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.product-spotlight__copy {
  display: grid;
  gap: var(--space-3);
}

.product-identity {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.product-identity .eyebrow {
  margin-bottom: 0.25rem;
  font-size: var(--text-xs);
}

.product-identity h2 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.product-icon {
  display: grid;
  place-items: center;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary);
}

.product-icon img {
  width: 100%;
  height: 100%;
  padding: 7px;
}

.product-icon--small {
  flex-basis: 52px;
  width: 52px;
  height: 52px;
}

.product-icon--small img {
  padding: 4px;
}

.product-spotlight__headline {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
}

.product-spotlight__description {
  max-width: 44ch;
  color: var(--color-text-muted);
}

.product-spotlight__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.product-spotlight__visual {
  min-width: 0;
}

.product-spotlight__visual > picture {
  display: block;
}

.product-spotlight__visual > img,
.product-spotlight__visual > picture > img {
  width: 100%;
  height: auto;
}

.product-spotlight__visual figcaption {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.product-details {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-strong);
}

.product-details__heading {
  display: grid;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.product-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.product-benefits li {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding-right: var(--space-3);
}

.product-benefits li + li {
  padding-left: var(--space-4);
  border-left: 1px solid var(--color-border);
}

.product-benefits__number {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  width: fit-content;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--color-accent);
}

.product-benefits h4 {
  font-size: var(--text-lg);
}

.product-benefits p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.products--preview {
  align-items: center;
}

.product-preview {
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.product-preview:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.product-preview__image {
  padding: var(--space-2) var(--space-3) 0;
  background: #eef0f5;
}

.product-preview__image img {
  width: 100%;
  height: auto;
}

.product-preview__body {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
}

.product-preview__body > p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.archive-reference {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
}

.archive-reference__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.archive-reference h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.archive-reference p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (max-width: 960px) {
  .product-spotlight__grid {
    grid-template-columns: 1fr;
  }

  .product-spotlight__description {
    max-width: var(--measure);
  }

  .product-spotlight__visual {
    width: 100%;
    max-width: 720px;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .product-benefits {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .product-benefits li,
  .product-benefits li + li {
    padding: 0;
    border-left: 0;
  }

  .product-benefits li + li {
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
  }

  .product-spotlight__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-spotlight__actions .btn {
    max-width: 100%;
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   14. Kunden / Logo-Wall
   -------------------------------------------------------------------------- */

.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.logo-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 3;
  padding: var(--space-3);
  background: var(--color-bg);
  color: var(--color-text-subtle);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.logo-tile:hover {
  color: var(--color-primary);
  background: var(--color-bg-tint);
}

.logo-tile svg {
  width: min(100%, 8.5rem);
  height: auto;
}

.logo-tile__text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  fill: currentColor;
}

/* Partner-Wand (Über uns): 5 verlinkte Logos, eigene Kacheln statt
   Gitterlinien, damit eine unvollstaendige Reihe keine grauen Leerzellen
   zeigt. Desktop 5 nebeneinander, Tablet 3 + 2, Handy 2 + 2 + 1 (zentriert). */
.partner-wall {
  --partner-cols: 5;
  --partner-gap: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--partner-gap);
}

.partner-wall__item {
  flex: 0 1 calc((100% - (var(--partner-cols) - 1) * var(--partner-gap)) / var(--partner-cols));
  min-width: 0;
}

.logo-tile--partner {
  position: relative;
  height: 100%;
  aspect-ratio: 16 / 9;
  padding: clamp(1rem, 2vw, 1.75rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

/* Orangener Strich waechst beim Hover von der Mitte aus */
.logo-tile--partner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease-out);
}

/* Feste Logo-Box: jedes Logo fuellt sie per object-fit (SVGs mit kleiner
   Eigengroesse wie Microsoft wachsen mit, breite Wortmarken werden flacher) */
.logo-tile--partner img {
  width: min(100%, 9rem);
  height: 2.4rem;
  object-fit: contain;
  transition: transform var(--dur-fast) var(--ease-out);
}

.logo-tile--partner:hover,
.logo-tile--partner:focus-visible {
  background: var(--color-bg);
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.logo-tile--partner:hover::after,
.logo-tile--partner:focus-visible::after {
  transform: scaleX(1);
}

.logo-tile--partner:hover img {
  transform: scale(1.04);
}

@media (max-width: 960px) {
  .partner-wall { --partner-cols: 3; }
}

@media (max-width: 640px) {
  .partner-wall { --partner-cols: 2; --partner-gap: 0.75rem; }
  .logo-tile--partner img { height: 2.1rem; }
}

/* Kunden-Logo-Wall (/kunden/): Logos nach Branche gruppiert, Filter-Chips
   (js/main.js, ohne JS alle Gruppen sichtbar). Kachel = Logo + Name, beim
   Hover hebt sie sich, kippt leicht wie das Story-Logo und zeigt den
   orangenen Strich der Partner-Wand. Reihenfolge in der Gruppe: alphabetisch. */
.logo-board {
  display: grid;
  gap: clamp(2.25rem, 4vw, 3.5rem);
}

.logo-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.logo-filter[hidden] {
  display: none;
}

.logo-filter__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1rem;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.logo-filter__chip:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.logo-filter__chip:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.logo-filter__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
  background: var(--color-bg-tint-strong);
  border-radius: 999px;
}

.logo-filter__chip[aria-pressed="true"] {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.logo-filter__chip[aria-pressed="true"] .logo-filter__count {
  color: var(--color-primary);
  background: var(--color-accent);
}

.logo-group {
  scroll-margin-top: 7rem;
}

/* Kleine Branchen (bis 3 Logos) teilen sich am Desktop eine Reihe */
@media (min-width: 961px) {
  .logo-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 4vw, 3.5rem);
  }

  .logo-board > * {
    grid-column: 1 / -1;
  }

  .logo-board > .logo-group--compact {
    grid-column: auto;
  }

  /* Gefiltert auf eine kleine Branche: volle Breite */
  .logo-board[data-filter-active]:not([data-filter-active="alle"]) > .logo-group--compact {
    grid-column: 1 / -1;
  }
}

.logo-group[hidden] {
  display: none;
}

/* Kopf: Nummer, Branche, Linie, Anzahl */
.logo-group__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: var(--space-3);
}

.logo-group__index {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.logo-group__title {
  font-size: var(--text-h3);
}

.logo-group__head::after {
  content: "";
  order: 3;
  flex: 1 1 auto;
  align-self: center;
  height: 2px;
  min-width: 2rem;
  background: linear-gradient(90deg, var(--color-accent) 0 3rem, var(--color-border) 3rem);
  border-radius: 2px;
}

.logo-group__count {
  order: 4;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-subtle);
  white-space: nowrap;
}

.logo-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem;
}

.logo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  min-height: 8.25rem;
  padding: 1.25rem 0.875rem 1rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.logo-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease-out);
}

/* Feste Logo-Box wie bei den Partnern: jedes Logo fuellt sie per
   object-fit, breite Wortmarken werden flacher, Bildmarken hoeher */
.logo-card__media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 3.25rem;
}

.logo-card img {
  width: min(100%, 8.5rem);
  height: 2.5rem;
  object-fit: contain;
  transition: transform var(--dur-fast) var(--ease-out);
}

.logo-card--square img {
  height: 3.25rem;
}

.logo-card__name {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}

/* Logos, die es offiziell nur hell gibt, stehen auf Navy */
.logo-card--dark {
  color: var(--color-text-on-brand-muted);
  background: var(--color-bg-brand);
  border-color: var(--color-bg-brand);
}

.logo-card:hover,
.logo-card:focus-visible {
  color: var(--color-primary);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px) rotate(-1.5deg);
}

.logo-cloud__item:nth-child(even) .logo-card:hover,
.logo-cloud__item:nth-child(even) .logo-card:focus-visible {
  transform: translateY(-4px) rotate(1.5deg);
}

.logo-card--dark:hover,
.logo-card--dark:focus-visible {
  color: var(--color-white);
  border-color: var(--color-bg-brand);
}

.logo-card:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.logo-card:hover::after,
.logo-card:focus-visible::after {
  transform: scaleX(1);
}

.logo-card:hover img {
  transform: scale(1.05);
}

/* Beim Filtern laufen die Kacheln der gewaehlten Branche gestaffelt ein */
@keyframes logo-card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}

.logo-board.is-filtering .logo-group:not([hidden]) .logo-cloud__item {
  animation: logo-card-in var(--dur-enter) var(--ease-out) both;
  animation-delay: calc(min(var(--i, 0), 16) * 28ms);
}

@media (max-width: 640px) {
  .logo-filter {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-inline: calc(var(--space-gutter) * -1);
    padding: 0.25rem var(--space-gutter) 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--space-gutter);
  }

  .logo-filter::-webkit-scrollbar {
    display: none;
  }

  .logo-filter__chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .logo-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .logo-card {
    gap: 0.5rem;
    min-height: 6.5rem;
    padding: 0.875rem 0.5rem 0.75rem;
  }

  .logo-card__media {
    height: 2.5rem;
  }

  .logo-card img {
    height: 1.85rem;
  }

  .logo-card--square img {
    height: 2.5rem;
  }

  .logo-card__name {
    font-size: 0.6875rem;
  }
}

@media (max-width: 359px) {
  .logo-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   14b. Success Stories (Karten auf /kunden/, Artikel unter /kunden/<slug>/)
   Muster siehe docs/13-success-stories.md
   -------------------------------------------------------------------------- */

/* Gitter waechst mit: auto-fill haelt die Spaltenbreite, eine einzelne
   Story wird als breite Karte gezeigt (statt einsamer Drittel-Spalte). */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.story-card {
  position: relative;
  display: grid;
  gap: var(--space-2);
  align-content: start;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

/* Bildmarke als Wasserzeichen; kippt beim Hover leicht nach vorne */
.story-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -1.5rem;
  right: -1rem;
  height: 9rem;
  aspect-ratio: var(--mark-ratio);
  background: var(--color-accent-soft);
  clip-path: var(--mark-clip);
  transform-origin: bottom left;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.story-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.story-card:hover::before {
  transform: rotate(-8deg) scale(1.08);
  background: rgba(249, 157, 51, 0.28);
}

.story-card__kicker {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.story-card__title {
  font-size: var(--text-h3);
}

.story-card__teaser {
  color: var(--color-text-muted);
}

.story-card__highlight {
  display: grid;
  gap: 0.5rem;
  align-content: center;
  padding: var(--space-3);
  background: var(--color-bg-brand);
  border-radius: var(--radius-md);
}

.story-card__highlight-value {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem);
  font-weight: var(--weight-bold);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.story-card__highlight-value::before {
  content: "";
  flex: none;
  height: 0.5em;
  aspect-ratio: var(--mark-ratio);
  background: var(--color-accent);
  clip-path: var(--mark-clip);
}

.story-card__highlight-label {
  font-size: var(--text-sm);
  color: var(--color-text-on-brand-muted);
}

.story-card__link {
  margin-top: var(--space-1);
  justify-self: start;
}

.story-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.story-card:hover .story-card__link svg {
  transform: translateX(3px);
}

/* Nur eine Story: breite Karte, Text links, Highlight rechts */
@media (min-width: 961px) {
  .story-card:only-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem);
  }

  .story-card:only-child > :not(.story-card__highlight) {
    grid-column: 1;
  }

  .story-card:only-child .story-card__highlight {
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: stretch;
  }
}

/* Kundenlogo auf der Karte (optional, siehe docs/13-success-stories.md) */
.story-card__logo {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  margin-bottom: var(--space-1);
}

.story-card__logo img {
  width: auto;
  height: 1.875rem;
  max-width: 12rem;
  object-fit: contain;
  object-position: left center;
}

/* Artikel */
.story-hero__client {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
}

/* Kundenlogo als leicht schraeg angepinnte Karte; richtet sich beim Hover auf */
.story-logo {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transform: rotate(-2deg);
  transition: transform var(--dur) var(--ease-out);
}

.story-logo:hover {
  transform: rotate(0deg) translateY(-2px);
}

.story-logo img {
  width: auto;
  height: 2rem;
  max-width: 13rem;
  object-fit: contain;
}

.story-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-1);
  font-size: var(--text-sm);
}

.story-facts dt {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.story-facts dd {
  margin: 0.15rem 0 0;
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}

.story-results .stats__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.story__body {
  display: grid;
  gap: var(--space-5);
  max-width: var(--container-narrow);
}

.story-section {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: var(--space-2);
}

.story-section__marker {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-primary);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
}

.story-section .prose {
  grid-column: 2;
}

.story-section .prose h2 {
  margin-top: 0.4rem;
  font-size: var(--text-h2);
}

.story-quote {
  position: relative;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  background: var(--color-bg-tint);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.story-quote p {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  quotes: "\201E" "\201C";
}

.story-quote p::before { content: open-quote; color: var(--color-accent); }
.story-quote p::after { content: close-quote; color: var(--color-accent); }

.story-quote figcaption {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.story__aside {
  position: sticky;
  top: calc(var(--header-height-compact) + var(--space-3));
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-bg-tint);
  border-radius: var(--radius-lg);
}

.story__aside-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: 0.5rem;
}

.story__source {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

.story__source a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.story__source a:hover {
  color: var(--color-accent-hover);
}

.story__back {
  margin-top: var(--space-4);
}

@media (max-width: 960px) {
  .story {
    grid-template-columns: 1fr;
  }

  .story__aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .story-section {
    grid-template-columns: 1fr;
    row-gap: var(--space-2);
  }

  .story-section .prose {
    grid-column: 1;
  }

  .story-facts {
    gap: var(--space-2) var(--space-3);
  }
}

.industries {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.industries__label {
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}

.industries li {
  position: relative;
}

.industries li + li::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-border-strong);
  transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   15. Warum Ka'ana (typografisch)
   -------------------------------------------------------------------------- */

.why {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}

.why .section__head {
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--header-height-compact) + 2rem);
}

.why-list {
  display: grid;
}

.why-item {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: var(--space-2);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  border-top: 1px solid var(--color-border-on-brand);
}

.why-item:last-child {
  border-bottom: 1px solid var(--color-border-on-brand);
}

.why-item::before {
  content: "";
  height: 1rem;
  aspect-ratio: var(--mark-ratio);
  background: var(--color-accent);
  clip-path: var(--mark-clip);
  margin-top: 0.4rem;
}

.why-item__body {
  display: grid;
  gap: 0.4rem;
}

.why-item h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  color: var(--color-white);
}

.why-item p {
  color: var(--color-text-on-brand-muted);
  font-size: var(--text-sm);
  max-width: 52ch;
}

.section--brand h2 {
  color: var(--color-white);
}

.why__foot {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-3);
}

.link-arrow--light {
  color: var(--color-white);
}

.link-arrow--light:hover {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   16. Technologien
   -------------------------------------------------------------------------- */

.tech {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.tech .section__head {
  margin-bottom: 0;
}

.tech__statement {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-2);
}

.tech-groups {
  display: grid;
  border-top: 1px solid var(--color-border);
}

.tech-group {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: var(--space-2);
  align-items: start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.tech-group__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  padding-top: 0.45rem;
}

.tech-group .chips {
  gap: 0.4rem;
}

.tech-group .chip {
  min-height: 2rem;
  padding: 0 0.7rem;
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   17. Abschluss-CTA
   -------------------------------------------------------------------------- */

.cta-final {
  position: relative;
  overflow: clip;
  background: var(--color-bg-brand);
  color: var(--color-white);
}

.cta-final .brand-shape {
  top: -12%;
  right: -2%;
  width: min(30vw, 440px);
  color: rgba(255, 255, 255, 0.05);
}

.cta-final__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.cta-final__copy {
  display: grid;
  gap: var(--space-2);
}

.cta-final h2 {
  font-size: var(--text-h1);
  color: var(--color-white);
  max-width: 18ch;
}

.cta-final p {
  font-size: var(--text-lg);
  color: var(--color-text-on-brand-muted);
  max-width: 40rem;
}

.cta-final__actions {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
}

.cta-final__contact {
  display: grid;
  gap: 0.25rem;
  font-size: var(--text-sm);
  color: var(--color-text-on-brand-muted);
}

.cta-final__contact a {
  color: var(--color-white);
  font-weight: var(--weight-semibold);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.cta-final__contact a:hover {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  --mascot-height: clamp(8.5rem, 7rem + 5vw, 13rem);
  /* Bild 225 x 344 px */
  --mascot-width: calc(var(--mascot-height) * 225 / 344);
  /* Feste Reserve fuer die Blase: 2 Zeilen, konstante Breite.
     Quote-Laenge aendert dann weder Footer- noch Seitenhoehe. */
  --bubble-width: 22rem;
  --bubble-height: calc(2 * var(--leading-normal) * var(--text-sm) + 1.1rem);
  position: relative;
  overflow: hidden;
  background: var(--color-bg-brand-deep);
  color: var(--color-text-on-brand-muted);
  font-size: var(--text-sm);
}

.site-footer > .container {
  position: relative;
}

/* Maskottchen + Sprechblase: sitzen rechts unten, Schnittkante auf der
   Unterkante der Seite. Die Blase zeigt nach rechts zum Kopf. */
.footer__mascot-wrap {
  position: absolute;
  right: var(--space-gutter);
  bottom: 0;
  width: var(--mascot-width);
  height: var(--mascot-height);
  pointer-events: none;
  user-select: none;
}

.footer__mascot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

/* Slot haelt Breite und Hoehe konstant. Die weisse Blase sitzt absolut
   darin (rechtsbuendig zum Alpaka) und darf den Layoutfluss nicht aendern. */
.footer__bubble-slot {
  flex: 0 0 var(--bubble-width);
  width: var(--bubble-width);
  height: var(--bubble-height);
  position: relative;
  order: 3;
  margin: 0 0 0 auto;
  pointer-events: none;
}

.footer__bubble {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  text-wrap: pretty;
  opacity: 1;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.footer__bubble.is-out {
  opacity: 0;
}

.footer__bubble q {
  quotes: "\201E" "\201C";
}

.footer__bubble q::before,
.footer__bubble q::after {
  color: var(--color-accent);
  font-weight: var(--weight-bold);
}

.footer__bubble q::before { content: open-quote; }
.footer__bubble q::after { content: close-quote; }

/* Zeiger nach rechts zum Alpaka-Kopf */
.footer__bubble::before,
.footer__bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
}

.footer__bubble::before {
  right: -9px;
  margin-top: -8px;
  border-width: 8px 0 8px 9px;
  border-color: transparent transparent transparent var(--color-border);
}

.footer__bubble::after {
  right: -7.5px;
  margin-top: -7px;
  border-width: 7px 0 7px 8px;
  border-color: transparent transparent transparent var(--color-white);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(14rem, 0.8fr);
  gap: var(--space-3) var(--space-5);
  align-items: start;
  /* Maskottchen sitzt absolut rechts unten und darf die Kontaktspalte nicht ueberdecken */
  padding-right: calc(var(--mascot-width) + var(--space-3));
  padding-block: clamp(2rem, 3vw, 2.75rem) clamp(1.25rem, 2vw, 1.75rem);
}

.footer__brand {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.footer__brand img {
  width: 160px;
}

.footer__brand p {
  max-width: 30ch;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__social svg {
  flex: none;
  margin-right: 0.5rem;
}

.footer__title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.footer__list {
  display: grid;
  gap: 0.25rem;
}

.footer__list a,
.footer__brand a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  color: var(--color-text-on-brand-muted);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__list a:hover,
.footer__brand a:hover,
.footer__address a:hover {
  color: var(--color-white);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-white);
}

.footer__address {
  font-style: normal;
  line-height: 1.7;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding-block: var(--space-3);
  /* Platz fuer das Maskottchen rechts; die Sprechblase steht direkt davor */
  padding-right: calc(var(--mascot-width) + var(--space-2));
  border-top: 1px solid var(--color-border-on-brand);
  font-size: var(--text-xs);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer__legal a {
  color: var(--color-text-on-brand-muted);
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
}

.footer__legal a:hover {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   18b. Unterseiten-Templates
   -------------------------------------------------------------------------- */

/* Seitenkopf */
.page-hero {
  position: relative;
  overflow: clip;
  display: flex;
  align-items: center;
  /* Hoehe folgt der laengsten Variante (Services, Ueber uns, Produkte),
     damit kurze Seitenkoepfe dieselbe graue Flaeche haben. */
  min-height: clamp(32rem, 20vw + 20rem, 34rem);
  padding-block: clamp(2.75rem, 5vw, 4rem);
  background: var(--color-bg-tint);
  border-bottom: 1px solid var(--color-border);
}

.page-hero .brand-shape {
  top: -10%;
  right: -2%;
  width: min(22vw, 300px);
  color: rgba(255, 255, 255, 0.85);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-2);
  max-width: 820px;
}

.page-hero h1 {
  font-size: var(--text-h1);
}

.page-hero__lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.page-hero + .stats {
  border-top: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

.breadcrumb a {
  color: var(--color-text-muted);
  min-height: 1.5rem;
  display: inline-flex;
  align-items: center;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--color-border-strong);
}

/* Anker-Leiste fuer lange Seiten */
.subnav {
  position: sticky;
  top: var(--header-height-compact);
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
}

.subnav__list {
  position: relative;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.subnav__list::-webkit-scrollbar {
  display: none;
}

.subnav__link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 0.75rem;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  transition: color 260ms var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.subnav__link:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

/* Aktiver Bereich: Farbe am Link, Unterstrich kommt vom gleitenden Indikator */
.subnav__link[aria-current="true"] {
  color: var(--color-primary);
}

/* Gleitender Unterstrich (wird per JS in .subnav__list eingefuegt) */
.subnav__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  opacity: 0;
  pointer-events: none;
  will-change: transform, width;
}

.subnav__indicator.is-visible {
  opacity: 1;
}

.subnav__indicator.is-ready {
  transition:
    transform 360ms var(--ease-out),
    width 360ms var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

/* Inhaltsblock (z. B. ein Loesungsbereich, ein Service) */
.content-blocks {
  display: grid;
  gap: 0;
}

.content-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--header-height-compact) + 4rem);
}

.content-block:first-child {
  border-top: 0;
}

.content-block__head {
  display: grid;
  gap: var(--space-2);
}

.content-block h2,
.content-block h3.content-block__title {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
}

.content-block__problem {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.content-block__problem strong {
  color: var(--color-primary);
}

.content-block__body {
  display: grid;
  gap: var(--space-3);
}

.content-block__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.content-block__statement {
  position: relative;
  padding-left: var(--space-3);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  color: var(--color-primary);
  border-left: 2px solid var(--color-accent);
  max-width: 40rem;
}

.content-block__note {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
}

/* Einfache Textliste mit Marker */
.check-list {
  display: grid;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.check-list li {
  position: relative;
  padding-left: 1.4rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  height: 0.85rem;
  aspect-ratio: var(--mark-ratio);
  background: var(--color-accent);
  clip-path: var(--mark-clip);
}

/* Prosa-Abschnitte (Impressum, Datenschutz, Ueber uns) */
.prose {
  display: grid;
  gap: var(--space-2);
  max-width: var(--container-narrow);
}

.prose h2 {
  font-size: var(--text-h3);
  margin-top: var(--space-2);
}

.prose p,
.prose li {
  color: var(--color-text-muted);
}

.prose a,
.field--checkbox .field__label a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prose a:hover,
.field--checkbox .field__label a:hover {
  color: var(--color-accent-hover);
}

.prose ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.25rem;
  list-style: disc;
}

/* AGB-Seite: Rechtstext 1:1, Aufzaehlungen (a)-(g) eingerueckt */
.page-hero h1.agb__title {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  overflow-wrap: break-word;
}

.agb__download {
  margin-top: var(--space-3);
}

.agb__fassung {
  font-weight: 600;
  color: var(--color-text);
}

.agb__clause {
  display: grid;
  gap: 0.35rem;
}

.agb__item {
  padding-left: 1.75rem;
}

.agb__rule {
  border: 0;
  border-top: 2px solid var(--color-accent);
  margin: var(--space-3) 0 0;
  width: 4rem;
}

/* Kompaktes CTA-Band am Seitenende */
.cta-band {
  background: var(--color-bg-brand);
  color: var(--color-white);
}

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.cta-band h2 {
  font-size: var(--text-h2);
  color: var(--color-white);
  max-width: 22ch;
}

.cta-band p {
  margin-top: 0.5rem;
  color: var(--color-text-on-brand-muted);
}

/* Team-/Partner-Platzhalter */
/* Team: Portrait-Illustrationen (3:4), Vorname, Funktion.
   Flex-Wrap statt Grid, damit eine unvollstaendige letzte Reihe mittig steht. */
.people-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  margin-top: var(--space-2);
}

.person {
  flex: 0 0 auto;
  width: clamp(9.5rem, 8rem + 4vw, 12.5rem);
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
}

.person__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-tint-strong);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.person:hover .person__photo {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--color-accent), var(--shadow-md);
}

.person__name {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

.person__role {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
  text-wrap: pretty;
}

/* Formular */
.form {
  display: grid;
  gap: var(--space-3);
}

.form[hidden] {
  display: none;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  /* Fehlertext bleibt unter dem eigenen Feld und schiebt das Nachbarfeld nicht nach unten */
  align-items: start;
}

.field {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.field__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}

.field__req {
  margin-left: 0.15em;
  color: #a3341c;
  font-weight: var(--weight-bold);
}

.field__optional {
  font-weight: var(--weight-regular);
  color: var(--color-text-subtle);
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 0 0.875rem;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--color-primary);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.field__input:hover {
  border-color: var(--color-primary);
}

.field__input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--color-primary);
}

textarea.field__input {
  min-height: 9rem;
  padding: 0.75rem 0.875rem;
  resize: vertical;
  line-height: 1.5;
}

select.field__input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230e1d42' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

input[type="file"].field__input {
  padding: 0.65rem 0.875rem;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

input[type="file"].field__input::file-selector-button {
  font: inherit;
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  background: var(--color-bg-tint);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 0.3rem 0.7rem;
  margin-right: 0.75rem;
  cursor: pointer;
}

.field__hint {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

.field__error {
  display: none;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: #a3341c;
}

.field--invalid .field__input {
  border-color: #c2410c;
}

.field--invalid .field__error {
  display: block;
}

.field--checkbox {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
}

.field--checkbox input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--color-primary);
}

.field--checkbox .field__label {
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.field--checkbox .field__error {
  grid-column: 1 / -1;
}

.field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.form__footer-note {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

.form__status {
  display: none;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.form__status.is-visible {
  display: block;
}

.form__status--error {
  border-color: #c2410c;
  color: #a3341c;
  background: #fff5f0;
}

.form__success {
  display: none;
  gap: var(--space-2);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--color-bg-tint);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.form__success.is-visible {
  display: grid;
}

.form__success h3 {
  font-size: var(--text-h3);
}

.form__success p {
  color: var(--color-text-muted);
}

/* Kontaktseite Layout */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact__aside {
  display: grid;
  gap: var(--space-3);
  position: sticky;
  top: calc(var(--header-height-compact) + 2rem);
}

.contact__statement {
  font-size: clamp(1.375rem, 1.15rem + 1vw, 2rem);
  font-weight: var(--weight-bold);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.contact__direct {
  display: grid;
  gap: 0.25rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.contact__direct a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}

.contact__direct a:hover {
  color: var(--color-accent-hover);
}

.contact__form {
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   19. Motion (Reveal) – nur mit JS aktiv
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   19b. Motion (Seitenwechsel) – Ankommen und Verlassen
   Reine CSS-Keyframes: greifen ab dem ersten Paint (kein Aufblitzen), auch
   ohne JS. Der fixe Header bleibt bewusst unbewegt, damit der Wechsel
   zwischen Seiten wie ein Inhaltswechsel innerhalb einer App wirkt.
   -------------------------------------------------------------------------- */

/* Gesamter Inhalt blendet weich ein */
main {
  animation: page-fade var(--dur-fade) var(--ease-out) both;
}

/* Header: blendet nur beim ersten Aufruf der Site ein. Bei Wechseln innerhalb
   der Site (html.is-continued, gesetzt im <head>) bleibt er stehen. */
html:not(.is-continued) .site-header {
  animation: page-fade var(--dur-fade) var(--ease-out) both;
}

/* Seitenkopf: Elemente kommen gestaffelt von unten */
.hero__copy > *,
.page-hero__inner > * {
  animation: page-enter var(--dur-enter) var(--ease-out) both;
  animation-delay: var(--enter-delay);
}

.hero__copy > :nth-child(2),
.page-hero__inner > :nth-child(2) {
  animation-delay: calc(var(--enter-delay) + var(--enter-stagger));
}

.hero__copy > :nth-child(3),
.page-hero__inner > :nth-child(3) {
  animation-delay: calc(var(--enter-delay) + var(--enter-stagger) * 2);
}

.hero__copy > :nth-child(4),
.page-hero__inner > :nth-child(4) {
  animation-delay: calc(var(--enter-delay) + var(--enter-stagger) * 3);
}

.hero__copy > :nth-child(n + 5),
.page-hero__inner > :nth-child(n + 5) {
  animation-delay: calc(var(--enter-delay) + var(--enter-stagger) * 4);
}

/* Anker-Leiste folgt dem Seitenkopf */
.subnav {
  animation: page-fade var(--dur-fade) var(--ease-out) both;
  animation-delay: calc(var(--enter-delay) + var(--enter-stagger) * 4);
}

/* Verlassen: JS setzt .is-leaving auf <html>, navigiert nach --dur-leave */
.is-leaving main,
.is-leaving .site-footer {
  animation: page-leave var(--dur-leave) var(--ease-out) forwards;
  pointer-events: none;
}

@keyframes page-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes page-leave {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* --------------------------------------------------------------------------
   20. Media Queries
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4) var(--space-3);
  }

  .solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process__steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process__steps::before,
  .process__progress {
    display: none;
  }

  .process-step {
    grid-template-columns: var(--marker-size) minmax(0, 1fr);
    gap: var(--space-2) var(--space-2);
    align-items: start;
    padding-bottom: var(--space-3);
  }

  .process-step__body {
    padding-top: 0.6rem;
  }

  /* Gesperrt: Zeile kollabiert auf Markerhoehe (0fr -> 1fr), damit keine
     Luecken entstehen. Der Body ist dabei ohnehin unsichtbar. */
  .js .process__steps.is-interactive .process-step {
    grid-template-rows: 0fr;
    /* Reveal-Transition (opacity/transform) beibehalten, Stagger nur dort */
    transition:
      grid-template-rows 420ms var(--ease-out),
      opacity var(--dur) var(--ease-out),
      transform var(--dur) var(--ease-out);
    transition-delay: 0s, calc(var(--i, 0) * var(--stagger)), calc(var(--i, 0) * var(--stagger));
  }

  .js .process__steps.is-interactive .process-step__body {
    min-height: 0;
    overflow: hidden;
  }

  .js .process__steps.is-interactive .process-step.is-unlocked {
    grid-template-rows: 1fr;
  }

  /* Vertikale Linie: grau, wird nach Freischaltung des Folgeschritts akzentfarben */
  .process-step:not(:last-of-type)::before,
  .process-step:not(:last-of-type)::after {
    content: "";
    position: absolute;
    left: calc(var(--marker-size) / 2);
    top: var(--marker-size);
    bottom: 0;
    width: 1px;
    transform: translateX(-0.5px);
  }

  .process-step:not(:last-of-type)::before {
    background: var(--color-border-strong);
  }

  .process-step:not(:last-of-type)::after {
    width: 2px;
    transform: translateX(-1px) scaleY(0);
    transform-origin: top center;
    background: var(--color-accent);
    transition: transform 600ms var(--ease-out);
  }

  .process-step.is-linked:not(:last-of-type)::after {
    transform: translateX(-1px) scaleY(1);
  }

  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .why {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .why .section__head {
    position: static;
  }

  .why__foot {
    grid-column: auto;
  }
}

/* Mehrwortige Punkte bleiben einzeilig. Darunter wuerde die Leiste aus dem
   Header ragen, deshalb klappt die Navigation hier schon zum Hamburger ein. */
@media (max-width: 1120px) {
  :root {
    --header-height: 72px;
    --header-height-compact: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    z-index: 90;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: var(--space-4) var(--space-gutter) var(--space-4);
    background: var(--color-bg-brand);
    color: var(--color-text-on-brand);
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
      opacity var(--dur-fast) var(--ease-out),
      transform var(--dur-fast) var(--ease-out),
      visibility 0s linear var(--dur-fast);
  }

  /* Schraegform aus der Bildmarke, sehr zurueckhaltend in der Ecke */
  .nav::before {
    content: "";
    position: absolute;
    right: -22%;
    bottom: -4%;
    z-index: 0;
    width: min(78vw, 340px);
    aspect-ratio: 46 / 63;
    background: var(--color-white);
    opacity: 0.07;
    pointer-events: none;
    clip-path: polygon(28.96% 98.57%, 98.13% 0.75%, 29.57% 0.75%, 1.89% 58.44%);
  }

  .site-header.is-scrolled .nav {
    inset-block-start: var(--header-height-compact);
  }

  body.nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .nav__list,
  .nav__cta {
    position: relative;
    z-index: 1;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav__link {
    min-height: 52px;
    padding: 0.2rem 0;
    font-size: clamp(1.5rem, 1.15rem + 1.6vw, 1.85rem);
    font-weight: var(--weight-semibold);
    line-height: 1.15;
    color: var(--color-text-on-brand);
  }

  .nav__link:hover,
  .nav__link:focus-visible {
    color: var(--color-accent);
  }

  .nav__link:focus-visible,
  .nav__cta:focus-visible {
    outline-color: var(--color-accent);
  }

  .nav__link[aria-current="page"] {
    color: var(--color-text-on-brand);
  }

  .nav__link[aria-current="page"]:hover,
  .nav__link[aria-current="page"]:focus-visible {
    color: var(--color-accent);
  }

  /* Aktiv-Marker: orange Schraegform vor dem Label, nicht die Desktop-Linie */
  .nav__link[aria-current="page"]::after,
  .is-leaving .nav__link[aria-current="page"]::after {
    position: static;
    order: -1;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    height: 0.95rem;
    aspect-ratio: var(--mark-ratio);
    margin-right: 0.7rem;
    background: var(--color-accent);
    clip-path: var(--mark-clip);
    border-radius: 0;
    transform: none;
    animation: none;
  }

  .nav__cta {
    margin: auto 0 0;
    width: 100%;
    min-height: 52px;
  }

  .lang-switch {
    position: relative;
    z-index: 1;
    margin: auto 0 var(--space-3);
    padding-top: var(--space-3);
  }

  .lang-switch__link {
    min-width: 48px;
    min-height: 48px;
    font-size: var(--text-base, 1rem);
    color: var(--color-text-on-brand);
  }

  .lang-switch__link + .lang-switch__link {
    border-left-color: rgba(255, 255, 255, 0.35);
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .lang-switch__link:hover,
  .lang-switch__link:focus-visible {
    color: var(--color-accent);
    outline-color: var(--color-accent);
  }

  .lang-switch__link[aria-current="true"] {
    color: var(--color-text-on-brand);
  }

  .nav__cta {
    margin-top: 0;
  }

  body.nav-open .nav__list li,
  body.nav-open .nav__cta {
    animation: nav-item-in 280ms var(--ease-out) backwards;
  }

  body.nav-open .nav__list li:nth-child(1) { animation-delay: 30ms; }
  body.nav-open .nav__list li:nth-child(2) { animation-delay: 60ms; }
  body.nav-open .nav__list li:nth-child(3) { animation-delay: 90ms; }
  body.nav-open .nav__list li:nth-child(4) { animation-delay: 120ms; }
  body.nav-open .nav__list li:nth-child(5) { animation-delay: 150ms; }
  body.nav-open .nav__list li:nth-child(6) { animation-delay: 180ms; }

  body.nav-open .nav__cta {
    animation-delay: 210ms;
  }
}

@keyframes nav-item-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .content-block {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

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

  .contact__aside {
    position: static;
  }

  .page-hero .brand-shape {
    width: min(20vw, 160px);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .hero__title {
    max-width: 16ch;
  }

  .hero__visual {
    max-width: 640px;
  }

  .hero .brand-shape {
    right: -6%;
    width: min(44vw, 320px);
    top: -4%;
  }

  .problem-list {
    gap: var(--space-3);
  }

  .problem {
    max-width: 100%;
  }

  .case--featured {
    grid-template-columns: 1fr;
  }

  .products,
  .tech {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .cta-final__inner {
    grid-template-columns: 1fr;
  }

  .section__head--split {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .hero .brand-shape,
  .page-hero .brand-shape {
    display: none;
  }

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

  .cta-band__inner {
    grid-template-columns: 1fr;
  }

  .person {
    width: calc(50% - 0.75rem);
  }

  .contact__form {
    padding: var(--space-3) var(--space-2);
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3) var(--space-2);
  }

  .stat {
    padding-left: 1rem;
  }

  .solutions-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

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

  .case__fact {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .logo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .tech-group__title {
    padding-top: 0;
  }

  .why-item {
    grid-template-columns: 1.15rem minmax(0, 1fr);
  }

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

  .page-hero {
    min-height: 36rem;
  }

  .footer__bubble-slot {
    display: none;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__actions {
    display: grid;
  }
}

@media (max-width: 400px) {
  .page-hero {
    min-height: 39rem;
  }
}

/* --------------------------------------------------------------------------
   21. Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .logo-card:hover,
  .logo-card:focus-visible,
  .logo-cloud__item:nth-child(even) .logo-card:hover,
  .logo-cloud__item:nth-child(even) .logo-card:focus-visible {
    transform: none;
  }

  .logo-board.is-filtering .logo-group:not([hidden]) .logo-cloud__item {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .footer__bubble,
  .subnav__indicator,
  .process__progress,
  .process-step,
  .process-step__marker,
  .js .process__steps.is-interactive .process-step__body > *,
  .process-step:not(:last-of-type)::after {
    transition: none;
  }

  .js .process__steps.is-interactive .process-step.is-next .process-step__marker,
  .js .process__steps.is-complete .process-step__marker,
  .js .process__steps.is-complete .process-step:last-of-type .process-step__marker,
  .js .process__steps.is-complete .process-step__badge,
  .js .process__steps.is-complete .process__progress::after {
    animation: none;
  }

  /* Abschluss ohne Bewegung: Badge steht sofort */
  .js .process__steps.is-complete .process-step__badge {
    transform: none;
    opacity: 1;
  }

  main,
  .subnav,
  .site-header,
  .nav__link[aria-current="page"]::after,
  .hero__copy > *,
  .page-hero__inner > * {
    animation: none;
  }

  .workflow .wf-dash {
    animation: none;
  }

  .workflow .wf-pulse {
    display: none;
  }

  .js .workflow .wf-step,
  .js .workflow .wf-lines,
  .js .workflow .wf-junctions {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   21. Einwilligung (Cookie-/Datenschutz-Banner, js/consent.js)
   -------------------------------------------------------------------------- */

.consent {
  position: fixed;
  left: var(--space-3);
  bottom: var(--space-3);
  z-index: 1100;
  width: min(30rem, calc(100% - 2 * var(--space-3)));
  max-height: calc(100vh - 2 * var(--space-3));
  max-height: calc(100dvh - 2 * var(--space-3));
  overflow-y: auto;
  padding: var(--space-4);
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 48px rgba(14, 29, 66, 0.18);
}

.consent[hidden] {
  display: none;
}

.consent__title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg, 1.25rem);
  line-height: 1.25;
}

.consent__title:focus {
  outline: none;
}

.consent__title:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.consent__text {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.consent__text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent__options {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
}

.consent__options[hidden] {
  display: none;
}

.consent__option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: var(--space-2);
  background: var(--color-bg-tint);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.consent__option input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.15rem 0 0;
  accent-color: var(--color-primary);
}

.consent__option strong {
  color: var(--color-text);
}

.consent__always {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin: 0 calc(-1 * var(--space-4));
  padding: var(--space-3) var(--space-4) var(--space-4);
  background: var(--color-white);
}

.consent__actions .btn {
  padding: 0 1rem;
  white-space: normal;
  text-align: center;
}

.consent__actions .btn--outline {
  grid-column: 1 / -1;
}

.consent__actions [hidden] {
  display: none;
}

/* Footer-Link zum erneuten Oeffnen */
.footer__consent {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  padding: 0;
  font: inherit;
  color: var(--color-text-on-brand-muted);
  background: none;
  border: 0;
  cursor: pointer;
}

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

html:not(.js) .footer__consent {
  display: none;
}

@media (max-width: 640px) {
  .consent {
    left: var(--space-2);
    right: var(--space-2);
    bottom: var(--space-2);
    width: auto;
    max-height: calc(100vh - 2 * var(--space-2));
    max-height: calc(100dvh - 2 * var(--space-2));
    padding: var(--space-3);
  }

  .consent__actions {
    margin: 0 calc(-1 * var(--space-3));
    padding: var(--space-3);
  }
}

@media (max-width: 400px) {
  .consent__actions {
    grid-template-columns: 1fr;
  }
}

/* Button, der wie ein Textlink aussieht (z. B. Einwilligung in der Datenschutzerklaerung) */
.link-button {
  padding: 0;
  font: inherit;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  cursor: pointer;
}

html:not(.js) .link-button[data-consent-open] {
  display: none;
}

/* --------------------------------------------------------------------------
   22. Spamschutz im Kontaktformular (Turnstile erst nach Zustimmung)
   -------------------------------------------------------------------------- */
.turnstile {
  display: grid;
  gap: var(--space-1);
}

.turnstile__consent {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
  padding: var(--space-3);
  background: var(--color-bg-tint);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.turnstile__consent[hidden] {
  display: none;
}

.turnstile__text {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.turnstile__widget:empty {
  display: none;
}

.turnstile__status {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.turnstile__status:empty {
  display: none;
}

/* --------------------------------------------------------------------------
   23. Fehlerseite (404)
   -------------------------------------------------------------------------- */
.error-page__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   22. Support-Alpaka (js/main.js) und Support-Seite
   Fester Button unten rechts, unter dem Cookie-Banner (.consent z-index 1100),
   ueber dem Inhalt. Klick oeffnet .support-panel mit dem Support-Formular.
   -------------------------------------------------------------------------- */

.support-launcher {
  position: fixed;
  right: max(var(--space-2), env(safe-area-inset-right));
  bottom: max(var(--space-2), env(safe-area-inset-bottom));
  z-index: 1050;
  display: block;
  width: 64px;
  height: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), visibility 0s linear 0s;
}

/* Navy-Kachel als Sockel, Alpaka schaut oben heraus */
.support-launcher::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: var(--color-primary);
  border-bottom: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px -8px rgba(14, 29, 66, 0.45);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.support-launcher__img {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: auto;
  height: 84px;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
  transition: transform var(--dur-fast) var(--ease-out);
  pointer-events: none;
}

.support-launcher__bubble {
  position: absolute;
  right: calc(100% + 10px);
  bottom: 18px;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  white-space: nowrap;
  color: var(--color-primary);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.support-launcher:hover::before,
.support-launcher:focus-visible::before,
.support-launcher[aria-expanded="true"]::before {
  background: var(--color-primary-hover);
}

.support-launcher:hover .support-launcher__img,
.support-launcher:focus-visible .support-launcher__img {
  transform: translateX(-50%) translateY(-5px) rotate(-5deg);
}

.support-launcher:hover .support-launcher__bubble,
.support-launcher:focus-visible .support-launcher__bubble {
  opacity: 1;
  transform: none;
}

.support-launcher[aria-expanded="true"] .support-launcher__bubble {
  opacity: 0;
}

.support-launcher:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Footer-Alpaka sichtbar: kleines Alpaka abtauchen lassen */
.support-launcher.is-tucked {
  opacity: 0;
  visibility: hidden;
  transform: translateY(120%);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
}

.support-panel {
  position: fixed;
  right: max(var(--space-2), env(safe-area-inset-right));
  bottom: calc(max(var(--space-2), env(safe-area-inset-bottom)) + 104px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  width: min(27rem, calc(100vw - 2 * var(--space-2)));
  /* unter der kompakten Kopfzeile bleiben */
  max-height: calc(100vh - 104px - var(--header-height) - 3 * var(--space-2));
  max-height: calc(100dvh - 104px - var(--header-height) - 3 * var(--space-2));
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 56px -12px rgba(14, 29, 66, 0.35);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.support-panel[hidden] {
  display: none;
}

.support-panel.is-open {
  opacity: 1;
  transform: none;
}

.support-panel__head {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2) 0 var(--space-3);
  min-height: 88px;
  background: var(--color-primary);
  border-top: 4px solid var(--color-accent);
  color: var(--color-white);
  flex: none;
}

.support-panel__mascot {
  width: auto;
  height: 76px;
  margin-bottom: -2px;
  flex: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.support-panel__titles {
  padding-bottom: var(--space-2);
  min-width: 0;
}

.support-panel__eyebrow {
  margin: 0 0 0.25rem;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.support-panel__title {
  margin: 0;
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: var(--color-white);
}

.support-panel__title:focus {
  outline: none;
}

.support-panel__close {
  position: absolute;
  top: var(--space-1);
  right: var(--space-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
}

.support-panel__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.support-panel__close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.support-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--space-3);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.support-panel__loading {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.support-panel__loading a {
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  text-decoration: underline;
}

.support-panel .form {
  gap: var(--space-2);
}

.support-panel .form__row {
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.support-panel .form__footer .btn {
  width: 100%;
}

.support-panel .form__success {
  padding: var(--space-3);
}

.form__mailto {
  font-weight: var(--weight-semibold);
  color: inherit;
  text-decoration: underline;
}

/* Support-Seite: Alpaka in der Seitenspalte */
.support-page__mascot {
  width: auto;
  height: 120px;
}

@media (max-width: 640px) {
  .support-launcher {
    width: 56px;
    height: 80px;
  }

  .support-launcher::before {
    height: 48px;
  }

  .support-launcher__img {
    height: 72px;
  }

  /* Als Vollbild-Blatt, damit das Formular Platz hat */
  .support-panel {
    inset: 0;
    width: 100%;
    max-height: none;
    height: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  html.support-open {
    overflow: hidden;
  }

  html.support-open .support-launcher {
    visibility: hidden;
  }
}

/* Schmale Fenster: Cookie-Banner geht ueber die volle Breite, das Alpaka
   wartet, bis die Auswahl getroffen ist (Banner nicht verdecken). */
@media (max-width: 720px) {
  body:has(.consent:not([hidden])) .support-launcher {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-launcher,
  .support-launcher__img,
  .support-launcher__bubble,
  .support-panel {
    transition: none;
  }

  .support-launcher:hover .support-launcher__img,
  .support-launcher:focus-visible .support-launcher__img {
    transform: translateX(-50%);
  }

  .support-launcher.is-tucked {
    transform: none;
  }

  .support-panel {
    transform: none;
  }
}

@media print {
  .support-launcher,
  .support-panel {
    display: none !important;
  }
}
