/* ============================================================
   XCEED MANDANTENPORTAL · Styles
   Tokens aus dem XCEED Brand Guide 2025:
   Helvetica, Gold #C9A84C, Near Black #0A0A0A, Card #1A1A1A.
   ============================================================ */


:root {
  --bg:        #0A0A0A;
  --bg-2:      #111111;
  --bg-3:      #1A1A1A;
  --ink:       #FFFFFF;
  --muted:     #B9B9B9;
  --muted-2:   #8A8A8A;
  --gold:      #C9A84C;
  --gold-2:    #D9BC66;
  --star:      #FFC857;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);
  --grad:      linear-gradient(120deg, #C9A84C 0%, #D9BC66 100%);
  --grad-soft: linear-gradient(120deg, rgba(201,168,76,.16), rgba(217,188,102,.16));
  --gold-glow: rgba(201,168,76,.35);

  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-800: clamp(1.9rem, 1.2rem + 2.2vw, 2.8rem);
  --fs-700: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
  --fs-600: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  --fs-400: clamp(.95rem, .92rem + .2vw, 1.0625rem);
  --fs-300: .8125rem;

  --radius:      6px;
  --radius-card: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

/* Muss über den Layout-Regeln stehen: display-Regeln würden das
   hidden-Attribut sonst überstimmen. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.6;
  color: var(--muted);
  background:
    radial-gradient(60% 40% at 78% 0%, rgba(217,188,102,.14), transparent 60%),
    radial-gradient(55% 38% at 8% 12%, rgba(201,168,76,.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}

::selection { background: var(--gold); color: #0A0A0A; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.015em;
}

a { color: inherit; }

.label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: #0A0A0A;
  background: var(--grad);
  border: none;
  border-radius: var(--radius);
  padding: .8rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 36px -10px rgba(201,168,76,.6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px rgba(201,168,76,.7); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-block { display: flex; width: 100%; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink);
  box-shadow: none;
}
.btn-ghost:hover { border-color: rgba(201,168,76,.45); box-shadow: none; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }

.link-video {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--fs-300);
  color: var(--gold-2);
  text-decoration: none;
}
.link-video:hover { text-decoration: underline; }

/* ---------- Login ---------- */
.login {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(60% 40% at 78% 8%, rgba(217,188,102,.18), transparent 60%),
    radial-gradient(55% 38% at 12% 22%, rgba(201,168,76,.14), transparent 60%),
    var(--bg);
}
.login[hidden] { display: none; }

.login-card {
  width: min(440px, 100%);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 2.75rem 2.25rem;
  box-shadow: 0 30px 80px -30px rgba(217,188,102,.45);
}
.login-card img { height: 34px; margin-bottom: 1.75rem; }
.login-card h1 { font-size: var(--fs-700); margin-bottom: .4rem; }
.login-card > p { color: var(--muted-2); font-size: var(--fs-300); margin-bottom: 1.75rem; }

.login-card label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: .45rem;
}
.login-card input {
  width: 100%;
  background: rgba(10,10,10,.75);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  padding: .8rem 1rem;
  margin-bottom: 1.1rem;
  transition: border-color .22s, box-shadow .22s;
}
.login-card input:focus {
  outline: none;
  border-color: rgba(201,168,76,.55);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}

.login-fehler {
  color: #FF8FA3;
  font-size: var(--fs-300);
  margin: -.5rem 0 .9rem;
}

.login-demo {
  margin-top: 1.25rem; text-align: center;
  font-size: var(--fs-300); color: var(--muted-2);
}
.login-demo button {
  background: none; border: none; cursor: pointer;
  color: var(--gold); font: inherit; text-decoration: underline;
}

/* ---------- Layout ---------- */
.portal { display: none; }
.portal.aktiv { display: block; }

.shell {
  display: grid;
  grid-template-columns: 252px 1fr;
  max-width: 1320px;
  margin: 0 auto;
  min-height: 100vh;
}

/* Sidebar */
.side {
  border-right: 1px solid var(--line);
  padding: 2rem 1.5rem;
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.side img { height: 30px; align-self: flex-start; margin-bottom: 2.5rem; }
.side nav { display: flex; flex-direction: column; gap: .3rem; }
.side nav a {
  display: block;
  padding: .55rem .8rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted-2);
  font-size: .9rem;
  transition: color .22s, background .22s;
}
.side nav a:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.side nav a.aktiv {
  color: var(--ink);
  background: var(--grad-soft);
  box-shadow: inset 2px 0 0 var(--gold);
}
.side nav .nav-paket {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 0 .8rem .35rem;
}

.side-foot {
  margin-top: auto;
  font-size: var(--fs-300); color: var(--muted-2);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.side-foot button {
  background: none; border: none; color: var(--gold);
  font: inherit; font-size: var(--fs-300); cursor: pointer; padding: 0;
  text-decoration: underline;
}

/* Main */
main { padding: 2.75rem clamp(1.25rem, 4vw, 3.5rem) 5rem; min-width: 0; }

section { margin-bottom: 4.5rem; scroll-margin-top: 2rem; }
section > h2 { font-size: var(--fs-700); margin: .35rem 0 1.5rem; }
.sek-text {
  font-size: var(--fs-300);
  color: var(--muted-2);
  max-width: 65ch;
  margin: -1rem 0 1.4rem;
}

/* ---------- Kopf ---------- */
.kopf { margin-bottom: 3.25rem; }
.kopf h1 { font-size: var(--fs-800); margin: .35rem 0 .6rem; }
.kopf p { color: var(--muted-2); }
.kopf strong { color: var(--ink); font-weight: 500; }

.paket-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: .8rem;
  color: var(--ink);
  background: var(--grad-soft);
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 999px;
  padding: .35rem .85rem;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.25);
}

