/* HubDix Produktwebsite – Designsystem
   Farben aus der HubDix-CI (hubdix.com / system/css/hubdix-light-theme.css).
   Keine externen Abhängigkeiten. Schrift: Manrope (OFL), lokal eingebunden. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Marke */
  --navy-950: #050c17;
  --navy-900: #07111f;
  --navy-800: #0a1324;
  --navy-700: #0f1b2d;
  --navy-600: #162338;
  --navy-500: #25334a;
  --cyan: #19d3ff;
  --blue: #2563ff;
  --blue-700: #1d4ed8;
  --gradient: linear-gradient(135deg, #19d3ff 0%, #2563ff 100%);

  /* Fläche hell */
  --paper: #ffffff;
  --mist: #f3f6fa;
  --mist-2: #e7edf5;
  --line: #d9e1ec;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #526073;

  /* Text dunkel */
  --on-dark: #f5f8fc;
  --on-dark-2: #c3cede;
  --on-dark-3: #93a1b6;

  /* Status (Produktfarbsprache) */
  --ok: #16a34a;
  --warn: #d97706;
  --crit: #dc2626;
  --neutral: #94a3b8;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow: 0 2px 6px rgba(15, 23, 42, .06), 0 18px 40px -18px rgba(15, 23, 42, .28);
  --shadow-dark: 0 30px 80px -30px rgba(0, 0, 0, .7);

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" on;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.022em; font-weight: 750; color: inherit; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.5rem); font-weight: 780; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -.012em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 700; }
small { font-size: .86em; }
::selection { background: rgba(25, 211, 255, .3); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.surface-light :focus-visible, .section--light :focus-visible, .section--mist :focus-visible { outline-color: var(--blue); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-s);
  font-weight: 700; box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }
.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;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 17, 31, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: var(--on-dark);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 6px; }
.brand img { height: 30px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--on-dark-2); text-decoration: none; font-size: .95rem; font-weight: 600;
  transition: color .2s, background-color .2s;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__link[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 8px 8px 0 0; }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  color: var(--on-dark-2); text-decoration: none; font-weight: 700; font-size: .85rem; letter-spacing: .06em;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
}
.lang-switch:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #fff; cursor: pointer;
}
.nav-toggle svg { margin: auto; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; margin: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 12px var(--gutter) 24px; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__link { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; }
  .nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cyan); padding-left: 14px; border-radius: 0; }
  .nav__actions { margin: 16px 0 0; }
  .no-js .nav { display: flex; position: static; max-height: none; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-header__inner { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.1; text-decoration: none;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(5, 12, 23, .3); }
.btn--primary:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn--ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); }
.btn--outline { color: var(--ink); border-color: var(--line); background: var(--paper); }
.btn--outline:hover { border-color: var(--ink-2); }
.btn--small { min-height: 44px; padding: 0 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--navy-900); color: var(--on-dark); }
.section--dark p, .section--dark li { color: var(--on-dark-2); }
.section--dark a:not(.btn) { color: var(--cyan); }
.section--border { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-700);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gradient); border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--cyan); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--ink-2); max-width: 46em; }
.section--dark .lead, .hero .lead, .page-hero .lead { color: var(--on-dark-2); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p:last-child { margin-bottom: 0; }
.text-accent { color: var(--cyan); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background: radial-gradient(1200px 600px at 85% -10%, rgba(37, 99, 255, .28), transparent 60%),
              radial-gradient(800px 500px at -10% 110%, rgba(25, 211, 255, .14), transparent 60%),
              var(--navy-900);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; font-size: clamp(2.4rem, 4.7vw, 4.25rem); }
.hero h1 span { display: block; }
.hero .lead { margin-bottom: 32px; }
.hero__claim { margin-top: 36px; font-size: .8rem; letter-spacing: .22em; font-weight: 800; color: var(--on-dark-3); }
.hero__visual { position: relative; padding-bottom: 40px; }
.hero__visual .shot--browser { transform: perspective(1800px) rotateY(-5deg) rotateX(2deg); transform-origin: left center; }
.hero__visual .phone { position: absolute; right: -8px; bottom: -6px; width: 30%; min-width: 132px; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual .shot--browser { transform: none; }
}

.page-hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background: radial-gradient(900px 500px at 90% -20%, rgba(37, 99, 255, .25), transparent 60%), var(--navy-900);
  padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 7vw, 88px);
}
.page-hero--photo { min-height: min(72vh, 640px); display: flex; align-items: flex-end; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 31, .35) 0%, rgba(7, 17, 31, .78) 55%, rgba(7, 17, 31, .97) 100%),
              linear-gradient(90deg, rgba(7, 17, 31, .85) 0%, rgba(7, 17, 31, .1) 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); max-width: 15em; }
