:root {
  /* digihub.li brand tokens — Organigramm synced from digihub-intranet */
  --teal: #31beb0;
  --teal-deep: #289e93;
  --teal-soft: #e6f8f6;
  --green: #dbe470;
  --lime: #dbe470;
  --grey: #e3e1db;
  --ink: #313131;
  --ink-muted: #55575a;
  --paper: #f4f3ef;
  --paper-2: #ffffff;
  --line: #d4d2cc;
  --probe: var(--green);
  --probe-bg: #f3f6d4;
  --aktiv: var(--teal);
  --aktiv-bg: var(--teal-soft);
  --mensch: #313131;
  --ki: var(--green);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --radius: 12px;
  --radius-pill: 999px;
  --max: 1120px;
  --org-max: 1240px;
  --ink-deep: #050807;
  --glow: rgba(100, 185, 175, 0.45);
  --surface: rgba(255, 255, 255, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(5, 8, 7, 0.06) 1px, transparent 1px),
    radial-gradient(ellipse 70% 50% at 90% -10%, rgba(200, 216, 74, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 0% 0%, rgba(100, 185, 175, 0.35), transparent 50%),
    linear-gradient(160deg, #e8f6f3 0%, #d4ebe7 45%, #f3f8e8 100%);
  background-size: 18px 18px, auto, auto, auto;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.lime-dot {
  color: var(--lime);
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  cursor: pointer;
}

/* Shell */
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px 1fr;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .nav a {
    padding: 0.45rem 0.85rem;
  }
}

.sidebar {
  background: rgba(5, 8, 7, 0.92);
  color: #f4f7f6;
  backdrop-filter: blur(14px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.brand-link {
  display: block;
  text-decoration: none;
  line-height: 1;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  color: #fff;
}

.brand-wordmark span {
  color: var(--teal);
}

.brand-logo {
  width: min(100%, 168px);
  height: auto;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.brand-mark span {
  color: var(--teal);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(244, 247, 246, 0.55);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.nav a {
  color: rgba(244, 247, 246, 0.78);
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
  color: #fff;
  border-color: rgba(100, 185, 175, 0.45);
  background: rgba(100, 185, 175, 0.12);
}

.nav a.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--ink);
  font-weight: 600;
}

.sidebar-meta {
  margin-top: auto;
  font-size: 0.72rem;
  color: rgba(244, 247, 246, 0.45);
  line-height: 1.45;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main {
  padding: 1.75rem 1.75rem 3rem;
}

.main-inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* Hero — digihub ink panel */
.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.35rem;
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 55% 70% at 85% 0%, rgba(100, 185, 175, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 50% at 10% 100%, rgba(200, 216, 74, 0.14), transparent 50%);
  color: #f4f7f6;
  animation: desk-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-glow {
  pointer-events: none;
  position: absolute;
  top: -4rem;
  right: -3rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(100, 185, 175, 0.2);
  filter: blur(48px);
}

.hero-kicker {
  position: relative;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(244, 247, 246, 0.55);
  font-weight: 600;
  margin: 0 0 0.85rem;
}

.hero-title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0 0 0.65rem;
  color: #fff;
}

.hero-claim {
  position: relative;
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(244, 247, 246, 0.92);
}

.hero-lead {
  position: relative;
  margin: 0;
  max-width: 34rem;
  color: rgba(244, 247, 246, 0.58);
  font-size: 0.98rem;
}

.hero-brand {
  margin: 0 0 0.85rem;
}

.hero-logo {
  width: min(100%, 300px);
  height: auto;
}

.hero p {
  margin: 0;
  max-width: 38rem;
}

.hero-stats {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat {
  min-width: 6.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--teal);
}

.stat span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 247, 246, 0.5);
}

@keyframes desk-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Sections */
.section {
  margin-bottom: 2.25rem;
  animation: desk-reveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.08s;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
}

.section-head .hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Org chart — hierarchical tree + KI pipeline */
#view-organigramm .section {
  max-width: var(--org-max);
}

.org {
  position: relative;
}

.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0.5rem 0 0.25rem;
}

.org-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: org-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--tier, 0) * 80ms);
}

.org-tier-apex {
  --tier: 0;
}

.org-tier-board {
  --tier: 1;
}

/* GF + Stab side-by-side (from digihub-intranet) */
.org-gf-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0;
  width: 100%;
  max-width: 42rem;
}

.org-gf-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-gf-staff-link {
  width: 2.25rem;
  height: 2px;
  flex-shrink: 0;
  margin: 1.4rem 0.15rem 0;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  border-radius: 2px;
  opacity: 0.85;
}

.org-staff {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  max-width: 14rem;
  flex-shrink: 0;
}

.org-staff-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.org-staff-note {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  text-align: center;
  max-width: 11rem;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .org-gf-row {
    flex-direction: column;
  }

  .org-gf-staff-link {
    width: 2px;
    height: 1.35rem;
    margin: 0.35rem 0;
    background: linear-gradient(180deg, var(--teal), var(--teal-deep));
  }

  .org-staff {
    max-width: 28rem;
  }
}

.org-tier-ops {
  --tier: 2;
}

.org-tier-label {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  font-weight: 700;
}

.org-stem {
  width: 2px;
  height: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.org-stem > span {
  display: block;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal), var(--teal-deep));
  border-radius: 2px;
  transform-origin: top;
  animation: org-stem 0.55s ease both;
}

.org-stem-ki {
  height: 36px;
  margin-top: 0.35rem;
}

.org-branches {
  position: relative;
  width: min(100%, 720px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-tier-apex .org-branches {
  width: min(100%, 920px);
}

.org-rail {
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal) 12%, var(--teal) 88%, transparent);
  opacity: 0.7;
}

.org-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 2px;
  height: 14px;
  background: var(--teal);
  transform: translateX(-50%);
}

.org-branch-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
  padding-top: 1.1rem;
  width: 100%;
}

.org-tier-apex .org-branch-row {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.org-tier-apex .org-node {
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 240px;
}

.org-branch-ops {
  width: min(100%, 860px);
}

.org-branch-ki {
  width: min(100%, 980px);
}

/* Abteilungen */
.org-tier-depts {
  width: 100%;
  align-items: stretch;
}

.org-tier-depts > .org-tier-label {
  text-align: center;
  width: 100%;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  margin-top: 0.35rem;
}

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

.dept-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 12px 32px -24px rgba(14, 22, 20, 0.35);
  animation: org-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.2s + var(--i, 0) * 0.07s);
}

.dept-head {
  text-align: center;
  margin-bottom: 0.75rem;
  width: 100%;
}