.hinweis {
  margin-top: 1.4rem;
  background: var(--grad-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  padding: 1rem 1.2rem;
  font-size: var(--fs-300);
  color: var(--ink);
}

/* ---------- Karten-Grids ---------- */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.35rem;
  display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card h3 { font-size: var(--fs-400); }
.card p { font-size: var(--fs-300); color: var(--muted-2); }
.card .cta { margin-top: auto; padding-top: .8rem; display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }

/* ---------- Paket-Sektionen ---------- */
.paket-kopf {
  display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}
.paket-kopf h2 { font-size: var(--fs-700); margin: .35rem 0 0; }
.paket-block { margin-bottom: 3rem; }
.paket-block h3.block-titel {
  font-size: var(--fs-600);
  margin-bottom: 1.1rem;
}
.paket-block h3.block-titel span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gold-2);
  display: block;
  margin-bottom: .3rem;
}

/* ---------- Fakten (Stat-Kacheln) ---------- */
.fakten { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.fakt {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.2rem;
}
.fakt .wert {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-600);
  color: var(--ink);
  display: block;
  margin: .2rem 0 .15rem;
}
.fakt p { font-size: .78rem; color: var(--muted-2); }

/* ---------- Kontingente ---------- */
.tank .zahlen {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: .25rem .75rem;
}
.tank .rest {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-600);
  color: var(--ink);
}
.tank .rest b { color: var(--gold); font-weight: 700; }
.tank .meta { font-size: var(--fs-300); color: var(--muted-2); }
.balken {
  height: 7px; border-radius: 4px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}
.balken i {
  display: block; height: 100%;
  background: var(--grad);
  border-radius: 4px;
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ---------- Onboarding ---------- */
.ob-fortschritt {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.3rem;
  display: flex; flex-direction: column; gap: .6rem;
  margin-bottom: 1.4rem;
}
.ob-fortschritt .zahlen {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: .25rem .75rem;
}
.ob-fortschritt .rest {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-600);
  color: var(--ink);
}
.ob-fortschritt .rest b { color: var(--gold); }
.ob-fortschritt .frist { font-size: var(--fs-300); color: var(--muted-2); }

.ob-liste { display: flex; flex-direction: column; }

.ob-gruppe {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 1.6rem 0 .4rem;
  border-bottom: 1px solid var(--line);
}
.ob-gruppe:first-child { padding-top: .2rem; }

