/* ==========================================================================
   aktivities.ai — Leitstand
   Farbsprache: dunkles Board (Kontrollraum) + Statusfarben mit Bedeutung.
   Statusfarben erscheinen ausschliesslich dort, wo sie etwas bezeichnen.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 500 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/fonts/instrumentsans-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('assets/fonts/plexmono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('assets/fonts/plexmono-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --board: #0c1116;
  --board-2: #111922;
  --board-3: #16202b;

  --chalk: #e9eef2;
  --chalk-2: #9daebc;
  --chalk-3: #7a8c9b;

  --brass: #e0a93f;
  --brass-soft: #f3c877;
  --brass-dim: rgba(224, 169, 63, 0.16);

  --ok: #43c98d;
  --plan: #5b9df9;
  --clash: #f2566e;

  --paper: #e8ebe6;
  --paper-ink: #10161a;
  --paper-ink-2: #4e5c63;

  /* Oberflaechen-Tokens: werden in hellen Baendern umdefiniert */
  --surf-bg: var(--board);
  --surf-panel: rgba(255, 255, 255, 0.025);
  --surf-fg: var(--chalk);
  --surf-fg-2: var(--chalk-2);
  --surf-fg-3: var(--chalk-3);
  --surf-line: rgba(255, 255, 255, 0.09);
  --surf-line-soft: rgba(255, 255, 255, 0.05);

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 74rem;
  --gut: clamp(1.25rem, 5vw, 2.5rem);
  --r: 10px;
  --r-lg: 16px;
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--board);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 760;
  font-stretch: 112%;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

::selection {
  background: var(--brass);
  color: #0c1116;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brass);
  color: #0c1116;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

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

/* ---------- Layout-Grundformen ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sec {
  padding-block: clamp(3.75rem, 8vw, 7rem);
  position: relative;
}
.sec--first { padding-block-start: clamp(2rem, 5vw, 3rem); }

.band {
  background: var(--surf-bg);
  color: var(--surf-fg);
}

/* Helles Band: Planpapier mit Millimeterraster */
.band-paper {
  --surf-bg: var(--paper);
  --surf-panel: rgba(255, 255, 255, 0.6);
  --surf-fg: var(--paper-ink);
  --surf-fg-2: var(--paper-ink-2);
  --surf-fg-3: #6a777e;
  --surf-line: rgba(16, 22, 26, 0.14);
  --surf-line-soft: rgba(16, 22, 26, 0.07);
  background-color: var(--paper);
  color: var(--paper-ink);
  background-image:
    linear-gradient(rgba(16, 22, 26, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 22, 26, 0.045) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  background-position: center top;
}

.rule {
  height: 1px;
  background: var(--surf-line-soft);
  border: 0;
  margin: 0;
}

/* ---------- Typografische Bausteine ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--surf-fg-3);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--surf-line);
  max-width: 4.5rem;
}
.eyebrow--mark { color: var(--brass); }

@media (max-width: 30rem) {
  .eyebrow { font-size: 0.66rem; letter-spacing: 0.11em; gap: 0.55rem; }
}

.h-xl { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.h-lg { font-size: clamp(1.7rem, 4.2vw, 2.75rem); }
.h-md { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 700; font-stretch: 105%; letter-spacing: -0.015em; }
.h-sm {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

.lead {
  font-size: clamp(1.03rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--surf-fg-2);
  max-width: 46ch;
}

.body-2 {
  color: var(--surf-fg-2);
  font-size: 0.97rem;
  line-height: 1.62;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(12, 17, 22, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav__in {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 4rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 760;
  font-stretch: 108%;
  font-size: 1.06rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--chalk);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
}
.brand__dot { color: var(--brass); }
.brand__mark { display: block; width: 22px; height: 22px; flex: none; }

.nav__links {
  display: none;
  align-items: center;
  gap: 1.85rem;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--chalk-2);
  transition: color 0.18s var(--ease);
}
.nav__links a:hover { color: var(--chalk); }

.nav__side {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--chalk-3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.lang:hover { color: var(--chalk); border-color: rgba(255, 255, 255, 0.28); }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px; height: 38px;
  padding: 0 9px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--chalk-2);
  transition: transform 0.22s var(--ease), opacity 0.16s var(--ease);
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav__drawer {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-block: 0.6rem 1.1rem;
}
.nav__drawer.is-open { display: block; }
.nav__drawer a {
  display: block;
  padding: 0.72rem 0;
  text-decoration: none;
  color: var(--chalk-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1rem;
}
/* .nav__drawer a ist spezifischer als .btn--primary — hier zurueckholen */
.nav__drawer .btn {
  margin-top: 1rem;
  width: 100%;
  border-bottom: 0;
}
.nav__drawer .btn--primary { color: #0c1116; }

.nav__side .nav__cta { display: none; }

@media (min-width: 62rem) {
  .nav__links { display: flex; }
  .nav__side .nav__cta { display: inline-flex; }
  .burger { display: none; }
  .nav__drawer { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brass);
  color: #0c1116;
}
.btn--primary:hover { background: var(--brass-soft); }

.btn--ghost {
  background: transparent;
  color: var(--surf-fg);
  border-color: var(--surf-line);
}
.btn--ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.btn--sm { padding: 0.62rem 1rem; font-size: 0.88rem; }

.btn__ext { width: 12px; height: 12px; flex: none; opacity: 0.65; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); }

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

.hero h1 .t-dep { color: var(--brass); }
.hero h1 .t-time { color: var(--plan); }

.hero__lead { margin-top: 1.5rem; max-width: 52ch; }
.hero__cta { margin-top: 2rem; }

.hero__note {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--chalk-3);
  letter-spacing: 0.02em;
}

@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    align-items: center;
  }
}

