/* ==========================================================================
   Schnuppertag – Stylesheet
   Farben und Typografie nach den Sunrise Brand Guidelines.
   ========================================================================== */

/* --- Design Tokens ------------------------------------------------------ */

:root {
  /* Primärpalette */
  --sr-red: #da291c;          /* Sunrise Red */
  --sr-red-dark: #b0210f;     /* abgeleitet, nur für Hover */
  --sr-red-light: #ec948d;    /* Sunrise Red Light */
  --sr-red-soft: #f6c9c6;     /* Sunrise Red Soft */
  --sr-red-air: #fae4e3;      /* Sunrise Red Air */
  --sr-orange: #f39200;       /* Verlauf-Endpunkt */

  --ink: #1f1f1f;             /* Light Black */
  --ink-light: #989899;       /* Light Black Light – nur Flächen, kein Text auf Hell */
  --ink-soft: #d5d5d6;        /* Light Black Soft */
  --ink-air: #f3f3f5;         /* Light Black Air */
  --white: #ffffff;           /* Ice White */

  /* Sekundärtext: Light Black auf 66 % erreicht 4.8:1, Light Black Light nur 2.9:1 */
  --ink-60: rgba(31, 31, 31, 0.66);

  /* Funktionsfarben */
  --green: #26a96c;           /* Green Spark */
  --green-air: #e4f4ed;       /* Green Spark Air */

  /* Dunkle Flächen (Terminal) */
  --dark: #1f1f1f;
  --dark-line: #3a3a3a;

  /* Ruby Glow – nachgebaut. Original-Stopps liegen im Brand-Download. */
  --ruby-glow: linear-gradient(135deg, #da291c 0%, #da291c 45%, #f39200 100%);

  /* Radien */
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 14px;
  --r-xs: 10px;

  /* Abstände */
  --gap: 20px;
  --pad-page: 44px;
}

/* --- Reset -------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: 'Figtree', Tahoma, sans-serif;
  font-weight: 400;
  background: var(--ink-air);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

button { font: inherit; color: inherit; }

/* --- Typografie ---------------------------------------------------------
   Bold führt, Regular unterstützt. Headlines: Zeilenabstand 0.9,
   Tracking -3 % (XL) bis -1 % (S). Sublines 1.15, Body 1.2, Tracking 0.
   ------------------------------------------------------------------------ */

h1, h2, h3 { font-weight: 700; margin: 0; }

.t-display { font-size: clamp(44px, 6vw, 84px); line-height: 0.9; letter-spacing: -0.03em; }
.t-h1      { font-size: clamp(32px, 4vw, 44px);  line-height: 0.9; letter-spacing: -0.02em; }
.t-h2      { font-size: 24px; line-height: 1;    letter-spacing: -0.02em; }
.t-h3      { font-size: 17px; line-height: 1.15; letter-spacing: -0.01em; }

.t-lead    { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.15; font-weight: 400; }
.t-body    { font-size: 16px; line-height: 1.2;  font-weight: 400; }
.t-small   { font-size: 14px; line-height: 1.2;  font-weight: 400; }

/* Overline / Signal: 30–40 % der Headline-Grösse */
.t-overline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.muted { color: var(--ink-60); }
.accent { color: var(--sr-red); }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-weight: 400;
}

/* --- Layout ------------------------------------------------------------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page--glow {
  background: var(--ruby-glow);
  color: var(--white);
}

.wrap {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px var(--pad-page) 34px;
}

.stack { display: flex; flex-direction: column; gap: var(--gap); }
.stack--tight { gap: 10px; }
.row { display: flex; align-items: center; gap: var(--gap); }
.row--between { justify-content: space-between; }
.spacer { flex: 1; }

/* --- Topbar ------------------------------------------------------------- */

.topbar {
  flex-shrink: 0;
  height: 56px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border-bottom: 1px solid var(--ink-soft);
}

.topbar__title { font-size: 15px; font-weight: 700; }

.topbar a {
  color: var(--sr-red);
  text-decoration: none;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.topbar a:hover { color: var(--sr-red-dark); }

.topbar--onGlow {
  background: transparent;
  border: 0;
  height: 64px;
  padding: 0 var(--pad-page);
  justify-content: flex-start;
}

.topbar--onGlow .topbar__title { color: var(--white); }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .22s ease, background-color .2s ease;
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(218, 41, 28, 0.28); }
.btn:active { transform: translateY(1px) scale(.985); box-shadow: none; }

