/* =========================================================================
   Incyde CRA Landingpage — Styles
   Farbpalette 1:1 aus dem Corporate Design von incyde.com übernommen
   (Breakdance global-settings.css, Stand 2026):
     Hintergrund  #1C1C30 / #23233C / #313150  (dunkles Violett-Navy)
     Akzent Grün  #3CE664  (Logo "In", Hover-Zustände, Highlights)
     Akzent Cyan  #41C8D7  (Logo "cyde", Links, Primary-Button)
     Neutral      #A0A0C6 (Lavendel-Grau), #F5F5FA (Fließtext)
   Buttons im Original: transparent, cyanfarbener Rand, eckige Kanten,
   Großbuchstaben — beim Hover füllt sich Grün mit dunklem Text.
   Diese Landingpage übernimmt dieses Erscheinungsbild fest (kein Light-Mode,
   da es sich um eine feste Markenidentität handelt, nicht um eine
   nutzerseitig umschaltbare Theme-Präferenz).
   Amber/Rot (aus dem CRA-Prozessdiagramm für Entscheidungs-/Fehlzustände)
   bleiben als semantische Zusatzfarben erhalten.
   ========================================================================= */

:root {
  --bg-darkest: #1c1c30;
  --bg-dark: #23233c;
  --bg-mid: #313150;
  --border-muted: #555593;
  --muted-2: #5b5b7b;
  --lavender: #a0a0c6;
  --text: #f5f5fa;

  --green: #3ce664;
  --green-dim: rgba(60, 230, 100, 0.14);
  --cyan: #41c8d7;
  --cyan-dim: rgba(65, 200, 215, 0.14);

  --amber: #fbbf24;
  --amber-dim: rgba(251, 191, 36, 0.16);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.16);
  --blue: #4f8ff0;
  --blue-dim: rgba(79, 143, 240, 0.16);
  --gray: #9aa0b4;
  --gray-dim: rgba(154, 160, 180, 0.16);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.36);

  --container-width: 1140px;
  --font-heading: "IBM Plex Sans Condensed", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-darkest);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--text);
}
p { margin: 0 0 1em; color: var(--text); }
strong { color: var(--text); }

.hl-cyan { color: var(--cyan); font-weight: 700; }
.hl-green { color: var(--green); font-weight: 700; }

