/* =========================================================
   restless365 — Design System
   Warmes Papier + tiefes Grün (#0A7C3E) + Plattformblau (#1C6FB8)
   Type: Space Grotesk (display) · IBM Plex Sans (body) · IBM Plex Mono (labels)
   ========================================================= */

:root {
  /* Surfaces — warmes Papier */
  --ink-rgb:   28, 32, 34;    /* Tinte als RGB — Basis für Linien und Schleier */
  --surf-rgb:  247, 244, 239; /* Papier als RGB — Basis für Nav-Schleier */
  --bg:        #f7f4ef;
  --bg-1:      #f1ede6;
  --bg-2:      #f1ede600;
  --card:      #fffdfa;
  --card-2:    #f3efe8;
  --elev:      #ffffff;   /* raised surface — menus, popovers */
  --elev-2:    #f4f0e9;   /* raised surface, secondary */
  --line:      rgba(var(--ink-rgb), 0.17);
  --line-2:    rgba(var(--ink-rgb), 0.09);
  --line-3:    rgba(var(--ink-rgb), 0.24);
  --shadow-s:  0 8px 24px rgba(var(--ink-rgb), 0.07);
  --shadow-l:  0 30px 70px rgba(var(--ink-rgb), 0.14);

  /* Text */
  --text:      #191d1f;
  --dim:       #4d5559;
  --faint:     #646b6f;
  --nav-ink:   #33393c;
  --body-ink:  #2b3134;   /* Fließtext in Beiträgen — etwas weicher als --text */

  /* States */
  --warn:      #b8342a;   /* broken / disconnected */
  --warn-wash: rgba(184, 52, 42, 0.09);

  /* Brand green */
  --green:     #0a7c3e;
  --green-2:   #05602e;   /* hover — auf hellem Grund dunkler, nicht heller */
  --green-3:   #064f26;   /* deep */
  --green-ink: #ffffff;   /* text on green */
  --green-glow: rgba(10, 124, 62, 0.22);
  --green-wash: rgba(10, 124, 62, 0.07);

  /* Platform blue (Microsoft Dynamics 365) */
  --blue:      #1c6fb8;
  --blue-2:    #14548c;   /* hover — dunkler als die Basis */
  --blue-ink:  #ffffff;
  --blue-glow: rgba(28, 111, 184, 0.28);
  --blue-wash: rgba(28, 111, 184, 0.08);

  /* Type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --max: 1240px;
  --nav-h: 70px;
  --radius: 14px;
  --radius-s: 9px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--green); color: var(--green-ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 28px; }

/* ---- type helpers ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green-glow);
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }

.section-title { font-size: clamp(28px, 4vw, 46px); }
.section-lead { color: var(--dim); font-size: clamp(16px, 1.4vw, 19px); max-width: 56ch; margin-top: 18px; line-height: 1.55; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 500;
  padding: 13px 22px;
  border-radius: 999px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.btn-green { background: var(--green); color: var(--green-ink); font-weight: 600; }
.btn-green:hover { background: var(--green-2); box-shadow: 0 8px 30px var(--green-glow); }

.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-text { color: var(--text); padding: 8px 2px; }
.btn-text:hover { color: var(--green); }

/* =========================================================
   NAV  +  MEGA MENU
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(var(--surf-rgb), 0.80);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line-2);
  transition: background 0.3s, border-color 0.3s, transform 0.32s var(--ease);
}
.nav.hide { transform: translateY(-100%); }
.nav.scrolled { background: rgba(var(--surf-rgb), 0.94); border-color: var(--line); }

.nav-inner {
  height: 100%;
  display: flex; align-items: center; gap: 30px;
  max-width: var(--max); margin-inline: auto; padding-inline: 28px;
}

/* logo */
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand-name b { color: var(--green); font-weight: 600; }

/* primary nav list */
.nav-list { display: flex; align-items: stretch; height: 100%; gap: 4px; margin-left: 6px; }
.nav-item { display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 100%; padding: 0 15px;
  font-size: 14.5px; color: var(--dim);
  position: relative; white-space: nowrap;
  transition: color 0.2s;
}
.nav-link:hover, .nav-item.open .nav-link { color: var(--text); }
.nav-link .chev { width: 11px; height: 11px; opacity: 0.6; transition: transform 0.3s var(--ease); }
.nav-item.open .nav-link .chev { transform: rotate(180deg); }
.nav-link::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 0; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-item.open .nav-link::after { transform: scaleX(1); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--dim);
  border: 1px solid transparent; transition: all 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line); }

/* lang toggle */
.lang {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-family: var(--mono); font-size: 12px;
}
.lang button { padding: 7px 11px; color: var(--faint); transition: all 0.2s; letter-spacing: 0.04em; }
.lang button.active { background: var(--green); color: var(--green-ink); font-weight: 600; }

/* ---- mega panel ---- */
.mega {
  position: fixed; left: 0; right: 0; top: var(--nav-h); z-index: 99;
  pointer-events: none;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}
/* dim backdrop behind the open mega panel (OPSWAT-style focus) */
.mega-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(var(--ink-rgb), 0.34);
  backdrop-filter: blur(3px) saturate(115%);
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s var(--ease);
}
.mega-backdrop.show { opacity: 1; }

.mega.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mega-card {
  max-width: var(--max); margin-inline: auto; margin-top: 10px;
  background:
    linear-gradient(180deg, rgba(var(--ink-rgb),0.04), rgba(var(--ink-rgb),0) 120px),
    var(--elev);
  border: 1px solid rgba(var(--ink-rgb),0.16);
  border-radius: 18px;
  box-shadow: 0 50px 110px rgba(var(--ink-rgb),0.16), inset 0 1px 0 rgba(var(--ink-rgb),0.05);
  overflow: hidden;
  display: grid; grid-template-columns: 300px 1fr;
}

/* featured block */
.mega-feat {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(10,124,62,0.20), transparent 60%),
    rgba(var(--ink-rgb),0.03);
  padding: 30px 28px;
  border-right: 1px solid rgba(var(--ink-rgb),0.12);
  display: flex; flex-direction: column;
}
.mega-feat .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-2); }
.mega-feat h4 { font-family: var(--display); font-size: 22px; margin: 14px 0 10px; line-height: 1.12; color: var(--text); }
.mega-feat p { font-size: 13.5px; color: #c4ccd1; line-height: 1.55; }
.mega-feat .feat-art {
  margin-top: auto; height: 92px; border-radius: 10px;
  border: 1px solid rgba(var(--ink-rgb),0.14);
  background:
    repeating-linear-gradient(135deg, rgba(10,124,62,0.1) 0 8px, transparent 8px 16px),
    rgba(0,0,0,0.25);
  display: grid; place-items: center; color: var(--dim);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.mega-feat .mega-cta { font-size: 13.5px; font-weight: 600; color: var(--green-2); display: inline-flex; align-items: center; gap: 7px; }
.mega-feat .mega-cta:hover { gap: 11px; }

/* link grid */
.mega-grid { padding: 30px 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 36px; }
.mega-col h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(var(--ink-rgb),0.12);
  display: flex; align-items: center; gap: 8px;
}
.mega-col h5 .dot { width: 6px; height: 6px; border-radius: 2px; background: var(--green); }
.mega-link {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 10px; margin: 0 -10px; border-radius: 9px;
  transition: background 0.18s;
}
.mega-link:hover { background: rgba(10,124,62,0.14); }
.mega-link .mi {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
  display: grid; place-items: center; color: var(--green-2);
  background: rgba(10,124,62,0.16); border: 1px solid rgba(10,124,62,0.3);
}
.mega-link .mt { display: flex; flex-direction: column; gap: 2px; }
.mega-link .mt b { font-size: 14px; font-weight: 500; color: #f3f6f7; }
.mega-link .mt span { font-size: 12px; color: #99a2a8; line-height: 1.4; }
.mega-link:hover .mt b { color: var(--green-2); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-top: calc(var(--nav-h) + 70px); padding-bottom: 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .glow {
  position: absolute; width: 720px; height: 720px; right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(10,124,62,0.16), transparent 62%);
  filter: blur(20px);
  animation: glowDriftA 22s ease-in-out infinite;
}
.hero-bg .glow-blue {
  right: auto; left: -220px; top: 120px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(28,111,184,0.14), transparent 64%);
  animation: glowDriftB 26s ease-in-out infinite;
}
@keyframes glowDriftA {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-60px, 50px) scale(1.08); }
  66% { transform: translate(40px, 90px) scale(0.96); }
}
@keyframes glowDriftB {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(70px, -40px) scale(1.1); }
  66% { transform: translate(120px, 40px) scale(0.94); }
}
.hero-bg .grid-lines {
  position: absolute; inset: -64px;
  background-image:
    linear-gradient(rgba(var(--ink-rgb),0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb),0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
  animation: gridPan 28s linear infinite;
}
@keyframes gridPan {
  from { transform: translate(0,0); }
  to { transform: translate(64px, 64px); }
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }

.hero h1 { font-size: clamp(38px, 5.4vw, 66px); margin: 22px 0 0; }
.hero h1 .hl { color: var(--green); }
.hero-sub { color: var(--dim); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; margin-top: 24px; max-width: 52ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 40px; flex-wrap: nowrap; }
.hero-meta .m { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero-meta .m b { font-family: var(--display); font-size: 24px; color: var(--text); }
.hero-meta .m span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--faint); text-transform: uppercase; line-height: 1.35; }