.dept-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.dept-lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.dept-lead-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.dept-lead .org-node {
  border: 2.5px solid var(--teal-deep);
  min-width: min(100%, 240px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(42, 157, 143, 0.12),
    0 12px 28px -16px rgba(29, 122, 111, 0.4);
}

.dept-lead .org-node:hover {
  border-color: #15665c;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(42, 157, 143, 0.2),
    0 16px 36px -14px rgba(29, 122, 111, 0.5);
}

.dept-stem {
  width: 2px;
  height: 22px;
  margin: 0.35rem 0;
}

.dept-stem span {
  display: block;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal), var(--teal-deep));
  border-radius: 2px;
}

.dept-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  align-items: stretch;
}

.dept-members .org-node {
  width: 210px;
  min-width: 210px;
  max-width: 210px;
  min-height: 118px;
  box-sizing: border-box;
}

.dept-members .org-node.is-ki {
  width: 210px;
  min-width: 210px;
  max-width: 210px;
}

.org-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.org-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.4rem;
  border-radius: 2px;
  border: 1px solid currentColor;
}

.org-tag-probe {
  color: var(--ink);
  background: var(--green);
}

.org-tag-aktiv {
  color: var(--aktiv);
  background: var(--aktiv-bg);
}

.org-tag-warn {
  color: #9a3412;
  background: #ffedd5;
}

.org-tag-out {
  color: #7f1d1d;
  background: #fee2e2;
}

.org-tag-ausfall {
  color: #334155;
  background: #e2e8f0;
}

.org-since {
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.org-eo {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--green);
  padding: 0.08rem 0.35rem;
  border-radius: 3px;
}

.org-node.is-ki .org-eo {
  color: var(--ink);
  background: var(--green);
}

.org-node.is-ki {
  border-color: rgba(219, 228, 112, 0.45);
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(219, 228, 112, 0.22), transparent 55%),
    linear-gradient(165deg, #2a2c24 0%, #1a1b16 100%);
  color: #f4f5ee;
  box-shadow:
    0 0 0 1px rgba(219, 228, 112, 0.14) inset,
    0 14px 32px -18px rgba(0, 0, 0, 0.45);
}

.org-node.is-ki .role,
.org-node.is-ki .org-since {
  color: rgba(244, 245, 238, 0.62);
}

.org-node.is-ki:hover {
  border-color: var(--green);
  box-shadow:
    0 0 0 1px rgba(219, 228, 112, 0.3) inset,
    0 0 24px -8px rgba(219, 228, 112, 0.45),
    0 18px 40px -16px rgba(0, 0, 0, 0.55);
}

.org-node.is-mensch {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 248, 0.92));
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.status-icon-probe {
  color: #c2410c;
  background: #ffedd5;
  border: 1px solid rgba(194, 65, 12, 0.35);
}

.status-icon-warn {
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #9a3412;
}

.status-icon-out {
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #991b1b;
}

.status-icon-ausfall {
  color: #334155;
  background: #e2e8f0;
  border: 1px solid #64748b;
  font-size: 0.65rem;
}

.avatar-probe {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c2410c;
  border: 2px solid #fff;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(194, 65, 12, 0.25);
}

.org-node.is-ki .avatar-probe {
  border-color: #0f1a18;
}

/* Legende */
.org-legend {
  width: 100%;
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.org-legend h3 {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  font-weight: 700;
}

.org-legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
}

.org-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.legend-swatch {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.legend-mensch {
  background: linear-gradient(165deg, #fff, #f3faf8);
}

.legend-ki {
  background: linear-gradient(165deg, #2a2c24, #1a1b16);
  border-color: rgba(219, 228, 112, 0.45);
}

/* Nodes */
.org-node {
  --i: 0;
  appearance: none;
  position: relative;
  border: 1px solid rgba(5, 8, 7, 0.12);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 1.1rem;
  padding: 0.75rem 0.9rem 0.8rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  text-align: left;
  min-width: 200px;
  max-width: 260px;
  box-shadow: 0 10px 28px -18px rgba(5, 8, 7, 0.28);
  transition:
    border-color 0.2s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
  animation: org-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.12s + var(--i) * 0.06s);
}

.org-node:hover {
  border-color: var(--teal);
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: 0 18px 40px rgba(5, 8, 7, 0.16);
  z-index: 2;
}

.org-node:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.org-node-lg {
  min-width: 280px;
  max-width: 320px;
  padding: 1rem 1.15rem 1.05rem;
  border-width: 1.5px;
  border-color: rgba(42, 157, 143, 0.45);
  background:
    radial-gradient(ellipse 90% 80% at 10% 0%, rgba(42, 157, 143, 0.16), transparent 55%),
    linear-gradient(165deg, #fff, #eef8f5);
}

.org-node-lg .org-avatar img {
  width: 72px;
  height: 72px;
}

.org-node-ki {
  min-width: 168px;
  max-width: 188px;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: 1.1rem 0.75rem 0.9rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(219, 228, 112, 0.28), transparent 55%),
    linear-gradient(180deg, #2a2c24 0%, #1a1b16 100%);
  border-color: rgba(219, 228, 112, 0.4);
  color: #f4f5ee;
  box-shadow:
    0 0 0 1px rgba(219, 228, 112, 0.14) inset,
    0 16px 36px -18px rgba(0, 0, 0, 0.55);
}

.org-node-ki .role {
  color: rgba(244, 245, 238, 0.62);
}

.org-node-ki:hover {
  border-color: var(--green);
  box-shadow:
    0 0 0 1px rgba(219, 228, 112, 0.35) inset,
    0 0 28px -6px rgba(219, 228, 112, 0.4),
    0 20px 40px -16px rgba(0, 0, 0, 0.6);
}

.org-avatar {
  position: relative;
  display: grid;
  place-items: center;
}

.org-avatar img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--paper-2);
  position: relative;
  z-index: 1;
}

.org-node-ki .org-avatar img {
  width: 56px;
  height: 56px;
  box-shadow: 0 0 0 2px rgba(100, 185, 175, 0.45);
}

.org-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--teal), transparent 60%, var(--teal-deep)) border-box;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.35s ease;
  transform: scale(0.92);
  pointer-events: none;
}

.org-node:hover .org-ring {
  opacity: 1;
  transform: scale(1);
}