.page-hero .lead { max-width: 40em; margin-bottom: 28px; }
.breadcrumb { margin-bottom: 26px; font-size: .86rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; color: var(--on-dark-3); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: var(--on-dark-2); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Mockups ---------- */
.shot { margin: 0; }
.shot__frame {
  position: relative; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.shot--browser .shot__frame { padding-top: 30px; background: #e9eef5; }
.shot--browser .shot__frame::before {
  content: ""; position: absolute; top: 11px; left: 14px; width: 8px; height: 8px; border-radius: 50%;
  background: #ff6159; box-shadow: 14px 0 0 #ffbd2e, 28px 0 0 #28c941;
}
.shot--browser .shot__frame::after {
  content: ""; position: absolute; top: 8px; left: 64px; right: 14px; height: 14px; border-radius: 4px; background: #fff; opacity: .9;
}
.on-dark .shot__frame, .hero .shot__frame, .section--dark .shot__frame { border-color: rgba(255, 255, 255, .1); box-shadow: var(--shadow-dark); }
.shot__frame img { width: 100%; }
.shot__zoom { display: block; color: inherit; cursor: zoom-in; border-radius: 12px; }
.shot figcaption { margin-top: 12px; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.section--dark .shot figcaption, .hero .shot figcaption { color: var(--on-dark-3); }
.shot--panel { max-width: 400px; }
.shot--panel .shot__frame { border-radius: 16px; }

.phone {
  margin: 0; position: relative; border-radius: 34px; padding: 9px; background: #0b0f17;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(0, 0, 0, .75);
}
.phone__screen { border-radius: 26px; overflow: hidden; background: #eef2f7; position: relative; }
.phone__screen::before {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 30%; height: 16px; border-radius: 12px; background: #0b0f17; z-index: 1;
}
.phone img { width: 100%; }
.phone figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: clamp(22px, 2.4vw, 30px); border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-s);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card h3 { margin: 6px 0 4px; }
.card p { color: var(--ink-2); margin: 0; }
.card ul { color: var(--ink-2); margin: 8px 0 0; font-size: .96rem; }
.card__icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(25, 211, 255, .16), rgba(37, 99, 255, .16)); color: var(--blue-700);
}
.card__icon svg { width: 22px; height: 22px; }
.card__more { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: .93rem; color: var(--blue-700); display: inline-flex; align-items: center; gap: 6px; }
.card__more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
a.card { color: inherit; text-decoration: none; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c4d0e0; }
a.card:hover .card__more svg { transform: translateX(3px); }
.section--dark .card { background: var(--navy-700); border-color: rgba(255, 255, 255, .08); box-shadow: none; }
.section--dark .card p, .section--dark .card li { color: var(--on-dark-2); }
.section--dark .card__icon { color: var(--cyan); background: rgba(25, 211, 255, .1); }
.section--dark a.card:hover { border-color: rgba(25, 211, 255, .4); }
.section--dark .card__more { color: var(--cyan); }

.theme-block { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.theme-block:first-of-type { border-top: 0; padding-top: 0; }
.theme-block__title { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -.02em; }
.theme-block__head p { color: var(--muted); }
.theme-block__num { font-size: .8rem; font-weight: 800; letter-spacing: .14em; color: var(--blue-700); margin-bottom: 10px; display: block; }
@media (max-width: 860px) { .theme-block { grid-template-columns: minmax(0, 1fr); } }

/* Split: Text + Visual */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split + .split { margin-top: clamp(64px, 8vw, 112px); }
@media (max-width: 900px) { .split, .split--even { grid-template-columns: minmax(0, 1fr); } .split--rev > :first-child { order: 0; } }

.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px;
  background: rgba(37, 99, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231d4ed8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.section--dark .checklist li { color: var(--on-dark-2); }
.section--dark .checklist li::before {
  background: rgba(25, 211, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2319d3ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.checklist--x li::before {
  background: rgba(220, 38, 38, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23b91c1c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l7 7M13.5 6.5l-7 7'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Drei Fragen */
.questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.question { padding: 32px 28px 8px 0; }
.question + .question { padding-left: 28px; border-left: 1px solid var(--line); }
.question__n { font-size: .8rem; font-weight: 800; letter-spacing: .14em; color: var(--blue-700); }
.question h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin: 14px 0 12px; }
.question p { color: var(--ink-2); }
@media (max-width: 860px) {
  .questions { grid-template-columns: 1fr; }
  .question + .question { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Health-Zustände */
.states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.state { padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.state--crit { --c: var(--crit); } .state--warn { --c: var(--warn); } .state--ok { --c: var(--ok); } .state--none { --c: var(--neutral); }
.state__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.state__label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.state p { margin: 8px 0 0; font-size: .95rem; color: var(--ink-2); }
@media (max-width: 900px) { .states { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .states { grid-template-columns: 1fr; } }

/* Wirkungskette */
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: chain; }
.chain li {
  position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 0 0 26px;
}
.chain li::before {
  counter-increment: chain; content: counter(chain);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: .95rem; color: var(--blue-700); background: var(--paper);
  border: 2px solid rgba(37, 99, 255, .35); position: relative; z-index: 1; margin-left: 6px;
}
.chain li::after { content: ""; position: absolute; left: 25px; top: 40px; bottom: 0; width: 2px; background: linear-gradient(var(--line), var(--line)); }
.chain li:last-child { padding-bottom: 0; }
.chain li:last-child::after { display: none; }
.chain strong { display: block; margin-top: 7px; }
.chain span { color: var(--muted); font-size: .96rem; }
.section--dark .chain li::before { background: var(--navy-900); color: var(--cyan); border-color: rgba(25, 211, 255, .45); }
.section--dark .chain li::after { background: rgba(255, 255, 255, .12); }
.section--dark .chain span { color: var(--on-dark-3); }

/* Workflow-Stepper */
.flow { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.flow__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.flow__step {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: 12px; border: 1px solid transparent; background: transparent;
  font: inherit; color: inherit; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.flow__step:hover { background: rgba(255, 255, 255, .04); }
.flow__step[aria-selected="true"] { background: var(--navy-700); border-color: rgba(25, 211, 255, .35); }
.flow__num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .88rem; color: var(--cyan); border: 1.5px solid rgba(25, 211, 255, .45); }
.flow__step[aria-selected="true"] .flow__num { background: var(--gradient); color: var(--navy-900); border-color: transparent; }
.flow__title { display: block; font-weight: 750; color: #fff; font-size: 1.04rem; }
.flow__text { display: block; color: var(--on-dark-3); font-size: .94rem; margin-top: 4px; line-height: 1.55; }
.flow__panels { position: sticky; top: 104px; }
.flow__panel[hidden] { display: none; }
.flow__panel .shot figcaption { color: var(--on-dark-3); }
.no-js .flow__panel[hidden] { display: block; margin-bottom: 32px; }
@media (max-width: 900px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__panels { position: static; }
}

/* Photo-Band */
.photo-band { position: relative; color: var(--on-dark); overflow: hidden; background: var(--navy-900); }
.photo-band__img { position: absolute; inset: 0; }
.photo-band__img img { width: 100%; height: 100%; object-fit: cover; }
.photo-band__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 17, 31, .95) 0%, rgba(7, 17, 31, .75) 45%, rgba(7, 17, 31, .2) 100%); }
.photo-band .container { position: relative; padding-top: clamp(88px, 12vw, 160px); padding-bottom: clamp(88px, 12vw, 160px); }
.photo-band h2 { max-width: 15em; }
.photo-band p { max-width: 34em; color: var(--on-dark-2); }

/* Industries */
.industry { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--navy-700); color: var(--on-dark); min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; border: 1px solid rgba(255, 255, 255, .06); }
.industry__img { position: absolute; inset: 0; }
.industry__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.industry__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 17, 31, .15) 0%, rgba(7, 17, 31, .92) 75%); }
.industry > *:not(.industry__img) { position: relative; }
.industry h3 { color: #fff; margin-bottom: 8px; }
.industry p { color: var(--on-dark-2); margin: 0; font-size: .97rem; }
.industry__tag { align-self: flex-start; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(25, 211, 255, .14); color: var(--cyan); margin-bottom: 12px; }
a.industry { text-decoration: none; }
a.industry:hover .industry__img img { transform: scale(1.04); }
.industry--plain { background: linear-gradient(160deg, var(--navy-600), var(--navy-800)); }

/* KI Fragen */
.ask-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ask {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px 14px 14px 4px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .98rem;
}
.ask::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; background: var(--gradient); border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 3px, #000 3.5px); mask: radial-gradient(circle, transparent 3px, #000 3.5px); }
.section--dark .ask { background: var(--navy-700); border-color: rgba(255, 255, 255, .08); color: var(--on-dark); }

/* Hinweis / Notice */
.notice {
  border-radius: var(--radius); padding: 20px 22px; background: #fff8eb; border: 1px solid #f3d29a; color: #5b3b06;
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px;
}
.notice svg { width: 22px; height: 22px; color: #b45309; margin-top: 2px; }
.notice p:last-child { margin-bottom: 0; }
.notice--info { background: #eef5ff; border-color: #c4d7fb; color: #17325f; }
.notice--info svg { color: var(--blue-700); }
.section--dark .notice--info { background: rgba(37, 99, 255, .12); border-color: rgba(37, 99, 255, .4); color: var(--on-dark-2); }
.section--dark .notice--info svg { color: var(--cyan); }
.todo { background: #fff1f2; border: 1px dashed #e11d48; color: #881337; border-radius: 6px; padding: 1px 6px; font-weight: 700; }

/* Stat/Fact strip – nur Produktregeln, keine erfundenen Kennzahlen */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.fact { padding: 24px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact__v { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.fact__l { color: var(--muted); font-size: .93rem; margin-top: 6px; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact:nth-child(3) { border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .fact + .fact { border-left: 0; border-top: 1px solid var(--line); } }

/* Tabelle */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--mist); }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 22px 18px; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-l); color: var(--on-dark);
  background: radial-gradient(700px 400px at 100% 0%, rgba(37, 99, 255, .45), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(25, 211, 255, .18), transparent 60%), var(--navy-700);
  padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center;
}
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--on-dark-2); margin: 0; }
.cta .btn-row { justify-content: flex-end; }
.cta__note { font-size: .88rem; color: var(--on-dark-3) !important; margin-top: 14px !important; }
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); } .cta .btn-row { justify-content: flex-start; } }

/* Prose (Rechtstexte, längere Texte) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose address { font-style: normal; color: var(--ink-2); margin-bottom: 1em; }

/* Kontakt */
.contact-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-l); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card__mail { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; word-break: break-all; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--on-dark-2); padding: 72px 0 32px; font-size: .95rem; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__brand img { height: 30px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--on-dark-3); max-width: 26em; }
.footer__title { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); margin: 6px 0 14px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer__list a { display: inline-block; padding: 6px 0; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--on-dark-3); font-size: .86rem; }
.footer__claim { letter-spacing: .2em; font-weight: 800; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1500px, 96vw); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 12, 23, .88); }
.lightbox img { max-height: 86vh; width: auto; max-width: 100%; border-radius: 10px; margin: 0 auto; box-shadow: var(--shadow-dark); }
.lightbox__close {
  position: absolute; top: -56px; right: 0; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); color: #fff; cursor: pointer; font: inherit; font-size: 1.6rem; line-height: 1;
}
.lightbox__caption { color: var(--on-dark-2); text-align: center; margin: 12px auto 0; max-width: 60em; font-size: .92rem; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 18px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.pill { font-size: .84rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); color: var(--ink-2); }
.section--dark .pill { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); color: var(--on-dark-2); }

