:root {
  --color-navy-950: #06111f;
  --color-navy-900: #09192d;
  --color-navy-800: #0e2743;
  --color-navy-700: #15395f;
  --color-ink: #eaf0f8;
  --color-muted: #aab8c9;
  --color-soft: #d7dfec;
  --color-gold: #d6aa4f;
  --color-gold-strong: #f0c86b;
  --color-gold-deep: #8e6721;
  --color-teal: #48c0bb;
  --color-line: rgba(214, 170, 79, 0.24);
  --color-panel: rgba(9, 25, 45, 0.86);
  --color-panel-solid: #0b1d34;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.28);
  /* "Noto Sans" vor dem generischen sans-serif: Segoe UI/-apple-system decken
     Kyrillisch (ru) auf Win/Mac zwar ab, Noto Sans sichert auch andere
     Plattformen ab (gleiche Lösung wie im App-Font-Stack, siehe styles.css).
     Für Arabisch/Devanagari/CJK (Phase 3) explizite Noto-Fallbacks vor dem
     generischen "Noto Sans", da Windows-Systemfonts diese Schriften zwar oft,
     aber nicht garantiert abdecken -- Inter/Segoe UI rendern kein Arabisch/
     Devanagari/CJK, der Browser springt also ohnehin zu diesen Fallbacks. */
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Noto Sans", sans-serif;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Noto Sans", sans-serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --container: 1160px;
  --section-y: clamp(56px, 7vw, 96px);
  --nav-h: 76px;
}

* {
  box-sizing: border-box;
}

/* Several elements toggled via the native `hidden` attribute also carry a
   class that sets its own `display` (`.button` -> inline-flex, `.form-grid`/
   `.checkout-gate` -> grid, etc.) -- that author rule wins over the UA
   `[hidden] { display: none }` default by specificity, so the element stays
   visible even while hidden. One global override fixes the whole class of
   bugs instead of chasing it element by element. */
[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(72, 192, 187, 0.14), transparent 34rem),
    linear-gradient(180deg, var(--color-navy-950), var(--color-navy-900) 52%, #07131f);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

/* Crosslinks in Fließtext (Seiten-zu-Seite) bleiben optisch als Links erkennbar. */
main p a,
main li a,
main dd a {
  text-decoration: underline;
  text-decoration-color: rgba(214, 170, 79, 0.55);
  text-underline-offset: 2px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav-h);
  border-bottom: 1px solid rgba(214, 170, 79, 0.18);
  background: rgba(6, 17, 31, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100% - 32px, var(--container));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(240, 200, 107, 0.58);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--color-gold-strong);
  background:
    linear-gradient(135deg, rgba(214, 170, 79, 0.18), rgba(72, 192, 187, 0.06)),
    var(--color-navy-900);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.brand-name {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  padding: 0 12px;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-ink);
  background: rgba(214, 170, 79, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  position: relative;
}

.lang-switch-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-ink);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.lang-switch-button:hover,
.lang-switch-button[aria-expanded="true"] {
  border-color: rgba(214, 170, 79, 0.42);
  background: rgba(214, 170, 79, 0.1);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  z-index: 40;
  width: min(220px, calc(100vw - 32px));
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-panel-solid);
  box-shadow: var(--shadow-soft);
}

.lang-switch-menu[hidden] {
  display: none;
}

.lang-switch-menu li {
  border-radius: var(--radius-sm);
}

.lang-switch-menu li[hidden] {
  display: none;
}

.lang-switch-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-soft);
  font-size: 0.92rem;
}

.lang-switch-menu li[aria-selected="true"] a {
  color: var(--color-gold-strong);
  font-weight: 700;
}

.lang-switch-menu a:hover,
.lang-switch-menu li.is-active a {
  color: var(--color-ink);
  background: rgba(214, 170, 79, 0.14);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-ink);
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: #081322;
  background: linear-gradient(180deg, var(--color-gold-strong), var(--color-gold));
  box-shadow: 0 8px 22px rgba(214, 170, 79, 0.16);
}

.button-secondary {
  color: var(--color-ink);
  border-color: rgba(214, 170, 79, 0.42);
  background: rgba(9, 25, 45, 0.72);
}