.org-node-ki .org-ring {
  background:
    linear-gradient(#12201d, #12201d) padding-box,
    linear-gradient(135deg, #64b9af, transparent 55%, #2a9d8f) border-box;
}

.org-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.org-node-ki .org-copy {
  align-items: center;
  margin-top: 0.15rem;
}

.org-node .name {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.org-node-lg .name {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.org-node-ki .name {
  font-size: 0.88rem;
}

.org-node .role {
  font-size: 0.72rem;
  color: var(--ink-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.org-step {
  position: absolute;
  top: 0.45rem;
  left: 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64b9af;
  opacity: 0.9;
}

.org-score {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(100, 185, 175, 0.18);
  color: #9ee0d6;
  border: 1px solid rgba(100, 185, 175, 0.35);
}

.org-score.is-empty {
  opacity: 0.45;
}

.node-probezeit {
  border-left: 3px solid var(--probe);
}

.org-node-ki.node-probezeit {
  border-left: none;
  box-shadow:
    0 0 0 1px rgba(180, 83, 9, 0.45) inset,
    0 16px 36px -18px rgba(0, 0, 0, 0.55);
}

.node-aktiv {
  border-left: 3px solid var(--aktiv);
}

.org-node-ki.node-aktiv,
.org-node-lg.node-aktiv {
  border-left-width: 1.5px;
}

.node-out {
  opacity: 0.45;
  filter: grayscale(0.7);
}

/* KI pipeline */
.org-pipeline {
  width: 100%;
  margin-top: 0.35rem;
  border-radius: 20px;
  padding: 1.25rem 1.15rem 1.35rem;
  background:
    radial-gradient(ellipse 70% 60% at 15% 0%, rgba(42, 157, 143, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(100, 185, 175, 0.12), transparent 50%),
    linear-gradient(145deg, #16302b 0%, #0c1412 55%, #12201c 100%);
  color: #e8f4f1;
  box-shadow:
    0 0 0 1px rgba(100, 185, 175, 0.18) inset,
    0 28px 60px -30px rgba(8, 20, 18, 0.75);
  animation: org-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.28s;
  overflow: hidden;
}

.org-pipeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1.15rem;
  padding: 0 0.25rem;
}

.org-pipeline-head .org-tier-label {
  color: rgba(232, 244, 241, 0.55);
  margin-bottom: 0.35rem;
}

.org-pipeline-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.org-pipeline-sub {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: rgba(232, 244, 241, 0.58);
}

.org-pipeline-meta {
  display: flex;
  gap: 0.5rem;
}

.org-pipeline-meta span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(100, 185, 175, 0.35);
  color: #9ee0d6;
  background: rgba(100, 185, 175, 0.08);
}

.org-pipeline-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding: 0.35rem 0.2rem 0.65rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.org-pipeline-track::-webkit-scrollbar {
  height: 6px;
}

.org-pipeline-track::-webkit-scrollbar-thumb {
  background: rgba(100, 185, 175, 0.35);
  border-radius: 99px;
}

.pipe-stage {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.pipe-link {
  width: 36px;
  height: 2px;
  margin: 0 0.15rem;
  position: relative;
  background: linear-gradient(90deg, rgba(100, 185, 175, 0.15), #64b9af, rgba(100, 185, 175, 0.15));
  flex-shrink: 0;
}

.pipe-link::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent #64b9af;
  transform: translateY(-50%);
}

.pipe-dot {
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #64b9af;
  box-shadow: 0 0 10px var(--glow);
  animation: pipe-pulse 1.8s ease-in-out infinite;
}

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

@keyframes org-stem {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes pipe-pulse {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.5;
  }
  50% {
    transform: translateX(22px);
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .org-rail {
    left: 6%;
    right: 6%;
  }

  .org-node,
  .org-node-lg {
    min-width: min(100%, 260px);
    max-width: 100%;
  }

  .pipe-link {
    width: 22px;
  }
}

/* Directory */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.chip {
  appearance: none;
  border: 1px solid rgba(5, 8, 7, 0.2);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(5, 8, 7, 0.7);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip:hover {
  border-color: rgba(5, 8, 7, 0.45);
  color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.directory {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.dir-row {
  appearance: none;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  display: grid;
  grid-template-columns: 52px 1.4fr 1.2fr auto auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  text-align: left;
}

.dir-row:last-child {
  border-bottom: none;
}

.dir-row:hover {
  background: var(--teal-soft);
}

@media (max-width: 720px) {
  .dir-row {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
  }
  .dir-row .hide-sm {
    display: none;
  }
}

.dir-row img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.dir-row .name {
  font-weight: 650;
}

.dir-row .muted {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
}

.badge-probezeit {
  color: var(--probe);
  background: var(--probe-bg);
}

.badge-icon-only {
  padding: 0.28rem;
  min-width: 1.5rem;
  justify-content: center;
}

.badge-icon-only svg {
  display: block;
}

.badge-aktiv {
  color: var(--aktiv);
  background: var(--aktiv-bg);
}

.badge-warn {
  color: #9a3412;
  background: #ffedd5;
  border-color: #9a3412;
}

.badge-ausfall {
  color: #334155;
  background: #e2e8f0;
  border-color: #64748b;
}

.badge-out {
  color: #7f1d1d;
  background: #fee2e2;
  border-color: #991b1b;
}

.profile-hr {
  margin: 1.1rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
}

.profile-hr h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
  color: var(--ink-muted);
  font-weight: 650;
}

.profile-hr dl {
  margin: 0.5rem 0;
}

.profile-hr .muted {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.path-block {
  display: grid;
  gap: 0.35rem;
  margin: 0.85rem 0 0;
  max-width: 100%;
  min-width: 0;
}

.path-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.path-full {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.7rem;
  background: #f1f5f4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.btn-copy-path {
  justify-self: start;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

.badge-mensch {
  color: var(--mensch);
  background: #eee;
  border-color: #bbb;
}

.badge-ki {
  color: var(--ki);
  background: var(--teal-soft);
}

/* Profile */
.profile {
  display: none;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.75rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.profile.is-open {
  display: grid;
}

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

.profile-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-2);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}

.profile h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
}

.profile .role-line {
  color: var(--ink-muted);
  margin: 0;
}

.profile dl {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.55rem 1rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.profile dt {
  color: var(--ink-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile dd {
  margin: 0;
}

.profile-bio {
  margin: 0;
  max-width: 40rem;
}

.profile-skills {
  margin: 1.1rem 0 0;
}

.profile-skills h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
  color: var(--ink-muted);
  font-weight: 650;
}

.profile-skills ul {
  margin: 0;
  padding-left: 1.1rem;
  max-width: 36rem;
}

.profile-skills li {
  margin: 0.2rem 0;
  font-size: 0.95rem;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--teal-deep);
  background: var(--teal-deep);
  color: #fff;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
}

.btn:hover {
  filter: brightness(1.05);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.empty {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* —— KI-Einarbeitung —— */
.eo-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .eo-layout {
    grid-template-columns: 1.35fr 0.9fr;
    align-items: start;
  }
}

.eo-people h3,
.eo-steps h3,
.eo-criteria h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.eo-side {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.eo-lead {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.eo-people-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.eo-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(5, 8, 7, 0.12);
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.eo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(5, 8, 7, 0.12);
}

.eo-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.eo-card-head img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.eo-card-head .name {
  display: block;
  font-weight: 650;
}

.eo-progress {
  display: flex;
  gap: 0.28rem;
  margin: 0.75rem 0 0.45rem;
  flex-wrap: wrap;
}

.eo-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d5e0dd;
  border: 1px solid #b7c7c2;
}

.eo-dot.is-done {
  background: var(--teal);
  border-color: var(--teal-deep);
}

.eo-dot.is-next {
  background: var(--green);
  border-color: #c5ce5a;
  box-shadow: 0 0 0 2px rgba(219, 228, 112, 0.55);
}

.eo-status {
  margin: 0;
  font-size: 0.9rem;
}

.eo-note {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
}

.eo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.eo-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.eo-step-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.eo-step-n {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 0.8rem;
}

.eo-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.eo-step-body strong {
  font-size: 0.92rem;
}

.eo-step-body code {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.section-head .hint a {
  color: var(--teal-deep);
}

/* —— Content-Kalender / Social Desk —— */
.content-desk {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.desk-intro h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sm-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.sm-filters {
  flex-wrap: wrap;
}

.sm-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.8);
}

.sm-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.sm-day-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  font-family: Syne, Manrope, sans-serif;
}

.sm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}

.sm-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  min-height: 100%;
}

.sm-visual {
  position: relative;
  aspect-ratio: 1.2 / 1;
  background:
    linear-gradient(145deg, rgba(37, 158, 146, 0.18), rgba(15, 40, 55, 0.55)),
    #0f2837;
  overflow: hidden;
}

.sm-visual.ch-instagram,
.sm-visual.ch-instagram-story {
  aspect-ratio: 1 / 1;
}

.sm-visual.ch-linkedin {
  aspect-ratio: 1.91 / 1;
}

.sm-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sm-visual-fallback {
  display: none;
  position: absolute;
  inset: 0;
  padding: 1rem;
  color: #fff;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
}

.sm-visual.is-fallback .sm-visual-fallback {
  display: flex;
}

.sm-visual-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.sm-format {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.sm-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 0.9rem 1rem;
  flex: 1;
}

.sm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.sm-channel {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.sm-channel.ch-linkedin {
  background: #e8f1ff;
  color: #0a66c2;
}

.sm-channel.ch-instagram,
.sm-channel.ch-instagram-story {
  background: #fce7f3;
  color: #9d174d;
}

.sm-channel.ch-website {
  background: #ecfdf5;
  color: #047857;
}

.sm-when {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink);
}

.sm-hook {
  margin: 0;
  font-size: 1.05rem;
  font-family: Syne, Manrope, sans-serif;
  line-height: 1.25;
}

.sm-headline {
  margin: 0;
  font-size: 0.86rem;
}

.sm-caption,
.sm-caption-full {
  margin: 0;
  white-space: pre-wrap;
  font-family: Manrope, sans-serif;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink);
  background: rgba(15, 40, 55, 0.04);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
}

.sm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.sm-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.75rem;
}

.sm-foot code {
  font-size: 0.72rem;
}

.sm-note {
  margin: 0;
  font-size: 0.78rem;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 0.45rem 0.6rem;
}

.badge.status-offen { background: #f1f5f9; color: #334155; }
.badge.status-entwurf { background: #fef3c7; color: #92400e; }
.badge.status-entwurf-v2 { background: #ffedd5; color: #9a3412; }
.badge.status-bereit-blocker-links { background: #fee2e2; color: #991b1b; }
.badge.status-ready { background: #dcfce7; color: #166534; }
.badge.status-gepostet { background: #e0e7ff; color: #3730a3; }

@media (max-width: 720px) {
  .sm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Lab / Hub / Fund sidebar (Todoist-style) ===== */
.nav-pillar {
  margin-bottom: 0.55rem;
}

.nav-pillar-btn,
.nav-folder-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(244, 247, 246, 0.92);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  text-align: left;
}

.nav-pillar-btn:hover,
.nav-folder-btn:hover {
  background: rgba(100, 185, 175, 0.12);
  border-color: rgba(100, 185, 175, 0.28);
}

.nav-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid rgba(244, 247, 246, 0.55);
  border-bottom: 1.5px solid rgba(244, 247, 246, 0.55);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  margin-top: -0.1rem;
}

.nav-pillar.is-open > .nav-pillar-btn .nav-chevron,
.nav-folder.is-open > .nav-folder-btn .nav-chevron {
  transform: rotate(45deg);
  margin-top: 0;
}

.nav-pillar-items {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.15rem 0 0.35rem 0.35rem;
}

.nav-pillar.is-open > .nav-pillar-items {
  display: flex;
}

.nav-folder {
  margin: 0.15rem 0;
}

.nav-folder-btn {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(244, 247, 246, 0.82);
  padding: 0.45rem 0.75rem;
}

.nav-folder-items {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 0.55rem;
  margin-bottom: 0.2rem;
}

.nav-folder.is-open > .nav-folder-items {
  display: flex;
}

.nav-folder-items a,
.nav-pillar-items > a,
.nav-custom a {
  font-size: 0.86rem;
  padding: 0.45rem 0.75rem;
}

.nav-add {
  margin-top: 0.15rem;
  background: transparent;
  border: 1px dashed rgba(100, 185, 175, 0.35);
  color: rgba(244, 247, 246, 0.55);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  text-align: left;
}

.nav-add:hover {
  color: #fff;
  border-color: var(--teal);
  background: rgba(100, 185, 175, 0.12);
}

.nav-empty-hint {
  opacity: 0.45;
  font-style: italic;
}

.nav-custom {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Events + LIHGA */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.event-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 10px 28px rgba(5, 8, 7, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  border-color: rgba(100, 185, 175, 0.55);
  box-shadow: 0 16px 36px rgba(5, 8, 7, 0.1);
}

.event-card h3 {
  margin: 0.35rem 0 0.4rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.event-status {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-soft);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.55rem;
}

.event-dates,
.event-place {
  margin: 0.15rem 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.desk-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 28px rgba(5, 8, 7, 0.05);
}

.lihga-hero {
  background:
    radial-gradient(ellipse 55% 70% at 90% 0%, rgba(100, 185, 175, 0.22), transparent 55%),
    linear-gradient(160deg, #050807 0%, #0d1c1a 100%);
  color: #f4f7f6;
  border: none;
}

.lihga-hero .muted {
  color: rgba(244, 247, 246, 0.62);
}

.lihga-tip {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

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

.lihga-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.lihga-table th,
.lihga-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.55rem;
  vertical-align: top;
  text-align: left;
}

.lihga-table th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.lihga-table td.is-da {
  background: rgba(100, 185, 175, 0.08);
}

.lihga-table td.is-away {
  background: rgba(232, 93, 76, 0.08);
}

.lihga-table tr.is-always td {
  background: var(--teal-soft);
}

.lihga-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  color: var(--teal-deep);
}

.lihga-table td.is-away .lihga-status {
  color: #b45309;
}

.lihga-input,
.desk-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  color: var(--ink);
}

.lihga-input::placeholder {
  color: rgba(5, 8, 7, 0.35);
  font-style: italic;
}

.desk-textarea {
  min-height: 160px;
  resize: vertical;
}

.lihga-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

/* LIHGA stand plan — readable HTML floorplan */
.stand-plan-card .stand-plan-lead {
  margin: 0 0 0.85rem;
}

.fp {
  --fp-line: #313131;
  --fp-open: #e6f8f6;
  --fp-demo: #eef6c8;
  --fp-tech: #eef1f0;
  --fp-bar: #d8f3ef;
  --fp-path: #f7faf9;
  margin: 0 0 1.25rem;
}

.fp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.fp-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.fp-title {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.fp-dims {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.fp-shell {
  position: relative;
  border: 3px solid var(--fp-line);
  border-radius: 4px;
  background: #fff;
  padding-left: 2.6rem;
}

.fp-entrance {
  position: absolute;
  left: 0;
  top: 38%;
  bottom: 38%;
  width: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  border-right: 3px solid var(--fp-line);
}

.fp-entrance-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.fp-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  grid-template-rows: minmax(7.5rem, auto) minmax(3.25rem, auto) minmax(8rem, auto);
  grid-template-areas:
    "open demo"
    "path path"
    "tech bar";
}

.fp-zone {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(49, 49, 49, 0.18);
  min-width: 0;
}

.fp-zone-open { grid-area: open; background: var(--fp-open); }
.fp-zone-demo { grid-area: demo; background: var(--fp-demo); }
.fp-zone-path { grid-area: path; background: var(--fp-path); justify-content: center; padding: 0.65rem 1rem; }
.fp-zone-tech { grid-area: tech; background: var(--fp-tech); }
.fp-zone-bar { grid-area: bar; background: var(--fp-bar); }

.fp-zone-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.fp-zone-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.fp-zone-meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.fp-path-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.2rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-soft), #fff 40%, var(--teal-soft));
  border: 2px dashed #1a6f9a;
}

.fp-path-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #1a6f9a;
  flex: 0 0 auto;
}

.fp-path-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a6f9a;
}

.fp-path-arrow {
  margin-left: auto;
  font-size: 1.25rem;
  color: #1a6f9a;
  font-weight: 700;
}

.fp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.fp-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.fp-swatch {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  border: 1px solid rgba(49, 49, 49, 0.35);
  border-radius: 2px;
}

.fp-swatch-open { background: var(--fp-open); }
.fp-swatch-demo { background: var(--fp-demo); }
.fp-swatch-tech { background: var(--fp-tech); }
.fp-swatch-bar { background: var(--fp-bar); }
.fp-swatch-path { background: #fff; border-style: dashed; border-color: #1a6f9a; }

.fp-note {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* SVG-Grundriss nach Whiteboard-Skizze */
.fp-sketch .fp-visual-wrap {
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #f7faf9;
  padding: 0.5rem;
}

.fp-visual-svg {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
  max-height: none;
  touch-action: none;
  user-select: none;
}

.fp-visual-svg .fp-furn {
  cursor: grab;
}

.fp-visual-svg .fp-furn.is-dragging {
  cursor: grabbing;
  opacity: 0.92;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.fp-visual-svg .fp-furn .fp-svg-label {
  cursor: text;
  pointer-events: auto;
}

.fp-furn-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 1px;
  pointer-events: none;
  text-align: center;
}

.fp-furn-inner .fp-furn-name {
  pointer-events: auto;
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  padding: 1px 3px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid transparent;
  border-radius: 3px;
  text-align: center;
}

.fp-furn-inner .fp-furn-meta {
  display: block;
  font: 600 10px "Space Grotesk", system-ui, sans-serif;
  color: #313131;
  line-height: 1.15;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 2px;
  padding: 1px 4px;
  pointer-events: none;
  white-space: nowrap;
}

.fp-visual-svg .fp-svg-dim {
  font: 600 13px "Space Grotesk", system-ui, sans-serif;
  fill: #55575a;
}

.fp-visual-svg .fp-svg-entrance {
  font: 700 12px "Space Grotesk", system-ui, sans-serif;
  fill: #313131;
  letter-spacing: 0.06em;
}

.fp-visual-svg .fp-svg-furn-mark {
  font: 700 14px "Space Grotesk", system-ui, sans-serif;
  fill: #313131;
}

.fp-svg-label {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font: 600 13px "Space Grotesk", system-ui, sans-serif;
  color: #313131;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 3px;
  padding: 2px 6px;
  line-height: 1.25;
}

.fp-svg-label.fp-svg-zone-title {
  font-size: 15px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.55);
}

.fp-svg-label.fp-svg-zone-meta {
  font-size: 12px;
  font-weight: 500;
  color: #55575a;
}

.fp-svg-label.fp-svg-area-label {
  font-size: 16px;
  font-weight: 700;
  color: #313131;
  background: rgba(255, 255, 255, 0.65);
  text-align: right;
}

.fp-svg-label.fp-svg-rotated-label {
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  color: #55575a;
  background: transparent;
}

.fp-svg-label.fp-svg-path-label {
  font-size: 14px;
  font-weight: 700;
  color: #1a6f9a;
  text-align: center;
  background: rgba(230, 248, 246, 0.9);
  border: 1px dashed #1a6f9a;
}

.fp-svg-label:hover,
.fp-svg-label:focus {
  border-color: rgba(49, 190, 176, 0.6);
  background: #fff;
  outline: none;
}

.fp-sketch-hint {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.fp-sketch .fp-title-input,
.fp-sketch .fp-dims-input,
.fp-sketch .fp-note-input {
  font: inherit;
  color: inherit;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
}

.fp-sketch .fp-title-input:hover,
.fp-sketch .fp-title-input:focus,
.fp-sketch .fp-dims-input:hover,
.fp-sketch .fp-dims-input:focus,
.fp-sketch .fp-note-input:hover,
.fp-sketch .fp-note-input:focus {
  background: #fff;
  border-color: rgba(49, 49, 49, 0.2);
  outline: none;
}

/* Legacy HTML grid (unused) — kept minimal */
.fp-editable input[type="text"] {
  font: inherit;
  color: inherit;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  min-width: 0;
  width: 100%;
}

.fp-editable input[type="text"]:hover,
.fp-editable input[type="text"]:focus {
  background: #fff;
  border-color: rgba(49, 49, 49, 0.25);
  outline: none;
}

.fp-title-input {
  display: block;
  margin: 0.15rem 0 0;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  padding: 0.1rem 0.25rem;
}

.fp-dims-input {
  font-size: 0.9rem !important;
  color: var(--ink-muted) !important;
  text-align: right;
  max-width: 28rem;
  padding: 0.2rem 0.35rem;
}

.fp-entrance-input {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink) !important;
  text-align: center;
  height: 100%;
  padding: 0.35rem 0.1rem;
}

.fp-zone-name-input {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  padding: 0.1rem 0.3rem;
  flex: 1 1 8rem;
}

.fp-zone-meta-input {
  font-size: 0.85rem !important;
  color: var(--ink-muted) !important;
  padding: 0.1rem 0.3rem;
  flex: 1 1 8rem;
}

.fp-path-input {
  flex: 1 1 auto;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #1a6f9a !important;
  padding: 0.15rem 0.35rem;
}

.fp-note-input {
  margin-top: 0.55rem;
  font-size: 0.85rem !important;
  color: var(--ink-muted) !important;
  padding: 0.35rem 0.45rem;
}

.fp-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 2rem;
}

.fp-item {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.25rem 0.2rem 0.35rem;
  border: 1.5px solid rgba(49, 49, 49, 0.35);
  border-radius: 4px;
  background: #fff;
  max-width: 100%;
}

.fp-item.is-accent {
  background: var(--teal);
  border-color: var(--teal-deep);
}

.fp-item.is-dragging {
  opacity: 0.45;
}

.fp-zone.is-over {
  outline: 2px dashed var(--teal-deep);
  outline-offset: -4px;
}

.fp-item-drag {
  cursor: grab;
  color: var(--ink-muted);
  font-size: 0.75rem;
  user-select: none;
  padding: 0 0.15rem;
}

.fp-item-input {
  width: auto !important;
  min-width: 6rem;
  max-width: 14rem;
  flex: 1 1 auto;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  padding: 0.15rem 0.25rem !important;
  border: none !important;
  background: transparent !important;
}

.fp-item-input:hover,
.fp-item-input:focus {
  background: rgba(255, 255, 255, 0.7) !important;
  border: none !important;
}

.fp-item-del,
.fp-item-accent-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
}

.fp-item-del:hover,
.fp-item-accent-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink);
}

.fp-add-item {
  align-self: flex-start;
  margin-top: 0.15rem;
  border: 1px dashed rgba(49, 49, 49, 0.35);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
}

.fp-add-item:hover {
  color: var(--ink);
  border-color: var(--teal-deep);
  background: #fff;
}

.fp-actions {
  align-items: center;
  margin-top: 0.75rem;
}

@media (max-width: 720px) {
  .fp-dims-input {
    text-align: left;
    max-width: none;
  }

  .fp-entrance-input {
    writing-mode: horizontal-tb;
    transform: none;
    height: auto;
  }

  .fp-item-input {
    max-width: 11rem;
  }
}

@media (max-width: 720px) {
  .fp-shell {
    padding-left: 0;
    padding-top: 2.2rem;
  }

  .fp-entrance {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: auto;
    height: 2.2rem;
    border-right: none;
    border-bottom: 3px solid var(--fp-line);
  }

  .fp-entrance-label {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .fp-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas:
      "open"
      "demo"
      "path"
      "tech"
      "bar";
  }

  .fp-zone-name-input {
    font-size: 1.1rem !important;
  }

  .fp-item-input {
    font-size: 0.95rem !important;
  }
}

.stand-plan-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
}

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

.stand-plan-refs {
  margin-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0.75rem;
}

.stand-plan-refs summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-muted);
  list-style: none;
}

.stand-plan-refs summary::-webkit-details-marker {
  display: none;
}

.stand-plan-refs summary::before {
  content: "▸ ";
  color: var(--teal-deep);
}

.stand-plan-refs[open] summary::before {
  content: "▾ ";
}

.stand-plan-meta-single {
  grid-template-columns: 1fr;
}

.stand-plan-figure {
  margin: 0;
  background: #f4f6f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.stand-plan-figure a {
  display: block;
}

.stand-plan-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #fff;
}

.stand-plan-ref img {
  max-height: 360px;
}

.stand-plan-figure figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.stand-plan-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

@media (max-width: 700px) {
  .stand-plan-meta {
    grid-template-columns: 1fr;
  }
}

.stand-plan-sub {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.stand-plan-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink);
  line-height: 1.45;
}

.stand-plan-list li + li {
  margin-top: 0.25rem;
}

.empty-panel .empty {
  margin: 0;
}

@media (max-width: 860px) {
  .nav-pillar-items {
    flex-direction: column;
  }
}

/* LIHGA free planning board */
.plan-scratch-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

.plan-scratch {
  margin-bottom: 1rem;
}

.plan-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 0.75rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .plan-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .plan-board {
    grid-template-columns: 1fr;
  }
}

