/* ==========================================================================
   GUMAXweb – gemeinsames Stylesheet
   Reines CSS, keine externen Abhängigkeiten. Schriften lokal eingebunden.
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO-freundlich, keine externen Aufrufe) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Kurzer Divis in Überschriften: Bindestrich aus Source Sans 3 übernehmen */
@font-face {
  font-family: "Divis";
  src: url("../assets/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 800;
  unicode-range: U+002D, U+2010, U+2011;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* CI-Farben */
  --ci-red: #e20718;
  --ci-gray-dark: #6d6d6d;
  --ci-gray-light: #d6d6d6;
  --ci-black: #000000;
  --ci-white: #ffffff;

  /* Abgeleitete, harmonische Töne */
  --red-hover: #c00514;
  --red-deep: #9e0410;
  --red-tint: #fdeeee;
  --red-tint-2: #fbdcdd;
  --ink: #1b1b1c;           /* Fließtext-Schwarz, minimal weicher */
  --ink-soft: #4a4a4b;
  --muted: #6d6d6d;         /* = CI-Dunkelgrau */
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.16);
  --bg: #ffffff;
  --surface: #f6f5f4;       /* warmes Hellgrau für Flächen */
  --surface-2: #efeeec;
  --anthracite: #2a2a2c;    /* dunkle Akzentfläche */
  --anthracite-2: #353538;
  --ok: #2f7d4f;            /* Status „verfügbar“ */
  --ok-tint: #e8f3ec;
  --info: #8a6a12;          /* Status „in Entwicklung“ */
  --info-tint: #fbf3dc;

  /* Typografie */
  --font-display: "Divis", "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --text-xs: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --text-sm: clamp(0.9rem, 0.87rem + 0.15vw, 0.97rem);
  --text-base: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.45vw, 1.38rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
  --text-2xl: clamp(1.95rem, 1.45rem + 2vw, 3rem);
  --text-hero: clamp(2.3rem, 1.5rem + 3.4vw, 4.1rem);

  /* Abstände */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --container: 1200px;
  --container-narrow: 820px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(40, 30, 30, 0.06), 0 1px 3px rgba(40, 30, 30, 0.05);
  --shadow-md: 0 6px 18px -6px rgba(40, 30, 30, 0.14), 0 2px 6px rgba(40, 30, 30, 0.05);
  --shadow-lg: 0 24px 48px -18px rgba(40, 30, 30, 0.25);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  hyphens: manual;
  overflow-wrap: break-word;
}
@media (max-width: 600px) {
  body { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
  h1, h2, h3, h4 { hyphens: manual; -webkit-hyphens: manual; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ci-black);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.015em;
  text-wrap: balance;
  hyphens: manual;
}
h1 { font-size: var(--text-2xl); font-weight: 800; }
h2 { font-size: var(--text-xl); font-weight: 750; }
h3 { font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.005em; }
h4 { font-size: var(--text-base); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--red-hover); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--red-deep); }

strong { font-weight: 700; color: var(--ci-black); }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.2em; }

::selection { background: var(--red-tint-2); color: var(--ci-black); }

:focus-visible {
  outline: 3px solid var(--ci-red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 1000;
  background: var(--ci-black);
  color: var(--ci-white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-3); color: var(--ci-white); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -14px rgba(0, 0, 0, 0.35);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--ci-black);
  flex-shrink: 0;
}
.brand img { width: 54px; height: 54px; }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand__name span { color: var(--ci-red); }
.brand__tag { font-size: var(--text-xs); color: var(--muted); }