/* integration diagram */
.diagram { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin-left: auto; }
.diagram svg { width: 100%; height: 100%; overflow: visible; }
.flow { stroke: var(--green); stroke-width: 1.5; fill: none; opacity: 0.55; stroke-dasharray: 5 9; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.node-rect { fill: var(--card-2); stroke: var(--line); stroke-width: 1; }
.node-core { fill: rgba(28,111,184,0.12); stroke: var(--blue); stroke-width: 1.5; }
.node-label { font-family: var(--mono); font-size: 11px; fill: var(--text); }
.node-core-label { font-family: var(--display); font-weight: 600; fill: var(--text); }
.node-sub { font-family: var(--mono); font-size: 8.5px; fill: var(--blue); letter-spacing: 0.05em; }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.packet { fill: var(--green-2); }

/* works-with strip */
.strip { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 22px 0; }
.strip-inner { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.strip-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.strip-items { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
.strip-items span { font-family: var(--display); font-size: 16px; color: var(--dim); font-weight: 500; opacity: 0.85; transition: color 0.2s; }
.strip-items span:hover { color: var(--green); }

/* =========================================================
   SECTION SHELL
   ========================================================= */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }

/* =========================================================
   SCROLLYTELLING
   ========================================================= */
.scrolly { position: relative; }
.scrolly-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 18px; }
.scrolly-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* sticky visual */
.scrolly-sticky { position: sticky; top: calc(var(--nav-h) + 50px); height: fit-content; }
.device {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--bg-1));
  overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.device-bar { display: flex; align-items: center; gap: 8px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: var(--bg); }
.device-bar .dots { display: flex; gap: 6px; }
.device-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--card-2); display: block; }
.device-bar .addr { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-left: 8px; }
.device-body { position: relative; aspect-ratio: 4 / 3; }
.device-body .canvas-art { position: absolute; inset: 0; }

/* the central core + flowing modules visual inside device — ASSEMBLE ON SCROLL */
.dgm2 { width: 100%; height: 100%; }
/* not yet built: hidden + slid in from the left */
.dmod { opacity: 0; transform: translateX(-16px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.dmod.built { opacity: 0.4; transform: none; }      /* docked, dimmed */
.dmod.active { opacity: 1; transform: none; }        /* current focus */
.dmod-box { fill: var(--card-2); stroke: var(--line); stroke-width: 1; transition: stroke 0.4s, fill 0.4s; }
.dmod.active .dmod-box { fill: rgba(10,124,62,0.14); stroke: var(--green); }
.dmod.active .dmod-box { animation: modpulse 2.2s ease-in-out infinite; }
@keyframes modpulse { 0%,100% { filter: drop-shadow(0 0 0 rgba(10,124,62,0)); } 50% { filter: drop-shadow(0 0 7px rgba(10,124,62,0.5)); } }
.dmod-label { font-family: var(--mono); font-size: 12px; fill: var(--dim); transition: fill 0.4s; }
.dmod.active .dmod-label { fill: var(--green); }
/* wires draw on when their module is built */
.dwire { stroke: var(--line); stroke-width: 1.4; fill: none; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 0.7s var(--ease), stroke 0.4s; }
.dwire.built { stroke-dashoffset: 0; }
.dwire.active { stroke: var(--green); stroke-width: 1.9; }
/* packets only show for active module */
.dgm2 .dpacket { opacity: 0; }
.dmod.active .dpacket { opacity: 1; }
/* core hub gentle breathing — D365 platform = blue */
.dgm2 .dcore { fill: rgba(28,111,184,0.12); stroke: var(--blue); animation: corepulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes corepulse { 0%,100% { filter: drop-shadow(0 0 0 rgba(28,111,184,0)); } 50% { filter: drop-shadow(0 0 10px rgba(28,111,184,0.45)); } }

/* =========================================================
   COST / THESIS SECTION
   ========================================================= */
.cost { background:
    radial-gradient(120% 80% at 80% -10%, rgba(10,124,62,0.06), transparent 55%),
    var(--bg); }
.cost-stage { margin-top: 54px; }
.cost-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 30px; }
.cl { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.cl-swatch { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; margin-top: 4px; }
.cl-work .cl-swatch { background: linear-gradient(135deg, #6a7178, #e5484d); }
.cl-isv  .cl-swatch { background: var(--green); box-shadow: 0 0 10px var(--green-glow); }
.cl-text { display: flex; flex-direction: column; gap: 5px; }
.cl-text b { font-family: var(--display); font-size: 16px; font-weight: 600; }
.cl-text span { font-size: 13px; color: var(--dim); line-height: 1.5; }
.cl-work .cl-text b { color: #e9a23b; }
.cl-isv .cl-text b { color: var(--green); }

.cost-chart { position: relative; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-1); padding: 26px 26px 14px; }
.cost-chart svg { width: 100%; height: auto; overflow: visible; display: block; }
.axis-y { position: absolute; left: -2px; top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: left center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.axis-x { display: block; text-align: right; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding: 6px 6px 4px; }
/* draw-on lines */
#workLine, #isvLine { stroke-dasharray: var(--len, 1400); stroke-dashoffset: var(--len, 1400); }
.cost-stage.draw #workLine { stroke-dashoffset: var(--workOff, 0); }
.cost-stage.draw #isvLine { stroke-dashoffset: var(--isvOff, 0); }
.cmark { opacity: 0; transition: opacity 0.5s var(--ease); }
.cmark.show { opacity: 1; }
.cmark-t { font-family: var(--sans); font-size: 13px; fill: var(--dim); }
.cmark-strong { fill: var(--text); font-weight: 600; }
#crossDot { animation: pulse 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.cnote { font-family: var(--mono); font-size: 12px; fill: var(--green); letter-spacing: 0.03em; opacity: 0; transition: opacity 0.5s; }
.cnote-bad { fill: #e5484d; }
.cost-stage.draw .cnote { opacity: 0.9; }
.cost-take { display: flex; align-items: flex-start; gap: 12px; margin-top: 26px; padding: 20px 24px; border-left: 2px solid var(--green); background: var(--green-wash); border-radius: 0 12px 12px 0; font-family: var(--display); font-size: clamp(17px, 2vw, 21px); line-height: 1.4; color: var(--text); }
.cost-take svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }

/* steps */
.scrolly-steps { display: flex; flex-direction: column; gap: 14px; }
.step {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px; background: var(--card);
  opacity: 0.45; transition: opacity 0.4s var(--ease), border-color 0.4s, transform 0.4s var(--ease);
}
.step.active { opacity: 1; border-color: rgba(10,124,62,0.4); box-shadow: 0 0 0 1px rgba(10,124,62,0.18), 0 20px 50px rgba(0,0,0,0.4); }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--green); letter-spacing: 0.1em; }
.step h3 { font-size: 24px; margin: 12px 0 10px; }
.step p { color: var(--dim); font-size: 15px; line-height: 1.6; }
.step-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.step-tags span { font-family: var(--mono); font-size: 11px; color: var(--dim); border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; }

/* =========================================================
   FEATURE REVEAL (FlexxStore) — alternating
   ========================================================= */
.feature-rows { display: flex; flex-direction: column; gap: 26px; margin-top: 50px; }
.frow {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
  border: 1px solid var(--line); border-radius: 18px; padding: 44px; background: var(--card);
  opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.frow.in { opacity: 1; transform: none; }
.frow.rev { direction: rtl; }
.frow.rev > * { direction: ltr; }
.frow h3 { font-size: 28px; margin-bottom: 14px; }
.frow p { color: var(--dim); font-size: 15.5px; line-height: 1.6; }
.frow ul { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 11px; }
.frow li { display: flex; gap: 11px; font-size: 14.5px; color: var(--text); }
.frow li svg { flex-shrink: 0; color: var(--green); margin-top: 3px; }
.frow-art {
  aspect-ratio: 5 / 4; border-radius: 12px; border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(10,124,62,0.05) 0 10px, transparent 10px 20px),
    var(--bg);
  position: relative; overflow: hidden;
}

/* =========================================================
   INDUSTRIES GRID
   ========================================================= */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.ind {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  background: var(--card); position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  min-height: 230px; display: flex; flex-direction: column;
}
.ind:hover { border-color: rgba(10,124,62,0.4); transform: translateY(-4px); }
.ind::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(10,124,62,0.1), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.ind:hover::after { opacity: 1; }
.ind .ind-ic { width: 44px; height: 44px; border-radius: 11px; background: rgba(10,124,62,0.1); border: 1px solid rgba(10,124,62,0.2); display: grid; place-items: center; color: var(--green); position: relative; z-index: 1; }
.ind h3 { font-size: 20px; margin: 20px 0 9px; position: relative; z-index: 1; }
.ind p { font-size: 14px; color: var(--dim); line-height: 1.55; position: relative; z-index: 1; }
.ind .ind-mod { margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 11px; color: var(--green); letter-spacing: 0.04em; position: relative; z-index: 1; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-wrap { max-width: 860px; margin: 50px auto 0; }
.faq {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 18px;
  padding: 24px 4px; font-family: var(--display); font-size: 19px; font-weight: 500; color: var(--text);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--green); }
.faq-q .pm { margin-left: auto; flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after {
  content: ""; position: absolute; background: var(--green); border-radius: 2px;
  left: 50%; top: 50%; transform: translate(-50%,-50%);
}
.faq-q .pm::before { width: 14px; height: 2px; }
.faq-q .pm::after { width: 2px; height: 14px; transition: transform 0.3s var(--ease); }
.faq.open .faq-q .pm::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 4px 26px; color: var(--dim); font-size: 15px; line-height: 1.65; max-width: 70ch; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band { position: relative; overflow: hidden; }
.cta-card {
  border: 1px solid rgba(10,124,62,0.3); border-radius: 22px; padding: 64px;
  background:
    radial-gradient(100% 160% at 0% 0%, rgba(10,124,62,0.16), transparent 55%),
    radial-gradient(100% 160% at 100% 100%, rgba(10,124,62,0.1), transparent 55%),
    var(--card);
  text-align: center; position: relative;
}
.cta-card h2 { font-size: clamp(30px, 4vw, 48px); }
.cta-card p { color: var(--dim); font-size: 18px; margin: 18px auto 0; max-width: 50ch; }
.cta-card .hero-cta { justify-content: center; margin-top: 36px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding: 70px 0 40px; background: var(--bg-1); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--dim); font-size: 14px; line-height: 1.6; max-width: 34ch; }
.footer-brand .socials { display: flex; gap: 10px; margin-top: 22px; }
.footer-brand .socials a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--dim); transition: all 0.2s; }
.footer-brand .socials a:hover { color: var(--green); border-color: var(--green); }
.fcol h6 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.fcol a { display: block; font-size: 14px; color: var(--dim); padding: 6px 0; transition: color 0.2s; }
.fcol a:hover { color: var(--green); }
.footer-bottom {
  margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--faint);
}
.footer-bottom .fb-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--green); }