.ob-schritt {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.ob-schritt:last-child { border-bottom: none; }

.ob-punkt {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: .7rem;
  border: 2px solid var(--line-2);
  color: var(--muted-2);
  background: var(--bg-2);
}
.ob-schritt.erledigt .ob-punkt {
  border-color: rgba(201,168,76,.5);
  color: var(--gold);
  background: rgba(201,168,76,.08);
}
.ob-schritt.laeuft .ob-punkt {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 16px var(--gold-glow);
}

.ob-inhalt { min-width: 0; }
.ob-kopf {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem .75rem;
  margin-bottom: .2rem;
}
.ob-kopf h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-400);
  color: var(--ink);
}
.ob-schritt.erledigt .ob-kopf h4 { color: var(--muted-2); }
.ob-inhalt p { font-size: var(--fs-300); color: var(--muted-2); max-width: 62ch; }
.ob-inhalt .cta { padding-top: .75rem; display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }

.ob-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .62rem; letter-spacing: .15em; text-transform: uppercase;
  padding: .18rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted-2);
  white-space: nowrap;
}
.ob-tag.du {
  color: var(--ink);
  background: var(--grad-soft);
  border-color: rgba(201,168,76,.35);
}
.ob-schritt.erledigt .ob-tag { opacity: .45; }

.ob-status {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-300);
  color: var(--muted-2);
  white-space: nowrap;
  padding-top: .35rem;
}
.ob-status.laeuft { color: var(--gold); }
.ob-status.erledigt { opacity: .5; }

@media (max-width: 640px) {
  .ob-schritt { grid-template-columns: 30px 1fr; }
  .ob-status { grid-column: 2; padding-top: .4rem; }
}

/* ---------- Erfolgspipelines (horizontal, alle Systeme) ----------
   Ein Fahrplan pro System, Schritte von links nach rechts.
   Gebuchte Systeme laufen aktiv, nicht gebuchte sind ausgegraut. */
.pl-reihe { margin-bottom: 2.75rem; }
.pl-reihe:last-child { margin-bottom: 0; }

.pl-reihe-kopf {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  margin-bottom: .3rem;
}
.pl-reihe-kopf h3 { font-size: var(--fs-600); }

.pl-tag {
  font-family: var(--font-display); font-weight: 700;
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .2rem .65rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted-2);
  white-space: nowrap;
}
.pl-tag.aktiv-tag {
  background: var(--grad-soft);
  border-color: rgba(201,168,76,.35);
  color: var(--ink);
}
.pl-mehr { font-size: .78rem; color: var(--gold-2); text-decoration: none; }
.pl-mehr:hover { text-decoration: underline; }
.pl-hinweis { font-size: var(--fs-300); color: var(--muted-2); max-width: 65ch; }

.pipeline-h {
  display: flex;
  overflow-x: auto;
  padding: .9rem 0 .6rem;
}
.pipeline-h::-webkit-scrollbar { height: 6px; }
.pipeline-h::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }

.stufe-h {
  flex: 1 1 160px;
  min-width: 160px;
  padding-right: 1.1rem;
  position: relative;
}
.stufe-h:last-child { padding-right: 0; }
.stufe-h::before {
  content: "";
  position: absolute; top: 14px; left: 36px; right: .5rem;
  height: 2px; background: var(--line);
}
.stufe-h:last-child::before { display: none; }

.punkt {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: .7rem;
  border: 2px solid var(--line-2);
  color: var(--muted-2);
  background: var(--bg-2);
  position: relative; z-index: 1;
}
.stufe-h .punkt { margin-bottom: .75rem; }
.stufe-h.done .punkt {
  border-color: rgba(201,168,76,.5);
  color: var(--gold);
  background: rgba(201,168,76,.08);
}
.stufe-h.aktiv .punkt {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 16px var(--gold-glow);
}

.stufe-h .label { display: block; font-size: .6rem; margin-bottom: .2rem; }
.stufe-h.offen .label, .stufe-h.gesperrt .label { color: var(--muted-2); }
.stufe-h h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink);
  padding-right: .5rem;
}
.stufe-h.offen h4, .stufe-h.gesperrt h4 { color: var(--muted-2); }
.stufe-h .hier {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: .25rem;
}
.stufe-h p {
  font-size: .74rem; color: var(--muted-2);
  margin-top: .3rem; padding-right: .5rem;
}

.pl-reihe.gesperrt .pipeline-h,
.system.gesperrt .pipeline-h {
  opacity: .4;
  filter: grayscale(.5) saturate(.5);
  pointer-events: none;
}

/* ---------- Systeme als aufklappbare Blöcke (seit 17.09.2026) ----------
   Zu sehen sind Name, Status (grün aktiv, rot nicht freigeschaltet) und
   der Fortschritt in Prozent. Die Schritte zeigt erst ein Klick. */