.nav { display: flex; align-items: center; }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__item { position: relative; }
.nav__link,
.nav__toggle-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  padding: 0 var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__link::after,
.nav__toggle-sub::after {
  content: "";
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: 8px;
  height: 2px;
  background: var(--ci-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover,
.nav__toggle-sub:hover { color: var(--ci-black); background: var(--surface); }
.nav__link[aria-current="page"]::after,
.nav__item.is-active > .nav__toggle-sub::after { transform: scaleX(1); }
.nav__link[aria-current="page"],
.nav__item.is-active > .nav__toggle-sub { color: var(--ci-black); }

.nav__toggle-sub svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.nav__item--has-sub.is-open .nav__toggle-sub svg { transform: rotate(180deg); }

.subnav {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 400px;
  list-style: none;
  margin: 0;
  padding: var(--space-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav__item--has-sub.is-open .subnav,
.nav__item--has-sub:hover .subnav,
.nav__item--has-sub:focus-within .subnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.subnav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
}
.subnav a:hover { background: var(--surface); color: var(--ci-black); }
.subnav a[aria-current="page"] { background: var(--red-tint); color: var(--red-deep); }
.subnav__divider { height: 1px; background: var(--line); margin: var(--space-2) var(--space-3); }

.nav-burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ci-black);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.nav-burger span::before,
.nav-burger span::after { content: ""; position: absolute; left: 0; }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav-open .nav-burger span { background: transparent; }
.nav-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-burger { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--bg);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4) var(--gutter) var(--space-8);
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link, .nav__toggle-sub {
    width: 100%;
    justify-content: space-between;
    font-size: var(--text-base);
    padding: 0 var(--space-2);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    min-height: 52px;
  }
  .nav__link::after, .nav__toggle-sub::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--red-hover); }
  .subnav {
    position: static;
    min-width: 0;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: var(--space-1) 0 var(--space-3) var(--space-3);
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__item--has-sub:hover .subnav,
  .nav__item--has-sub:focus-within .subnav { transform: none; }
  .nav__item--has-sub.is-open .subnav { display: block; transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0 var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--ci-red); color: var(--ci-white); box-shadow: 0 8px 20px -10px rgba(226, 7, 24, 0.7); }
.btn--primary:hover { background: var(--red-hover); color: var(--ci-white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ci-black); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ci-black); color: var(--ci-black); }
.btn--light { background: var(--ci-white); color: var(--ci-black); }
.btn--light:hover { background: var(--ci-gray-light); color: var(--ci-black); }
.btn--outline-light { color: var(--ci-white); border-color: rgba(255, 255, 255, 0.4); background: transparent; }
.btn--outline-light:hover { border-color: var(--ci-white); color: var(--ci-white); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--red-hover);
  text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Eyebrow / Labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-hover);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}
.eyebrow--light { color: #ff8a92; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.6;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.badge--ok { background: var(--ok-tint); color: var(--ok); }
.badge--dev { background: var(--info-tint); color: var(--info); }
.badge--plan { background: var(--surface-2); color: var(--ink-soft); }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-24)); }
.section--tight { padding-block: clamp(var(--space-12), 6vw, var(--space-16)); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--anthracite); color: #e9e9ea; }
.section--dark h2, .section--dark h3, .section--dark strong { color: var(--ci-white); }

.section-head { max-width: 720px; margin-bottom: clamp(var(--space-8), 5vw, var(--space-12)); }
.section-head p { color: var(--ink-soft); font-size: var(--text-base); }
.section--dark .section-head p { color: #bdbdc0; }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: end;
}
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