/* =========================================================
   REVEAL ON SCROLL (generic)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .mega-card { grid-template-columns: 1fr; }
  .mega-feat { border-right: none; border-bottom: 1px solid var(--line); flex-direction: row; align-items: center; gap: 24px; }
  .mega-feat .feat-art, .mega-feat .mega-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .diagram { max-width: 420px; margin: 0 auto; }
  .scrolly-grid { grid-template-columns: 1fr; gap: 30px; }
  .scrolly-sticky { position: relative; top: 0; }
  .cost-legend { grid-template-columns: 1fr; gap: 14px; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-list { display: none; }
  .frow, .frow.rev { grid-template-columns: 1fr; direction: ltr; gap: 26px; }
  .ind-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .cta-card { padding: 40px 26px; }
  .section { padding: 70px 0; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .flow, .pulse, .packet { animation: none !important; }
  .reveal, .frow, .step { transition: none !important; opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* mobile menu */
.burger { display: none; }
@media (max-width: 860px) {
  .burger { display: grid; }
}

/* =========================================================
   PRODUCT PAGE — sticky sub-nav, hero, tabs, sections
   ========================================================= */

/* product hero */
.phero { position: relative; padding-top: calc(var(--nav-h) + 58px + 60px); padding-bottom: 72px; overflow: hidden; border-bottom: 1px solid var(--line-2); }
.phero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.phero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.phero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.pbadge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
.pbadge svg { color: var(--green); }
.pbadge.plat svg { color: var(--blue); }
.phero h1 { font-size: clamp(40px, 5.6vw, 70px); margin: 18px 0 0; }
.phero h1 .hl { color: var(--green); }
.phero-tag { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.4vw, 28px); color: var(--text); margin-top: 14px; letter-spacing: -0.01em; }
.phero-sub { color: var(--dim); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; margin-top: 18px; max-width: 50ch; }

/* sticky sub-nav (the "second row", fixed directly under the main nav) */
.subnav {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 80;
  transition: top 0.32s var(--ease);
  background: rgba(var(--surf-rgb), 0.92);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.subnav.raised {
  top: 0;
  background:
    linear-gradient(rgba(var(--surf-rgb),0.88), rgba(var(--surf-rgb),0.88)),
    radial-gradient(120% 240% at 0% 0%, rgba(10,124,62,0.16), transparent 60%),
    radial-gradient(120% 240% at 100% 0%, rgba(28,111,184,0.16), transparent 60%);
  border-bottom-color: rgba(10,124,62,0.32);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(10,124,62,0.12);
}
.subnav-inner { max-width: var(--max); margin-inline: auto; padding-inline: 28px; height: 58px; display: flex; align-items: center; gap: 22px; }
.subnav-name { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; font-size: 16px; flex-shrink: 0; }
.subnav-name .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--green); box-shadow: 0 0 10px var(--green-glow); }
.subnav-links { display: flex; align-items: center; gap: 2px; height: 100%; overflow-x: auto; scrollbar-width: none; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a {
  position: relative; height: 100%; display: inline-flex; align-items: center;
  padding: 0 15px; font-size: 14px; color: var(--dim); white-space: nowrap; transition: color 0.2s;
}
.subnav-links a:hover { color: var(--text); }
.subnav-links a.active { color: var(--text); }
.subnav-links a::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.subnav-links a.active::after { transform: scaleX(1); }
.subnav-cta { display: none; }

/* sections anchored under the sticky bars need scroll offset */
.psection { padding: 92px 0; scroll-margin-top: calc(var(--nav-h) + 58px); position: relative; }
.psection.alt { background: var(--bg-1); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }

/* feature tabs */
.tabs { margin-top: 44px; }
.tablist { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 14px 20px; font-family: var(--display); font-weight: 500; font-size: 16px; color: var(--dim);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s;
}
.tab .tnum { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.tab:hover { color: var(--text); }
.tab.active { color: var(--green); border-color: var(--green); }
.tab.active .tnum { color: var(--green); }
.tabpanel { display: none; }
.tabpanel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; animation: fadeUp 0.5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tabpanel .tp-copy h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.tabpanel .tp-copy p { color: var(--dim); font-size: 16px; line-height: 1.65; }
.tabpanel ul { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.tabpanel li { display: flex; gap: 12px; font-size: 15px; color: var(--text); }
.tabpanel li svg { flex-shrink: 0; color: var(--green); margin-top: 3px; }
.tp-art { aspect-ratio: 5 / 4; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), var(--bg-1)); overflow: hidden; display: grid; place-items: center; padding: 24px; }
.tp-art svg { width: 100%; height: 100%; overflow: visible; }

/* use-case cards */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.uc { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--card); display: flex; flex-direction: column; transition: border-color 0.3s, transform 0.3s var(--ease); }
.uc:hover { border-color: rgba(10,124,62,0.4); transform: translateY(-4px); }
.uc .uc-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.uc h3 { font-size: 20px; margin: 14px 0 10px; }
.uc p { font-size: 14.5px; color: var(--dim); line-height: 1.55; }
.uc .uc-out { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text); }
.uc .uc-out svg { color: var(--green); flex-shrink: 0; }