/* ---------- Buttons (1:1 Original-Rezept: transparent, cyan, eckig, Caps) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.btn-primary {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}
.btn-primary:hover { background: var(--green); color: var(--bg-dark); border-color: var(--green); }
.btn-ghost {
  background: transparent;
  color: var(--lavender);
  border-color: var(--border-muted);
}
.btn-ghost:hover { color: var(--text); border-color: var(--lavender); }
.btn-lg { padding: 0.95em 1.8em; font-size: 0.95rem; }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.78rem; }

.link-btn {
  background: none;
  border: none;
  color: var(--cyan);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.4em 0;
}
.link-btn:hover { color: var(--green); text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 28, 48, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--green);
  transition: box-shadow 0.2s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.incyde-logo { height: 22px; width: auto; display: block; }
.logo-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 0.2em 0.45em;
  border-radius: var(--radius-sm);
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-link { text-decoration: none; font-weight: 600; font-size: 0.9rem; color: var(--green); }
.nav-link:hover { color: var(--cyan); }
.nav-cta { margin-left: 0.4rem; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-h, 64px);
    right: 0; bottom: 0; left: 0;
    background: var(--bg-darkest);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.5rem;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .nav.is-open {
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: transform 0.2s ease;
  }
  /* backdrop-filter on .header creates a containing block for position:fixed
     descendants (per spec), which breaks #primaryNav's fixed overlay below —
     it ends up anchored to the header's own small box instead of the viewport.
     Without the blur, the header's 88%-opacity background becomes visible as
     see-through, so make it fully solid here too. */
  .header { backdrop-filter: none; background: var(--bg-darkest); }
  .lang-switcher { align-self: center; }
  .nav-link, .nav-cta { width: 100%; text-align: center; padding: 0.7em 0; }
  .mobile-menu-btn { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 82% -12%, var(--cyan-dim), transparent),
    radial-gradient(900px 420px at 10% 110%, var(--green-dim), transparent),
    var(--bg-darkest);
  padding: 6rem 1.5rem 5rem;
  border-bottom: 1px solid var(--border-muted);
}
.hero-container { max-width: 860px; margin: 0 auto; text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.hero-sub { color: var(--text); font-size: 1.05rem; max-width: 620px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-deadlines {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 0.7rem;
  align-items: stretch;
}
@media (max-width: 640px) {
  .hero-deadlines { grid-template-columns: 1fr; }
}
.deadline-chip {
  display: block;
  background: rgba(245, 245, 250, 0.04);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 0.9em 1.1em;
  text-align: left;
  min-width: 0;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
a.deadline-chip:hover { border-color: var(--cyan); background: rgba(65, 200, 215, 0.06); }
.deadline-date { display: block; font-family: var(--font-heading); font-weight: 700; color: var(--green); font-size: 1.75rem; letter-spacing: -0.01em; }
.deadline-label { display: block; font-size: 0.85rem; color: var(--text); margin-top: 0.15em; }
.deadline-cta { display: inline-block; margin-top: 0.5em; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cyan); }

/* ---------- Sections ---------- */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--bg-dark); }
.section-container { max-width: var(--container-width); margin: 0 auto; }
.section-container-narrow { max-width: 720px; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-lead { max-width: 640px; font-size: 1.02rem; margin-bottom: 2.5rem; }
.section-lead-wide { max-width: none; }

/* ---------- Phase track ---------- */
.phase-track { display: flex; flex-direction: column; gap: 0.9rem; }
.phase-card {
  background: var(--bg-mid);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}
.phase-card.is-expanded { border-color: var(--cyan); }
.phase-card-toggle {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.2rem;
  width: 100%;
  padding: 1.3rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.phase-content { flex: 1 1 200px; min-width: 0; }
.phase-toggle-hint {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.3rem;
  margin-left: auto;
  padding-left: 1rem;
}
.phase-toggle-hint-text {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--cyan);
}
.phase-chevron {
  color: var(--cyan);
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.phase-card.is-expanded .phase-chevron { transform: rotate(180deg); }
.phase-detail {
  border-top: 1px solid var(--border-muted);
  padding: 1rem 1.5rem 1.4rem 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
/* author `display` always beats the UA [hidden] rule regardless of specificity,
   so without this override the "collapsed" detail panel stays laid out and visible. */
.phase-detail[hidden] { display: none; }
.phase-detail-row { font-size: 0.9rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.phase-detail-row > span:last-child { color: var(--text); }
.phase-detail-label { flex: none; min-width: 120px; font-weight: 700; color: var(--cyan); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.03em; margin-top: 0.15em; }
.phase-detail-artifacts { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 0.4rem; }
.phase-detail-artifact h4 { font-size: 0.85rem; color: var(--cyan); margin: 0 0 0.3em; }
.phase-detail-artifact p { font-size: 0.9rem; color: var(--text); margin: 0; }
.phase-num {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.phase-heading { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.phase-heading h3 { margin: 0; font-size: 1.35rem; }
.phase-deadline {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--amber);
  background: var(--amber-dim);
  padding: 0.25em 0.6em;
  border-radius: var(--radius-sm);
}
.phase-content p { margin: 0.3em 0 0.7em; font-size: 1rem; color: var(--text); }
.phase-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 0.25em 0.7em;
  border-radius: var(--radius-sm);
}

.diagram-toggle-wrap { text-align: center; margin-top: 2.2rem; }
.diagram-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--bg-mid);
  border: 1px solid var(--cyan);
  border-radius: var(--radius-sm);
  color: var(--cyan);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.85em 1.6em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.diagram-toggle-btn:hover { background: var(--cyan); color: var(--bg-darkest); }
.diagram-toggle-btn .chevron { transition: transform 0.2s ease; }
.diagram-toggle-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.diagram-full { margin-top: 1.5rem; }
.diagram-hint { font-size: 0.85rem; color: var(--lavender); margin-bottom: 1rem; }
.diagram-hint-amber { color: var(--amber); font-weight: 600; }

.diagram-svg-wrap {
  overflow-x: auto;
  background: var(--bg-darkest);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.diagram-svg-wrap svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }

.cra-node { cursor: pointer; filter: brightness(1); transition: filter 0.15s ease; }
.cra-node:hover { filter: brightness(1.18); }
.cra-node.is-selected { filter: brightness(1.35); }
.cra-phase-label { cursor: pointer; }
.cra-phase-label:hover { filter: brightness(1.3); }

.diagram-detail {
  margin-top: 1.5rem;
  background: var(--bg-mid);
  border: 1px solid var(--cyan);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  min-height: 92px;
  scroll-margin-top: 90px;
}
.diagram-detail-placeholder { margin: 0; color: var(--lavender); font-size: 0.92rem; }
.diagram-detail-type {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
  padding: 0.2em 0.6em;
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
}
.diagram-detail-type-process { color: var(--green); background: var(--green-dim); }
.diagram-detail-type-decision { color: var(--amber); background: var(--amber-dim); }
.diagram-detail-type-terminal { color: var(--lavender); background: rgba(160, 160, 198, 0.14); }
.diagram-detail h4 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.diagram-detail p { margin: 0 0 0.8rem; font-size: 0.94rem; }
.diagram-detail p:last-child { margin-bottom: 0; }

/* ---------- Meldepflicht ---------- */
.meldepflicht-section { background: var(--bg-dark); }

/* ---------- Countdown — compact by default (used in the hero, beside the date chips) ---------- */
.countdown {
  min-width: 0;
  width: max-content;
  background: var(--bg-mid);
  border: 1px solid var(--red);
  border-radius: var(--radius-md);
  padding: 0.9em 1em;
  text-align: left;
}
.countdown-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}
.countdown-grid { display: flex; justify-content: flex-start; gap: 0.5rem; flex-wrap: wrap; }
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  background: var(--bg-dark);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.35rem;
}
.countdown-number { font-family: var(--font-heading); font-size: 1.55rem; font-weight: 700; color: var(--green); line-height: 1; }
.countdown-word { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--lavender); margin-top: 0.25rem; }