.lead { font-size: var(--text-lg); line-height: 1.55; color: var(--ink-soft); }
.lead strong { color: var(--ci-black); }

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-12), 7vw, var(--space-20)) clamp(var(--space-16), 8vw, var(--space-24));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 55%;
  height: 100%;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(246, 245, 244, 0) 100%);
  border-bottom-left-radius: 48% 30%;
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.hero__text { container-type: inline-size; min-width: 0; }
.hero h1 {
  font-size: min(var(--text-hero), calc((100vw - 2.5rem) / 9.4));
  font-size: min(var(--text-hero), calc(100cqi / 9.4));
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.04;
  margin-bottom: var(--space-6);
}
.hero h1 .accent { color: var(--ci-red); white-space: nowrap; }
.hero__lead { font-size: var(--text-lg); color: var(--ink-soft); line-height: 1.55; max-width: 36em; }
.hero__lead strong { color: var(--ci-black); }
.hero .btn-row { margin-top: var(--space-8); }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin: var(--space-10) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  color: var(--muted);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 0.5em; }
.hero__facts svg { width: 18px; height: 18px; color: var(--ci-red); flex-shrink: 0; }

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.hero__ring {
  position: absolute;
  width: min(118%, 640px);
  aspect-ratio: 1;
  color: var(--ci-gray-light);
  animation: spin 120s linear infinite;
  z-index: 0;
}
.hero__ring--inner {
  width: min(84%, 460px);
  color: rgba(226, 7, 24, 0.28);
  animation-duration: 90s;
  animation-direction: reverse;
}
.hero__tablet {
  position: relative;
  z-index: 1;
  width: min(100%, 630px);
  filter: drop-shadow(0 34px 40px rgba(30, 20, 20, 0.22));
  animation: float 9s ease-in-out infinite;
}
.hero__logo-chip {
  position: absolute;
  z-index: 2;
  left: 2%;
  bottom: 6%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-3);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
  line-height: 1.3;
}
.hero__logo-chip img { width: 52px; height: 52px; }
.hero__logo-chip strong { display: block; font-family: var(--font-display); font-size: var(--text-sm); }
.hero__logo-chip span { color: var(--muted); font-size: var(--text-xs); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero::before { width: 100%; height: 55%; inset: auto 0 0 0; border-radius: 40% 40% 0 0 / 18% 18% 0 0; background: linear-gradient(0deg, var(--surface), rgba(246,245,244,0)); }
  .hero__visual { min-height: 0; padding-block: var(--space-8); }
  .hero__logo-chip { left: 0; bottom: 0; }
}

/* ---------- Nutzen auf einen Blick ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.benefit {
  position: relative;
  padding: var(--space-8) var(--space-6) var(--space-8);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background-color 0.3s var(--ease);
}
.benefit::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: calc(100% + 2px);
  height: 3px;
  background: var(--ci-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.benefit:hover::before { transform: scaleX(1); }
.benefit:hover { background: #fffdfd; }
.benefit__icon { width: 30px; height: 30px; color: var(--ci-red); margin-bottom: var(--space-5); }
.benefit__num {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ci-gray-light);
  letter-spacing: 0.06em;
}
.benefit h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.benefit p { color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.55; }
.benefit--feature { background: var(--ci-black); color: #dcdcdc; }
.benefit--feature h3 { color: var(--ci-white); }
.benefit--feature p { color: #c4c4c4; }
.benefit--feature .benefit__num { color: #555; }
.benefit--feature:hover { background: #111; }
.benefit--feature .benefit__big {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  line-height: 1;
  color: var(--ci-red);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

@media (max-width: 1080px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- Ablauf / Prozess ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: flow;
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 2px;
  background-image: linear-gradient(90deg, var(--ci-gray-light) 50%, transparent 50%);
  background-size: 10px 2px;
}
.flow--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow__step { position: relative; counter-increment: flow; padding-right: var(--space-2); }
.flow__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ci-red);
  color: var(--ci-red);
  margin-bottom: var(--space-5);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.flow__step:hover .flow__dot { background: var(--ci-red); color: var(--ci-white); }
.flow__dot svg { width: 24px; height: 24px; }
.flow__step h3 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.flow__step h3::before {
  content: counter(flow, decimal-leading-zero);
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--ci-gray-dark);
  font-weight: 700;
  margin-bottom: 0.2em;
}
.flow__step p { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.55; }
.section--surface .flow__dot { background: var(--surface); }
.section--surface .flow__step:hover .flow__dot { background: var(--ci-red); }

@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; gap: var(--space-6); }
  .flow::before { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; background-image: linear-gradient(180deg, var(--ci-gray-light) 50%, transparent 50%); background-size: 2px 10px; }
  .flow__step { display: grid; grid-template-columns: 56px 1fr; gap: 0 var(--space-5); }
  .flow__dot { grid-row: span 2; margin: 0; }
}

/* ---------- Karten ---------- */
.cards { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.section--surface .card { border-color: transparent; box-shadow: var(--shadow-sm); }
a.card { color: inherit; text-decoration: none; }
a.card:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.card__icon { width: 28px; height: 28px; color: var(--ci-red); margin-bottom: var(--space-4); }
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--ink-soft); font-size: var(--text-sm); }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-4); }
.card__top .card__icon { margin: 0; }
.card__foot { margin-top: auto; padding-top: var(--space-5); }
.card__list { list-style: none; padding: 0; margin: var(--space-3) 0 0; font-size: var(--text-sm); color: var(--ink-soft); }
.card__list li { padding: 0.3em 0 0.3em 1.3em; position: relative; }
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid var(--ci-red);
}