.system {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-bottom: .9rem;
  transition: border-color .25s var(--ease);
}
.system:last-child { margin-bottom: 0; }
.system:hover, .system.offen { border-color: var(--line-2); }
.system-kopf {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 240px) 28px;
  grid-template-areas: "titel fortschritt pfeil" "stand fortschritt pfeil";
  align-items: center;
  gap: .35rem 1.4rem;
  padding: 1.15rem 1.35rem;
  background: none; border: none; color: inherit; font: inherit;
  text-align: left; cursor: pointer;
  border-radius: var(--radius-card);
}
.system-kopf:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.system-titel { grid-area: titel; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .8rem; }
.system-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-600); color: var(--ink); }
.system-stand { grid-area: stand; font-size: var(--fs-300); color: var(--muted-2); }
.system-stand strong { color: var(--ink); font-weight: 500; }
.system-fortschritt { grid-area: fortschritt; display: flex; flex-direction: column; gap: .4rem; }
.system-prozent { font-size: var(--fs-300); color: var(--muted); text-align: right; }
.system-prozent b { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-600); color: var(--ink); margin-right: .2rem; }
.system-pfeil {
  grid-area: pfeil; justify-self: end;
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .25s var(--ease);
}
.system.offen .system-pfeil { transform: rotate(225deg) translateY(-3px); }
.system-inhalt { padding: 0 1.35rem 1.2rem; }
.system-inhalt .pipeline-h { padding-top: .2rem; }
.system-inhalt .pl-mehr { display: inline-block; margin-top: .4rem; }