/* ---------- Countdown — large variant (Meldepflicht section) ---------- */
.countdown-large {
  width: auto;
  padding: 1.8rem;
  text-align: center;
  border-radius: var(--radius-lg);
  border-color: var(--cyan);
  margin-bottom: 2.5rem;
}
.countdown-large .countdown-label { font-size: 0.8rem; margin-bottom: 1rem; }
.countdown-large .countdown-grid { justify-content: center; gap: 1.2rem; }
.countdown-large .countdown-unit { min-width: 76px; padding: 0.8rem 0.6rem; }
.countdown-large .countdown-number { font-size: 2.1rem; }
.countdown-large .countdown-word { font-size: 0.72rem; margin-top: 0.4rem; }

.meldepflicht-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: stretch; }
@media (max-width: 860px) { .meldepflicht-grid { grid-template-columns: 1fr; } }
.meldepflicht-main {
  background: var(--bg-mid);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}
.meldepflicht-main h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.meldepflicht-main h3:first-of-type { margin-top: 0.6rem; }

.deadline-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.deadline-list li { font-size: 0.94rem; color: var(--text); }
.deadline-list-time {
  display: inline-block;
  min-width: 74px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--cyan);
  margin-right: 0.6rem;
}

.faq-mini { display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0 1.2rem; }
.faq-mini-item {
  background: var(--bg-mid);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
}
.faq-q { font-weight: 700; color: var(--text); margin: 0 0 0.4em; font-size: 0.95rem; }
.faq-num { font-weight: 600; color: var(--muted-2); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; margin-left: 0.4em; }
.faq-a { margin: 0; font-size: 0.9rem; }

.meldepflicht-side { display: flex; flex-direction: column; gap: 1.2rem; height: 100%; }
.download-card, .cta-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-mid);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}
.download-card h3, .cta-card h3 { font-size: 1.15rem; margin-top: 0.6rem; }
.download-card p, .cta-card p { font-size: 0.9rem; }
.download-links { display: flex; flex-direction: column; gap: 0.6rem; margin-top: auto; }
.download-card .btn, .cta-card .btn { margin-top: auto; }
.cta-card {
  border-color: var(--cyan);
  background: linear-gradient(160deg, var(--bg-mid), var(--cyan-dim));
}
.cta-card .btn { width: 100%; }

/* ---------- Wizard ---------- */
.wizard {
  background: var(--bg-mid);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}
@media (max-width: 480px) { .wizard { padding: 1.25rem; } }

.wizard-progress-bar { height: 5px; background: var(--bg-dark); border-radius: 999px; overflow: hidden; margin-bottom: 1.2rem; }
.wizard-progress-fill { height: 100%; background: var(--cyan); border-radius: 999px; transition: width 0.3s ease; }