/* Modul-Übersicht */
.module-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-5);
}
.module-grid > .card { grid-column: span 2; }
.module-grid > .card--wide { grid-column: span 3; }
@media (max-width: 1020px) {
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid > .card, .module-grid > .card--wide { grid-column: span 1; }
}
@media (max-width: 640px) { .module-grid { grid-template-columns: 1fr; } }

.module-card__areas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.chip {
  display: inline-block;
  padding: 0.18em 0.7em;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-soft);
}

/* Modul-Teaser (Startseite) */
.module-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.module-strip__col h3 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-2);
}
.module-strip ul { list-style: none; padding: 0; margin: 0; }
.module-strip li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s var(--ease), padding 0.25s var(--ease);
}
.module-strip li a svg { width: 16px; height: 16px; color: var(--ci-red); opacity: 0; transform: translateX(-6px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); flex-shrink: 0; }
.module-strip li a:hover { color: var(--ci-black); padding-left: var(--space-2); }
.module-strip li a:hover svg { opacity: 1; transform: none; }
.module-strip li small { display: block; font-weight: 400; color: var(--muted); font-size: var(--text-xs); }
@media (max-width: 860px) { .module-strip { grid-template-columns: 1fr; gap: var(--space-6); } }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  padding-block: clamp(var(--space-10), 6vw, var(--space-16)) clamp(var(--space-12), 7vw, var(--space-20));
  isolation: isolate;
}
.page-hero__ring {
  position: absolute;
  right: -120px;
  top: 50%;
  width: 520px;
  aspect-ratio: 1;
  translate: 0 -50%;
  color: var(--ci-gray-light);
  z-index: -1;
  animation: spin 140s linear infinite;
}
.page-hero h1 { max-width: 18em; }
.page-hero .lead { max-width: 40em; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
@media (max-width: 700px) { .page-hero__ring { width: 340px; right: -170px; opacity: 0.7; } }

.breadcrumb { margin-bottom: var(--space-6); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4em; list-style: none; padding: 0; margin: 0; font-size: var(--text-xs); color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4em; color: var(--ci-gray-light); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red-hover); text-decoration: underline; }

/* ---------- Inhaltslayout mit Seitenleiste ---------- */
.layout-aside {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + var(--space-6));
  font-size: var(--text-sm);
}
.toc__title { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-3); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a {
  display: block;
  padding: var(--space-2) var(--space-4);
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.toc a:hover { color: var(--ci-black); }
.toc a.is-current { color: var(--ci-black); font-weight: 700; border-left-color: var(--ci-red); }
@media (max-width: 960px) {
  .layout-aside { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
}

.prose { max-width: 70ch; }
.prose > * + h2 { margin-top: var(--space-16); }
.prose > * + h3 { margin-top: var(--space-8); }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.5em; margin-bottom: var(--space-2); }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.68em;
  width: 8px;
  height: 2px;
  background: var(--ci-red);
}
.content-block + .content-block { margin-top: clamp(var(--space-12), 7vw, var(--space-20)); }

/* Leistungsliste (Anwendung) */
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-10); list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
}
.feature-list svg { width: 26px; height: 26px; color: var(--ci-red); margin-top: 2px; }
.feature-list h3 { font-size: var(--text-base); margin-bottom: var(--space-1); }
.feature-list p { font-size: var(--text-sm); color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }

/* Drei Gründe */
.reasons { display: grid; gap: var(--space-5); grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: reason; }
.reason { padding: var(--space-8) var(--space-6); border-radius: var(--radius-lg); background: var(--anthracite-2); counter-increment: reason; position: relative; }
.reason::before {
  content: counter(reason);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--ci-red);
  margin-bottom: var(--space-4);
}
.reason h3 { color: var(--ci-white); font-size: var(--text-lg); }
.reason p { color: #c9c9cc; font-size: var(--text-sm); }
.reason--wide { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5) var(--space-8); align-items: start; }
.reason--wide::before { content: none; }
.reason__icon { width: 40px; height: 40px; color: var(--ci-red); margin-bottom: var(--space-4); }
.section--dark .checklist { color: #dcdcdf; font-size: var(--text-sm); }
@media (max-width: 960px) {
  .reasons { grid-template-columns: 1fr; }
  .reason--wide { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* Zitat / Hervorhebung */
.callout {
  position: relative;
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  border-radius: var(--radius-xl);
  background: var(--red-tint);
  overflow: hidden;
}
.callout p { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; line-height: 1.45; color: var(--ci-black); max-width: 46em; }
.callout__mark { position: absolute; right: -80px; bottom: -84px; width: 210px; opacity: 0.08; pointer-events: none; }
@media (min-width: 761px) { .callout p { padding-right: 90px; } }

/* Zweispaltiger Medienblock */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--space-8), 6vw, var(--space-16)); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; filter: drop-shadow(0 24px 32px rgba(30, 20, 20, 0.18)); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* Info-Kacheln mit Kennzahlen */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { padding: var(--space-6); border-radius: var(--radius-md); background: var(--bg); border: 1px solid var(--line); }
.fact__value { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: var(--ci-black); line-height: 1.1; margin-bottom: var(--space-2); }
.fact__value span { color: var(--ci-red); }
.fact__label { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 900px) { .facts, .facts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .facts, .facts--2, .facts--3 { grid-template-columns: 1fr; } }

/* Unterbereiche (Module) */
.subareas { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.subarea { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface); }
.subarea h3 { font-size: var(--text-base); display: flex; align-items: center; gap: var(--space-3); }
.subarea h3 svg { width: 22px; height: 22px; color: var(--ci-red); flex-shrink: 0; }
.subarea p { font-size: var(--text-sm); color: var(--ink-soft); }

/* Check-Liste */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-3); align-items: start; }
.checklist svg { width: 20px; height: 20px; color: var(--ci-red); margin-top: 0.2em; }
.checklist--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-8); }
@media (max-width: 700px) { .checklist--cols { grid-template-columns: 1fr; } }

/* Hinweisbox */
.note {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.note svg { width: 22px; height: 22px; color: var(--ci-gray-dark); margin-top: 2px; }
.note strong { color: var(--ci-black); }

/* Modul-Navigation (vor/zurück) */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.pager a {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ci-black);
  font-weight: 700;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.pager a span { font-size: var(--text-xs); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.pager a:hover { border-color: var(--ci-red); background: #fffafa; }
.pager__next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager__next { grid-column: 1; } }

/* ---------- Technik: Architekturdiagramm ---------- */
.arch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1.25fr) 70px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}
.arch__tier {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.arch__tier--core { border: 2px solid var(--ci-red); box-shadow: 0 18px 40px -22px rgba(226, 7, 24, 0.45); }
.arch__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-2); }
.arch__tier h3 { font-size: var(--text-lg); margin-bottom: var(--space-4); }
.arch__tier svg.arch__icon { width: 30px; height: 30px; color: var(--ci-red); margin-bottom: var(--space-3); }
.arch__items { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.arch__items li {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}
.arch__items li small { display: block; font-weight: 400; color: var(--muted); font-size: var(--text-xs); }
.arch__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}
.arch__link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  right: 6px;
  height: 2px;
  background-image: linear-gradient(90deg, var(--ci-red) 50%, transparent 50%);
  background-size: 12px 2px;
  animation: dash 1.2s linear infinite;
}
.arch__link span { position: relative; background: var(--surface); padding: 0.2em 0.4em; border-radius: 4px; }
@keyframes dash { to { background-position: 12px 0; } }

.arch-ext { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.arch-ext__item {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-strong);
  background: var(--bg);
  font-size: var(--text-sm);
}
.arch-ext__item strong { display: block; font-family: var(--font-display); font-size: var(--text-sm); }
.arch-ext__item span { color: var(--muted); font-size: var(--text-xs); }

