/* ===========================================================
   ROCKETSTAFF KICKOFF STUDIO – Design System
   Dunkles Recruiting-Studio · Neon-Lime · Pitch-Deck Energy
   =========================================================== */

:root {
  --bg: #0B0F14;
  --bg-deep: #03050A;
  --surface: #18181B;
  --surface-2: #27272A;
  --surface-3: #1F1F23;
  --border: #3F3F46;
  --border-soft: #2A2A2E;
  --text: #FAFAFA;
  --muted: #A1A1AA;
  --dim: #52525B;

  --lime: #D4FF00;
  --lime-hover: #A3E635;
  --lime-deep: #C7F000;

  --paper: #F6F4EE;
  --paper-text: #111111;
  --olive-label: #6D7200;

  --teal: #14B8A6;
  --teal-2: #2AAE9B;
  --blue: #38BDF8;
  --purple: #A78BFA;
  --danger: #EF4444;
  --warning: #F59E0B;
  --green: #22C55E;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms;
  --t-mid: 280ms;
  --t-slow: 560ms;
}

/* ----- Reset & base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" on, "cv01" on;
  min-height: 100vh;
  scroll-behavior: smooth;
}

body {
  background-image:
    radial-gradient(circle at 20% -10%, rgba(212, 255, 0, 0.06), transparent 50%),
    radial-gradient(circle at 90% 30%, rgba(56, 189, 248, 0.04), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
  font-family: inherit;
}

::selection {
  background: var(--lime);
  color: var(--bg);
}

a {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px dashed rgba(212, 255, 0, 0.4);
  transition: color var(--t-fast) var(--ease-out);
}
a:hover {
  color: var(--lime-hover);
}

/* ===========================================================
   TYPOGRAPHY UTILITIES
   =========================================================== */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 18px;
}

.hero__h1 {
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero__h1--lime {
  color: var(--lime);
}

.hero__lead {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--muted);
  line-height: 1.55;
  max-width: 640px;
}

.section__h1 {
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section__lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 540px;
}

/* ===========================================================
   TOPBAR
   =========================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(11, 15, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  height: 60px;
  width: auto;
  color: var(--text);
  display: block;
  transition: opacity var(--t-fast) var(--ease-out);
}
.brand:hover .brand__logo {
  opacity: 0.85;
}

.brand__divider {
  color: var(--dim);
  font-weight: 700;
}

.brand__title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* Project switcher */
.project-switcher {
  position: relative;
}
.project-switcher__current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.project-switcher__current:hover {
  border-color: var(--border);
  background: var(--surface-2);
}
.project-switcher__arrow {
  color: var(--muted);
  font-size: 10px;
}
.project-switcher__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  z-index: 100;
}
.project-switcher__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  transition: background var(--t-fast) var(--ease-out);
}
.project-switcher__item:hover {
  background: var(--surface-2);
}
.project-switcher__item--active {
  background: rgba(212, 255, 0, 0.08);
  color: var(--lime);
}

/* Section nav */
.topbar__nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 4px;
  overflow-x: auto;
  max-width: 100%;
}

.navpill {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
  transition: all var(--t-fast) var(--ease-out);
}
.navpill:hover {
  color: var(--text);
  background: var(--surface-2);
}
.navpill.is-active {
  background: var(--lime);
  color: var(--bg);
}

.topbar__right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.iconbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: all var(--t-fast) var(--ease-out);
}
.iconbtn:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.iconbtn__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(212, 255, 0, 0.6);
}

/* ===========================================================
   STAGE / SECTIONS
   =========================================================== */
.stage {
  padding: 40px 28px 120px;
}

.section {
  max-width: 1400px;
  margin: 0 auto;
  padding-block: 24px 80px;
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.section__head {
  display: flex;
  flex-direction: column;
}

.section__head--row {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all var(--t-fast) var(--ease-out);
  cursor: pointer;
  line-height: 1;
}

.btn--primary {
  background: var(--lime);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--lime-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--lime);
}