/* ---------- Panel (Leitstand-Tafel) ---------- */
.panel {
  border: 1px solid var(--surf-line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  padding: 1rem;
  position: relative;
}
.band-paper .panel {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--surf-line);
}

.panel__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.15rem 0.85rem;
  border-bottom: 1px solid var(--surf-line-soft);
  margin-bottom: 1rem;
}
.panel__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--surf-fg-3);
}
.panel__meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--surf-fg-3);
}

/* ---------- Signature: Impact-Achse (Gantt + Abhaengigkeiten) ---------- */
.gantt {
  --rh: 30px;
  --rg: 12px;
  --lab: 106px;
  font-family: var(--font-mono);
}

.gantt__lab-h {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--surf-fg-3);
  opacity: 0.7;
}

.gantt__head,
.g-row {
  display: grid;
  grid-template-columns: var(--lab) repeat(10, minmax(0, 1fr));
  align-items: center;
}

.gantt__head {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--surf-line-soft);
  margin-bottom: 0.85rem;
}
.gantt__kw {
  grid-column: span 5;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--surf-fg-3);
  text-transform: uppercase;
  border-left: 1px solid var(--surf-line);
  padding-left: 0.4rem;
}
.gantt__kw:first-of-type { grid-column: 2 / span 5; }

.gantt__days {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  margin-top: 0.35rem;
}
.gantt__days span {
  font-size: 0.62rem;
  color: var(--surf-fg-3);
  text-align: center;
  opacity: 0.75;
}

.gantt__body {
  display: flex;
  flex-direction: column;
  gap: var(--rg);
  position: relative;
}

/* Rasterlinien hinter den Balken */
.gantt__body::before {
  content: '';
  position: absolute;
  inset: -0.35rem 0 -0.35rem var(--lab);
  background-image: linear-gradient(90deg, var(--surf-line-soft) 0 1px, transparent 1px);
  background-size: 10% 100%;
  pointer-events: none;
}

.g-row { min-height: var(--rh); position: relative; }