@media (max-width: 1000px) {
  .arch { grid-template-columns: 1fr; }
  .arch__link { min-height: 56px; }
  .arch__link::before { top: 6px; bottom: 6px; left: 50%; right: auto; width: 2px; height: auto; background-image: linear-gradient(180deg, var(--ci-red) 50%, transparent 50%); background-size: 2px 12px; animation-name: dashv; }
  .arch-ext { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .arch-ext { grid-template-columns: 1fr; } }
@keyframes dashv { to { background-position: 0 12px; } }

/* Tabellen */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.spec-table th, .spec-table td { text-align: left; padding: var(--space-4) var(--space-5); vertical-align: top; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 32%; font-weight: 700; color: var(--ci-black); background: var(--surface); }
.spec-table td { color: var(--ink-soft); }

/* Technik-Kacheln */
.tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 800px) { .tech-grid { grid-template-columns: 1fr; } }
.tech-box { padding: var(--space-8) var(--space-6); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg); }
.tech-box h3 { display: flex; align-items: center; gap: var(--space-3); }
.tech-box h3 svg { width: 24px; height: 24px; color: var(--ci-red); flex-shrink: 0; }
.tech-box .checklist { font-size: var(--text-sm); color: var(--ink-soft); }

.stack { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.stack__item {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--anthracite-2);
  min-width: 180px;
  flex: 1 1 180px;
}
.stack__item span { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: #a9a9ad; font-weight: 700; }
.stack__item strong { font-family: var(--font-display); font-size: var(--text-base); color: var(--ci-white); }

/* ---------- CTA-Band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--anthracite);
  color: #dedee0;
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: var(--space-8);
  align-items: center;
  isolation: isolate;
}
.cta-band h2 { color: var(--ci-white); margin-bottom: var(--space-3); }
.cta-band p { color: #c4c4c8; max-width: 38em; }
.cta-band__ring { position: absolute; right: -90px; top: -110px; width: 360px; color: rgba(255, 255, 255, 0.09); z-index: -1; animation: spin 120s linear infinite; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-top: clamp(var(--space-12), 6vw, var(--space-16));
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
  padding-bottom: var(--space-12);
}
.site-footer__brand img { width: 64px; height: 64px; margin-bottom: var(--space-4); }
.site-footer__brand p { max-width: 30em; }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ci-black);
  margin-bottom: var(--space-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--red-hover); text-decoration: underline; }
.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: var(--space-6);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
}
.site-footer__legal { font-size: var(--text-xs); color: var(--muted); }
/* CI-Vorgabe: Firmenlogo immer unten rechts */
.company-logo { margin-left: auto; display: block; flex-shrink: 0; }
.company-logo img { width: clamp(190px, 22vw, 260px); height: auto; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .company-logo { align-self: flex-end; }
}

/* ---------- Scroll-Animationen (dezent) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.06s; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.12s; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.18s; }
.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.24s; }
.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.30s; }
.js .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.36s; }
.js .reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.42s; }
.js .reveal-stagger.is-visible > *:nth-child(n+9) { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .nav, .cta-band, .toc, .hero__ring, .page-hero__ring { display: none !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  body { font-size: 11pt; }
  .section { padding-block: 1.2rem; }
  .site-footer__grid { display: none; }
}

/* ---------- Hilfsklassen ---------- */
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.text-muted { color: var(--muted); }
.center { text-align: center; }

/* Sehr schmale Geräte: Kopfzeile kompakter */
@media (max-width: 360px) {
  .brand__tag { display: none; }
  .brand img { width: 44px; height: 44px; }
}

/* Ausgabeformate (Funktionen › Statistik) */
.formats { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.format {
  display: flex; align-items: center; gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--ci-white);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.format:hover { border-color: var(--ci-gray-light); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.format__tag {
  flex: 0 0 4rem; height: 4rem;
  display: grid; place-items: center;
  border-radius: 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: .01em;
  color: var(--ci-white);
}
.format--pdf  .format__tag { background: var(--ci-red); }
.format--xlsx .format__tag { background: var(--ci-gray-dark); }
.format--docx .format__tag { background: var(--anthracite); }
.format__text { display: grid; gap: 2px; min-width: 0; }
.format__text strong { font-family: var(--font-display); font-size: var(--text-base); color: var(--ci-black); }
.format__text span { color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
@media (max-width: 420px) {
  .format { gap: var(--space-4); padding: var(--space-4); }
  .format__tag { flex-basis: 3.75rem; height: 3.75rem; font-size: .95rem; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .format { gap: var(--space-4); padding: var(--space-4); }
  .format__tag { flex-basis: 3.5rem; height: 3.5rem; font-size: .95rem; }
}

/* ---------- Rechtliches (Impressum, Datenschutz) ---------- */
.legal-nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-2); }
.site-footer__legal p { margin: 0; }
.site-footer .legal-nav a { color: var(--ink-soft); font-size: var(--text-sm); }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.legal-card { padding: var(--space-8) var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.legal-card h2 { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-lg); margin-bottom: var(--space-5); }
.legal-card h2 svg { width: 24px; height: 24px; color: var(--ci-red); flex-shrink: 0; }
.legal-card h3 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: var(--space-5) 0 var(--space-2); }
.legal-card p { margin: 0 0 var(--space-2); }
.legal-card__lines { line-height: 1.6; }
.legal-card__strong { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--ci-black); letter-spacing: .02em; }
.legal-list { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-5); margin: 0; }
.legal-list dt { color: var(--muted); }
.legal-list dd { margin: 0; color: var(--ink); }
.legal-card a, .legal-prose a { color: var(--ci-red); text-decoration: underline; text-underline-offset: 3px; }
.legal-card a:hover, .legal-prose a:hover { color: var(--red-hover); }
.legal-prose h2 { font-size: var(--text-lg); margin-top: var(--space-10) !important; }
.legal-prose > h2:first-child { margin-top: 0 !important; }
.legal-date { margin-top: var(--space-10); font-size: var(--text-sm); color: var(--muted); }
.legal-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.legal-summary__item { display: flex; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.legal-summary__item svg { width: 24px; height: 24px; color: var(--ci-red); flex-shrink: 0; margin-top: 2px; }
.legal-summary__item p { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); }
.legal-summary__item strong { display: block; color: var(--ci-black); font-family: var(--font-display); font-size: var(--text-base); margin-bottom: 2px; }
@media (max-width: 900px) { .legal-summary { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .legal-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .legal-list { grid-template-columns: 1fr; gap: 0; } .legal-list dd { margin-bottom: var(--space-3); } }

/* ---------- Kontakt ---------- */
@media (min-width: 961px) {
  .nav__link--cta { margin-left: var(--space-2); background: var(--ci-red); color: var(--ci-white) !important; }
  .nav__link--cta:hover { background: var(--red-hover); color: var(--ci-white); }
  .nav__link--cta::after { display: none; }
  .nav__link--cta[aria-current="page"] { background: var(--ci-black); }
}
.btn svg { width: 18px; height: 18px; }

.contact-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.contact-tile { padding: var(--space-8) var(--space-6) var(--space-6); }
.contact-tile__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--space-5);
  border-radius: 14px; background: var(--red-tint); color: var(--ci-red);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.contact-tile__icon svg { width: 26px; height: 26px; }