/* Reveal – nur mit JS, nur für Elemente unterhalb des Anfangsbereichs, nicht bei reduzierter Bewegung */
.reveal-wait { opacity: 0; transform: translateY(18px); }
.reveal-in { transition: opacity .7s var(--ease), transform .7s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal-wait { opacity: 1; transform: none; }
  .hero__visual .shot--browser { transform: none; }
  a.card:hover, .btn--primary:hover { transform: none; }
  a.industry:hover .industry__img img { transform: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .cta { display: none; }
  .hero, .page-hero, .section--dark { background: #fff; color: #000; }
}

.states--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .states--2 { grid-template-columns: 1fr; } }
.phone-wrap { max-width: 300px; margin-inline: auto; width: 100%; }
.page-hero .lead a { color: var(--cyan); }
.shot-pair .shot--panel { margin-inline: auto; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (max-width: 760px) {
  .photo-band__img::after { background: linear-gradient(180deg, rgba(7, 17, 31, .82) 0%, rgba(7, 17, 31, .9) 100%); }
  .page-hero--photo .page-hero__bg::after { background: linear-gradient(180deg, rgba(7, 17, 31, .6) 0%, rgba(7, 17, 31, .92) 45%, rgba(7, 17, 31, .97) 100%); }
}
.section--mist .industry__tag, .section:not(.section--dark) > .container .split .industry__tag { color: var(--blue-700); background: rgba(37, 99, 255, .1); }
h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; hyphenate-limit-chars: 12 5 5; }
/* Phase 2.8: H1 nur bei Bedarf umbrechen, keine automatische Silbentrennung im Seitentitel */
h1 { hyphens: manual; }
.split .industry__tag { display: inline-block; }

/* =====================================================================
   Phase 2.8 – Inhaltskomponenten für Lösungs-, Branchen-, Wissens- und
   Vorlagenseiten. Regeln: seo/phase-2-8-report.md („Gestaltungsregeln“).
   ===================================================================== */

/* Kompakte Sektionen für informationsdichte Seiten. Zwei aufeinander
   folgende weiße Sektionen teilen sich einen Abstand, statt ihn zu verdoppeln. */
.section--compact { padding: clamp(52px, 6.5vw, 96px) 0; }
.section--compact:not(.section--mist):not(.section--dark) + .section--compact:not(.section--mist):not(.section--dark) { padding-top: 0; }
.section-head--tight { margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2:last-child { margin-bottom: 0; }

/* Hero-Ergänzungen */
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; color: var(--on-dark-2); font-size: .92rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }
.page-hero .btn-row { margin-bottom: 26px; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.page-hero__grid h1 { max-width: none; }
@media (max-width: 960px) { .page-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* Karten: Kicker und Querverweis-Karten */
.card__kicker { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.section--dark .card__kicker { color: var(--on-dark-3); }
.card__head { display: flex; align-items: center; gap: 12px; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.related .card { padding: 22px 22px 20px; }
.related .card h3 { font-size: 1.08rem; margin: 10px 0 2px; }
.related .card p { font-size: .94rem; }
.related .card__icon { width: 38px; height: 38px; border-radius: 10px; }
.related .card__icon svg { width: 19px; height: 19px; }
.section--dark .related a.card { color: var(--on-dark); }

/* Band: Kopf links, Inhalt rechts (Querverweise, Grenzen) */
.band { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.band__head h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); hyphens: manual; overflow-wrap: break-word; }
.band__head p { color: var(--muted); }
.section--dark .band__head p { color: var(--on-dark-3); }
@media (max-width: 900px) { .band { grid-template-columns: minmax(0, 1fr); } }

/* Prozess: horizontale, nummerierte Schritte mit Verbindungslinie */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 28px 0; counter-reset: step; }
.process > li { position: relative; padding-right: 24px; }
.process > li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-weight: 800; font-size: .9rem; color: var(--blue-700); background: var(--paper); border: 2px solid rgba(37, 99, 255, .35);
}
.process > li::after { content: ""; position: absolute; left: 52px; right: 8px; top: 21px; height: 2px; background: linear-gradient(90deg, rgba(37, 99, 255, .35), var(--line)); }
.process > li:last-child::after { display: none; }
.process h3 { font-size: 1.06rem; margin: 16px 0 6px; }
.process p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.process__tag { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 700; color: var(--blue-700); background: rgba(37, 99, 255, .08); border-radius: 999px; padding: 3px 10px; }
.section--mist .process > li::before { background: var(--mist); }
.section--dark .process > li::before { background: var(--navy-900); color: var(--cyan); border-color: rgba(25, 211, 255, .45); }
.section--dark .process > li::after { background: rgba(255, 255, 255, .12); }
.section--dark .process p { color: var(--on-dark-2); }
.section--dark .process__tag { color: var(--cyan); background: rgba(25, 211, 255, .1); }
@media (max-width: 700px) {
  .process { gap: 0; }
  .process > li { padding: 0 0 22px 62px; }
  .process > li::before { position: absolute; left: 0; top: 0; }
  .process > li::after { left: 21px; right: auto; top: 46px; bottom: 0; width: 2px; height: auto; background: var(--line); }
  .process h3 { margin-top: 9px; }
  .process > li:last-child { padding-bottom: 0; }
}

/* Fiktives Beispiel: Einleitung links, Zeitleiste rechts */
.case { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-s); }
.case__intro { padding: clamp(26px, 3.4vw, 44px); color: var(--on-dark); background: radial-gradient(500px 300px at 0% 0%, rgba(37, 99, 255, .35), transparent 60%), var(--navy-800); }
.case__intro h2 { color: #fff; font-size: clamp(1.45rem, 2.3vw, 1.9rem); }
.case__intro p { color: var(--on-dark-2); }
.case__intro p:last-child { margin-bottom: 0; }
.case__tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.case__tag svg { width: 16px; height: 16px; }
.case__body { display: flex; flex-direction: column; }
.case__steps { list-style: none; margin: 0; padding: clamp(24px, 3vw, 40px); flex: 1; }
.case__steps li { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding: 0 0 18px; }
.case__steps li + li { border-top: 1px dashed var(--line); padding-top: 18px; }
.case__steps li:last-child { padding-bottom: 0; }
.case__when { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-700); padding-top: 3px; }
.case__steps strong { display: block; color: var(--ink); }
.case__steps span:not(.case__when) { color: var(--ink-2); font-size: .95rem; }
.case__result { margin: 0; padding: 18px clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); background: var(--mist); font-size: .95rem; color: var(--ink-2); }
.case__result strong { color: var(--ink); }
@media (max-width: 900px) { .case { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .case__steps li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Quellenkasten */
.sources { border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); padding: 22px 24px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; }
.sources > svg { width: 24px; height: 24px; color: var(--blue-700); margin-top: 2px; }
.sources h3 { font-size: 1.05rem; margin: 0 0 6px; }
.sources p { color: var(--ink-2); font-size: .95rem; }
.sources p:last-child { margin-bottom: 0; }
.sources__date { font-size: .84rem; color: var(--muted) !important; }

/* Checkliste „Grenzen“: neutral, nicht als Fehler gestaltet */
.checklist--minus li::before {
  background: rgba(82, 96, 115, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23526073' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 10h8'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.checklist--tight { gap: 9px; margin-top: 12px; }
.checklist--tight li { font-size: .96rem; }

/* Gegenüberstellung (z. B. Excel und HubDix) */
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.compare .card h3 { font-size: 1.12rem; }
.compare .card--accent { background: var(--navy-800); border-color: var(--navy-600); color: var(--on-dark); }
.compare .card--accent p, .compare .card--accent li { color: var(--on-dark-2); }
.compare .card--accent .checklist li::before { background-color: rgba(25, 211, 255, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2319d3ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E"); }
.compare .card--accent .card__kicker { color: var(--cyan); }
.compare .card--accent .card__more { color: var(--cyan); }
.compare .card--accent:focus-visible { outline-color: var(--cyan); }
@media (max-width: 1000px) { .compare { grid-template-columns: minmax(0, 1fr); } }

/* Fachartikel: Lesespalte plus seitliche Orientierung */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.article__body { max-width: 720px; }
.article__body > h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); margin: 1.8em 0 .55em; scroll-margin-top: 96px; }
.article__body > h2:first-child { margin-top: 0; }
.article__body > p, .article__body > ul li, .article__body > ol li { color: var(--ink-2); }
.article__body > .checklist, .article__body > .pill-row { margin-bottom: 22px; }
.article__body > .process, .article__body > .grid { margin: 28px 0; }
.article__body > .callout, .article__body > figure, .article__body > .defs, .article__body > .sources, .article__body > .table-wrap { margin: 28px 0; }
.article__aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.aside-box { border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); padding: 20px 22px; }
.aside-box--mist { background: var(--mist); }
.aside-box__title { font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.aside-box h3 { font-size: 1.05rem; margin: 0 0 6px; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); padding: 6px 0; color: var(--ink-2); text-decoration: none; font-size: .93rem; line-height: 1.4; font-weight: 600; }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--blue-700); font-size: .78rem; font-weight: 800; padding-top: 2px; }
.toc a:hover { color: var(--blue-700); }
.aside-box .checklist { margin-top: 4px; gap: 10px; }
.aside-box .checklist li { font-size: .92rem; padding-left: 28px; }
.aside-box .checklist li::before { width: 18px; height: 18px; background-size: 14px; }
.aside-box .btn { width: 100%; margin-top: 14px; white-space: normal; text-align: center; }
.aside-box p { font-size: .93rem; color: var(--ink-2); margin-bottom: 0; }
@media (max-width: 1000px) {
  .article { grid-template-columns: minmax(0, 1fr); }
  .article__aside { position: static; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
  .article__aside .aside-box--toc { display: none; }
}

/* Beispiel-/Merkkasten im Fließtext */
.callout { border-radius: var(--radius); padding: 22px 24px; background: var(--mist); border: 1px solid var(--line); }
.callout__tag { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 6px; }
.callout p, .callout li { color: var(--ink-2); }
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }
.callout ol { padding-left: 1.2em; }
.callout ol li + li { margin-top: 6px; }