.plan-lane {
  background: rgba(5, 8, 7, 0.03);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.65rem;
  min-height: 220px;
}

.plan-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
}

.plan-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-soft);
  border-radius: var(--radius-pill);
  padding: 0.12rem 0.45rem;
}

.plan-lane-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 80px;
  padding: 0.15rem;
  border-radius: 0.75rem;
  transition: background 0.15s ease, outline-color 0.15s ease;
}

.plan-lane-body.is-over {
  background: rgba(100, 185, 175, 0.14);
  outline: 1px dashed var(--teal);
}

.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.55rem 0.6rem 0.65rem;
  box-shadow: 0 6px 16px rgba(5, 8, 7, 0.05);
}

.plan-card.is-dragging {
  opacity: 0.45;
}

.plan-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.plan-drag {
  cursor: grab;
  color: rgba(5, 8, 7, 0.35);
  font-size: 0.85rem;
  letter-spacing: -0.08em;
  user-select: none;
  padding: 0.1rem 0.25rem;
}

.plan-drag:active {
  cursor: grabbing;
}

.plan-del {
  border: none;
  background: transparent;
  color: rgba(5, 8, 7, 0.35);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.1rem 0.35rem;
  border-radius: 0.4rem;
}

.plan-del:hover {
  color: #b45309;
  background: #fff4e5;
}