.system-tag {
  font-family: var(--font-display); font-weight: 700;
  font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .24rem .7rem; border-radius: 999px; white-space: nowrap;
  border: 1px solid;
}
.system-tag.gruen { color: #7FD7A0; border-color: rgba(127,215,160,.5); background: rgba(127,215,160,.1); }
.system-tag.rot { color: #FF7A8A; border-color: rgba(255,122,138,.5); background: rgba(255,122,138,.08); }

@media (max-width: 640px) {
  .system-kopf {
    grid-template-columns: minmax(0, 1fr) 28px;
    grid-template-areas: "titel pfeil" "stand pfeil" "fortschritt fortschritt";
  }
  .system-prozent { text-align: left; }
}

/* Knopf ohne Ziel (Link im Backoffice noch nicht hinterlegt) */
.btn-aus, .btn-aus:hover {
  background: transparent; border: 1px dashed var(--line-2); color: var(--muted-2);
  box-shadow: none; transform: none; cursor: default;
}

.ob-tag.optional { border-color: rgba(217,188,102,.45); color: var(--gold-2); }
.tag.optional { border-color: rgba(217,188,102,.45); color: var(--gold-2); background: rgba(217,188,102,.08); }
.tag.erledigt { border-color: rgba(127,215,160,.5); color: #7FD7A0; background: rgba(127,215,160,.1); }
.card.call.erledigt h3, .card.call.erledigt p { color: var(--muted-2); }
.card h3, .card p { overflow-wrap: anywhere; }

/* ---------- Nächste Steps ---------- */
.steps ol { list-style: none; counter-reset: s; }
.steps li {
  counter-increment: s;
  padding: .65rem 0 .65rem 2.3rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-300);
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: .7rem;
  font-family: var(--font-display); font-weight: 700;
  color: var(--gold);
}

/* ---------- Projektstand ---------- */
.stand-box {
  background: var(--grad-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  padding: 1.2rem 1.4rem;
  font-size: var(--fs-400);
  line-height: 1.6;
  max-width: 75ch;
  margin-bottom: 2.6rem;
}
#projekt .paket-block:last-child { margin-bottom: 0; }
.erkenntnisse { list-style: none; display: grid; gap: .6rem; max-width: 75ch; }
.erkenntnisse li {
  position: relative;
  padding: .85rem 1rem .85rem 2.4rem;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--fs-300);
}
.erkenntnisse li::before {
  content: "";
  position: absolute; left: 1rem; top: 1.2rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
}
.verlauf { border-left: 1px solid var(--line-2); margin-left: .3rem; max-width: 75ch; }
.verlauf-eintrag {
  position: relative;
  display: grid; grid-template-columns: 6.2rem 1fr; gap: .8rem;
  padding: .7rem 0 .7rem 1.2rem;
}
.verlauf-eintrag::before {
  content: "";
  position: absolute; left: -4px; top: 1.1rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}
.verlauf-eintrag .datum {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-300); color: var(--muted-2);
  padding-top: .1rem;
}
.verlauf-eintrag h4 { font-size: var(--fs-400); margin-bottom: .15rem; }
.verlauf-eintrag p { font-size: var(--fs-300); color: var(--muted); }
@media (max-width: 560px) {
  .verlauf-eintrag { grid-template-columns: 1fr; gap: .1rem; }
}

/* ---------- Calls ---------- */
.tag {
  align-self: flex-start;
  font-family: var(--font-display); font-weight: 700; font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .22rem .65rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted-2);
}
.tag.inklusive { border-color: rgba(201,168,76,.35); color: var(--gold); background: rgba(201,168,76,.07); }
.tag.freigeschaltet { background: var(--grad); border-color: transparent; color: #fff; }
.card .mit { color: var(--muted); font-size: var(--fs-300); }
.card .preis {
  font-family: var(--font-display); font-weight: 500;
  color: var(--ink); font-size: var(--fs-300);
}

/* ---------- Rechnungen ---------- */
.tabelle-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-300); }
th, td { text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--line); }
th {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); font-size: .66rem;
}
td { color: var(--muted); }
td.betrag { font-family: var(--font-display); font-weight: 500; color: var(--ink); white-space: nowrap; }
.status {
  font-family: var(--font-display); font-weight: 700; font-size: .62rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .22rem .65rem; border-radius: 999px;
}
.status.bezahlt { color: var(--muted); border: 1px solid var(--line-2); }
.status.offen { color: #0A0A0A; background: var(--grad); }

/* ---------- Kontakt ---------- */
.kontakt-card a { color: var(--gold); text-decoration: none; font-size: var(--fs-300); }
.kontakt-card a:hover { text-decoration: underline; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: static; height: auto;
    border-right: none; border-bottom: 1px solid var(--line);
    padding: 1.25rem;
    overflow: visible;
  }
  .side img { margin-bottom: 1rem; }
  .side nav { flex-direction: row; flex-wrap: wrap; gap: .35rem; }
  .side nav a { padding: .45rem .7rem; }
  .side nav a.aktiv { box-shadow: inset 0 -2px 0 var(--gold); }
  .side nav .nav-paket { display: none; }
  .side-foot {
    display: flex; gap: .75rem; align-items: baseline;
    border-top: none; padding-top: .75rem; margin-top: 0;
  }
  main { padding-top: 1.75rem; }
}

/* ============================================================
   CHAT-ASSISTENT (seit 23.09.2026)
   Widget unten rechts. Tokens wie oben, keine neuen Farben.
   ============================================================ */

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

.chat {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
  font-size: .95rem;
}

.chat-knopf {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: #0A0A0A;
  background: var(--grad);
  border: none;
  border-radius: 999px;
  padding: .8rem 1.25rem;
  cursor: pointer;
  box-shadow: 0 14px 36px -10px var(--gold-glow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.chat-knopf:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px rgba(201,168,76,.7); }
.chat-knopf-icon svg { width: 20px; height: 20px; display: block; }
.chat.ist-offen .chat-knopf-text { display: none; }
.chat.ist-offen .chat-knopf { padding: .8rem; }

.chat-fenster {
  width: min(380px, calc(100vw - 3rem));
  height: min(560px, calc(100vh - 8rem));
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  overflow: hidden;
}

.chat-kopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--grad-soft);
  border-bottom: 1px solid var(--line);
}
.chat-kopf strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
/* Pflichthinweis nach Artikel 50 der KI-Verordnung: bleibt sichtbar. */
.chat-ki {
  display: block;
  font-size: var(--fs-300);
  color: var(--muted-2);
  margin-top: .1rem;
}
.chat-zu {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 .2rem;
}
.chat-zu:hover { color: var(--ink); }