.btn--primary { background: var(--sr-red); color: var(--white); }
.btn--primary:hover { background: var(--sr-red-dark); color: var(--white); }

.btn--onGlow { background: var(--white); color: var(--sr-red); font-size: 19px; padding: 18px 38px; }
.btn--onGlow:hover { box-shadow: 0 10px 24px rgba(31, 31, 31, 0.18); }

.btn--ghost { background: transparent; color: var(--sr-red); font-weight: 400; padding: 15px 22px; }
.btn--ghost:hover { transform: none; box-shadow: none; background: var(--sr-red-air); }

.btn[disabled] {
  background: var(--ink-soft);
  color: var(--ink-60);
  cursor: default;
  pointer-events: none;
}

/* --- Karten ------------------------------------------------------------- */

.card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 22px 24px;
}

.card--lg { border-radius: var(--r-lg); padding: 26px 28px; }
.card--flush { padding: 0; overflow: hidden; }

/* --- Startseite --------------------------------------------------------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 72px;
  padding: 20px var(--pad-page) 0;
  text-align: center;
}

.hero__head { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero__lead { max-width: 620px; }

.tiles {
  display: flex;
  gap: var(--gap);
  width: 100%;
  max-width: 880px;
}

.tile {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  transition: transform .14s ease, box-shadow .22s ease;
}

.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(31, 31, 31, 0.18); }
.tile:active { transform: translateY(1px) scale(.99); }
.tile__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.hero__footer {
  flex-shrink: 0;
  padding: 0 var(--pad-page) 40px;
  display: flex;
  justify-content: flex-end;
}

/* Platzhalter, bis das offizielle Logo aus dem Media Center eingesetzt ist.
   Mindesthöhe horizontales Logo: 30 px. */
.logo-slot {
  height: 30px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

/* --- Split-Layout (Trainer, Lab) ---------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* --- Gruppierte Liste --------------------------------------------------- */

.groups { display: flex; flex-direction: column; gap: 16px; }
.group { display: flex; flex-direction: column; gap: 7px; }

.group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
}

.group__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.group__count { font-size: 12px; color: var(--ink-60); }

.list {
  background: var(--white);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 18px;
  border: 0;
  border-top: 1px solid var(--ink-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color .22s ease, box-shadow .22s ease;
}

.list__item:first-child { border-top: 0; }
.list__item:hover { background: var(--ink-air); }

.list__item[aria-current="true"] {
  background: var(--sr-red-air);
  box-shadow: inset 4px 0 0 var(--sr-red);
}

.list__item[aria-current="true"]:hover { background: var(--sr-red-air); }

.list__body { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.list__cmd { font-size: 16px; font-weight: 500; }
.list__hint { font-size: 13px; color: var(--ink-60); }
.list__item[aria-current="true"] .list__hint { color: var(--ink); }

.chev { flex-shrink: 0; stroke: var(--ink-light); }
.list__item[aria-current="true"] .chev { stroke: var(--sr-red); }

/* --- Detailkarte -------------------------------------------------------- */

.detail__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail__cmd { font-size: 26px; font-weight: 500; color: var(--sr-red); }
.detail__kurz { font-size: 17px; color: var(--ink-60); }

.chip {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
  background: var(--ink-air);
  padding: 5px 11px;
  border-radius: 999px;
}

.syntax { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.syntax__label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.syntax__code {
  font-size: 15px;
  background: var(--ink-air);
  border-radius: 8px;
  padding: 9px 14px;
}

/* --- Erklaergrafiken ---------------------------------------------------- */

.gfx { display: flex; align-items: center; justify-content: flex-start; gap: 16px; flex-wrap: wrap; }

.gfx__arrow {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--sr-red);
}

.gfx__cmd {
  font-size: 12px;
  color: var(--white);
  background: var(--sr-red);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.gfx__panel {
  flex: 1 1 230px;
  max-width: 320px;
  background: var(--ink-air);
  border-radius: var(--r-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gfx__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 0 4px 4px; }
.gfx__title { font-size: 12px; color: var(--ink-60); }

.gfx__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 10px;
  background: var(--white);
  border-radius: var(--r-xs);
  border: 2px solid transparent;
}

.gfx__icon { flex-shrink: 0; display: flex; }
.gfx__name { font-size: 14px; flex: 1; min-width: 0; overflow-wrap: anywhere; }

.gfx__badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--ink-soft);
  color: var(--ink);
}

.gfx__badge--hier { background: var(--sr-red); color: var(--white); }
.gfx__badge--neu { background: var(--green); color: var(--white); }
.gfx__badge--weg { background: var(--sr-red-soft); color: var(--sr-red-dark); }

.gfx__item--hier { border-color: var(--sr-red); }
.gfx__item--neu { border-color: var(--green); background: var(--green-air); }
.gfx__item--weg { background: var(--sr-red-air); }
.gfx__item--weg .gfx__name { text-decoration: line-through; color: var(--ink-60); }
.gfx__item--weg .gfx__icon { opacity: .45; }
.gfx__item--an { border-color: var(--sr-red); background: var(--sr-red-air); }
.gfx__item--dim { opacity: .45; }

.gfx__out {
  flex: 1 1 230px;
  max-width: 320px;
  background: var(--dark);
  color: var(--ink-air);
  font-size: 14px;
  line-height: 1.4;
  border-radius: var(--r-sm);
  padding: 16px;
  overflow-wrap: anywhere;
}

.gfx__node {
  flex: 1 1 160px;
  max-width: 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--ink-air);
}