.g-name {
  font-size: 0.7rem;
  min-width: 0;
  color: var(--surf-fg-2);
  padding-right: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-ver { color: var(--surf-fg-3); }

.g-bar {
  position: relative;
  min-width: 0;
  height: var(--rh);
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-inline: 0.4rem;
  font-size: 0.66rem;
  white-space: nowrap;
  overflow: hidden;
  border: 1px solid;
  transform-origin: left center;
  animation: bar-in 0.5s var(--ease) both;
  animation-delay: var(--d, 0s);
}
.g-bar__txt { opacity: 0.95; }

.g-bar--plan {
  background: color-mix(in srgb, var(--plan) 16%, transparent);
  border-color: color-mix(in srgb, var(--plan) 55%, transparent);
  color: #cfe1ff;
}
.g-bar--ok {
  background: color-mix(in srgb, var(--ok) 15%, transparent);
  border-color: color-mix(in srgb, var(--ok) 50%, transparent);
  color: #c3f0dc;
}
.g-bar--clash {
  background: color-mix(in srgb, var(--clash) 18%, transparent);
  border-color: var(--clash);
  color: #ffd2da;
  animation: bar-in 0.5s var(--ease) both, clash-pulse 2.6s var(--ease) 1.6s infinite;
}

/* Abhaengigkeits-Elbogen: senkrecht ab Mitte des Vorgaengerbalkens,
   dann waagerecht in den Zielbalken. */
.g-link {
  align-self: end;
  height: calc(var(--rh) + var(--rg));
  margin-bottom: calc(var(--rh) / 2 - 1px);
  border-left: 1.5px solid var(--brass);
  border-bottom: 1.5px solid var(--brass);
  border-bottom-left-radius: 9px;
  opacity: 0.55;
  animation: link-draw 0.5s var(--ease) both;
  animation-delay: var(--d, 0s);
  pointer-events: none;
}

.g-flag {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--clash);
  border: 1px solid color-mix(in srgb, var(--clash) 45%, transparent);
  background: color-mix(in srgb, var(--clash) 12%, transparent);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  animation: fade-up 0.5s var(--ease) 1.5s both;
}
.g-flag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clash);
}

.gantt__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 2.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--surf-line-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--surf-fg-3);
  letter-spacing: 0.03em;
}
.key { display: inline-flex; align-items: center; gap: 0.4rem; }
.key::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 2px;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 22%, transparent);
}
.key--plan { color: var(--plan); }
.key--ok { color: var(--ok); }
.key--clash { color: var(--clash); }
.key--dep { color: var(--brass); }
.key--dep::before { border-radius: 0; border: 0; border-top: 1.5px solid currentColor; height: 0; width: 12px; background: none; }

@keyframes bar-in {
  from { transform: scaleX(0.04); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes link-draw {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes clash-pulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--clash) 16%, transparent); }
}

@media (min-width: 40rem) {
  .gantt { --lab: 152px; --rh: 34px; }
  .g-name { font-size: 0.76rem; }
  .g-bar { font-size: 0.7rem; }
}
@media (max-width: 30rem) {
  .g-ver { display: none; }
  .g-bar { padding-inline: 0.28rem; }
}

/* ---------- Problem / Gegenueberstellung ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--wide-right { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
  .split--wide-left { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  .split__visual--first { order: -1; }
}

.chaos {
  display: grid;
  gap: 0.75rem;
}
.chaos li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--surf-line);
  border-radius: var(--r);
  background: var(--surf-panel);
}
.chaos li strong {
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}
.chaos li p { color: var(--surf-fg-2); font-size: 0.93rem; line-height: 1.55; }
.chaos__tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--surf-fg-3);
  border: 1px solid var(--surf-line);
  border-radius: 5px;
  padding: 0.2rem 0.4rem;
  margin-top: 0.15rem;
  white-space: nowrap;
}
.chaos ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Feature-Bloecke ---------- */
.feat__list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.feat__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--surf-fg-2);
  font-size: 0.96rem;
  line-height: 1.55;
}
.feat__list li::before {
  content: '';
  width: 7px; height: 7px;
  margin-top: 0.6rem;
  border-radius: 2px;
  background: var(--brass);
  transform: rotate(45deg);
}
.feat__list b { color: var(--surf-fg); font-weight: 600; }

/* ---------- Graph-Visual ---------- */
.graph { width: 100%; height: auto; display: block; }
.graph .g-edge {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.2;
  fill: none;
}
.graph .g-edge.is-hot {
  stroke: var(--brass);
  stroke-width: 1.6;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  opacity: 0.95;
}
.graph .g-node { fill: var(--board-2); stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.1; }
.graph .g-node.is-hot { fill: color-mix(in srgb, var(--brass) 22%, var(--board-2)); stroke: var(--brass); }
.graph .g-node.is-src { fill: color-mix(in srgb, var(--clash) 26%, var(--board-2)); stroke: var(--clash); }
.graph .g-lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  fill: var(--chalk-2);
  letter-spacing: 0.01em;
}
.graph .g-lbl.is-hot { fill: var(--chalk); }
.graph .g-tier {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  fill: var(--chalk-3);
  text-transform: uppercase;
}
.graph .g-tierline { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; stroke-dasharray: 2 4; }

.is-revealed .graph .g-edge.is-hot { animation: dash 1.1s var(--ease) 0.35s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }

.impact-tally {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--surf-line-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--surf-fg-3);
  letter-spacing: 0.04em;
}
.impact-tally b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brass);
  letter-spacing: -0.02em;
}

/* ---------- Kalender-Mockup (helles Band) ---------- */
.cal {
  font-family: var(--font-mono);
}
.cal__head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 3px;
}
.cal__head span {
  font-size: clamp(0.6rem, 0.8vw, 0.68rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--surf-fg-3);
  text-align: center;
  padding-bottom: 0.35rem;
}
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.cal__d {
  min-height: clamp(44px, 7vw, 78px);
  border: 1px solid var(--surf-line-soft);
  border-radius: 5px;
  padding: 3px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.45);
  min-width: 0;
}
.cal__d > i {
  font-style: normal;
  font-size: clamp(0.58rem, 0.8vw, 0.7rem);
  color: var(--surf-fg-3);
  line-height: 1;
}
.cal__d--out { opacity: 0.4; }
.cal__d--wknd { background: rgba(16, 22, 26, 0.035); }
.cal__d--freeze {
  background: repeating-linear-gradient(
    -45deg,
    rgba(16, 22, 26, 0.055) 0 4px,
    transparent 4px 8px
  );
}
.cal__d--today { border-color: var(--paper-ink); }

.chip {
  font-size: clamp(0.55rem, 0.85vw, 0.68rem);
  line-height: 1.25;
  border-radius: 3px;
  padding: 1px 3px;
  border-left: 2px solid;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}
.chip--plan { background: color-mix(in srgb, var(--plan) 18%, transparent); border-color: var(--plan); color: #123a72; }
.chip--ok { background: color-mix(in srgb, var(--ok) 20%, transparent); border-color: var(--ok); color: #12523a; }
.chip--clash { background: color-mix(in srgb, var(--clash) 20%, transparent); border-color: var(--clash); color: #7c1024; font-weight: 500; }

.cal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--surf-line-soft);
  font-size: 0.64rem;
  color: var(--surf-fg-3);
  letter-spacing: 0.03em;
}
.key--freeze { color: var(--surf-fg-3); }
.key--freeze::before {
  border-color: var(--surf-line);
  background: repeating-linear-gradient(-45deg, currentColor 0 1.5px, transparent 1.5px 4px);
}

/* Die markierte Kollision auch als Text — auf kleinen Schirmen der eigentliche Traeger */
.cal__pick {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: baseline;
  margin-top: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--clash) 40%, transparent);
  background: color-mix(in srgb, var(--clash) 9%, transparent);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--surf-fg-2);
}
.cal__pick-d {
  font-weight: 500;
  color: #8f1228;
  white-space: nowrap;
}

/* Unter 40rem tragen die Chips nur noch Farbe — der Text steht darunter im Klartext */
@media (max-width: 40rem) {
  .cal__d { padding: 2px 3px; gap: 1.5px; }
  .chip {
    font-size: 0;
    height: 5px;
    padding: 0;
    border-radius: 2px;
    border-left-width: 3px;
  }
  .cal__d > i { font-size: 0.55rem; }
}

/* Kopfzeile ueber voller Breite: Titel links, Erlaeuterung rechts */
.stack-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 60rem) {
  .stack-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
}
.stack-head .feat__list { margin-top: 1.25rem; }

/* ---------- Bausteine-Grid ---------- */
.grid-3 {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 44rem) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 66rem) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  border: 1px solid var(--surf-line);
  border-radius: var(--r);
  background: var(--surf-panel);
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover { border-color: rgba(224, 169, 63, 0.42); }
.card__ico {
  width: 26px; height: 26px;
  color: var(--brass);
  margin-bottom: 0.35rem;
}
.card p { color: var(--surf-fg-2); font-size: 0.93rem; line-height: 1.6; }

/* ---------- Use Cases ---------- */
.uc {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 58rem) { .uc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.uc__item {
  border: 1px solid var(--surf-line);
  border-radius: var(--r);
  padding: 1.5rem 1.35rem;
  background: var(--surf-panel);
  display: flex;
  flex-direction: column;
}
.uc__tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9rem;
}
.uc__q {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 106%;
  font-size: clamp(1.15rem, 1.7vw, 1.3rem);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 0.7rem;
}
.uc__item p { color: var(--surf-fg-2); font-size: 0.93rem; line-height: 1.6; }
.uc__a {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--surf-line-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brass);
  line-height: 1.55;
}