/* Begriffsabgrenzung */
.defs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.defs > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; background: var(--paper); }
.defs dt { font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.defs dt svg { width: 20px; height: 20px; color: var(--blue-700); }
.defs dd { margin: 0; color: var(--ink-2); font-size: .94rem; }
.defs dd + dd { margin-top: 8px; font-size: .86rem; color: var(--muted); }
@media (max-width: 760px) { .defs { grid-template-columns: minmax(0, 1fr); } }

/* Tabellenvorschau einer Excel-Vorlage (nachgebautes HTML, kein Bild) */
.sheet { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.sheet__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 16px; background: var(--navy-800); color: var(--on-dark-2); font-size: .84rem; font-weight: 700; }
.sheet__bar svg { width: 18px; height: 18px; color: var(--cyan); }
.sheet__bar span:last-child { margin-left: auto; font-weight: 600; color: var(--on-dark-3); }
.sheet__scroll { overflow-x: auto; }
.sheet table { font-size: .82rem; min-width: 900px; }
.sheet th, .sheet td { padding: 9px 12px; border-right: 1px solid var(--line); line-height: 1.4; }
.sheet td { white-space: nowrap; }
.sheet th:last-child, .sheet td:last-child { border-right: 0; }
.sheet thead th { background: #102138; color: #fff; letter-spacing: .01em; text-transform: none; font-size: .78rem; font-weight: 700; vertical-align: bottom; }
.sheet thead .sheet__cols th { background: var(--mist); color: var(--muted); font-size: .72rem; text-align: center; padding: 4px; }
.sheet td.in { background: #fff9eb; }
.sheet td.fx { background: #edf3fa; color: #1d3f8a; font-weight: 600; }
.sheet tr.empty td { height: 34px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.badge--crit { background: #ffd9de; color: #8a1328; }
.badge--warn { background: #fff0d1; color: #7a4a05; }
.badge--ok { background: #dcf3e4; color: #135c2f; }
.badge--neutral { background: var(--mist-2); color: var(--ink-2); }
.sheet__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.sheet__legend span { display: inline-flex; align-items: center; gap: 8px; }
.sheet__legend i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line); }
.sheet__legend .l-in { background: #fff9eb; } .sheet__legend .l-fx { background: #edf3fa; } .sheet__legend .l-crit { background: #ffd9de; }

/* Download-Karte (im dunklen Seitenkopf) */
.download { border-radius: var(--radius-l); padding: clamp(22px, 2.6vw, 30px); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); color: var(--on-dark); }
.download__file { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; }
.download__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--gradient); color: var(--navy-900); }
.download__icon svg { width: 26px; height: 26px; }
.download__name { display: block; font-weight: 800; color: #fff; overflow-wrap: anywhere; line-height: 1.3; }
.download__meta { display: block; font-size: .86rem; color: var(--on-dark-3); }
.download ul { list-style: none; margin: 18px 0 20px; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 8px; }
.download li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--on-dark-2); }
.download li svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; margin-top: 3px; }
.download .btn { width: 100%; }

/* Vorlagen-Karten mit stilisierter Tabellen-Miniatur (dekorativ) */
a.card.tpl-card { overflow: hidden; padding: 0; }
.tpl-card__thumb { height: 104px; background: linear-gradient(180deg, var(--mist), var(--mist-2)); border-bottom: 1px solid var(--line); padding: 18px 20px 0; overflow: hidden; }
.tpl-card__grid { display: grid; grid-template-columns: .6fr 1.4fr 1fr 1fr .9fr; gap: 3px; border-radius: 6px 6px 0 0; overflow: hidden; box-shadow: var(--shadow-s); transition: transform .3s var(--ease); }
.tpl-card__grid i { height: 15px; background: #fff9eb; }
.tpl-card__grid i.h { background: #102138; }
.tpl-card__grid i.f { background: #edf3fa; }
.tpl-card__grid i.r { background: #ffd9de; }
.tpl-card__grid i.g { background: #dcf3e4; }
a.tpl-card:hover .tpl-card__grid { transform: translateY(-3px); }
.tpl-card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.tpl-card__body h3 { margin: 2px 0 4px; }
.tpl-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tpl-card__meta span { font-size: .76rem; font-weight: 700; color: var(--ink-2); background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

/* Wissens-Übersicht: Themengruppen */
.topic { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 2fr); gap: clamp(20px, 3.5vw, 48px); padding: clamp(28px, 3.5vw, 44px) 0; border-top: 1px solid var(--line); }
.topic:first-child { border-top: 0; padding-top: 0; }
.topic__head h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.topic__head p { color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) { .topic { grid-template-columns: minmax(0, 1fr); } }

.industry--short { min-height: 270px; }

@media (prefers-reduced-motion: reduce) { a.tpl-card:hover .tpl-card__grid { transform: none; } }
@media print { .article__aside { display: none; } .article { grid-template-columns: 1fr; } }

/* ---------- Einwilligung (Phase 3.4): Banner, Einstellungsdialog, Statusmeldung ----------
   Nur sichtbar mit JavaScript (aus <template id="consent-ui">). Fest positioniert: kein Layout-Sprung.
   "Ablehnen" und "Alle akzeptieren" nutzen bewusst dieselbe Klasse (gleichwertige Hervorhebung). */
.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px;
  max-width: 1100px; margin: 0 auto; padding: 20px 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center;
  background: var(--navy-900); color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); box-shadow: var(--shadow-dark);
  animation: consent-in .25s var(--ease) both;
}
.consent[hidden] { display: none; }
.consent__title { font-size: 1.02rem; letter-spacing: -.01em; margin: 0 0 6px; color: #fff; }
.consent__text p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--on-dark-2); }
.consent__text a { color: var(--cyan); }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.consent__choice { background: var(--blue); color: #fff; min-width: 9.5em; }
.consent__choice:hover { background: var(--blue-700); }
.consent__more {
  min-height: 44px; padding: 0 10px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 700; color: var(--on-dark); text-decoration: underline; text-underline-offset: .2em;
}
.consent__more:hover { color: #fff; text-decoration-thickness: 2px; }
.has-consent-banner { scroll-padding-bottom: var(--consent-space, 0px); }
.has-consent-banner .site-footer { padding-bottom: calc(32px + var(--consent-space, 0px)); }
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .consent { grid-template-columns: minmax(0, 1fr); left: 12px; right: 12px; bottom: 12px; padding: 16px; gap: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
  .consent__text p { font-size: .86rem; }
  .consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .consent__choice { min-width: 0; padding: 0 10px; white-space: normal; text-align: center; }
  .consent__more { grid-column: 1 / -1; justify-self: center; }
}
@media (max-width: 480px) {
  .consent { left: 8px; right: 8px; bottom: 8px; padding: 14px 14px 10px; gap: 10px; }
  .consent__title { font-size: .95rem; margin-bottom: 4px; }
  .consent__text p { font-size: .8rem; line-height: 1.45; }
  .consent__choice { font-size: .86rem; }
  .consent__more { min-height: 44px; font-size: .86rem; }
}

.consent-dialog {
  width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto;
  padding: clamp(20px, 4vw, 32px); border: 0; border-radius: var(--radius-l);
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-dark);
}
.consent-dialog::backdrop { background: rgba(5, 12, 23, .72); }
.consent-dialog :focus-visible { outline-color: var(--blue); }
.consent-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.consent-dialog h2 { font-size: clamp(1.35rem, 3vw, 1.6rem); margin: 4px 0 10px; }
.consent-dialog p { font-size: .93rem; color: var(--ink-2); }
.consent-dialog__close {
  flex-shrink: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer;
}
.consent-dialog__close:hover { border-color: var(--ink-2); }
.consent-cat { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.consent-cat p { margin: 8px 0 0; }
.consent-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.consent-cat h3 { font-size: 1.02rem; margin: 0; }
.consent-cat label { cursor: pointer; }
.consent-cat__state { font-size: .8rem; font-weight: 800; color: #166534; background: #dcfce7; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.consent-switch {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; margin: 0; cursor: pointer;
  position: relative; width: 52px; height: 30px; border-radius: 999px;
  background: #64748b; border: 2px solid #64748b; transition: background-color .2s, border-color .2s;
}
.consent-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .3); transition: transform .2s var(--ease);
}
.consent-switch:checked { background: var(--blue); border-color: var(--blue); }
.consent-switch:checked::after { transform: translateX(22px); }
.consent-switch:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.consent-dialog { --pad: clamp(20px, 4vw, 32px); }
.consent-dialog__actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
  position: sticky; bottom: calc(-1 * var(--pad)); margin-bottom: calc(-1 * var(--pad)); padding-bottom: var(--pad); background: var(--paper);
}
@media (max-width: 560px) {
  .consent-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-dialog__actions .btn { white-space: normal; text-align: center; padding: 0 10px; }
  .consent-dialog__actions [data-consent="save"] { grid-column: 1 / -1; order: 3; }
}

.consent-toast {
  position: fixed; z-index: 61; left: 50%; bottom: 20px; transform: translate(-50%, 8px);
  max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: var(--radius-s);
  background: var(--navy-800); color: var(--on-dark); font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-dark);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
}
.consent-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.consent-toast:empty { padding: 0; }
.consent-settings-btn[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .consent { animation: none; }
  .consent-toast { transform: translate(-50%, 0); }
}
@media print { .consent, .consent-toast { display: none; } }