.plan-title,
.plan-when,
.plan-notes {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding: 0.35rem 0.4rem;
  font: inherit;
  background: transparent;
  color: var(--ink);
  resize: vertical;
}

.plan-title:focus,
.plan-when:focus,
.plan-notes:focus {
  outline: none;
  border-color: rgba(100, 185, 175, 0.55);
  background: rgba(100, 185, 175, 0.06);
}

.plan-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.plan-when {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 0.15rem;
}

.plan-notes {
  font-size: 0.84rem;
  min-height: 4.2rem;
  line-height: 1.35;
}

.plan-add-card {
  width: 100%;
  margin-top: 0.55rem;
  border: 1px dashed rgba(100, 185, 175, 0.45);
  background: transparent;
  color: var(--teal-deep);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.plan-add-card:hover {
  background: rgba(100, 185, 175, 0.12);
}

/* Zeiterfassung */
.zeit-hero {
  background:
    radial-gradient(ellipse 55% 70% at 90% 0%, rgba(100, 185, 175, 0.22), transparent 55%),
    linear-gradient(160deg, #050807 0%, #0d1c1a 100%);
  color: #f4f7f6;
  border: none;
}

.zeit-hero .muted {
  color: rgba(244, 247, 246, 0.62);
}

.zeit-hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
}

.zeit-person-pick {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 247, 246, 0.65);
}