/* ---------- Preise ---------- */
.price {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  align-items: start;
}
@media (min-width: 58rem) { .price { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tier {
  border: 1px solid var(--surf-line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem;
  background: var(--surf-panel);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier--mark {
  border-color: rgba(224, 169, 63, 0.5);
  background: linear-gradient(180deg, rgba(224, 169, 63, 0.07), rgba(255, 255, 255, 0.015));
}
.tier__name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--surf-fg-3);
}
.tier--mark .tier__name { color: var(--brass); }
.tier__price {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 760;
  font-stretch: 108%;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0.9rem 0 0.2rem;
}
.tier__per { font-size: 0.82rem; color: var(--surf-fg-3); font-family: var(--font-mono); }
.tier__for {
  margin-top: 0.9rem;
  color: var(--surf-fg-2);
  font-size: 0.92rem;
  line-height: 1.55;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--surf-line-soft);
}
.tier ul {
  list-style: none;
  margin: 1.1rem 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--surf-fg-2);
}
.tier li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; line-height: 1.5; }
.tier li svg { width: 13px; height: 13px; margin-top: 0.35rem; color: var(--brass); flex: none; }
.tier .btn { margin-top: auto; width: 100%; }

.price__note {
  margin-top: 1.5rem;
  max-width: 68ch;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--surf-fg-3);
  line-height: 1.6;
}

.hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(224, 169, 63, 0.35);
  background: var(--brass-dim);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1.25rem;
}

/* ---------- Formular ---------- */
.form-wrap {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 62rem) {
  .form-wrap { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

.form {
  border: 1px solid var(--surf-line);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.025);
}

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-3);
  margin-bottom: 0.45rem;
}
.field .req { color: var(--brass); }

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--chalk);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.field textarea { resize: vertical; min-height: 5.5rem; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: #5d6d7a; }
.field input:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.2); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: rgba(0, 0, 0, 0.4);
}

.field-2 { display: grid; gap: 1rem; }
@media (min-width: 30rem) { .field-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Honeypot: sichtbar entfernt, fuer Screenreader entkoppelt (aria-hidden am Feld) */
.trap {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit { width: 100%; margin-top: 0.35rem; }
.form__legal {
  margin-top: 0.95rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--chalk-3);
}
.form__legal a { color: var(--chalk-2); }

.form__msg {
  margin-top: 1rem;
  border-radius: var(--r);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  display: none;
}
.form__msg.is-on { display: block; }
.form__msg--ok {
  border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent);
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  color: #b9ecd4;
}
.form__msg--err {
  border: 1px solid color-mix(in srgb, var(--clash) 45%, transparent);
  background: color-mix(in srgb, var(--clash) 10%, transparent);
  color: #ffcdd6;
}
.form__msg a { color: inherit; }

.form-side ul {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.form-side li { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; }
.form-side li svg { width: 17px; height: 17px; color: var(--brass); margin-top: 0.28rem; flex: none; }
.form-side b { display: block; font-weight: 600; margin-bottom: 0.1rem; }
.form-side p { color: var(--chalk-2); font-size: 0.92rem; line-height: 1.55; }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-block: 2.75rem 2.25rem;
  background: #0a0e13;
}
.foot__in {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 48rem) {
  .foot__in { grid-template-columns: 1fr auto; align-items: center; }
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
  font-size: 0.88rem;
}
.foot__links a { color: var(--chalk-2); text-decoration: none; }
.foot__links a:hover { color: var(--chalk); }
.foot__legal {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #5d6d7a;
  line-height: 1.6;
}