.btn--danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.4);
}
.btn--danger:hover {
  background: rgba(239, 68, 68, 0.08);
}

.btn--xs {
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* ===========================================================
   PHASE STRIP (Overview)
   =========================================================== */
.phase-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.phase {
  position: relative;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--t-fast) var(--ease-out);
}

.phase__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
}

.phase--done {
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--text);
}
.phase--done .phase__dot {
  background: var(--green);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.phase--current {
  background: rgba(212, 255, 0, 0.06);
  border-color: var(--lime);
  color: var(--lime);
}
.phase--current .phase__dot {
  background: var(--lime);
  box-shadow: 0 0 14px var(--lime);
}

@media (max-width: 900px) {
  .phase-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===========================================================
   BENTO (Overview Cards)
   =========================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.bento__card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 20px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: border-color var(--t-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.bento__card:hover {
  border-color: var(--border);
}

.bento__card--lime {
  background: var(--lime);
  color: var(--bg);
}
.bento__card--lime .bento__label {
  color: rgba(11, 15, 20, 0.7);
}
.bento__card--lime .bento__sub {
  color: rgba(11, 15, 20, 0.8);
}

.bento__card--wide {
  grid-column: span 2;
}

/* Info-Page (Anleitungen / Statische Inhalte) */
.info-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 820px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-card--accent {
  border-color: var(--lime);
  background: linear-gradient(180deg, rgba(212, 255, 0, 0.06), transparent);
}
.info-card--copy {
  align-items: flex-start;
}
.info-card__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
}
.info-card__title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
}
.info-card__lines {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.info-card__lines a {
  color: var(--lime);
  text-decoration: none;
}
.info-card__lines a:hover {
  text-decoration: underline;
}
.info-card__id {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--lime);
  background: var(--bg-deep);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--border);
  margin: 4px 0 6px;
  user-select: all;
}
.info-card__hint {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}
.info-block {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 22px 26px;
}
.info-block--final {
  background: linear-gradient(180deg, rgba(212, 255, 0, 0.04), transparent);
  border-color: var(--border);
}
.info-block__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--text);
}
.info-block p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 10px;
}
.info-block p:last-child {
  margin-bottom: 0;
}
.info-block strong {
  color: var(--text);
}
.info-block__note {
  font-size: 13px;
  background: var(--surface-3);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  margin-top: 8px !important;
}
.info-block a {
  color: var(--lime);
  text-decoration: none;
}
.info-block a:hover {
  text-decoration: underline;
}
.info-list {
  margin: 8px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.info-list li::marker {
  color: var(--lime);
}
.info-list--links {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
}
.info-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-soft);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.info-footer strong {
  color: var(--text);
  font-weight: 800;
}
.info-footer a {
  color: var(--muted);
  text-decoration: none;
}
.info-footer a:hover {
  color: var(--lime);
}

/* External Tools section */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  min-height: 110px;
  transition: border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.tool-card:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
}
.tool-card__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--muted);
}
.tool-card__title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color var(--t-fast) var(--ease-out);
}
.tool-card:hover .tool-card__title {
  color: var(--lime);
}
.tool-card__sub {
  font-size: 12px;
  color: var(--muted);
  font-family: monospace;
  margin-top: auto;
}

.bento__label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
}

.bento__big {
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.bento__big-sep {
  color: var(--dim);
  font-weight: 600;
  margin: 0 4px;
}

.bento__sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.bento__bar {
  width: 100%;
  height: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.bento__bar-fill {
  height: 100%;
  background: var(--lime);
  width: 0%;
  transition: width var(--t-slow) var(--ease-out);
}

.bento__team {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}
.bento__team-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.bento__team-role {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento__card--wide {
    grid-column: span 3;
  }
}
@media (max-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento__card--wide {
    grid-column: span 2;
  }
}

/* ===========================================================
   PANELS (general purpose cards)
   =========================================================== */
.panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 24px;
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.panel__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel__head-action {
  margin-left: auto;
  white-space: nowrap;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}
@media (max-width: 1000px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
}

.quicklinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 800px) {
  .quicklinks {
    grid-template-columns: 1fr 1fr;
  }
}

.quicklink {
  text-align: left;
  background: var(--surface-3);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--t-fast) var(--ease-out);
}
.quicklink:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
}
.quicklink__num {
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: var(--lime);
}
.quicklink__title {
  font-weight: 800;
  font-size: 14px;
}
.quicklink__hint {
  font-size: 12px;
  color: var(--muted);
}