/* integration block */
.intg { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 44px; }
.intg-points { display: flex; flex-direction: column; gap: 18px; }
.intg-point { display: flex; gap: 16px; }
.intg-point .ip-ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: var(--blue-wash); border: 1px solid rgba(28,111,184,0.25); color: var(--blue); }
.intg-point h4 { font-family: var(--display); font-size: 18px; font-weight: 600; margin-bottom: 5px; }
.intg-point p { font-size: 14.5px; color: var(--dim); line-height: 1.55; }
.intg-art { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); padding: 30px; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.intg-art svg { width: 100%; height: 100%; overflow: visible; }

/* benefits */
.ben-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
.ben { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--card); position: relative; overflow: hidden; }
.ben::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(10,124,62,0.08), transparent 60%); opacity: 0; transition: opacity 0.3s; }
.ben:hover::after { opacity: 1; }
.ben .ben-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(10,124,62,0.1); border: 1px solid rgba(10,124,62,0.2); color: var(--green); position: relative; z-index: 1; }
.ben h3 { font-size: 20px; margin: 18px 0 9px; position: relative; z-index: 1; }
.ben p { font-size: 14.5px; color: var(--dim); line-height: 1.6; position: relative; z-index: 1; }

@media (max-width: 1080px) {
  .phero-inner { grid-template-columns: 1fr; gap: 38px; }
  .tabpanel.active { grid-template-columns: 1fr; gap: 30px; }
  .intg { grid-template-columns: 1fr; gap: 34px; }
  .uc-grid { grid-template-columns: 1fr; }
  .ben-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .subnav-name { display: none; }
  .subnav-cta { display: none; }
  .subnav-links { gap: 0; }
}

/* reduced motion additions */
@media (prefers-reduced-motion: reduce) {
  .tabpanel.active { animation: none !important; }
}

/* =========================================================
   HOME — solutions overview (2 product cards)
   ========================================================= */
.sol-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 50px; }
.sol-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 36px; background: var(--card);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.sol-card:hover { border-color: rgba(10,124,62,0.4); transform: translateY(-4px); }
.sol-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 100% 0%, rgba(10,124,62,0.09), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.sol-card:hover::after { opacity: 1; }
.sol-head { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.sol-ic { width: 54px; height: 54px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: rgba(10,124,62,0.1); border: 1px solid rgba(10,124,62,0.22); color: var(--green); }
.sol-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.sol-card h3 { font-family: var(--display); font-size: 28px; margin-top: 3px; }
.sol-card > p { color: var(--dim); font-size: 15.5px; line-height: 1.6; margin-top: 20px; position: relative; z-index: 1; }
.sol-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; position: relative; z-index: 1; }
.sol-chips span { font-family: var(--mono); font-size: 11.5px; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; }
.sol-visual { margin-top: 26px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-1); aspect-ratio: 16 / 7; overflow: hidden; position: relative; z-index: 1; display: grid; place-items: center; padding: 16px; }
.sol-visual svg { width: 100%; height: 100%; overflow: visible; }
.sol-card .btn { margin-top: 26px; align-self: flex-start; position: relative; z-index: 1; }
@media (max-width: 1080px) { .sol-cards { grid-template-columns: 1fr; } }

/* =========================================================
   SUB-PAGES (B2B template) — stat band, compact hero
   ========================================================= */
.subpage-hero { padding-top: calc(var(--nav-h) + 58px + 56px); }
.subpage-hero .section-lead { font-size: clamp(17px, 1.6vw, 20px); }
.statband { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; }
.statband .s { display: flex; flex-direction: column; gap: 4px; }
.statband .s b { font-family: var(--display); font-size: clamp(30px, 4vw, 42px); color: var(--green); line-height: 1; }
.statband .s span { font-family: var(--mono); font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.blockgrid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
@media (max-width: 900px){ .blockgrid-3 { grid-template-columns: 1fr; } }

/* =========================================================
   RESOURCES — insight cards, downloads, videos, glossary, article
   ========================================================= */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
@media (max-width: 980px){ .res-grid { grid-template-columns: 1fr; } }
.res-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; transition: border-color 0.3s, transform 0.3s var(--ease); }
.res-card:hover { border-color: rgba(10,124,62,0.4); transform: translateY(-4px); }
.res-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--card-2), var(--bg-1)); position: relative; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.res-thumb::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(10,124,62,0.05) 0 9px, transparent 9px 18px); }
.res-thumb .tg { font-family: var(--mono); font-size: 11px; color: var(--faint); position: relative; z-index: 1; letter-spacing: 0.08em; }
.res-thumb .play { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; background: rgba(10,124,62,0.14); border: 1px solid var(--green); display: grid; place-items: center; color: var(--green); }
.res-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.res-cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.res-card h3 { font-family: var(--display); font-size: 19px; margin: 10px 0; line-height: 1.25; }
.res-card p { font-size: 14px; color: var(--dim); line-height: 1.55; }
.res-meta { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.res-card .res-link { margin-top: 14px; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--green); }
.res-card:hover .res-link { gap: 11px; }

/* download cards */
.dl-card { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 22px; transition: border-color 0.3s; }
.dl-card:hover { border-color: rgba(10,124,62,0.4); }
.dl-ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: rgba(10,124,62,0.1); border: 1px solid rgba(10,124,62,0.2); color: var(--green); }
.dl-card .dl-t { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.dl-card h3 { font-family: var(--display); font-size: 17px; }
.dl-card .dl-meta { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.dl-card .btn { margin-top: 12px; align-self: flex-start; padding: 9px 16px; font-size: 13px; }

/* glossary */
.glos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin-top: 44px; }
@media (max-width: 760px){ .glos-grid { grid-template-columns: 1fr; } }
.glos { border-bottom: 1px solid var(--line-2); padding: 16px 0; }
.glos dt { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--text); }
.glos dd { margin-top: 5px; font-size: 14px; color: var(--dim); line-height: 1.55; }
.glos dt b { color: var(--green); font-weight: 600; }