.gfx__ntitle { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.gfx__nsub { font-size: 13px; line-height: 1.2; color: var(--ink-60); overflow-wrap: anywhere; }

.gfx__node--befehl { background: var(--sr-red-air); }
.gfx__node--befehl .gfx__ntitle { color: var(--sr-red); font-weight: 500; }
.gfx__node--ziel { background: var(--green-air); }

.gfx__rechte { display: flex; gap: 14px; flex-wrap: wrap; }
.gfx__gruppe { display: flex; flex-direction: column; gap: 4px; }
.gfx__gname { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-60); }
.gfx__pills { display: flex; gap: 4px; }

.gfx__pill {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  background: var(--ink-soft);
  color: var(--ink-60);
}

.gfx__pill--an { background: var(--ink); color: var(--white); }
.gfx__pill--neu { background: var(--green); color: var(--white); }

.gfx-block { display: flex; flex-direction: column; gap: 12px; }
.gfx-block + .gfx-block { border-top: 1px solid var(--ink-soft); padding-top: 20px; margin-top: 20px; }
.gfx-block__kopf { color: var(--ink-60); margin: 0; }
.gfx-block__hinweis { margin: 0; max-width: 720px; }
#d-grafik { padding: 22px 24px; }

.gfx--top { align-items: flex-start; }
.gfx--spalte { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 12px; }

/* Aufbau eines Befehls */
.gfx__anat { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: flex-start; }
.gfx__tok { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 170px; }
.gfx__chip { font-size: 17px; font-weight: 500; padding: 8px 14px; border-radius: 10px; white-space: nowrap; }
.gfx__chip--befehl { background: var(--sr-red); color: var(--white); }
.gfx__chip--option { background: var(--sr-orange); color: var(--ink); }
.gfx__chip--arg { background: var(--ink); color: var(--white); }
.gfx__chip--ziel { background: var(--green); color: var(--white); }
.gfx__stem { width: 2px; height: 12px; background: var(--ink-soft); }
.gfx__tlabel { font-size: 13px; line-height: 1.2; text-align: center; color: var(--ink-60); }

/* Vergleich */
.gfx__fall { flex: 1 1 200px; min-width: 0; max-width: 300px; display: flex; flex-direction: column; gap: 8px; }
.gfx__fall .gfx__cmd { align-self: flex-start; }
.gfx__fall .gfx__out, .gfx__fall .gfx__panel { flex: none; max-width: none; width: 100%; white-space: pre-wrap; }
.gfx__nachtext { font-size: 13px; line-height: 1.2; color: var(--ink-60); }
.gfx__out--fehler { border-left: 4px solid var(--sr-red); color: var(--sr-red-light); }
.gfx__out { white-space: pre-wrap; }