/* ===========================================================
   OFFENE PUNKTE (Overview)
   =========================================================== */
.panel__sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.open-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) {
  .open-grid {
    grid-template-columns: 1fr;
  }
}

.open-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.open-col__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 8px;
  border-bottom: 1px solid var(--border-soft);
}
.open-col__copy {
  margin-left: auto;
  white-space: nowrap;
}
.open-col__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}
.open-col__count {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
}
.open-col__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.open-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  background: var(--surface-3);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  text-align: left;
  transition: all var(--t-fast) var(--ease-out);
  cursor: pointer;
}
.open-item:hover {
  border-color: var(--border);
  transform: translateX(2px);
}
.open-item--overdue {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
}
.open-item__kind {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  align-self: start;
  margin-top: 2px;
}
.open-item__kind--org {
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal);
}
.open-item__kind--todo {
  background: rgba(56, 189, 248, 0.1);
  color: var(--blue);
}
.open-item__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.open-item__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.open-item__note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.open-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  align-items: center;
}
.open-item__status,
.open-item__prio,
.open-item__due {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
}
.open-item__status {
  background: var(--surface-2);
  color: var(--muted);
}
.open-item__status--progress {
  background: rgba(212, 255, 0, 0.08);
  color: var(--lime);
}
.open-item__prio--high {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.open-item__prio--mid {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}
.open-item__due {
  background: var(--surface-2);
  color: var(--muted);
}
.open-item__due--overdue {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.open-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 14px 8px;
  text-align: center;
  background: var(--surface-3);
  border-radius: var(--r-sm);
  border: 1px dashed var(--border-soft);
}

/* ===========================================================
   FORM CONTROLS
   =========================================================== */
.textfield {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  transition: border-color var(--t-fast) var(--ease-out);
  outline: none;
}
.textfield:focus {
  border-color: var(--lime);
}
.textfield--lg {
  min-height: 120px;
  font-size: 13px;
  line-height: 1.5;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

select {
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  outline: none;
}
select:focus {
  border-color: var(--lime);
}

.filter {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

/* ===========================================================
   ORG / CHECKLIST
   =========================================================== */
.org-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
}
.org-progress__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}
.org-progress__count {
  color: var(--lime);
}
.org-progress__sep {
  color: var(--dim);
  margin: 0 2px;
}
.org-progress__bar {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.org-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lime) 0%, var(--lime-deep) 100%);
  width: 0%;
  transition: width var(--t-slow) var(--ease-out);
}

.org-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.org-item {
  display: grid;
  grid-template-columns: auto 1fr 90px 140px auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  transition: all var(--t-fast) var(--ease-out);
}
.org-item__main {
  min-width: 0;
}
.org-item .prio-select,
.org-item .due-input {
  font: inherit;
  background: var(--surface-3);
  border: 1px solid var(--border-soft);
  color: var(--text);
  padding: 6px 8px;
  border-radius: var(--r-sm);
  font-size: 12px;
  outline: none;
}
.org-item .due-input {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.org-item .prio-select:focus,
.org-item .due-input:focus {
  border-color: var(--lime);
}
@media (max-width: 900px) {
  .org-item {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto auto;
  }
  .org-item__main { grid-column: 2 / -1; }
  .org-item .prio-select,
  .org-item .due-input,
  .org-item .owner-select,
  .org-item .status-select {
    grid-row: 2;
  }
}
.org-item:hover {
  border-color: var(--border);
}
.org-item.is-done {
  opacity: 0.55;
}
.org-item.is-done .org-item__title {
  text-decoration: line-through;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
}

.checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--bg-deep);
  position: relative;
  flex-shrink: 0;
  transition: all var(--t-fast) var(--ease-out);
  cursor: pointer;
}
.checkbox:hover {
  border-color: var(--lime);
}
.checkbox.is-checked {
  background: var(--lime);
  border-color: var(--lime);
}
.checkbox.is-checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid var(--bg);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.org-item__title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}
.org-item__note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.org-item__note input {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12px;
  width: 100%;
  outline: none;
}
.org-item__note input:focus {
  color: var(--text);
}