/* article (blog) */
.article-hero { padding-top: calc(var(--nav-h) + 70px); }
.article { max-width: 760px; margin-inline: auto; }
.article .a-cat { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.article h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 16px 0 18px; line-height: 1.08; }
.article .a-meta { font-family: var(--mono); font-size: 12.5px; color: var(--faint); display: flex; gap: 18px; flex-wrap: wrap; white-space: nowrap; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article-body { max-width: 720px; margin: 40px auto 0; }
.article-body p { color: var(--text); opacity: 0.92; font-size: 17.5px; line-height: 1.72; margin-top: 20px; }
.article-body h2 { font-family: var(--display); font-size: 26px; margin-top: 44px; }
.article-body h3 { font-family: var(--display); font-size: 20px; margin-top: 30px; }
.article-body ul { margin-top: 18px; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.article-body li { display: flex; gap: 11px; font-size: 16.5px; color: var(--text); line-height: 1.55; }
.article-body li svg { flex-shrink: 0; color: var(--green); margin-top: 4px; }
.article-body blockquote { margin: 34px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--green); font-family: var(--display); font-size: 22px; line-height: 1.4; color: var(--text); }
.a-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--dim); margin-top: 50px; }
.a-back:hover { color: var(--green); }

/* =========================================================
   AI ASSISTANT — floating chat
   ========================================================= */
.ai-launch {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 18px 13px 15px; border-radius: 999px;
  background: var(--green); color: var(--green-ink); font-weight: 600; font-size: 14.5px;
  box-shadow: 0 12px 34px var(--green-glow), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.2s;
}
.ai-launch:hover { transform: translateY(-2px); box-shadow: 0 18px 44px var(--green-glow); }
.ai-launch svg { flex-shrink: 0; }
.ai-launch.hidden { opacity: 0; pointer-events: none; transform: translateY(10px) scale(0.96); }
@media (max-width: 560px){ .ai-launch .ai-launch-label { display: none; } .ai-launch { padding: 14px; } }

.ai-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 201;
  width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 110px));
  display: flex; flex-direction: column;
  background: var(--elev); border: 1px solid rgba(var(--ink-rgb),0.15); border-radius: 18px;
  box-shadow: 0 40px 100px rgba(var(--ink-rgb),0.16), inset 0 1px 0 rgba(var(--ink-rgb),0.04);
  opacity: 0; transform: translateY(16px) scale(0.98); pointer-events: none;
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
  overflow: hidden;
}
.ai-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.ai-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 16px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 200% at 0% 0%, rgba(10,124,62,0.14), transparent 60%), rgba(var(--ink-rgb),0.02);
}
.ai-head .ai-av {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: rgba(10,124,62,0.14); border: 1px solid rgba(10,124,62,0.3); color: var(--green-2);
  display: grid; place-items: center;
}
.ai-head .ai-ht { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ai-head .ai-ht b { font-family: var(--display); font-size: 15.5px; color: var(--text); }
.ai-head .ai-ht span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.ai-head .ai-ht span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green-glow); }
.ai-close { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--dim); transition: all 0.2s; }
.ai-close:hover { color: var(--text); background: rgba(var(--ink-rgb),0.06); }

.ai-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.ai-body::-webkit-scrollbar { width: 7px; }
.ai-body::-webkit-scrollbar-thumb { background: rgba(var(--ink-rgb),0.14); border-radius: 4px; }

.ai-msg { display: flex; gap: 9px; max-width: 90%; }
.ai-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.ai-msg .ai-bub {
  padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55;
}
.ai-msg.bot .ai-bub { background: rgba(var(--ink-rgb),0.04); border: 1px solid var(--line); color: var(--text); border-top-left-radius: 5px; }
.ai-msg.user .ai-bub { background: var(--green); color: var(--green-ink); font-weight: 500; border-top-right-radius: 5px; }
.ai-msg .ai-bub p { margin: 0; }
.ai-msg .ai-bub p + p { margin-top: 8px; }
.ai-msg .ai-bub a { color: var(--green-2); text-decoration: underline; }
.ai-msg.user .ai-bub a { color: var(--green-ink); }
.ai-msg .ai-mav { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: rgba(10,124,62,0.12); border: 1px solid rgba(10,124,62,0.25); color: var(--green-2); }

.ai-typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); opacity: 0.5; animation: aidot 1s infinite; }
.ai-typing i:nth-child(2){ animation-delay: 0.15s; } .ai-typing i:nth-child(3){ animation-delay: 0.3s; }
@keyframes aidot { 0%,100%{ opacity: 0.3; transform: translateY(0);} 50%{ opacity: 1; transform: translateY(-3px);} }

.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.ai-chip {
  font-size: 12.5px; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px;
  transition: all 0.18s; text-align: left;
}
.ai-chip:hover { color: var(--green-2); border-color: rgba(10,124,62,0.4); background: rgba(10,124,62,0.06); }

.ai-foot { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.ai-inputrow { display: flex; align-items: flex-end; gap: 9px; background: rgba(var(--ink-rgb),0.04); border: 1px solid var(--line); border-radius: 13px; padding: 7px 7px 7px 13px; transition: border-color 0.2s; }
.ai-inputrow:focus-within { border-color: rgba(10,124,62,0.5); }
.ai-input { flex: 1; background: none; border: none; outline: none; resize: none; color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.5; max-height: 96px; padding: 4px 0; }
.ai-input::placeholder { color: var(--faint); }
.ai-send { width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; background: var(--green); color: var(--green-ink); transition: all 0.2s; }
.ai-send:hover { background: var(--green-2); }
.ai-send:disabled { opacity: 0.4; cursor: default; }
.ai-disc { font-size: 10.5px; color: var(--faint); text-align: center; margin-top: 9px; line-height: 1.4; }
.ai-disc a { color: var(--dim); text-decoration: underline; }

@media (prefers-reduced-motion: reduce){ .ai-panel, .ai-launch { transition: none !important; } .ai-typing i { animation: none !important; } }

/* =========================================================
   CONTACT FORM
   ========================================================= */
.ct-form { display: flex; flex-direction: column; gap: 16px; border: 1px solid rgba(var(--ink-rgb),0.16); border-radius: 18px; background: radial-gradient(120% 90% at 0% 0%, rgba(10,124,62,0.16), transparent 55%), radial-gradient(120% 90% at 100% 100%, rgba(28,111,184,0.14), transparent 55%), linear-gradient(180deg, rgba(var(--ink-rgb),0.04), rgba(var(--ink-rgb),0) 140px), var(--elev); box-shadow: 0 40px 90px rgba(0,0,0,0.55), inset 0 1px 0 rgba(var(--ink-rgb),0.05); padding: 30px; }
.ct-field { display: flex; flex-direction: column; gap: 7px; }
.ct-field label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.ct-field input, .ct-field select, .ct-field textarea {
  background: rgba(var(--ink-rgb),0.035); border: 1px solid rgba(var(--ink-rgb),0.15); border-radius: 10px; padding: 12px 14px;
  color: var(--text); font-family: var(--sans); font-size: 15px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.ct-field textarea { resize: vertical; min-height: 96px; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(10,124,62,0.14); }
.ct-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa3a8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.ct-note { font-size: 12px; color: var(--faint); line-height: 1.5; margin-top: 2px; }
.ct-success { border: 1px solid rgba(10,124,62,0.4); border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, rgba(10,124,62,0.12), transparent 55%), var(--card); padding: 40px 30px; text-align: center; }
.ct-success-ic { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,124,62,0.14); border: 1px solid var(--green); color: var(--green); }
.ct-success h3 { font-family: var(--display); font-size: 22px; }
.ct-success p { color: var(--dim); font-size: 15px; line-height: 1.6; margin-top: 10px; }

/* =========================================================
   COOKIE / PRIVACY NOTICE
   ========================================================= */