.zeit-person-pick select {
  min-width: 220px;
  border-radius: 0.7rem;
  border: 1px solid rgba(100, 185, 175, 0.45);
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.zeit-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-bottom: 0;
}

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

.zeit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
}

.zeit-form label,
.zeit-profile-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.zeit-form input,
.zeit-form select,
.zeit-profile-form input {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.5rem 0.6rem;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
}

.zeit-span-2 {
  grid-column: 1 / -1;
}

.zeit-profile-form {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.zeit-mini-stats,
.zeit-month-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.zeit-month-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 0.9rem;
}

@media (max-width: 900px) {
  .zeit-month-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.zeit-mini-stats div,
.zeit-month-stats div {
  background: rgba(100, 185, 175, 0.1);
  border: 1px solid rgba(100, 185, 175, 0.22);
  border-radius: 0.85rem;
  padding: 0.65rem 0.7rem;
}

.zeit-mini-stats strong,
.zeit-month-stats strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.zeit-mini-stats span,
.zeit-month-stats span {
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.zeit-month-stats .is-plus strong {
  color: var(--teal-deep);
}

.zeit-month-stats .is-minus strong,
.lihga-table td.is-minus {
  color: #b45309;
}

.zeit-month-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zeit-table td {
  white-space: nowrap;
}

.zeit-table td:nth-child(6),
.zeit-table td:nth-child(8) {
  white-space: normal;
  min-width: 120px;
}

/* Simple Excel-like sheet */
.zeit-simple-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.zeit-simple-left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.zeit-simple-left select {
  min-width: 200px;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.5rem 0.65rem;
  font: inherit;
  background: #fff;
}

.zeit-simple-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.zeit-simple-stats strong {
  color: var(--ink);
}

.zeit-simple-stats .is-plus strong {
  color: var(--teal-deep);
}

.zeit-simple-stats .is-minus strong {
  color: #b45309;
}

.zeit-sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.zeit-sheet th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
}

.zeit-sheet td {
  padding: 0.2rem 0.35rem;
  border-bottom: 1px solid rgba(5, 8, 7, 0.06);
}

.zeit-sheet tr.is-weekend {
  background: rgba(5, 8, 7, 0.03);
}

.zeit-date {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  width: 4.5rem;
  color: var(--ink-muted);
}

.zeit-cell {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  padding: 0.4rem 0.45rem;
  font: inherit;
  background: transparent;
}

.zeit-cell:hover {
  border-color: rgba(100, 185, 175, 0.35);
  background: #fff;
}

.zeit-cell:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(100, 185, 175, 0.18);
}