.org-item__title-input {
  font: inherit;
  background: transparent;
  border: none;
  width: 100%;
  outline: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.org-item__title-input:focus {
  border-bottom: 1px dashed var(--lime);
}

.owner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border-soft);
}
.owner-tag--rocketstaff {
  color: var(--lime);
  border-color: rgba(212, 255, 0, 0.3);
}
.owner-tag--kunde {
  color: var(--blue);
  border-color: rgba(56, 189, 248, 0.3);
}
.owner-tag--beide {
  color: var(--purple);
  border-color: rgba(167, 139, 250, 0.3);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}
.status-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
}
.status-tag--open::before {
  background: var(--danger);
}
.status-tag--progress::before {
  background: var(--warning);
}
.status-tag--done::before {
  background: var(--green);
}

.iconbtn--mini {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
  border-radius: 6px;
  border: 1px solid transparent;
}
.iconbtn--mini:hover {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.06);
}

/* ===========================================================
   ONBOARDING
   =========================================================== */
.onb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .onb-grid {
    grid-template-columns: 1fr;
  }
}

.onb-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 24px;
}
.onb-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  gap: 12px;
}
.onb-card__title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}
.onb-card__subtitle {
  font-size: 12px;
  color: var(--muted);
}

.onb-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}
.onb-row:last-child {
  border-bottom: none;
}
.onb-row__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding-top: 4px;
}
.onb-row__value {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  font-weight: 500;
  word-break: break-word;
}
.onb-row__value--lime {
  color: var(--lime);
}
.onb-row__value[contenteditable="true"] {
  outline: none;
  cursor: text;
  padding: 4px 6px;
  margin: -4px -6px;
  border-radius: 4px;
  transition: background var(--t-fast) var(--ease-out);
}
.onb-row__value[contenteditable="true"]:hover {
  background: var(--surface-3);
}
.onb-row__value[contenteditable="true"]:focus {
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px var(--lime);
}

.onb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.onb-pill {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.onb-pill--lime {
  background: rgba(212, 255, 0, 0.08);
  color: var(--lime);
  border-color: rgba(212, 255, 0, 0.3);
}

/* ===========================================================
   TABS
   =========================================================== */
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0;
  margin-bottom: 4px;
}
.tab {
  padding: 12px 18px;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: all var(--t-fast) var(--ease-out);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tab:hover {
  color: var(--text);
}
.tab.is-active {
  color: var(--lime);
  border-bottom-color: var(--lime);
}
.tab__del {
  opacity: 0;
  font-size: 11px;
  color: var(--muted);
  padding: 2px;
}
.tab:hover .tab__del {
  opacity: 1;
}
.tab__del:hover {
  color: var(--danger);
}

/* ===========================================================
   PFLICHTENHEFT (story / visual / questions)
   =========================================================== */
.pflichtenheft-pane {
  padding-top: 16px;
}

.pflichtenheft-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 1100px) {
  .pflichtenheft-cols {
    grid-template-columns: 1fr;
  }
}

.flex-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flex-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.flex-card__title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bullet-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast) var(--ease-out);
}
.bullet-row:hover {
  background: var(--surface-3);
}
.bullet-row__dot {
  width: 5px;
  height: 5px;
  background: var(--lime);
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
}
.bullet-row__input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  font-weight: 500;
  resize: none;
  overflow: hidden;
  min-height: 24px;
}
.bullet-row__del {
  opacity: 0;
  font-size: 12px;
  color: var(--muted);
  padding: 0 4px;
}
.bullet-row:hover .bullet-row__del {
  opacity: 1;
}
.bullet-row__del:hover {
  color: var(--danger);
}