.wizard-steps {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0; margin: 0 0 2rem;
  gap: 0.4rem;
}
.wizard-steps li {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted-2);
  position: relative;
  cursor: default;
}
.wizard-steps li.is-reachable { cursor: pointer; color: var(--lavender); }
.wizard-steps li.is-reachable:hover { color: var(--cyan); }
.wizard-steps li.is-reachable:hover::before { border-color: var(--cyan); }
.wizard-steps li::before {
  content: attr(data-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 1px solid var(--border-muted);
  color: var(--lavender);
  font-size: 0.78rem;
}
.wizard-steps li span { display: block; overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
@media (max-width: 480px) {
  .wizard-steps { gap: 0.2rem; }
  .wizard-steps li { font-size: 0.6rem; }
  .wizard-steps li::before { width: 22px; height: 22px; font-size: 0.7rem; margin-bottom: 0.3rem; }
}
.wizard-steps li.is-active { color: var(--text); }
.wizard-steps li.is-active::before { background: var(--cyan); border-color: var(--cyan); color: var(--bg-darkest); }
.wizard-steps li.is-done::before { background: var(--green-dim); border-color: var(--green); color: var(--green); }

.wizard-question h3 { font-size: 1.15rem; }
.wizard-hint { font-size: 0.88rem; color: var(--lavender); }

.option-grid { display: grid; gap: 0.8rem; margin: 1rem 0 0.5rem; }
.option-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .option-grid-2 { grid-template-columns: 1fr; } }

.option-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option-card:hover { border-color: var(--cyan); }
.option-card.is-selected { border-color: var(--green); background: var(--green-dim); color: var(--green); }
.risk-label { font-size: 1rem; }
.risk-hint { font-size: 0.78rem; font-weight: 500; color: var(--lavender); }

.wizard-back { margin-top: 1rem; }
.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Security state checklist */
.security-state-intro { margin-bottom: 0.5rem; }
.security-category { margin: 1.6rem 0; }
.security-category h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.8rem;
}
.security-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-muted);
  flex-wrap: wrap;
}
.security-item:last-child { border-bottom: none; }
.security-item-label { font-size: 0.92rem; font-weight: 600; flex: 1 1 260px; color: var(--text); }

.toggle-group { display: inline-flex; border: 1px solid var(--border-muted); border-radius: var(--radius-sm); overflow: hidden; }
.toggle-btn {
  border: none;
  background: var(--bg-dark);
  padding: 0.45em 0.9em;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: var(--lavender);
}
.toggle-btn + .toggle-btn { border-left: 1px solid var(--border-muted); }
.toggle-btn[data-status="no"].is-selected { background: var(--red); color: #1c1c30; }
.toggle-btn[data-status="partial"].is-selected { background: var(--amber); color: #1c1c30; }
.toggle-btn[data-status="yes"].is-selected { background: var(--green); color: #1c1c30; }

/* ---------- Result screen ---------- */
.result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.result-eyebrow { text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.72rem; font-weight: 700; color: var(--lavender); margin-bottom: 0.3rem; }
.result-header h3 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.result-path { font-size: 0.9rem; max-width: 460px; }
.result-score {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 1px solid var(--cyan);
  flex: none;
}
.result-score-number { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--cyan); }
.result-score-label { font-size: 0.65rem; color: var(--lavender); font-weight: 700; text-transform: uppercase; }

.result-categories { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 2rem; }
@media (max-width: 560px) { .result-categories { grid-template-columns: 1fr; } }
.result-cat-head { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--text); }
.result-bar { height: 7px; background: var(--bg-dark); border-radius: 999px; overflow: hidden; }
.result-bar-fill { height: 100%; background: var(--cyan); border-radius: 999px; }

.result-missing h4 { font-size: 1.05rem; }
.result-missing-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.result-missing-list li {
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  background: var(--bg-dark);
}
.result-missing-list strong { font-family: var(--font-heading); }
.result-missing-list p { margin: 0.3em 0 0; font-size: 0.88rem; }
.tag-phase { background: var(--cyan-dim); color: var(--cyan); margin-right: 0.5em; }
.missing-status { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; padding: 0.2em 0.6em; border-radius: var(--radius-sm); margin-left: 0.4em; }
.missing-status-no { background: var(--red-dim); color: var(--red); }
.missing-status-partial { background: var(--amber-dim); color: var(--amber); }
.missing-status-unanswered { background: var(--gray-dim); color: var(--gray); }

.result-terminal { text-align: left; }
.result-terminal h3 { font-size: 1.3rem; }

.artifact-phase {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--green);
  background: var(--green-dim);
  padding: 0.2em 0.6em;
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
}