a.contact-tile:hover .contact-tile__icon { background: var(--ci-red); color: var(--ci-white); }
.contact-hint {
  display: flex; gap: var(--space-3); align-items: flex-start; margin-top: var(--space-8);
  font-size: var(--text-sm); color: var(--ink-soft);
}
.contact-hint > svg { width: 20px; height: 20px; color: var(--ci-gray-dark); flex-shrink: 0; margin-top: 2px; }
.contact-hint strong { color: var(--ci-black); }

.copy-btn {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 36px; padding: 0 var(--space-3);
  font: 600 var(--text-xs)/1 var(--font-body); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn:hover { border-color: var(--ci-black); color: var(--ci-black); }
.copy-btn.is-copied { border-color: #1f7a45; color: #1f7a45; background: #eaf6ef; }
.copy-btn--inline { margin-left: var(--space-2); vertical-align: middle; }

.contact-panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--space-8), 5vw, var(--space-16));
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.contact-person { display: flex; flex-direction: column; align-items: flex-start; }
.contact-person h2 { margin-bottom: var(--space-2); }
.contact-person__role { color: var(--ink-soft); margin-bottom: var(--space-5); }
.contact-person__avatar { position: relative; width: 132px; height: 132px; margin-bottom: var(--space-6); }
.contact-person__ring { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); color: var(--ci-gray-light); }
.contact-person__initials, .contact-person__avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.contact-person__initials {
  display: grid; place-items: center; background: var(--ci-red); color: var(--ci-white);
  font: 800 2.4rem/1 var(--font-display); letter-spacing: .02em;
}
.contact-status { display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-5); font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft); }
.contact-status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ci-gray-dark); }
.contact-status.is-open { color: #1f7a45; }
.contact-status.is-open .contact-status__dot { background: #2f9e5b; box-shadow: 0 0 0 4px rgba(47, 158, 91, .18); }

.contact-list { margin: 0; display: grid; align-content: center; }
.contact-list__row { display: grid; grid-template-columns: 11rem 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.contact-list__row:first-child { padding-top: 0; }
.contact-list__row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list dt { display: flex; align-items: center; gap: var(--space-3); color: var(--muted); font-size: var(--text-sm); font-weight: 600; align-self: start; padding-top: .35em; }
.contact-list dt svg { width: 20px; height: 20px; color: var(--ci-red); flex-shrink: 0; }
.contact-list dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.contact-list dd br + span { flex-basis: 100%; }
.contact-list__big { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--ci-black); text-decoration: none; }
.contact-list__big:hover { color: var(--ci-red); text-decoration: underline; text-underline-offset: 4px; }

.arrival { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.map-card { margin: 0 0 var(--space-6); padding: var(--space-3); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); max-width: 326px; }
.map-card img { width: 100%; border-radius: var(--radius-md); }
.arrival__address { font-style: normal; line-height: 1.6; margin-bottom: var(--space-4); }
.arrival__address strong { font-family: var(--font-display); color: var(--ci-black); }
.text-link svg { width: 16px; height: 16px; }
.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.way { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-5); padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.way:last-child { border-bottom: 0; }
.way > svg { width: 48px; height: 48px; padding: 12px; border-radius: 12px; background: var(--surface); color: var(--ci-red); }
.way h3 { font-size: var(--text-base); margin-bottom: var(--space-1); }
.way p { margin: 0; color: var(--ink-soft); }

@media (max-width: 960px) {
  .contact-tiles { grid-template-columns: 1fr; }
  .contact-panel, .arrival { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .contact-list__row { grid-template-columns: 1fr; gap: var(--space-2); }
  .contact-list dt { padding-top: 0; }
  .copy-btn--inline { margin: var(--space-2) 0 0; }
}
.nav__link, .nav__toggle-sub { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1140px) {
  .brand__tag { display: none; }
  .nav__link, .nav__toggle-sub { padding: 0 var(--space-3); }
  .nav__link::after, .nav__toggle-sub::after { left: var(--space-3); right: var(--space-3); }
}
/* Kontakt: allgemeines Anliegen über die volle Breite */
.contact-tile--wide {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; gap: var(--space-6);
  padding: var(--space-6) var(--space-8);
  background: var(--red-tint); border-color: transparent;
}
.contact-tile--wide .contact-tile__icon { margin: 0; flex-shrink: 0; background: var(--ci-white); }
.contact-tile--wide .contact-tile__body { flex: 1; min-width: 0; }
.contact-tile--wide h3 { margin-bottom: var(--space-1); }
.contact-tile--wide p { margin: 0; max-width: 62ch; }
.contact-tile__cta { flex-shrink: 0; pointer-events: none; }
a.contact-tile--wide:hover .contact-tile__cta { background: var(--red-hover); }
@media (max-width: 760px) {
  .contact-tile--wide { flex-direction: column; align-items: flex-start; padding: var(--space-8) var(--space-6) var(--space-6); }
  .contact-tile--wide .contact-tile__cta { margin-top: var(--space-2); }
}