/* Ordnerbaum */
.gfx__baum { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--ink-soft); margin-left: 10px; display: flex; flex-direction: column; gap: 4px; }
.gfx__baum--wurzel { border-left: 0; margin-left: 0; padding-left: 0; }
.gfx__baum li { display: flex; flex-direction: column; gap: 4px; }
.gfx__bzeile { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 3px 8px; border-radius: 8px; flex-wrap: wrap; }
.gfx__bzeile .gfx__name { flex: none; }
.gfx__bzeile--hier { background: var(--sr-red-air); box-shadow: inset 0 0 0 2px var(--sr-red); }
.gfx__bzeile--pfad .gfx__name { color: var(--sr-red); font-weight: 500; }
.gfx__bzeile--treffer { background: var(--green-air); box-shadow: inset 0 0 0 2px var(--green); }
.gfx__bzeile--dim { opacity: .4; }
.gfx__tag { font-size: 12px; color: var(--white); background: var(--sr-red); border-radius: 999px; padding: 3px 10px; }
.gfx__ausgabe { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gfx__ausgabe .gfx__out { flex: none; padding: 8px 14px; }

/* Nachgebautes Terminal-Programm */
.gfx__win { background: var(--dark); border-radius: var(--r-sm); overflow: hidden; max-width: 620px; }
.gfx__wbar { display: flex; align-items: center; gap: 7px; padding: 10px 16px; border-bottom: 1px solid var(--dark-line); }
.gfx__wtitel { font-size: 12px; color: var(--ink-light); margin-left: 10px; }
.gfx__wbody { padding: 14px 16px; color: var(--ink-air); font-size: 13px; line-height: 1.6; overflow-x: auto; }
.gfx__wzeile { white-space: pre; }
.gfx__wfuss { background: var(--ink-air); color: var(--ink); font-size: 12px; padding: 7px 16px; }

/* Schritte und Kaesten */
.gfx__nr { width: 26px; height: 26px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.gfx__node--befehl .gfx__nr { background: var(--sr-red); }
.gfx__node--ziel .gfx__nr { background: var(--green); }
.gfx__nsub { font-size: 12px; line-height: 1.3; color: var(--ink-60); overflow-wrap: anywhere; }

/* Aktionen (systemctl) */
.gfx__aktionen { display: flex; flex-direction: column; gap: 6px; }
.gfx__aktion { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; background: var(--ink-air); border-radius: var(--r-xs); }
.gfx__aktion .gfx__cmd { justify-self: start; }
.gfx__atext { font-size: 14px; line-height: 1.2; }
.gfx__zustand { font-size: 13px; color: var(--ink-60); white-space: nowrap; }
.gfx__z { font-weight: 700; border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.gfx__z--an { background: var(--green); color: var(--white); }
.gfx__z--aus { background: var(--ink-soft); color: var(--ink); }

/* --- Terminal ----------------------------------------------------------- */

.terminal {
  background: var(--dark);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--dark-line);
}

.terminal__dot { width: 10px; height: 10px; border-radius: 999px; background: var(--ink-light); }
.terminal__host { font-size: 12px; color: var(--ink-light); margin-left: 10px; }

.terminal__body {
  flex: 1;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-x: auto;
}

.terminal__line { font-size: 14px; line-height: 1.8; white-space: pre; }
.terminal__line--in { color: var(--green); }
.terminal__line--out { color: var(--ink-air); }

.terminal__legend {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 12px 24px;
  border-top: 1px solid var(--dark-line);
  font-size: 12px;
  color: var(--ink-light);
}

.terminal__legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { width: 8px; height: 8px; border-radius: 999px; }
.legend-dot--in { background: var(--green); }
.legend-dot--out { background: var(--ink-air); }

/* --- Lab: Rail ---------------------------------------------------------- */

.rail {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rail__head { display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }

.bar { height: 6px; border-radius: 999px; background: var(--ink-soft); overflow: hidden; }
.bar__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--sr-red);
  transition: width .55s cubic-bezier(.22, .9, .24, 1);
}

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 10px 10px;
  border: 0;
  border-radius: var(--r-xs);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color .25s ease;
}

.step:hover { background: var(--ink-air); }
.step[aria-current="true"] { background: var(--sr-red-air); }
.step[aria-current="true"]:hover { background: var(--sr-red-air); }