.chat-verlauf {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.chat-blase {
  max-width: 88%;
  padding: .7rem .9rem;
  border-radius: 14px;
  line-height: 1.55;
}
.chat-blase p + p,
.chat-blase ul { margin-top: .5rem; }
.chat-blase ul { padding-left: 1.1rem; }
.chat-blase li { margin: .2rem 0; }

.von-bot {
  align-self: flex-start;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 5px;
}
.von-dir {
  align-self: flex-end;
  background: var(--grad);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.chat-weiter {
  display: inline-block;
  margin-top: .5rem;
  font-size: var(--fs-300);
  color: var(--star);
  border: 1px solid rgba(255,200,87,.35);
  border-radius: 999px;
  padding: .1rem .55rem;
}

.chat-warte { display: flex; gap: .3rem; padding: .95rem .9rem; }
.chat-warte span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
  animation: chat-punkt 1.2s infinite ease-in-out;
}
.chat-warte span:nth-child(2) { animation-delay: .15s; }
.chat-warte span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-punkt {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-warte span { animation: none; opacity: .5; }
  .chat-knopf:hover { transform: none; }
}

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  padding: .75rem;
  border-top: 1px solid var(--line);
}
.chat-form textarea {
  flex: 1;
  resize: none;
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: .6rem .75rem;
  max-height: 140px;
}
.chat-form textarea:focus { outline: none; border-color: var(--gold); }
.chat-form textarea::placeholder { color: var(--muted-2); }

.chat-senden {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  color: #0A0A0A;
  background: var(--grad);
  border: none;
  border-radius: 12px;
  cursor: pointer;
}
.chat-senden svg { width: 18px; height: 18px; }
.chat-senden:disabled { opacity: .5; cursor: default; }

.chat-fuss {
  font-size: var(--fs-300);
  color: var(--muted-2);
  padding: 0 1rem .8rem;
  text-align: center;
}

@media (max-width: 560px) {
  .chat { right: 1rem; bottom: 1rem; left: 1rem; align-items: stretch; }
  .chat-knopf { align-self: flex-end; }
  .chat-fenster { width: 100%; height: min(70vh, 520px); }
}

/* ============================================================
   Video-Karten (video.js): Platzhalter mit Play-Knopf, der Player
   lädt erst nach dem Klick.
   ============================================================ */