/* ---------- Scroll-Reveal ----------
   Nur aktiv, wenn JS laeuft: ohne .js bleibt jeder Inhalt sichtbar. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.legal__in { max-width: 42rem; }
.legal h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 0.6rem; }
/* .legal p ist spezifischer als .legal__stand — daher hier mitqualifizieren */
.legal .legal__stand {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--chalk-3);
  margin-bottom: 2.75rem;
  letter-spacing: 0.04em;
}
.legal section { margin-bottom: 2.25rem; }
.legal h2 {
  font-size: 1.08rem;
  font-weight: 700;
  font-stretch: 104%;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.legal h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--chalk-2);
  margin: 1.1rem 0 0.35rem;
  letter-spacing: 0;
}
.legal p { color: var(--chalk-2); font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.7rem; }
.legal p:last-child { margin-bottom: 0; }
.legal ul { color: var(--chalk-2); font-size: 0.95rem; line-height: 1.7; padding-left: 1.15rem; margin: 0 0 0.8rem; }
.legal li { margin-bottom: 0.25rem; }
.legal strong { color: var(--chalk); font-weight: 600; }
.legal a { color: var(--brass); text-decoration-color: rgba(224, 169, 63, 0.45); text-underline-offset: 3px; }
.legal address { font-style: normal; color: var(--chalk-2); font-size: 0.95rem; line-height: 1.7; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .graph .g-edge.is-hot { stroke-dashoffset: 0; }
}

/* ---------- Pricing v2: Metrik, Rechner, FAQ (11.08.2026) ---------- */
.tier__metric {
  margin: 0.35rem 0 0;
  font-size: 0.83rem;
  letter-spacing: 0.02em;
  color: var(--brass-soft);
}
.tier--mark .tier__metric { color: var(--brass); }

.calc {
  margin-top: 2.6rem;
  padding: 1.7rem 1.6rem 1.4rem;
  border: 1px solid var(--surf-line);
  border-radius: 14px;
  background: var(--surf-panel);
}
.calc__title { margin: 0; font-weight: 650; font-size: 1.05rem; color: var(--surf-fg); }
.calc__sub { margin: 0.45rem 0 1.2rem; color: var(--surf-fg-2); font-size: 0.92rem; max-width: 62ch; line-height: 1.55; }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 0.9rem; color: var(--surf-fg-2); }
.calc__label output { font-family: "IBM Plex Mono", monospace; font-size: 1.15rem; color: var(--brass); font-weight: 600; }
.calc input[type="range"] {
  width: 100%; margin: 0.7rem 0 1.3rem; accent-color: var(--brass);
  height: 4px; cursor: pointer;
}
.calc__vals { display: grid; gap: 0.9rem; }
@media (min-width: 40rem) { .calc__vals { grid-template-columns: 1fr 1fr; } }
.calc__val {
  padding: 0.9rem 1rem;
  border: 1px solid var(--surf-line-soft);
  border-radius: 10px;
}
.calc__val span { display: block; font-family: "IBM Plex Mono", monospace; font-size: 1.45rem; font-weight: 600; color: var(--surf-fg); }
.calc__val small { display: block; margin-top: 0.3rem; color: var(--surf-fg-3); font-size: 0.8rem; line-height: 1.45; }
.calc__val--us { border-color: var(--brass-dim); background: rgba(224, 169, 63, 0.05); }
.calc__val--us span { color: var(--brass-soft); }
.calc__note { margin: 1.1rem 0 0; font-size: 0.8rem; color: var(--surf-fg-3); line-height: 1.55; max-width: 70ch; }

.faq { margin-top: 2.2rem; display: grid; gap: 0.6rem; }
.faq details {
  border: 1px solid var(--surf-line-soft);
  border-radius: 10px;
  background: var(--surf-panel);
  padding: 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 0.95rem 1.15rem;
  font-weight: 600; font-size: 0.94rem; color: var(--surf-fg);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-size: 1.15rem; line-height: 1; transition: transform 0.18s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.15rem 1.05rem; color: var(--surf-fg-2); font-size: 0.92rem; line-height: 1.6; max-width: 72ch; }
.faq summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Bänder-Beispiele an den Tarifkarten (11.08.2026 abends) */
.tier__example {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--surf-fg-3);
}

/* Objekte-Schätzer (11.08.2026 abends) */
.est__grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 52rem) { .est__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.est__field { display: grid; gap: 0.4rem; font-size: 0.83rem; color: var(--surf-fg-2); }
.est__field input {
  width: 100%; padding: 0.55rem 0.7rem;
  background: var(--board-2); color: var(--surf-fg);
  border: 1px solid var(--surf-line); border-radius: 8px;
  font: 600 1rem "IBM Plex Mono", monospace;
}
.est__field input:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; border-color: transparent; }
.est__result { margin: 1.2rem 0 0; font-size: 0.95rem; color: var(--surf-fg-2); }
.est__sum { font: 600 1.35rem "IBM Plex Mono", monospace; color: var(--surf-fg); }
.est__tier { color: var(--brass); }