.ck-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 199;
  width: min(390px, calc(100vw - 32px));
  background: linear-gradient(180deg, rgba(var(--ink-rgb),0.04), rgba(var(--ink-rgb),0) 90px), var(--elev);
  border: 1px solid rgba(var(--ink-rgb),0.15); border-radius: 16px;
  box-shadow: 0 30px 70px rgba(var(--ink-rgb),0.13), inset 0 1px 0 rgba(var(--ink-rgb),0.04);
  padding: 20px 20px 18px;
  transform: translateY(16px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.ck-banner.show { transform: none; opacity: 1; pointer-events: auto; }
.ck-banner .ck-h { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 8px; }
.ck-banner .ck-h svg { color: var(--green); flex-shrink: 0; }
.ck-banner p { font-size: 13px; color: #b8c0c5; line-height: 1.55; }
.ck-banner p a { color: var(--green-2); text-decoration: underline; }
.ck-actions { display: flex; gap: 9px; margin-top: 15px; }
.ck-actions .btn { padding: 10px 16px; font-size: 13px; }
.ck-actions .ck-ok { flex: 1; justify-content: center; }
@media (max-width: 560px){ .ck-banner { left: 16px; right: 16px; width: auto; bottom: 16px; } }

/* =========================================================
   SIGNATURE MOTIF — green/blue pulse-wave (echoes the logo)
   Reusable accent dropped onto black sections here and there.
   ========================================================= */
.rx-motif { position: absolute; pointer-events: none; z-index: 0; overflow: hidden; opacity: 0.9; }
.rx-motif svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rx-wave { fill: none; stroke-linecap: round; will-change: transform; }
.rx-wave.flow { animation: rxFlow linear infinite; }
.rx-flow { animation: rxFlow linear infinite; will-change: transform; }
.rx-drift { animation: rxDrift ease-in-out infinite; transform-box: fill-box; will-change: transform; }
.rx-pulse { animation: rxPulse ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes rxFlow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rxDrift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-26px, 14px); } }
@keyframes rxPulse { 0%,100% { opacity: 0.25; } 50% { opacity: 0.85; } }

/* placement variants — only ever on FREE space, never behind text */
.rx-motif.heroR { top: 0; bottom: 0; right: 0; width: min(44%, 600px); mask-image: linear-gradient(90deg, transparent, #000 46%); }
.rx-motif.band { left: 0; right: 0; bottom: 0; height: 110px; mask-image: linear-gradient(0deg, #000 30%, transparent); }
.rx-motif.band-top { left: 0; right: 0; top: 0; height: 104px; transform: scaleY(-1); mask-image: linear-gradient(0deg, #000 30%, transparent); }

/* keep motif behind content */
.subpage-hero .wrap, .cta-band .wrap, .psection .wrap { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce){ .rx-wave.flow, .rx-flow, .rx-drift, .rx-pulse { animation: none !important; } }
@media (max-width: 760px){ .rx-motif.corner, .rx-motif.tall { opacity: 0.5; } }

/* =========================================================
   GLOBAL ANIMATED BACKDROP (subtle, site-wide)
   ========================================================= */
.bg-aura { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-aura .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.42; will-change: transform; }
.bg-aura .o1 { width: 50vw; height: 50vw; max-width: 760px; max-height: 760px; top: -12vw; right: -10vw;
  background: radial-gradient(circle, rgba(10,124,62,0.22), transparent 64%); animation: auraA 22s ease-in-out infinite; }
.bg-aura .o2 { width: 46vw; height: 46vw; max-width: 680px; max-height: 680px; bottom: -14vw; left: -12vw;
  background: radial-gradient(circle, rgba(28,111,184,0.2), transparent 66%); animation: auraB 27s ease-in-out infinite; }
.bg-aura .o3 { width: 38vw; height: 38vw; max-width: 540px; max-height: 540px; top: 36%; left: 42%;
  background: radial-gradient(circle, rgba(10,124,62,0.12), transparent 70%); animation: auraC 32s ease-in-out infinite; opacity: 0.5; }
@keyframes auraA { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-11vw,9vw) scale(1.16);} }
@keyframes auraB { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(12vw,-8vw) scale(1.12);} }
@keyframes auraC { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-10vw,-11vw) scale(0.86);} }

/* page-entry reveal */
@keyframes pageEnter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
body.page-enter main > section:nth-child(1),
body.page-enter .phero,
body.page-enter .hero { animation: pageEnter 0.7s var(--ease) both; }
body.page-enter main > section:nth-child(2) { animation: pageEnter 0.7s var(--ease) 0.08s both; }

@media (prefers-reduced-motion: reduce) {
  .bg-aura .orb { animation: none !important; }
  .hero-bg .glow, .hero-bg .glow-blue, .hero-bg .grid-lines { animation: none !important; }
  body.page-enter main > section, body.page-enter .phero, body.page-enter .hero { animation: none !important; }
}


/* =========================================================
   JOURNAL — Beitragsliste (journal.html + Teaser Startseite)
   ========================================================= */
.jp-list { display: grid; gap: 18px; margin-top: 44px; }
.jp-list[data-cols="2"] { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.jp-card { display: flex; flex-direction: column; gap: 12px; padding: 30px 32px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); text-decoration: none; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.jp-card:hover { border-color: var(--green); transform: translateY(-2px); }
.jp-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; white-space: nowrap; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--faint); }
.jp-mod { text-transform: uppercase; letter-spacing: 0.13em; color: var(--green); }
.jp-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); flex-shrink: 0; }
.jp-card h3 { font-family: var(--display); font-size: clamp(20px, 2.3vw, 26px); font-weight: 600; line-height: 1.18; color: var(--text); margin: 0; text-wrap: pretty; }
.jp-card:hover h3 { color: var(--green); }
.jp-card p { font-size: 16px; color: var(--dim); line-height: 1.68; margin: 0; max-width: 68ch; text-wrap: pretty; }
.jp-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.jp-card:hover .jp-go svg { transform: translateX(3px); }
.jp-go svg { transition: transform 0.25s var(--ease); }
.jp-list[data-empty]::after { content: ""; }

/* Artikel-Fuß: Sprachhinweis + Zurück */
.article-read p.a-langnote, .a-langnote { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; color: var(--faint); line-height: 1.6; }
.a-share { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

@media (max-width: 860px) {
  .jp-card { padding: 24px 22px; }
}


/* =========================================================
   LESEANSICHT — Beiträge (article-read)
   Ziel: langes Lesen ohne Ermüdung. Weichere Tinte statt Reinweiß,
   engeres Satzmaß, und Satzstücke, die den Scroll rhythmisieren.
   ========================================================= */
.a-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--green); box-shadow: 0 0 12px var(--green-glow); z-index: 60; transition: width 0.1s linear; }

.article-read { max-width: 850px; margin: 44px auto 0; width: 100%; }
.article-read .eyebrow { flex-wrap: wrap; }
.article-read p { color: var(--body-ink); font-size: 20px; line-height: 1.76; margin-top: 24px; max-width: 78ch; text-wrap: pretty; }
.article-read .a-lede { font-family: var(--display); font-size: clamp(21px, 2.5vw, 25px); line-height: 1.5; color: var(--text); margin-top: 30px; font-weight: 400; }
.article-read h2 { font-family: var(--display); font-size: clamp(23px, 2.7vw, 29px); font-weight: 600; line-height: 1.2; margin: 62px 0 0; padding-top: 26px; border-top: 1px solid var(--line-2); position: relative; text-wrap: pretty; }
.article-read h2::before { content: attr(data-num); position: absolute; top: 26px; left: -58px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--green); }
.article-read > p:first-of-type { margin-top: 26px; }

/* Aufzählung als Tafel, nicht als Punkteliste */
.a-cases { margin: 34px 0 0; padding: 8px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; }
.a-cases div { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 15px 2px; border-bottom: 1px solid var(--line-2); font-size: 16.5px; line-height: 1.6; color: var(--body-ink); }
.a-cases div:last-child { border-bottom: 0; }
.a-cases b { font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--faint); padding-top: 4px; }

/* Zitat */
.article-read p.a-pull, .a-pull { margin: 52px 0 0; padding: 30px 0 30px 30px; border-left: 2px solid var(--green); font-family: var(--display); font-size: clamp(21px, 2.6vw, 27px); font-weight: 500; line-height: 1.36; color: var(--text); max-width: none; text-wrap: pretty; }