.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  background:
    radial-gradient(70% 90% at 85% 0%, rgba(217,188,102,.28), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(201,168,76,.22), transparent 60%),
    var(--bg-3);
}
button.video { cursor: pointer; transition: border-color .25s var(--ease), transform .25s var(--ease); }
button.video:hover { border-color: rgba(201,168,76,.55); transform: translateY(-2px); }
button.video:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.video-nr {
  position: absolute; top: 1rem; left: 1.15rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
/* Der Titel steht neben der Karte, im Platzhalter nur für Vorleseprogramme */
.video-titel {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.video-hinweis {
  position: absolute; left: 1.15rem; right: 1.15rem; bottom: .95rem;
  font-size: var(--fs-300); color: var(--muted);
}
.video-play {
  position: absolute; top: 50%; left: 50%;
  width: 72px; height: 72px; margin: -44px 0 0 -36px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 16px 40px -10px rgba(201,168,76,.7);
  transition: transform .25s var(--ease);
}
.video-play::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  margin: -12px 0 0 -7px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}
button.video:hover .video-play { transform: scale(1.06); }

.video.leer { border-style: dashed; background: var(--bg-2); }
.video.leer .video-hinweis {
  top: 50%; bottom: auto; transform: translateY(-50%);
  text-align: center; color: var(--muted-2);
}
.video.laeuft { background: #000; border-color: var(--line); }
.video.laeuft iframe,
.video.laeuft video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================
   Start-Karte im Portal (start-karte.js)
   ============================================================ */
.start-karte {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  padding: 1.75rem;
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 12px;
  background: var(--grad-soft), var(--bg-2);
}
.start-karte h2 { font-size: var(--fs-700); margin: .35rem 0 1rem; }
.start-karte ol { list-style: none; counter-reset: start; display: grid; gap: .7rem; }
.start-karte li {
  counter-increment: start;
  position: relative;
  padding-left: 2.4rem;
  font-size: var(--fs-300);
  color: var(--muted);
}
.start-karte li::before {
  content: counter(start);
  position: absolute; left: 0; top: -.1rem;
  width: 1.6rem; height: 1.6rem;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  color: #0A0A0A; background: var(--grad); border-radius: 50%;
}
.start-karte li strong { color: var(--ink); font-weight: 500; }
.start-karte .cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.start-karte-aus {
  background: none; border: none; cursor: pointer;
  font: inherit; font-size: var(--fs-300);
  color: var(--muted-2); text-decoration: underline;
}
.start-karte-aus:hover { color: var(--ink); }

@media (max-width: 900px) {
  .start-karte { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; }
  .start-karte-video { order: -1; }
}

/* ============================================================
   Willkommensseite /start/ für neue Kunden
   ============================================================ */
.start-kopf {
  max-width: 1080px; margin: 0 auto;
  padding: 1.75rem 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.start-kopf img { height: 32px; }
.start-kopf a { font-size: var(--fs-300); color: var(--muted); text-decoration: none; }
.start-kopf a:hover { color: var(--ink); }

.start { display: block; max-width: 1080px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.start section { margin-bottom: 0; }

.start-hero { max-width: 760px; padding: 4rem 0 3rem; }
.start-hero h1 {
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.75rem);
  line-height: 1.04;
  margin: .7rem 0 1.1rem;
}
.start-hero p { font-size: clamp(1rem, .95rem + .35vw, 1.2rem); max-width: 58ch; }

.start-fortschritt {
  display: flex; align-items: center; gap: .45rem;
  margin-top: 1.9rem;
  font-size: var(--fs-300); color: var(--muted-2);
}
.start-fortschritt i {
  width: 38px; height: 4px; border-radius: 99px;
  background: var(--line-2);
  transition: background .3s var(--ease);
}
.start-fortschritt i.an { background: var(--grad); }
.start-fortschritt span { margin-left: .5rem; }

.start-videos { list-style: none; display: grid; gap: 1.25rem; }
.start-video {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.25rem;
  align-items: center;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
}
.start-video h2 { font-size: var(--fs-700); margin: .5rem 0 .7rem; }
.start-video p { color: var(--muted-2); max-width: 40ch; }
.gesehen-tag {
  display: none;
  margin-top: 1rem;
  font-family: var(--font-display); font-weight: 500; font-size: .8rem;
  color: var(--ink);
  background: var(--grad-soft);
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 999px;
  padding: .3rem .8rem;
}
.start-video.gesehen .gesehen-tag { display: inline-flex; }

.start-anmelden {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 3rem;
  align-items: center;
  padding-top: 4.5rem;
  scroll-margin-top: 1rem;
}
.start-anmelden-text h2 { font-size: var(--fs-800); margin: .5rem 0 1rem; }
.start-anmelden-text ul { list-style: none; display: grid; gap: .6rem; margin-top: 1.1rem; }
.start-anmelden-text li { position: relative; padding-left: 1.6rem; }
.start-anmelden-text li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--grad);
}
.start-anmelden .login-card { width: 100%; }
.start-anmelden .login-card h2 { font-size: var(--fs-700); margin-bottom: .4rem; }
.start-anmelden .login-demo a { color: var(--gold); }

.start-fuss {
  max-width: 1080px; margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-size: var(--fs-300); color: var(--muted-2);
}
.start-fuss span { margin-right: auto; }
.start-fuss a { text-decoration: none; }
.start-fuss a:hover { color: var(--ink); }

@media (max-width: 800px) {
  .start-hero { padding: 2.5rem 0 2rem; }
  .start-video { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.1rem; }
  .start-video-player { order: -1; }
  .start-anmelden { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; }
  .start-kopf a { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  button.video:hover, button.video:hover .video-play { transform: none; }
}


/* ============================================================
   Fristen (Akte): Lizenz, Establishment Card, Visa, Corporate Tax
   ============================================================ */
.frist { border-left: 3px solid var(--line-2); }
.frist .zahlen { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin: .5rem 0 .35rem; }
.frist .rest b { font-family: var(--font-display); font-size: var(--fs-600); color: var(--ink); }
.frist .meta { font-size: var(--fs-300); color: var(--muted-2); }
.frist p { font-size: var(--fs-300); color: var(--muted); margin: 0; }
.frist.gruen { border-left-color: #7FD7A0; }
.frist.gelb  { border-left-color: #FFC857; }
.frist.gelb .meta { color: #FFC857; }
.frist.rot   { border-left-color: #FF8FA3; }
.frist.rot .meta { color: #FF8FA3; }