/* ---------- Contact form ---------- */
.contact-form {
  background: var(--bg-mid);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--text); }
.form-field input, .form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7em 0.9em;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  color: var(--text);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted-2); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--cyan); }
.hp-field { position: absolute; left: -9999px; }
.assessment-attach {
  background: var(--green-dim);
  color: var(--green);
  font-size: 0.85rem; font-weight: 600;
  padding: 0.7em 1em;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.form-note { margin: 0.9em 0 0; font-size: 0.88rem; }
.form-note-success { color: var(--green); font-weight: 600; }
.form-note-error { color: var(--red); font-weight: 600; }

/* ---------- Language switcher (segmented control) ---------- */
.lang-switcher {
  display: inline-flex;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.3em 0.7em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--border-muted); }
.lang-btn:hover:not(.is-active) { color: var(--lavender); }
.lang-btn.is-active { background: var(--green-dim); color: var(--green); }

/* ---------- INCYDE all-phases banner ---------- */
.incyde-all-phases {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--bg-mid), var(--green-dim));
  border: 1px solid var(--green);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.3rem;
  font-size: 0.93rem;
  color: var(--text);
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.incyde-all-phases-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

/* ---------- Phase key points ---------- */
.phase-key-points {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-muted);
}
.phase-key-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.phase-key-toggle:hover .phase-detail-label { color: var(--green); }
.phase-key-chevron {
  color: var(--cyan);
  font-size: 0.85rem;
  flex: none;
  transition: transform 0.2s ease;
}
.phase-key-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.phase-key-list li {
  font-size: 0.88rem;
  color: var(--text);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.phase-key-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.8rem;
  top: 0.1em;
}

/* ---------- Info box (Inverkehrbringen) ---------- */
.info-box {
  background: var(--bg-dark);
  border: 1px solid var(--border-muted);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 0.8rem 0 1.2rem;
  font-size: 0.9rem;
}
.info-box-title {
  display: block;
  font-weight: 700;
  color: var(--cyan);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.info-box p { margin: 0 0 0.6rem; font-size: 0.88rem; }
.info-box-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.info-box-list li { font-size: 0.86rem; color: var(--text); }

/* ---------- Risk detail box ---------- */
.risk-detail-box {
  margin-top: 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--cyan);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  animation: fadeIn 0.2s ease;
}
.risk-detail-box strong { display: block; color: var(--cyan); margin-bottom: 0.5rem; font-size: 0.95rem; }
.risk-detail-box p { font-size: 0.88rem; margin: 0 0 0.8rem; }
.risk-detail-row { display: flex; gap: 0.6rem; font-size: 0.85rem; margin-top: 0.4rem; flex-wrap: wrap; }
.risk-detail-label { font-weight: 700; color: var(--lavender); min-width: 110px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.risk-detail-box #riskContinueBtn, .risk-detail-box > .btn { margin-top: 1.2rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Exemption sub-flow ---------- */
.exemption-subflow { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--border-muted); }

/* Group header (badge + reference) */
.exemption-group-header {
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 0.6rem; flex-wrap: wrap;
}
.exemption-group-ref { font-size: 0.78rem; color: var(--lavender); }
.exemption-group-note {
  font-size: 0.82rem; color: var(--lavender);
  background: var(--bg-darkest); border-left: 3px solid var(--red);
  padding: 0.45rem 0.8rem; margin-bottom: 0.8rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Group badges */
.exemption-group-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}
.exemption-badge--not { background: var(--blue-dim); color: var(--blue); border: 1px solid var(--blue); }
.exemption-badge--exempt { background: var(--red-dim); color: var(--red); border: 1px solid var(--red); }
.exemption-badge--special { background: var(--gray-dim); color: var(--gray); border: 1px solid var(--gray); }

/* Clickable group boxes — one choice per box, whole box selects the category */
.exemption-group-box {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  background: var(--bg-dark);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.exemption-group-box:hover { border-color: var(--lavender); }
.exemption-box--not.is-selected { border-color: var(--blue); background: var(--blue-dim); }
.exemption-box--exempt.is-selected { border-color: var(--red); background: var(--red-dim); }
.exemption-box--special.is-selected { border-color: var(--gray); background: var(--gray-dim); }
.exemption-box-hint {
  display: block; margin-top: 0.8rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--cyan);
}