/* Vorher / Ziel */
.a-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.a-fig { padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--card); display: flex; flex-direction: column; gap: 7px; }
.a-fig .fk { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.a-fig .fv { font-family: var(--display); font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; line-height: 1; color: var(--text); }
.a-fig .fn { font-size: 14px; color: var(--dim); line-height: 1.5; }
.a-fig.goal { border-color: rgba(10, 124, 62, 0.36); background: var(--green-wash); }
.a-fig.goal .fv, .a-fig.goal .fk { color: var(--green); }

/* Vier Einstiegspunkte */
.a-defs { margin-top: 34px; display: flex; flex-direction: column; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.a-defs div { display: grid; grid-template-columns: 210px 1fr; gap: 22px; padding: 18px 24px; background: var(--card); }
.a-defs dt, .a-defs b { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--green); font-weight: 400; line-height: 1.5; padding-top: 2px; }
.a-defs span { font-size: 16px; color: var(--body-ink); line-height: 1.6; }

/* Inhalt / Sprungmarken */
.a-toc { position: sticky; top: 70px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; max-width: 850px; margin: 0 auto; padding: 13px 0 12px; border-bottom: 1px solid var(--line-2); background: var(--bg); }
.a-toc b { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin-right: 4px; }
.a-toc a { font-size: 13.5px; line-height: 1.4; color: var(--dim); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.a-toc a:hover { color: var(--text); border-bottom-color: var(--green); }
.a-toc a.on { color: var(--green); border-bottom-color: var(--green); }

.a-layout { display: block; }
@media (max-width: 860px) { .a-toc { display: none; } }
/* Ab 1180px steht das Inhaltsmenü rechts neben dem Text, klebend. */
@media (min-width: 1180px) {
  /* Beitrag liegt im gleichen Raster wie alle anderen Seiten: Text am
     linken Rand der .wrap, Inhaltsmenü am rechten Rand. */
  .article { max-width: none; margin-inline: 0; }
  .a-layout { display: grid; grid-template-columns: minmax(0, 850px) minmax(200px, 1fr); gap: 56px; justify-content: start; align-items: start; }
  .a-layout > .a-toc { grid-column: 2; grid-row: 1; justify-self: end; width: 220px; position: sticky; top: 100px; z-index: 20; display: flex; flex-direction: column; align-items: stretch; gap: 10px; max-width: none; margin: 40px 0 0; padding: 0; border-bottom: 0; background: none; }
  .a-layout > .a-toc a { white-space: normal; border-bottom: 0; border-left: 1px solid var(--line-2); padding: 3px 0 3px 13px; }
  .a-layout > .a-toc a:hover { border-left-color: var(--green); border-bottom-color: transparent; }
  .a-layout > .a-toc a.on { border-left-color: var(--green); border-bottom-color: transparent; }
  .a-layout > .article-body { grid-column: 1; grid-row: 1; }
  .article-read { margin-top: 34px; margin-inline: 0; }
}
@media (max-width: 820px) {
  .article-read p { font-size: 17.5px; }
  .article-read h2 { margin-top: 48px; }
  .article-read h2::before { position: static; display: block; margin-bottom: 8px; }
  .a-figures { grid-template-columns: 1fr; }
  .a-defs div { grid-template-columns: 1fr; gap: 6px; }
  .a-pull, .article-read p.a-pull { padding: 22px 0 22px 20px; margin-top: 40px; }
}

/* =========================================================
   Bildstrecke — die Seiten eines LinkedIn-Karussells als
   Querstrecke im Beitrag. Wiederverwendbar je Beitrag:
   figure.a-strip > div.imgs > img (media/topic-NN/<lang>/)
   ========================================================= */
.a-strip{margin:40px 0 4px;padding:0}
.a-strip .imgs{display:grid;grid-auto-flow:column;grid-auto-columns:196px;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:0 2px 16px}
.a-strip img{width:196px;height:auto;border:1px solid var(--line-2);border-radius:8px;background:var(--card-2);scroll-snap-align:start;box-shadow:var(--shadow-s)}
.a-strip figcaption{font-family:var(--mono);font-size:11.5px;line-height:1.6;color:var(--faint);padding-top:12px;border-top:1px solid var(--line-2)}
@media(max-width:640px){.a-strip .imgs{grid-auto-columns:158px}.a-strip img{width:158px}}

/* Station-Kennung über einem Zwischentitel */
.a-kick{display:block;font-family:var(--mono);font-size:11px;font-weight:400;letter-spacing:.16em;text-transform:uppercase;color:var(--green);margin-bottom:10px}

/* Drei Merksätze quer — "Was das im Alltag bedeutet" */
.a-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:34px}
.a-three div{border-top:2px solid var(--text);padding-top:16px}
.a-three b{display:block;font-family:var(--display);font-size:17px;font-weight:600;line-height:1.26;color:var(--text);text-wrap:pretty}
.a-three p{font-size:14.5px;line-height:1.62;color:var(--dim);margin:10px 0 0;text-wrap:pretty}
@media(max-width:760px){.a-three{grid-template-columns:1fr;gap:20px}}

/* Fazit als Akzentfeld am Beitragsende */
.a-close{margin-top:48px;padding:32px;border-radius:var(--radius);background:var(--green);color:var(--green-ink)}
.a-close p.big{font-family:var(--display);font-weight:500;font-size:clamp(20px,2.4vw,26px);line-height:1.34;margin:0;text-wrap:pretty}
.a-close p.small{font-size:16px;line-height:1.66;margin:18px 0 0;color:#eef5f0;text-wrap:pretty}
.a-close a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.a-close a:hover{color:#fff;text-decoration-thickness:2px}
@media(max-width:640px){.a-close{padding:24px 22px}}

/* =========================================================
   Beitragsübersicht — trägt auch bei 40 Beiträgen:
   neuester Beitrag als Tafel, Themenfilter mit Anzahl,
   Suche, danach Themengruppen als Zeilen.
   ========================================================= */
.jx-feature{display:grid;grid-template-columns:132px minmax(0,1fr);gap:26px;align-items:center;margin-top:38px;padding:22px;border:1px solid var(--line-2);border-radius:var(--radius);background:var(--card);text-decoration:none;transition:border-color .2s,box-shadow .2s}
.jx-feature:hover{border-color:var(--green);box-shadow:var(--shadow-s)}
.jx-shot img{width:132px;height:auto;border-radius:7px;border:1px solid var(--line-2)}
.jx-ft{display:flex;flex-direction:column;gap:9px;min-width:0}
.jx-fk{font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--green)}
.jx-ft b{font-family:var(--display);font-weight:600;font-size:clamp(20px,2.4vw,26px);line-height:1.18;color:var(--text);text-wrap:pretty}
.jx-fp{font-size:15.5px;line-height:1.66;color:var(--dim);text-wrap:pretty}
.jx-fm{font-family:var(--mono);font-size:11.5px;color:var(--faint)}
@media(max-width:640px){.jx-feature{grid-template-columns:1fr;gap:18px}.jx-shot img{width:112px}}

.jx-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-top:40px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.jx-chips{display:flex;flex-wrap:wrap;gap:8px}
.jx-chip{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 13px;border:1px solid var(--line);border-radius:999px;background:transparent;font-family:var(--display);font-size:13.5px;color:var(--dim);cursor:pointer;transition:all .18s}
.jx-chip i{font-family:var(--mono);font-style:normal;font-size:11px;color:var(--faint)}
.jx-chip:hover{border-color:var(--green);color:var(--text)}
.jx-chip.on{background:var(--green);border-color:var(--green);color:var(--green-ink);font-weight:600}
.jx-chip.on i{color:rgba(255,255,255,.8)}
.jx-search{display:flex;align-items:center;gap:8px;min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:999px;color:var(--faint);margin-left:auto}
.jx-search:focus-within{border-color:var(--green);color:var(--green)}
.jx-search input{border:0;background:transparent;font-family:var(--sans);font-size:14px;color:var(--text);width:168px;outline:0}
.jx-count{font-family:var(--mono);font-size:11.5px;color:var(--faint);white-space:nowrap}
@media(max-width:640px){.jx-search{margin-left:0;flex:1}.jx-search input{width:100%}}

.jx-sec{margin-top:40px}
.jx-sechead{display:flex;align-items:baseline;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--line-2)}
.jx-sechead h2{font-family:var(--display);font-size:15px;font-weight:600;letter-spacing:.02em;color:var(--text);margin:0}
.jx-sechead span{font-family:var(--mono);font-size:11px;color:var(--faint)}
.jx-rows{display:flex;flex-direction:column}
.jx-row{display:grid;grid-template-columns:116px minmax(0,1fr) 62px;gap:20px;align-items:baseline;padding:17px 4px;border-bottom:1px solid var(--line-2);text-decoration:none;transition:background .16s}
.jx-row:hover{background:var(--bg-1)}
.jx-date{font-family:var(--mono);font-size:11.5px;color:var(--faint);white-space:nowrap}
.jx-rt{display:flex;flex-direction:column;gap:5px;min-width:0}
.jx-rt b{font-family:var(--display);font-weight:500;font-size:17px;line-height:1.3;color:var(--text);text-wrap:pretty}
.jx-row:hover .jx-rt b{color:var(--green)}
.jx-rt span{font-size:14px;line-height:1.55;color:var(--dim);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.jx-min{font-family:var(--mono);font-size:11.5px;color:var(--faint);text-align:right;white-space:nowrap}
.jx-more{margin-top:14px;min-height:36px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:transparent;font-family:var(--display);font-size:13px;color:var(--dim);cursor:pointer}
.jx-more:hover{border-color:var(--green);color:var(--green)}
.jx-none{margin-top:34px;font-size:16px;color:var(--dim)}
@media(max-width:760px){.jx-row{grid-template-columns:minmax(0,1fr) 58px;gap:8px 14px}.jx-date{grid-column:1 / -1;order:-1}}

/* Themen-Tafel: zeigt auf einen Blick, was es gibt */
.jx-boardhead{margin-top:52px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.jx-boardhead h2{font-family:var(--mono);font-size:11px;font-weight:400;letter-spacing:.16em;text-transform:uppercase;color:var(--faint);margin:0}
.jx-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1px;background:var(--line-2);border:1px solid var(--line-2);border-radius:var(--radius);overflow:hidden;margin-top:18px}
.jx-tile{display:flex;flex-direction:column;gap:12px;padding:20px 22px;background:var(--card);text-decoration:none;transition:background .18s}
.jx-tile:hover{background:var(--green-wash)}
.jx-tk{display:flex;align-items:baseline;gap:9px;font-family:var(--display);font-weight:600;font-size:16px;color:var(--text)}
.jx-tk i{font-family:var(--mono);font-style:normal;font-size:11px;color:var(--green)}
.jx-tl{display:flex;flex-direction:column;gap:7px}
.jx-tl span{font-size:13.5px;line-height:1.45;color:var(--dim);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.jx-tile:hover .jx-tl span{color:var(--text)}
.jx-tmore{font-family:var(--mono);font-size:11px;color:var(--faint)}
.jx-sec{scroll-margin-top:96px}

.jx-feature.noshot{grid-template-columns:minmax(0,1fr)}
.jx-chip{white-space:nowrap}

.pb-deep{margin:0 0 6px;font-size:16px;line-height:1.7;color:var(--dim);max-width:64ch;text-wrap:pretty}
.pb-deep a{font-weight:500}

/* Weiter zum nächsten Kapitel */
.pb-next{display:inline-flex;align-items:baseline;gap:14px;padding:22px 26px;border:1px solid var(--line-2);border-radius:var(--radius);background:var(--card);text-decoration:none;transition:border-color .2s,box-shadow .2s}
.pb-next:hover{border-color:var(--green);box-shadow:var(--shadow-s)}
.pb-next .nk{font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--faint)}
.pb-next b{font-family:var(--display);font-weight:600;font-size:19px;color:var(--text)}
.pb-next:hover b{color:var(--green)}
.pb-next svg{color:var(--green);align-self:center}

/* Auf breiten Schirmen aus der Textspalte ausbrechen — damit ein Beitrag
   nicht als schmaler Streifen in viel Leerraum steht. Bildstrecke, das
   Dreierraster und das Fazit nutzen die Breite, der Fließtext nicht. */
/* Bildstrecke, Dreierraster und Fazit greifen in den freien Raum rechts
   neben der Textspalte — proportional zur Fensterbreite, gedeckelt, damit
   sie nie unter das Inhaltsmenü laufen. Der Fließtext bleibt schmal. */
@media (min-width:1180px){
  .article-read .a-strip,.article-read .a-three,.article-read .a-close{
    margin-right:calc(-1 * clamp(0px, 100vw - 1222px, 74px));
  }
}
@media (min-width:1280px){
  .article-read .a-strip .imgs{grid-auto-columns:216px}
  .article-read .a-strip img{width:216px}
  .article-read .a-three{gap:30px}
}

/* Modul-Ausklapper in der Hauptnavigation */
.nav-has-drop{position:relative}
.nav-drop-btn{background:none;border:0;cursor:pointer;font:inherit;display:inline-flex;align-items:center;gap:7px}
.nav-drop-btn::after{content:"";width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-1px);opacity:.6}
.nav-drop{position:absolute;top:100%;left:0;min-width:232px;padding:8px;background:var(--elev);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-m,0 18px 44px rgba(0,0,0,.12));display:none;flex-direction:column;gap:1px;z-index:70}
.nav-has-drop:hover .nav-drop,.nav-has-drop:focus-within .nav-drop{display:flex}
.nav-drop a{display:block;padding:10px 12px;border-radius:8px;font-family:var(--display);font-size:14.5px;color:var(--text);text-decoration:none}
.nav-drop a:hover{background:var(--green-wash);color:var(--green)}
.nav-drop .nav-drop-all{margin-top:5px;padding-top:12px;border-top:1px solid var(--line-2);border-radius:0;font-family:var(--mono);font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--faint)}
.nav-drop .nav-drop-all:hover{background:none;color:var(--green)}
.pb-mobnav a.msub{padding-left:38px;font-size:15.5px;color:var(--dim)}
.pb-mobnav a.msub::before{content:"·";margin-right:10px;color:var(--green)}