.zeit-sheet td:nth-child(2) {
  width: 6.5rem;
}

.zeit-sheet td:nth-child(3) {
  width: 12rem;
}

.zeit-profile-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
}

.zeit-profile-inline label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.zeit-profile-inline input {
  width: 5.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.35rem 0.45rem;
  font: inherit;
}

.zeit-ferien td {
  padding: 0.55rem 0.45rem;
}

.zeit-ferien tr.is-selected td {
  background: rgba(0, 87, 255, 0.06);
}

.zeit-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.zeit-tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
}

.zeit-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.zeit-ferien-hero {
  margin-bottom: 0.85rem;
}

.zeit-ferien-hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.zeit-ferien-hero-top select {
  min-width: 200px;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.5rem 0.65rem;
  font: inherit;
  background: #fff;
}

.zeit-ferien-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.65rem;
}

.zeit-ferien-card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #fafafa;
}

.zeit-ferien-card.is-highlight {
  background: rgba(0, 87, 255, 0.08);
  border-color: rgba(0, 87, 255, 0.25);
}

.zeit-ferien-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.zeit-ferien-num {
  font-size: 1.65rem;
  line-height: 1.1;
}

.zeit-ferien-unit {
  font-size: 0.78rem;
  color: var(--muted);
}

.zeit-ferien-bar-wrap {
  margin-top: 1rem;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.zeit-ferien-bar {
  height: 100%;
  background: linear-gradient(90deg, #0057ff, #3d8bff);
  border-radius: 999px;
  min-width: 2px;
}

.zeit-sheet-full .zeit-time {
  min-width: 4.5rem;
  max-width: 5rem;
  font-variant-numeric: tabular-nums;
}

.zeit-sheet-scroll {
  overflow-x: auto;
}

.zeit-sheet-full {
  min-width: 900px;
}

.zeit-sheet-full .zeit-wide {
  min-width: 9rem;
}

.zeit-sheet-full tr.is-contact {
  background: rgba(0, 87, 255, 0.04);
}

.zeit-sheet-full tr.is-contact td:first-child {
  box-shadow: inset 3px 0 0 rgba(0, 87, 255, 0.45);
}

.zeit-sheet-full td:first-child input[type="date"] {
  min-width: 9rem;
}

.zeit-del {
  min-width: 2rem;
  padding: 0.2rem 0.45rem;
  font-size: 1.1rem;
  line-height: 1;
}

/* Startup time log (ab Aug 2026) */
.zeit-legacy-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  margin-bottom: 0.75rem;
  background: #f6f7f9;
  border-style: dashed;
}

.zeit-legacy-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: #e8eaee;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
}

.zeit-modern-bar {
  margin-bottom: 0.75rem;
}

.zeit-quick-log {
  margin-bottom: 0.75rem;
}

.zeit-quick-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.zeit-quick-form {
  display: grid;
  grid-template-columns: 9rem 4.5rem 4.5rem 4rem minmax(7rem, 1fr) 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.zeit-quick-hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .zeit-quick-form {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .zeit-quick-note {
    grid-column: 1 / -1;
  }
  #zeit-quick-add {
    grid-column: 1 / -1;
  }
}

.zeit-quick-form input,
.zeit-quick-form select {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.5rem 0.6rem;
  font: inherit;
  background: #fff;
}

.zeit-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.zeit-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cat) 12%, white);
  border: 1px solid color-mix(in srgb, var(--cat) 35%, white);
  color: var(--ink);
}

.zeit-cat-pill strong {
  font-variant-numeric: tabular-nums;
}

.zeit-log-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.zeit-day-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.zeit-day-group.is-weekend {
  opacity: 0.72;
}

.zeit-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.85rem;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}

.zeit-day-label {
  font-weight: 650;
}