.nav-actions .button-account {
  min-height: 40px;
  border-color: rgba(214, 170, 79, 0.4);
  background: linear-gradient(180deg, rgba(240, 200, 107, 0.92), rgba(214, 170, 79, 0.86));
  box-shadow: none;
}

.button-full {
  width: 100%;
}

.main {
  overflow: hidden;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: calc(78vh - var(--nav-h));
  padding: clamp(56px, 8vw, 98px) 0 48px;
  border-bottom: 1px solid rgba(214, 170, 79, 0.18);
  background:
    linear-gradient(90deg, rgba(6, 17, 31, 0.98) 0%, rgba(6, 17, 31, 0.82) 42%, rgba(6, 17, 31, 0.24) 100%),
    url("../images/hero-orchestrator.png");
  background-position: center right;
  background-size: cover;
  background-position-y: calc(50% + var(--hero-shift, 0px));
}

/* RTL: Text liegt jetzt an der rechten Kante, der dunkle (lesbare) Teil des
   Gradienten und der Bildausschnitt müssen daher spiegeln, sonst liegt der
   Text über dem hellen Bildbereich statt über dem abgedunkelten Hintergrund. */
[dir="rtl"] .hero {
  background:
    linear-gradient(270deg, rgba(6, 17, 31, 0.98) 0%, rgba(6, 17, 31, 0.82) 42%, rgba(6, 17, 31, 0.24) 100%),
    url("../images/hero-orchestrator.png");
  background-position: center left;
  background-size: cover;
  background-position-y: calc(50% + var(--hero-shift, 0px));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(6, 17, 31, 0.72));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--color-gold-strong);
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.page-title {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.lead {
  max-width: 680px;
  color: var(--color-soft);
  font-size: clamp(1.04rem, 1.7vw, 1.25rem);
}

.lead,
.card p,
.price-card p,
.contact-panel p,
.section-head p,
.cta-band p,
.map-node,
.legal-content p,
.account-intro,
.hint,
.stats-footnote {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.acronym-block {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  max-width: 680px;
}

.acronym-row {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 14px 16px;
  border: 1px solid rgba(214, 170, 79, 0.22);
  border-radius: var(--radius-md);
  background: rgba(7, 19, 33, 0.72);
}

.acronym-row dt {
  margin: 0;
  color: var(--color-gold-strong);
  font-weight: 850;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.acronym-row dd {
  margin: 0;
  text-align: start;
}

.acronym-meaning {
  margin: 0;
  color: var(--color-ink);
  font-weight: 650;
}

.acronym-expansion {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-style: italic;
}

@media (max-width: 560px) {
  .acronym-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 34px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 680px;
  border: 1px solid rgba(214, 170, 79, 0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(214, 170, 79, 0.14);
}

.metric {
  padding: 18px;
  background: rgba(7, 19, 33, 0.78);
}

.metric strong {
  display: block;
  color: var(--color-gold-strong);
  font-size: 1.1rem;
}

.metric span {
  display: block;
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* display: grid würde das UA-[hidden] überschreiben — explizit ausblenden. */
.stats-grid[hidden],
.stats-footnote[hidden] {
  display: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(214, 170, 79, 0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(214, 170, 79, 0.14);
}

.stat {
  padding: 26px 20px;
  background: rgba(7, 19, 33, 0.78);
}

.stat-value {
  display: block;
  color: var(--color-gold-strong);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
}

.stat-label {
  display: block;
  margin-top: 7px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.stats-footnote {
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 0.85rem;
  max-width: 760px;
}

.section {
  padding: var(--section-y) 0;
}

.byok-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 32px;
  padding: 16px 20px;
  border: 1px solid rgba(214, 170, 79, 0.35);
  border-inline-start: 3px solid var(--color-gold-strong);
  border-radius: var(--radius-md);
  background: rgba(214, 170, 79, 0.07);
}

.byok-notice-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 1px solid rgba(214, 170, 79, 0.5);
  border-radius: 50%;
  color: var(--color-gold-strong);
  font-size: 0.74rem;
  font-weight: 800;
}

.byok-notice p {
  margin: 0;
  color: var(--color-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.byok-notice strong {
  color: var(--color-gold-strong);
}

.section-alt {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(214, 170, 79, 0.14);
  border-bottom: 1px solid rgba(214, 170, 79, 0.14);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  color: var(--color-muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card,
.price-card,
.contact-panel {
  border: 1px solid rgba(214, 170, 79, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(14, 39, 67, 0.72), rgba(9, 25, 45, 0.82));
  box-shadow: var(--shadow-soft);
}

.card {
  position: relative;
  padding: 24px;
}

/* Hinweis-Icon auf Kästen/Listenpunkten mit Feature, das nicht in jeder Stufe enthalten ist. */
.tier-flag {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-inline-start: 7px;
  border: 1px solid rgba(214, 170, 79, 0.45);
  border-radius: 50%;
  background: rgba(7, 19, 33, 0.85);
  color: var(--color-gold-strong);
  font-size: 0.7rem;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
}

.tier-flag-corner {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  margin-inline-start: 0;
  z-index: 2;
}

.tier-flag::after {
  content: attr(data-tier-tip);
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid rgba(214, 170, 79, 0.3);
  border-radius: 8px;
  background: rgba(6, 17, 31, 0.98);
  box-shadow: var(--shadow-soft);
  color: var(--color-soft);
  font-size: 0.78rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.4;
  text-align: start;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
  pointer-events: none;
  z-index: 6;
}

.tier-flag:hover::after,
.tier-flag:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.card p,
.price-card p,
.table-note {
  color: var(--color-muted);
}

.card-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--color-gold-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--color-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  inset-inline-start: 0;
  width: 8px;
  height: 8px;
  border: 1px solid var(--color-gold-strong);
  border-radius: 50%;
  background: rgba(214, 170, 79, 0.16);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
}

.system-map {
  display: grid;
  gap: 14px;
}

.map-node {
  position: relative;
  border: 1px solid rgba(214, 170, 79, 0.22);
  border-radius: var(--radius-md);
  padding: 18px;
  background: rgba(7, 19, 33, 0.72);
}

.map-node strong {
  color: var(--color-gold-strong);
}

.page-hero {
  --page-visual: url("../images/hero-orchestrator.png");
  position: relative;
  padding: clamp(48px, 7vw, 86px) 0 44px;
  border-bottom: 1px solid rgba(214, 170, 79, 0.18);
  background:
    linear-gradient(135deg, rgba(14, 39, 67, 0.86), rgba(6, 17, 31, 0.94)),
    radial-gradient(circle at top right, rgba(214, 170, 79, 0.24), transparent 24rem);
  overflow: hidden;
}

[dir="rtl"] .page-hero {
  background:
    linear-gradient(225deg, rgba(14, 39, 67, 0.86), rgba(6, 17, 31, 0.94)),
    radial-gradient(circle at top left, rgba(214, 170, 79, 0.24), transparent 24rem);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 17, 31, 0.96) 0%, rgba(6, 17, 31, 0.82) 42%, rgba(6, 17, 31, 0.34) 100%),
    var(--page-visual);
  background-position: center right;
  background-size: cover;
  opacity: 0.72;
  transform: scale(1.02);
}

/* Siehe .hero oben: Gradient + Bildausschnitt an die rechtsbündige RTL-Textlage anpassen. */
[dir="rtl"] .page-hero::before {
  background:
    linear-gradient(270deg, rgba(6, 17, 31, 0.96) 0%, rgba(6, 17, 31, 0.82) 42%, rgba(6, 17, 31, 0.34) 100%),
    var(--page-visual);
  background-position: center left;
  background-size: cover;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

body[data-page="produkt"] .page-hero {
  --page-visual: url("../images/visual-product.png");
}

body[data-page="framework"] .page-hero {
  --page-visual: url("../images/visual-framework.png");
}

body[data-page="capabilities"] .page-hero {
  --page-visual: url("../images/visual-memory.png");
}

body[data-page="pricing"] .page-hero {
  --page-visual: url("../images/visual-billing.png");
}

body[data-page="konto"] .page-hero {
  --page-visual: url("../images/visual-account.png");
}

body[data-page="kontakt"] .page-hero {
  --page-visual: url("../images/visual-contact-v2.png");
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--color-gold-strong);
}

.process {
  counter-reset: step;
}

.process .card {
  position: relative;
  padding-top: 58px;
}

/* Kleiner Pfeil zwischen den Prozess-Karten, rein dekorativ — nimmt keine
   eigene Grid-Spalte ein, verschiebt also nichts an der Kartenbreite. */
.process-flow .card:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  inset-inline-end: -28px;
  transform: translateY(-50%);
  color: var(--color-gold-strong);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  z-index: 3;
}

/* Der Prozesspfeil zeigt "weiter" in Leserichtung, also im RTL-Modus nach
   links statt nach rechts. Aktiv für ar (dir="rtl" im Basislayout, siehe
   Locale-Registry in site/i18n.py). */
[dir="rtl"] .process-flow .card:not(:last-child)::after {
  content: "\2190";
}

.process .card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 20px;
  inset-inline-start: 24px;
  color: var(--color-gold-strong);
  font-weight: 850;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.price-grid-tiers {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.price-grid-tiers .price-card {
  padding: 20px 18px;
}

.price-grid-tiers .price {
  font-size: 1.7rem;
}

.price-grid-note {
  grid-column: 1 / -1;
  margin: 0;
}

.price-mini-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.price-mini-heading {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-mini {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(214, 170, 79, 0.18);
  border-radius: var(--radius-md);
  background: rgba(9, 25, 45, 0.72);
}

.price-mini-info p {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.price-mini-price {
  margin-inline-start: auto;
  font-size: 1.25rem;
  font-weight: 850;
  white-space: nowrap;
}

.price-mini-price small {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.price-mini .button {
  flex-shrink: 0;
}

.button-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.price-card.featured {
  border-color: rgba(240, 200, 107, 0.68);
  background: linear-gradient(180deg, rgba(214, 170, 79, 0.17), rgba(9, 25, 45, 0.86));
}

.tier-label {
  color: var(--color-gold-strong);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  margin: 18px 0 10px;
  font-size: 2.2rem;
  font-weight: 850;
  line-height: 1;
}

.price small {
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.price-card .button {
  width: 100%;
  margin-top: auto;
}

.table-scroll {
  overflow-x: auto;
}

.table-scroll .comparison {
  min-width: 920px;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(214, 170, 79, 0.2);
  border-radius: var(--radius-md);
  background: rgba(9, 25, 45, 0.78);
}

.comparison th,
.comparison td {
  padding: 16px;
  border-bottom: 1px solid rgba(214, 170, 79, 0.14);
  text-align: start;
}

.comparison th {
  color: var(--color-gold-strong);
  font-size: 0.88rem;
}

.comparison td {
  color: var(--color-soft);
}

.comparison tr:last-child th,
.comparison tr:last-child td {
  border-bottom: 0;
}

.comparison tfoot td {
  border-bottom: 0;
  border-top: 1px solid rgba(214, 170, 79, 0.24);
}

.cta-band {
  padding: clamp(38px, 6vw, 70px);
  border: 1px solid rgba(240, 200, 107, 0.32);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(214, 170, 79, 0.16), rgba(72, 192, 187, 0.08)),
    var(--color-panel-solid);
}

.cta-band p {
  max-width: 720px;
  color: var(--color-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.7fr);
  gap: 28px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.62fr) minmax(0, 0.82fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
}

.contact-panel {
  padding: 26px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.form-row a {
  color: var(--color-gold-strong);
  font-weight: 700;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 650;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-gold);
}

.check-row a {
  text-decoration: underline;
}

/* display: grid würde das UA-[hidden] überschreiben — explizit ausblenden
   (betrifft die register-only-Felder, die je nach Anmelden/Registrieren-
   Modus ein-/ausgeblendet werden). */
label[hidden] {
  display: none;
}

label {
  display: grid;
  gap: 7px;
  color: var(--color-soft);
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(214, 170, 79, 0.24);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  color: var(--color-ink);
  background: rgba(6, 17, 31, 0.84);
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(240, 200, 107, 0.36);
  outline-offset: 2px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--color-gold-strong);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid rgba(214, 170, 79, 0.18);
  padding: 34px 0;
  color: var(--color-muted);
  background: rgba(6, 17, 31, 0.92);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: saturate(0.82);
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.2, 0.72, 0.2, 1),
    filter 720ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: saturate(1);
}

.card,
.price-card,
.map-node,
.metric,
.contact-panel {
  position: relative;
  overflow: hidden;
}

.card::after,
.price-card::after,
.map-node::after,
.metric::after,
.contact-panel::after {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  inset-inline-start: -70%;
  width: 58%;
  background: linear-gradient(112deg, transparent 0%, rgba(240, 200, 107, 0.04) 28%, rgba(240, 200, 107, 0.15) 52%, rgba(72, 192, 187, 0.06) 64%, transparent 100%);
  filter: blur(10px);
  opacity: 0;
  transform: translateX(0);
  transition: opacity 180ms ease, transform 760ms ease;
  pointer-events: none;
  mix-blend-mode: screen;
}

.card:hover,
.price-card:hover,
.map-node:hover,
.metric:hover,
.contact-panel:hover {
  border-color: rgba(240, 200, 107, 0.42);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), 0 0 34px rgba(214, 170, 79, 0.11);
}

.card:hover::after,
.price-card:hover::after,
.map-node:hover::after,
.metric:hover::after,
.contact-panel:hover::after {
  opacity: 1;
  transform: translateX(330%);
}

.process .card.in-view::after,
.system-map .map-node.in-view::after {
  animation: sweep-once 1100ms ease both;
}

.account-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

body.account-open {
  overflow: hidden;
}

body.account-open .account-overlay {
  pointer-events: auto;
  opacity: 1;
}

/* Mehrere .account-overlay auf einer Seite (z. B. Login + Checkout-Consent
   auf /pricing): body.account-open darf nur das gerade geöffnete Overlay
   zeigen, nicht alle gleichzeitig. */
body.account-open .account-overlay[aria-hidden="true"] {
  pointer-events: none;
  opacity: 0;
}

.account-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 10, 20, 0.62);
  backdrop-filter: blur(6px);
}

.account-modal {
  position: relative;
  width: min(calc(100% - 32px), 460px);
  max-height: calc(100vh - 32px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(240, 200, 107, 0.28);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(14, 39, 67, 0.94), rgba(6, 17, 31, 0.98)),
    url("../images/visual-account.png");
  background-size: cover;
  background-position: center right;
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.46);
  overflow-y: auto;
  transform: translateY(22px) scale(0.97);
  transition: transform 300ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

[dir="rtl"] .account-modal {
  background-position: center left;
}

body.account-open .account-modal {
  transform: translateY(0) scale(1);
}

.account-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(6, 17, 31, 0.82);
  pointer-events: none;
}

.account-modal > * {
  position: relative;
  z-index: 1;
}

.account-intro {
  color: var(--color-muted);
}

.account-switch {
  margin-top: 14px;
  font-size: 0.92rem;
}

.account-switch a {
  color: var(--color-gold-strong);
  text-decoration: underline;
}

.account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.account-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(214, 170, 79, 0.28);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  background: rgba(6, 17, 31, 0.74);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-sidebar,
.account-card {
  border: 1px solid rgba(214, 170, 79, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(14, 39, 67, 0.72), rgba(9, 25, 45, 0.82));
  box-shadow: var(--shadow-soft);
}

.account-sidebar {
  padding: 22px;
  position: sticky;
  top: calc(var(--nav-h) + 18px);
}

.account-card {
  padding: 24px;
  margin-bottom: 18px;
}

.account-nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.account-nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  padding: 0 12px;
  color: var(--color-soft);
  background: rgba(6, 17, 31, 0.36);
}

.account-nav a:hover {
  color: var(--color-gold-strong);
  background: rgba(214, 170, 79, 0.1);
}

.verify-notice {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(72, 192, 187, 0.1);
  color: var(--color-teal);
  font-size: 0.9rem;
}

.verify-notice.is-error {
  background: rgba(214, 170, 79, 0.12);
  color: var(--color-gold-strong);
}

.billing-summary {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(240, 200, 107, 0.26);
  border-radius: var(--radius-md);
  background: rgba(6, 17, 31, 0.72);
}

.billing-summary strong {
  color: var(--color-gold-strong);
  font-size: 1.18rem;
}

.billing-summary span {
  color: var(--color-muted);
}

.compact-list {
  margin-bottom: 22px;
}

@keyframes sweep-once {
  0% {
    opacity: 0;
    transform: translateX(-65%);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(330%);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.footer-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--color-soft);
}

.footer-imprint {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 22px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(214, 170, 79, 0.14);
  color: var(--color-muted);
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-imprint strong {
  grid-column: 1 / -1;
  color: var(--color-gold-strong);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: 1.15rem;
  color: var(--color-gold-strong);
}

.legal-content p {
  color: var(--color-soft);
  line-height: 1.7;
}

.legal-content a {
  color: var(--color-gold-strong);
  text-decoration: underline;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-inline-start: 22px;
  color: var(--color-soft);
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content .legal-stand {
  color: var(--color-soft);
  opacity: 0.8;
  font-size: 0.9rem;
}

@media (max-width: 1240px) {
  .price-grid-tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 16px 18px;
    border-bottom: 1px solid rgba(214, 170, 79, 0.18);
    background: rgba(6, 17, 31, 0.98);
  }

  body.nav-open .nav-links {
    display: grid;
  }

  .menu-button {
    display: block;
  }

  .nav-actions .button-secondary {
    display: none;
  }

  .section-head,
  .split,
  .contact-layout,
  .auth-layout,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }

  .grid-3,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .process-flow .card:not(:last-child)::after {
    content: "\2193";
    top: auto;
    inset-inline-end: auto;
    inset-inline-start: 50%;
    bottom: -27px;
    transform: translateX(-50%);
  }

  .price-mini-row {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  :root {
    --nav-h: 68px;
  }

  .brand-name {
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
    background:
      linear-gradient(180deg, rgba(6, 17, 31, 0.92), rgba(6, 17, 31, 0.96)),
      url("../images/hero-orchestrator.png");
    background-position: center;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

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

  .price-grid-tiers {
    grid-template-columns: 1fr;
  }

  .price-mini {
    flex-wrap: wrap;
  }

  .comparison {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .hero-actions,
  .cta-band .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .nav-actions .button {
    width: auto;
    padding: 0 13px;
  }

  .footer-imprint {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

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

/* --------------------------------------------------------------------- */
/* Checkout-Seite: Tarif-/Zeitraum-Auswahl + Bestellzusammenfassung.       */
/* --------------------------------------------------------------------- */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.interval-toggle {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid rgba(214, 170, 79, 0.24);
  border-radius: 999px;
  background: rgba(9, 25, 45, 0.7);
}

.interval-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-soft);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.interval-option.active {
  background: linear-gradient(180deg, var(--color-gold-strong), var(--color-gold));
  color: var(--color-navy-950);
}

.interval-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(72, 192, 187, 0.18);
  color: var(--color-teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.interval-option.active .interval-badge {
  background: rgba(6, 17, 31, 0.18);
  color: var(--color-navy-950);
}

.checkout-plan-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.checkout-plan-card {
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.checkout-plan-card:hover {
  transform: translateY(-2px);
}

.checkout-plan-radio {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-gold);
}

.checkout-plan-card.selected,
.checkout-plan-card:has(.checkout-plan-radio:checked) {
  border-color: rgba(240, 200, 107, 0.75);
  background: linear-gradient(180deg, rgba(214, 170, 79, 0.17), rgba(9, 25, 45, 0.86));
}

.checkout-enterprise-note {
  margin-top: 18px;
}

.checkout-summary {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  padding: 26px;
}

.checkout-summary .price {
  margin: 10px 0 16px;
}

.checkout-byok-hint {
  margin: 0 0 20px;
  color: var(--color-muted);
  font-size: 0.86rem;
}

.checkout-gate {
  display: grid;
  gap: 12px;
  margin-bottom: 6px;
}

.checkout-consent {
  margin-top: 4px;
}

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

  .checkout-summary {
    position: static;
  }
}

/* --------------------------------------------------------------------- */
/* Post-Checkout-Downloadseite (/checkout/<tier>).                        */
/* --------------------------------------------------------------------- */
.checkout-download-state h2 {
  margin: 4px 0 10px;
}

.installer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.installer-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(214, 170, 79, 0.18);
  border-radius: var(--radius-md);
  background: rgba(9, 25, 45, 0.7);
  text-align: center;
}

.installer-card h3 {
  margin: 0;
  color: var(--color-gold-strong);
  font-size: 1rem;
}

.installer-version {
  margin: 0;
  min-height: 1.2em;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.checkout-mac-hint {
  margin: 0 0 18px;
  color: var(--color-muted);
  font-size: 0.82rem;
}