.nav-list{flex-wrap:nowrap}
.nav-item{white-space:nowrap}
.nav-has-drop .nav-drop{white-space:normal}

/* Bildstrecke: anklickbar, groß */
.a-strip img{cursor:zoom-in;transition:border-color .18s,box-shadow .18s,transform .18s}
.a-strip img:hover{border-color:var(--green);box-shadow:0 10px 30px rgba(var(--ink-rgb),.14);transform:translateY(-2px)}
.a-strip img:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.lb{position:fixed;inset:0;z-index:200;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:26px;background:rgba(16,19,20,.9);backdrop-filter:blur(6px)}
.lb[hidden]{display:none}
.lb-stage{margin:0;display:flex;flex-direction:column;align-items:center;gap:14px;min-width:0}
.lb-stage img{max-width:min(78vw,760px);max-height:82vh;width:auto;height:auto;border-radius:10px;box-shadow:0 30px 80px rgba(0,0,0,.5);background:#fff}
.lb-stage figcaption{font-family:var(--mono);font-size:11.5px;letter-spacing:.04em;color:rgba(255,255,255,.72);text-align:center;max-width:60ch;line-height:1.5}
.lb-nav,.lb-close{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.06);color:#fff;border-radius:999px;cursor:pointer;display:grid;place-items:center}
.lb-nav{width:52px;height:52px}
.lb-nav:hover,.lb-close:hover{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.4)}
.lb-close{position:absolute;top:22px;right:22px;width:44px;height:44px}
@media (max-width:760px){
  .lb{grid-template-columns:1fr;padding:16px;gap:16px}
  .lb-stage{order:1}
  .lb-nav{width:46px;height:46px}
  .lb-prev{order:2;justify-self:start}
  .lb-next{order:2;justify-self:end;margin-top:-46px}
  .lb-stage img{max-width:92vw;max-height:70vh}
}