.zeit-day-total {
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.zeit-day-entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zeit-log-row {
  display: grid;
  grid-template-columns: 0.5rem 4rem 4rem 3.5rem minmax(6.5rem, 9rem) 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.zeit-log-row:last-child {
  border-bottom: none;
}

.zeit-log-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
}

.zeit-log-hours {
  width: 100%;
}

.zeit-modern-cell {
  border: 1px solid transparent;
  border-radius: 0.45rem;
  padding: 0.35rem 0.45rem;
  font: inherit;
  background: transparent;
}

.zeit-modern-cell:hover {
  border-color: var(--line);
  background: #fff;
}

.zeit-modern-cell:focus {
  outline: none;
  border-color: var(--teal-deep);
  background: #fff;
}

.zeit-log-cat {
  font-size: 0.82rem;
  border-left: 3px solid var(--cat);
  padding-left: 0.4rem;
}

.zeit-day-add {
  width: 100%;
  border-radius: 0;
  border: none;
  border-top: 1px dashed var(--line);
  padding: 0.45rem;
  font-size: 0.82rem;
}

.zeit-empty {
  padding: 2rem 1rem;
  text-align: center;
}

/* Live timer */
.zeit-timer-card {
  margin-bottom: 0.75rem;
  border: 1px solid var(--line);
}

.zeit-timer-card.is-running {
  border-color: rgba(0, 87, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 87, 255, 0.06), rgba(100, 185, 175, 0.08));
}

.zeit-timer-idle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
}

.zeit-timer-idle-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.zeit-timer-idle-fields select,
.zeit-timer-idle-fields input {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.5rem 0.65rem;
  font: inherit;
  background: #fff;
}

.zeit-timer-note {
  flex: 1;
  min-width: 160px;
}

.zeit-timer-hint {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
}

.zeit-timer-running {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.zeit-timer-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.zeit-timer-pulse {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #0057ff;
  animation: zeit-pulse 1.4s ease-in-out infinite;
}

@keyframes zeit-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.zeit-timer-elapsed {
  display: block;
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.zeit-timer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.zeit-timer-round {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-right: 0.25rem;
}

.zeit-timer-start-btn {
  min-width: 7rem;
}


/* Bewertungskriterien block */
.eo-steps h3,
.eo-criteria h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.eo-side {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.eo-criteria {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.eo-dim-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.eo-dim-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.eo-dim-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.eo-dim-list strong {
  color: var(--teal-deep);
  font-size: 0.88rem;
}

.eo-dim-range {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

.eo-dim-hi,
.eo-dim-lo {
  font-weight: 700;
  color: var(--ink);
  margin-right: 0.2rem;
}

.eo-plus {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.eo-threshold {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.eo-threshold th,
.eo-threshold td {
  text-align: left;
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.eo-threshold th {
  color: var(--ink-muted);
  font-weight: 650;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.eo-threshold td:first-child {
  font-weight: 700;
  color: var(--teal-deep);
  white-space: nowrap;
  width: 4.5rem;
}

.eo-criteria-note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
}



/* Organigramm KI — 1:1 digihub-intranet (dunkle Karte, heller Text, Green-Akzent) */
.org-node.is-ki {
  border-color: rgba(219, 228, 112, 0.45) !important;
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(219, 228, 112, 0.22), transparent 55%),
    linear-gradient(165deg, #2a2c24 0%, #1a1b16 100%) !important;
  color: #f4f5ee !important;
  box-shadow:
    0 0 0 1px rgba(219, 228, 112, 0.14) inset,
    0 14px 32px -18px rgba(0, 0, 0, 0.45);
}
.org-node.is-ki .name {
  color: #f4f5ee !important;
}
.org-node.is-ki .role,
.org-node.is-ki .org-since {
  color: rgba(244, 245, 238, 0.62) !important;
}
.org-node.is-ki .org-eo,
.org-tag-probe {
  background: var(--green) !important;
  color: #313131 !important;
}
.badge-probezeit {
  background: var(--green) !important;
  color: #313131 !important;
}
.org-node.is-ki:hover {
  border-color: var(--green) !important;
}

/* —— Planung (Kunden-Pipeline) —— */
.planung-desk {
  margin-top: 0.25rem;
}

.planung-panel {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal) 12%, #fff) 0%, #fff 48%, color-mix(in srgb, var(--green) 14%, #fff) 100%);
}

@media (min-width: 900px) {
  .planung-panel {
    grid-template-columns: 1.4fr 0.9fr;
    gap: 2rem;
  }
}

.planung-blurb {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.45;
  max-width: 36rem;
}

.planung-features {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
  color: var(--ink);
  max-width: 34rem;
}

.planung-features li {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

.planung-note {
  margin: 0 0 1.15rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 34rem;
}

.planung-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.planung-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 10rem;
}

.planung-preview-card {
  width: min(100%, 18rem);
  padding: 1.35rem 1.25rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid color-mix(in srgb, var(--teal-deep) 35%, var(--line));
  background: #fff;
  box-shadow: 0 18px 40px rgba(49, 49, 49, 0.08);
  display: grid;
  gap: 0.35rem;
}

.planung-preview-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.planung-preview-card strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.planung-preview-meta {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

/* —— Leitbild & Ethik-Codex —— */
.leitbild-desk {
  margin-top: 0.25rem;
}

.leitbild-hero {
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal) 14%, #fff) 0%, #fff 55%, color-mix(in srgb, var(--green) 12%, #fff) 100%);
}

.leitbild-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}

.leitbild-hero h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

.leitbild-slogan {
  margin: 0;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--teal) 70%, var(--ink));
  font-weight: 550;
}

.leitbild-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .leitbild-grid {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.leitbild-toc {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  position: sticky;
  top: 0.75rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.leitbild-toc strong {
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.leitbild-toc-link {
  display: block;
  font-size: 0.82rem;
  line-height: 1.3;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  text-decoration: none;
  padding: 0.2rem 0;
}

.leitbild-toc-link:hover {
  color: var(--teal);
}

.leitbild-body {
  display: grid;
  gap: 1.25rem;
}

.leitbild-block {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: #fff;
}

.leitbild-block h3 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
}

.leitbild-block h4 {
  margin: 1rem 0 0.4rem;
  font-size: 0.98rem;
  color: color-mix(in srgb, var(--teal) 55%, var(--ink));
}

.leitbild-block > p {
  margin: 0 0 0.7rem;
  line-height: 1.5;
}

.leitbild-values {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 720px) {
  .leitbild-values {
    grid-template-columns: 1fr 1fr;
  }
}

.leitbild-value {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--teal) 6%, #fff);
}

.leitbild-value h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.leitbild-value p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.codex-chapters {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.codex-chapter {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--ink) 2%, #fff);
  scroll-margin-top: 1rem;
}

.codex-chapter h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--ink);
}

.codex-grundsatz {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
}

.codex-chapter ul {
  margin: 0;
  padding-left: 1.1rem;
}

.codex-chapter li {
  margin: 0.28rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.leitbild-closing {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--teal);
  background: color-mix(in srgb, var(--teal) 8%, #fff);
  font-weight: 550;
  line-height: 1.45;
}