.bullet-add {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
  transition: all var(--t-fast) var(--ease-out);
}
.bullet-add:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* ===========================================================
   DREHPLAN
   =========================================================== */
.drehplan-pane {
  padding-top: 16px;
}
.drehday {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 20px;
}

.drehday__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.drehday__date {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.drehday__date-input {
  background: transparent;
  border: 1px dashed transparent;
  font: inherit;
  font-weight: 900;
  color: var(--text);
  outline: none;
  padding: 2px 4px;
  border-radius: 4px;
}
.drehday__date-input:hover,
.drehday__date-input:focus {
  border-color: var(--border);
}
.drehday__sub {
  color: var(--muted);
  font-size: 13px;
}

.drehday--ausweich {
  border-style: dashed;
  border-color: var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

.drehday__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drehday__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.drehday__type-select {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.drehday__type-select--haupt {
  background: rgba(212, 255, 0, 0.08);
  color: var(--lime);
  border-color: rgba(212, 255, 0, 0.3);
}
.drehday__type-select--ausweich {
  background: rgba(167, 139, 250, 0.08);
  color: var(--purple);
  border-color: rgba(167, 139, 250, 0.3);
}

.tab__badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.tab__badge--ausweich {
  background: rgba(167, 139, 250, 0.1);
  color: var(--purple);
  border-color: rgba(167, 139, 250, 0.3);
}

.slot-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slot {
  display: grid;
  grid-template-columns: 100px 1fr 1.2fr 90px 120px auto;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  align-items: center;
  font-size: 13px;
  transition: all var(--t-fast) var(--ease-out);
}
.slot:hover {
  background: var(--surface-3);
  border-color: var(--border-soft);
}

.slot--logistics {
  background: var(--surface-3);
  color: var(--muted);
  font-style: italic;
}

.slot__time {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  color: var(--lime);
  font-size: 13px;
}
.slot__person {
  font-weight: 700;
  font-size: 14px;
}
.slot__email {
  font-size: 11px;
  color: var(--muted);
}
.slot__area {
  font-size: 12px;
  color: var(--muted);
}
.slot__media {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  text-align: center;
}
.slot__media--video {
  background: rgba(212, 255, 0, 0.08);
  color: var(--lime);
  border: 1px solid rgba(212, 255, 0, 0.25);
}
.slot__media--photo {
  background: rgba(56, 189, 248, 0.08);
  color: var(--blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.slot__media--drone {
  background: rgba(167, 139, 250, 0.08);
  color: var(--purple);
  border: 1px solid rgba(167, 139, 250, 0.25);
}
.slot__media--broll {
  background: rgba(20, 184, 166, 0.08);
  color: var(--teal);
  border: 1px solid rgba(20, 184, 166, 0.25);
}
.slot__location {
  font-size: 11px;
  color: var(--muted);
}
.slot__edit-input {
  background: transparent;
  border: none;
  font: inherit;
  color: inherit;
  outline: none;
  width: 100%;
  padding: 2px 4px;
  border-radius: 4px;
}
.slot__edit-input:hover,
.slot__edit-input:focus {
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px var(--border);
}

@media (max-width: 1100px) {
  .slot {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .slot__email {
    margin-top: 4px;
  }
}

/* ===========================================================
   TODOS / KANBAN
   =========================================================== */
.todos-toolbar {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  padding: 12px 0;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}

.kanban__col {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 16px;
}
.kanban__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.kanban__title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.kanban__title--open {
  color: var(--danger);
}
.kanban__title--progress {
  color: var(--warning);
}
.kanban__title--done {
  color: var(--green);
}
.kanban__count {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}

.kanban__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.todo {
  background: var(--surface-3);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--t-fast) var(--ease-out);
}
.todo:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}
.todo__title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
.todo__title input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font: inherit;
  color: var(--text);
}
.todo__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.todo__meta select,
.todo__meta input {
  background: transparent;
  border: 1px solid var(--border-soft);
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--muted);
  outline: none;
}
.todo__meta select:focus,
.todo__meta input:focus {
  border-color: var(--lime);
}

.prio-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.prio-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.prio-tag--high {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
}
.prio-tag--high::before {
  background: var(--danger);
}
.prio-tag--mid {
  background: rgba(245, 158, 11, 0.08);
  color: var(--warning);
}
.prio-tag--mid::before {
  background: var(--warning);
}
.prio-tag--low {
  background: rgba(34, 197, 94, 0.08);
  color: var(--green);
}
.prio-tag--low::before {
  background: var(--green);
}

@media (max-width: 900px) {
  .kanban {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   ZEITPLAN
   =========================================================== */
.timeline-wrap {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 20px;
  overflow-x: auto;
}

.timeline {
  display: grid;
  gap: 6px;
  min-width: 720px;
}

.timeline__head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.timeline__weeks {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
}
.timeline__week {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  padding: 4px;
}
.timeline__week--current {
  color: var(--lime);
}

.timeline__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
}
.timeline__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.timeline__lane {
  position: relative;
  height: 28px;
  background: var(--surface-3);
  border-radius: 6px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
}
.timeline__cell {
  border-radius: 4px;
  background: transparent;
}
.timeline__bar {
  position: absolute;
  height: 20px;
  top: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bg);
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
}
.timeline__bar--lime {
  background: var(--lime);
}
.timeline__bar--teal {
  background: var(--teal);
  color: var(--bg);
}
.timeline__bar--blue {
  background: var(--blue);
  color: var(--bg);
}
.timeline__bar--purple {
  background: var(--purple);
  color: var(--bg);
}
.timeline__bar--paper {
  background: var(--paper);
  color: var(--paper-text);
}
.timeline__bar--warning {
  background: var(--warning);
  color: var(--bg);
}

/* Milestone marker row */
.timeline__row--milestones {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-soft);
}
.timeline__lane--milestones {
  height: 56px;
  background: transparent;
}
.timeline__marker {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime);
  top: 18px;
  transform: translate(-50%, -50%);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  z-index: 2;
}
.timeline__marker--done {
  background: var(--teal);
}
.timeline__marker-label {
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  top: 30px;
  transform: translateX(-50%);
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.milestones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.milestone {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.milestone__date {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--lime);
  font-weight: 700;
}
.milestone__title {
  font-weight: 700;
  font-size: 14px;
}
.milestone__title input,
.milestone__date input {
  background: transparent;
  border: none;
  outline: none;
  font: inherit;
  color: inherit;
  width: 100%;
}
.milestone__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

/* ===========================================================
   DIALOG
   =========================================================== */
.dialog {
  border: none;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-lg);
  padding: 0;
  max-width: 720px;
  width: 92%;
  max-height: 90vh;
  margin: auto;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.6);
  overflow: auto;
}
.dialog::backdrop {
  background: rgba(3, 5, 10, 0.75);
  backdrop-filter: blur(4px);
}
.dialog__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog__head h2 {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.dialog__head-tag {
  display: inline-block;
  background: var(--lime);
  color: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-right: 6px;
  vertical-align: middle;
}
.dialog__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.dialog__section:first-of-type {
  border-top: none;
  padding-top: 0;
}
.dialog__section h3 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.dialog__hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.dialog__status {
  font-size: 12px;
  color: var(--muted);
}
.dialog__status--ok {
  color: var(--green);
}
.dialog__status--err {
  color: var(--danger);
}
.dialog__status--running {
  color: var(--warning);
}

.dialog--ai {
  max-width: 880px;
}

.settings-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.settings-projects {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-project {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface-3);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
}
.settings-token {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-soft);
}
.settings-token__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  font-weight: 700;
}
.settings-token__row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.settings-token__url {
  flex: 1 1 360px;
  font-family: monospace;
  font-size: 12px;
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  outline: none;
}
.settings-token__url:focus { border-color: var(--lime); }
.settings-token__empty {
  flex: 1 1 360px;
  font-style: italic;
  color: var(--muted);
  font-weight: 500;
}
.settings-token__meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.settings-project__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.settings-project__name input {
  background: transparent;
  border: 1px dashed transparent;
  font: inherit;
  color: var(--text);
  outline: none;
  padding: 2px 4px;
  border-radius: 4px;
}
.settings-project__name input:focus {
  border-color: var(--border);
}
.settings-project--active .settings-project__name::before {
  content: "●";
  color: var(--lime);
  font-size: 10px;
}
.settings-project__actions {
  display: flex;
  gap: 4px;
}