/* Compact reference list — group "Vollständig ausgenommen" */
.exemption-compact-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.55rem;
  font-size: 0.82rem; line-height: 1.45;
}
.exemption-compact-list li { color: var(--text); }
.exemption-compact-list .basis { color: var(--lavender); font-size: 0.78rem; }
.exemption-compact-list .cond { color: var(--lavender); font-style: italic; font-size: 0.8rem; }

/* Special-regime list — group "Sonderregelungen" */
.exemption-special-list-compact {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.55rem;
  font-size: 0.82rem; line-height: 1.45;
}
.exemption-special-list-compact li {
  padding: 0.55rem 0.8rem;
  background: var(--bg-darkest); border-left: 3px solid var(--gray);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.exemption-special-list-compact strong { display: block; margin-bottom: 0.2rem; color: var(--text); }
.exemption-special-list-compact p { color: var(--lavender); margin: 0; }

/* Not-exempt list (group "Nicht ausgenommen") */
.exemption-not-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
  font-size: 0.82rem; line-height: 1.45;
}
.exemption-not-list li {
  padding: 0.5rem 0.8rem;
  background: var(--bg-darkest); border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}
.exemption-not-list li strong { color: var(--blue); }

.exemption-sub-result {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.55;
}
.exemption-sub-result-not { background: var(--blue-dim); border: 1px solid var(--blue); color: var(--text); }
.exemption-sub-result-exempt { background: var(--red-dim); border: 1px solid var(--red); color: var(--text); }
.exemption-sub-result-special { background: var(--gray-dim); border: 1px solid var(--gray); color: var(--text); }
.exemption-result-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.7rem; }
.exemption-result-actions .btn { font-size: 0.8rem; }
.option-grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 640px) { .option-grid-3 { grid-template-columns: 1fr !important; } }

/* ---------- Result estimate ---------- */
.result-estimate {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.result-estimate-icon { font-size: 1.3rem; flex: none; margin-top: 0.1rem; }
.result-estimate strong { display: block; margin-bottom: 0.3rem; color: var(--amber); font-size: 0.95rem; }
.result-estimate p { margin: 0; font-size: 0.85rem; color: var(--text); }

/* ---------- Result export ---------- */
.result-export {
  background: var(--bg-dark);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}
.result-export-label { font-size: 0.82rem; font-weight: 700; color: var(--lavender); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.6rem; }
.result-export-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.result-export-note { font-size: 0.82rem; color: var(--lavender); margin: 0; }

/* ---------- Print / PDF Export ---------- */
@media print {
  body { background: #fff; color: #000; font-family: sans-serif; }
  .header, .hero, #meldepflicht, #kontakt,
  .sticky-cta, .footer, .diagram-toggle-wrap, #diagramFull,
  .wizard-steps, .wizard-progress, .wizard-back, .wizard-actions,
  .result-export, #printResults, #copyResults { display: none !important; }
  #assessment { padding: 0; }
  .result { color: #000; background: #fff; }
  .result-score { border-color: #333; }
  .result-score-number { color: #333; }
  .result-bar-fill { background: #333; }
  .result-estimate { border: 1px solid #999; background: #f9f9f9; }
  .result-estimate strong { color: #333; }
  .tag, .artifact-phase { background: #eee; color: #333; border: 1px solid #ccc; }
  .missing-status-no { background: #fee; color: #c00; }
  .missing-status-partial { background: #fef3cd; color: #856404; }
  .missing-status-unanswered { background: #eee; color: #555; }
  body::before {
    content: "CRA Security-State-Assessment – INCYDE";
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }
}

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-muted);
  color: var(--text);
  padding: 0.8rem 1.5rem;
  transform: translateY(120%);
  transition: transform 0.25s ease;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.3);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer { background: var(--bg-darkest); border-top: 1px solid var(--border-muted); color: var(--lavender); padding: 3.5rem 1.5rem 2rem; }
.footer-container { max-width: var(--container-width); margin: 0 auto; }
.footer-brand-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.footer-tagline { margin: 0; color: var(--lavender); font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border-muted); }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { font-family: var(--font-heading); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cyan); margin-bottom: 0.9rem; }
.footer-links-list { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links-list a { text-decoration: none; color: var(--lavender); font-size: 0.9rem; }
.footer-links-list a:hover { color: var(--green); }
.footer-bottom { padding-top: 1.6rem; }
.footer-info { font-size: 0.82rem; color: var(--lavender); }
.footer-disclaimer { font-size: 0.78rem; color: var(--lavender); }