.step__mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  transition: background-color .3s ease;
}

.step[aria-current="true"] .step__mark { background: var(--sr-red); color: var(--white); }
.step[data-done="true"] .step__mark { background: var(--green); color: var(--white); }

.step__label { font-size: 15px; line-height: 1.15; color: var(--ink-60); }
.step[aria-current="true"] .step__label { color: var(--ink); font-weight: 700; }

/* --- Lab: Platzhalter ohne Terminal ------------------------------------- */

.noterm {
  background: var(--white);
  border-radius: var(--r-md);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.noterm__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 420px; }

/* --- Abschluss ---------------------------------------------------------- */

.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--green-air);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { flex-shrink: 0; margin-top: 1px; }

.next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.sheet {
  background: var(--dark);
  color: var(--ink-air);
  border-radius: var(--r-md);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sheet h2 { color: var(--white); }
.sheet dl { margin: 0; display: flex; flex-direction: column; }
.sheet__row { display: flex; gap: 16px; padding: 9px 0; border-top: 1px solid var(--dark-line); }
.sheet__row:first-child { border-top: 0; }
.sheet dt { width: 134px; flex-shrink: 0; font-size: 13px; color: var(--green); }
.sheet dd { margin: 0; font-size: 14px; line-height: 1.2; }

/* --- Animationen --------------------------------------------------------
   Sunrise Motion: von unten aufsteigend, weiche Übergänge.
   ------------------------------------------------------------------------ */

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  0%   { transform: scale(.4); opacity: 0; }
  65%  { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); }
}

/* backwards statt both: der Endwert darf den Hover-Effekt nicht mehr blockieren */
.rise { animation: rise .62s cubic-bezier(.22, .9, .24, 1) backwards; }
.pop  { animation: pop .46s cubic-bezier(.2, 1.35, .4, 1) backwards; }

.d1 { animation-delay: .08s; }
.d2 { animation-delay: .16s; }
.d3 { animation-delay: .24s; }
.d4 { animation-delay: .34s; }
.d5 { animation-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  :root { --pad-page: 20px; }

  .split { grid-template-columns: 1fr; }
  .tiles { flex-direction: column; }
  .hero { gap: 44px; }
  .checklist, .next { grid-template-columns: 1fr; }
  .abschluss-grid { grid-template-columns: 1fr !important; }
  .topbar { padding: 0 16px; }
  .terminal__body { font-size: 13px; }
  .gfx { flex-direction: column; }
  .gfx__panel, .gfx__out, .gfx__node { width: 100%; max-width: none; }
  .gfx__arrow { flex-direction: row; }
  .gfx__arrow svg { transform: rotate(90deg); }
  .gfx__fall { max-width: none; flex-basis: 100%; }
  .gfx__aktion { grid-template-columns: 1fr; gap: 4px; }
  #d-grafik { padding: 18px 16px; }
}

/* --- Lab: Erklaerzeilen mit laengeren Befehlen ---------------------------- */

.gfx__aktionen--lab .gfx__aktion { grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); }
.gfx__aktionen--breit .gfx__aktion { grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); }
.gfx__aktionen--lab .gfx__cmd, .gfx__aktionen--breit .gfx__cmd { white-space: normal; overflow-wrap: anywhere; border-radius: 10px; }

@media (max-width: 900px) {
  .gfx__aktionen--lab .gfx__aktion, .gfx__aktionen--breit .gfx__aktion { grid-template-columns: 1fr; gap: 4px; }
}

/* --- Lab: Browser-Ansicht --------------------------------------------------- */

.lab-browser { background: var(--white); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--ink-soft); }
.lab-browser__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--ink-air); border-bottom: 1px solid var(--ink-soft); }
.lab-browser__url { flex: 1; margin-left: 10px; font-size: 13px; background: var(--white); border-radius: 999px; padding: 6px 14px; overflow-wrap: anywhere; }
.lab-browser__inhalt { padding: 28px 24px 40px; min-height: 180px; }
.lab-browser__h1 { font-weight: 700; font-size: 32px; line-height: 1.1; margin: 0 0 12px; }
.lab-browser__p { margin: 0; font-size: 16px; }