.ai-output {
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: 14px;
  min-height: 80px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
  max-height: 360px;
  overflow: auto;
}
.ai-output:empty::before {
  content: "Antwort erscheint hier …";
  color: var(--dim);
}

/* ===========================================================
   TOAST
   =========================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transition: transform var(--t-mid) var(--ease-out);
  z-index: 200;
}
.toast.is-visible {
  transform: translateX(-50%) translateY(0);
}
.toast--ok {
  border-color: var(--lime);
  color: var(--lime);
}
.toast--err {
  border-color: var(--danger);
  color: var(--danger);
}

/* ===========================================================
   ANIMATIONS
   =========================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.section[data-section-pane]:not([hidden]) > .section__inner > * {
  animation: fadeUp var(--t-slow) var(--ease-out) backwards;
}
.section[data-section-pane]:not([hidden]) > .section__inner > *:nth-child(1) {
  animation-delay: 60ms;
}
.section[data-section-pane]:not([hidden]) > .section__inner > *:nth-child(2) {
  animation-delay: 120ms;
}
.section[data-section-pane]:not([hidden]) > .section__inner > *:nth-child(3) {
  animation-delay: 180ms;
}
.section[data-section-pane]:not([hidden]) > .section__inner > *:nth-child(4) {
  animation-delay: 240ms;
}

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

/* ===========================================================
   ÜBERSICHT — Zentrale Drehtermin-Sektion
   =========================================================== */
.panel--drehtermine {
  margin: 0 0 18px;
}
.drehtermine-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drehtermine-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 0;
}
.drehtermin {
  display: grid;
  grid-template-columns: 90px 1fr 160px 1fr 70px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast) var(--ease-out);
}
.drehtermin:hover {
  border-color: var(--border);
}
.drehtermin--ausweich {
  border-style: dashed;
}
.drehtermin__badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  white-space: nowrap;
  justify-self: start;
  text-align: center;
}
.drehtermin__badge--haupt {
  background: rgba(212, 255, 0, 0.1);
  color: var(--lime);
}
.drehtermin__badge--ausweich {
  background: rgba(167, 139, 250, 0.1);
  color: var(--purple);
}
.drehtermin__label,
.drehtermin__date,
.drehtermin__subtitle {
  background: transparent;
  border: 1px dashed transparent;
  font: inherit;
  color: var(--text);
  padding: 4px 6px;
  border-radius: 4px;
  outline: none;
}
.drehtermin__label {
  font-weight: 700;
}
.drehtermin__date {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
}
.drehtermin__subtitle {
  color: var(--muted);
  font-size: 13px;
}
.drehtermin__label:hover,
.drehtermin__label:focus,
.drehtermin__date:hover,
.drehtermin__date:focus,
.drehtermin__subtitle:hover,
.drehtermin__subtitle:focus {
  border-color: var(--border);
  background: var(--bg-deep);
}
.drehtermin__meta {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
@media (max-width: 900px) {
  .drehtermin {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
  }
  .drehtermin__date { grid-column: 1 / -1; }
  .drehtermin__subtitle { grid-column: 1 / -1; }
  .drehtermin__meta { grid-column: 1 / -1; text-align: right; }
}

/* ===========================================================
   DREHPLAN — BAUSTEINE PALETTE
   =========================================================== */
.bausteine {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0 12px;
  border-bottom: 1px dashed var(--border-soft);
  margin-bottom: 14px;
}
.bausteine__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.bausteine__palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bausteine__hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

.baustein {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
  font-family: inherit;
  text-align: left;
}
.baustein:hover {
  transform: translateY(-1px);
  background: var(--surface-3);
  border-color: var(--text);
}
.baustein__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.baustein__meta {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.baustein--logistics { border-color: rgba(200, 200, 200, 0.4); }
.baustein--broll     { border-color: rgba(20, 184, 166, 0.45); }
.baustein--broll .baustein__title { color: var(--teal); }
.baustein--video     { border-color: rgba(212, 255, 0, 0.45); }
.baustein--video .baustein__title { color: var(--lime); }

/* ===========================================================
   DREHPLAN — TIMETRACK (vertikale Zeitleiste pro Drehtag)
   =========================================================== */
.timetrack {
  position: relative;
  display: flex;
  gap: 8px;
  overflow-y: auto;
  max-height: 640px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: 12px;
  margin-bottom: 18px;
  user-select: none;
}
.timetrack__ruler {
  position: relative;
  width: 56px;
  flex: 0 0 56px;
}
.timetrack__tick {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  font-size: 11px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.timetrack__lane {
  position: relative;
  flex: 1 1 auto;
  min-width: 320px;
  background: var(--bg-deep);
  border-radius: 6px;
  overflow: hidden;
}
.timetrack__grid {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-soft);
  opacity: 0.4;
}
.timetrack__block {
  position: absolute;
  left: 6px;
  right: 6px;
  border-radius: 5px;
  padding: 8px 12px 14px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  cursor: grab;
  font-size: 12px;
  overflow: hidden;
  transition: box-shadow var(--t-fast) var(--ease-out);
  min-height: 22px;
}
.timetrack__block:hover {
  box-shadow: 0 0 0 1px var(--text) inset;
}
.timetrack__block.is-dragging {
  cursor: grabbing;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--text) inset;
  z-index: 5;
}
.timetrack__block-time {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.timetrack__block-title {
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timetrack__block-dur {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.timetrack__block--video {
  background: rgba(212, 255, 0, 0.14);
  border-color: rgba(212, 255, 0, 0.55);
}
.timetrack__block--video .timetrack__block-time { color: var(--lime); }
.timetrack__block--photo {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.5);
}
.timetrack__block--photo .timetrack__block-time { color: var(--blue); }
.timetrack__block--broll {
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(20, 184, 166, 0.5);
}
.timetrack__block--broll .timetrack__block-time { color: var(--teal); }
.timetrack__block--drone {
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.5);
}
.timetrack__block--drone .timetrack__block-time { color: var(--purple); }
.timetrack__block--logistics {
  background: var(--surface-3);
  border-color: var(--border);
  color: var(--muted);
  font-style: italic;
}
.timetrack__handle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  cursor: ns-resize;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.08));
}
.timetrack__handle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  height: 2px;
  width: 24px;
  background: currentColor;
  opacity: 0.4;
  border-radius: 2px;
  box-shadow: 0 3px 0 currentColor;
}

/* ===========================================================
   ZEITPLAN — phase delete affordance
   =========================================================== */
.timeline__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.timeline__phase-del {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.timeline__row:hover .timeline__phase-del {
  opacity: 1;
}
.timeline__phase-del:hover {
  color: var(--warning);
  border-color: var(--warning);
}

/* ===========================================================
   LOGIN OVERLAY
   =========================================================== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-box {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-box__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}
.login-box__title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.login-box__sub {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}
.login-box__hint {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.login-box__error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
}
.login-box__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.login-box__toggle {
  align-self: center;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline dashed;
  text-underline-offset: 4px;
}
.login-box__toggle:hover { color: var(--text); }

.dialog__h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 8px;
}

/* save indicator */
.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-left: 12px;
}
.save-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.2s;
}
.save-indicator--saving .save-indicator__dot { background: var(--warning); }
.save-indicator--saved  .save-indicator__dot { background: var(--lime); }
.save-indicator--error  .save-indicator__dot { background: #ef4444; }

/* ===========================================================
   SCROLLBAR
   =========================================================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 999px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border);
}
