:root {
  --ord-ink: #10211c;
  --ord-ink-soft: #42544d;
  --ord-muted: #74827c;
  --ord-line: rgba(25, 59, 49, .11);
  --ord-green: #123f33;
  --ord-green-2: #1d7258;
  --ord-mint: #49b58b;
  --ord-cream: #f4f6f0;
  --ord-card: rgba(255, 255, 255, .82);
  --ord-shadow: 0 18px 50px rgba(28, 55, 45, .065), 0 2px 8px rgba(28, 55, 45, .03);
  --ord-shadow-hover: 0 28px 70px rgba(28, 55, 45, .11), 0 4px 12px rgba(28, 55, 45, .04);
}

html {
  background: #edf1e9;
}

body {
  position: relative;
  color: var(--ord-ink);
  background:
    linear-gradient(rgba(244, 247, 241, .88), rgba(244, 247, 241, .96)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(24, 71, 57, .025) 79px 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(24, 71, 57, .025) 79px 80px),
    #f2f5ef;
  font-feature-settings: "tnum" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .5;
}

.ambient-one {
  top: -240px;
  right: -120px;
  background: radial-gradient(circle, rgba(61, 159, 121, .16), transparent 68%);
}

.ambient-two {
  top: 52vh;
  left: -310px;
  background: radial-gradient(circle, rgba(198, 161, 95, .10), transparent 68%);
}

.topbar {
  min-height: 78px;
  background: rgba(249, 251, 247, .78);
  border-bottom: 1px solid rgba(19, 63, 51, .09);
  box-shadow: 0 1px 0 rgba(255,255,255,.7), 0 10px 40px rgba(30, 62, 51, .035);
}

.topbar::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(32, 130, 98, .25), transparent);
}

.brand {
  transition: opacity .2s ease, transform .2s ease;
}

.brand:hover {
  opacity: .72;
  transform: translateY(-1px);
}

.product strong {
  font-size: 14px;
  font-weight: 820;
  letter-spacing: .2em;
}

.product small {
  color: #89938e;
  font-weight: 700;
}

.live {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 9px;
  padding: 9px 13px 9px 14px;
  background: rgba(255,255,255,.64);
  border: 1px solid rgba(33, 108, 82, .12);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.live i {
  grid-row: 1 / 3;
  align-self: center;
  animation: ord-pulse 2.6s ease-out infinite;
}

.live span {
  color: #285e4c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.live small {
  color: #89938e;
  font-size: 9px;
}

.shell {
  width: min(1380px, calc(100% - 56px));
  padding-top: 58px;
}

.intro {
  position: relative;
  min-height: 300px;
  align-items: center;
  padding: 24px 4px 36px;
}

.intro::before {
  position: absolute;
  top: -18px;
  right: 28%;
  width: 250px;
  height: 250px;
  content: "";
  background: radial-gradient(circle, rgba(42, 133, 100, .095), transparent 70%);
  pointer-events: none;
}

.back {
  padding: 7px 10px;
  margin-left: -10px;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}

.back:hover {
  color: var(--ord-green);
  background: rgba(255,255,255,.72);
}

.kicker {
  width: fit-content;
  padding: 7px 10px;
  background: rgba(39, 126, 100, .08);
  border: 1px solid rgba(39, 126, 100, .11);
  border-radius: 999px;
  letter-spacing: .12em !important;
}

.intro h1 {
  max-width: 850px;
  margin-top: 18px;
  font-size: clamp(58px, 6vw, 88px);
  line-height: .91;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.intro h1 span {
  background: linear-gradient(105deg, #73837c 0%, #9a9f8f 50%, #5f756b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.company-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
}

.company-line p {
  margin: 0;
  color: #53655e;
  font-weight: 560;
}

.company-line span {
  padding: 5px 8px;
  color: #7f765e;
  background: rgba(219, 203, 165, .22);
  border: 1px solid rgba(155, 133, 86, .13);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.actions {
  position: relative;
  z-index: 1;
  align-items: stretch;
}

.period-control {
  min-width: 270px;
  background: rgba(255,255,255,.85) !important;
  border-color: rgba(25, 75, 59, .12) !important;
  box-shadow: var(--ord-shadow), inset 0 1px 0 #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.period-control:hover {
  transform: translateY(-2px);
  box-shadow: var(--ord-shadow-hover);
}

.period-control select {
  width: 100%;
  font-weight: 720;
  cursor: pointer;
}

.actions > button {
  width: 50px;
  color: #285e4c;
  background: rgba(255,255,255,.82);
  box-shadow: var(--ord-shadow);
  transition: transform .25s ease, color .25s ease, background .25s ease;
}

.actions > button:hover {
  color: #fff;
  background: var(--ord-green);
  transform: rotate(12deg) translateY(-2px);
}

.filter-panel {
  position: relative;
  overflow: hidden;
  padding: 19px 20px;
  background: rgba(255,255,255,.62);
  border-color: rgba(25, 75, 59, .1);
  box-shadow: 0 14px 40px rgba(25, 60, 48, .035), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
}

.filter-panel::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, #2e8c6b, #b8a26d);
}

.filter-guide strong {
  font-size: 19px;
}

.filters label {
  background: rgba(255,255,255,.9);
  border-color: rgba(25, 75, 59, .10);
  box-shadow: inset 0 1px 0 #fff, 0 5px 16px rgba(26, 57, 47, .025);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.filters label:hover,
.filters label:focus-within {
  border-color: rgba(31, 125, 93, .28);
  box-shadow: 0 0 0 4px rgba(40, 137, 103, .06);
  transform: translateY(-1px);
}

#reset-filters {
  font-size: 11px;
  font-weight: 750;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

#reset-filters:hover {
  color: #fff;
  background: var(--ord-green);
  transform: translateY(-1px);
}

.filter-summary {
  position: relative;
  padding-left: 18px;
}

.filter-summary::before {
  position: absolute;
  top: 16px;
  left: 1px;
  width: 8px;
  height: 8px;
  content: "";
  background: #37a178;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(55,161,120,.09);
}

.health-strip {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 0;
  margin: 16px 0;
  overflow: hidden;
  color: #e9f4ef;
  background:
    radial-gradient(circle at 15% -40%, rgba(102, 207, 163, .28), transparent 40%),
    linear-gradient(120deg, #123e32, #15382f 55%, #102f28);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(17, 57, 46, .16), inset 0 1px 0 rgba(255,255,255,.07);
}

.health-lead {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 22px 24px;
}

.health-ring {
  --score: 0%;
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  place-content: center;
  text-align: center;
  background: radial-gradient(circle at center, #123b31 57%, transparent 59%), conic-gradient(#65d0a5 var(--score), rgba(255,255,255,.11) 0);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(86,203,158,.12);
}

.health-ring strong {
  font: 500 24px Georgia, serif;
  line-height: 1;
}

.health-ring span {
  margin-top: 3px;
  color: rgba(255,255,255,.5);
  font-size: 8px;
}

.health-lead p,
.health-metric span {
  margin: 0 0 5px;
  color: rgba(255,255,255,.5);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.health-lead h2 {
  margin: 0 0 5px;
  font: 500 24px Georgia, serif;
}

.health-lead small,
.health-metric small {
  color: rgba(255,255,255,.5);
  font-size: 10px;
  line-height: 1.4;
}

.health-metric {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 20px 22px;
  border-left: 1px solid rgba(255,255,255,.08);
}

.health-metric strong {
  margin-bottom: 4px;
  font: 500 clamp(23px, 2.2vw, 32px) Georgia, serif;
  white-space: nowrap;
}

.kpis {
  gap: 14px;
}

.kpis article,
.panel {
  position: relative;
  overflow: hidden;
  background: var(--ord-card);
  border-color: var(--ord-line);
  border-radius: 17px;
  box-shadow: var(--ord-shadow), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
}

.kpis article {
  min-height: 205px;
  padding: 23px 24px;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.kpis article::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--tone, #4e9b7d), transparent);
  opacity: .6;
}

.kpis article::after {
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 145px;
  height: 145px;
  content: "";
  background: radial-gradient(circle, color-mix(in srgb, var(--tone, #4e9b7d) 14%, transparent), transparent 70%);
  border-radius: 50%;
}

.kpis article[data-tone="revenue"] { --tone: #2a8b69; }
.kpis article[data-tone="expense"] { --tone: #d1885d; }
.kpis article[data-tone="receivable"] { --tone: #b99652; }

.kpis article:hover {
  z-index: 2;
  border-color: rgba(34, 105, 81, .18);
  box-shadow: var(--ord-shadow-hover), inset 0 1px 0 rgba(255,255,255,.9);
  transform: translateY(-4px);
}

.kpis article.accent {
  --tone: #72d2ac;
  background:
    radial-gradient(circle at 90% 120%, rgba(99, 209, 165, .25), transparent 48%),
    linear-gradient(145deg, #164b3d, #10382e);
  border-color: rgba(255,255,255,.06);
  box-shadow: 0 24px 60px rgba(14, 57, 45, .19), inset 0 1px 0 rgba(255,255,255,.08);
}

.kpis p {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .085em;
}

.kpis p i {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--tone, #2a8b69);
  background: color-mix(in srgb, var(--tone, #2a8b69) 10%, white);
  border-radius: 8px;
  font-style: normal;
  font-size: 13px;
}

.accent p i {
  color: #bdf2db;
  background: rgba(255,255,255,.09);
}

.kpis article > strong {
  position: relative;
  z-index: 1;
  margin: 25px 0 22px;
  font-size: clamp(32px, 3vw, 44px);
}

.kpi-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kpi-foot small {
  min-width: 0;
  margin: 0 !important;
  color: #819088;
  font-size: 10px;
  line-height: 1.3;
}

.accent .kpi-foot small {
  color: rgba(255,255,255,.48);
}

.delta,
.count {
  flex: 0 0 auto;
  border: 1px solid rgba(38, 129, 96, .08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.main-grid,
.triple-grid,
.lower-grid {
  gap: 14px;
  margin-top: 14px;
}

.panel {
  padding: 25px;
  transition: box-shadow .25s ease, border-color .25s ease;
}

.panel:hover {
  border-color: rgba(33, 107, 82, .16);
  box-shadow: var(--ord-shadow-hover), inset 0 1px 0 rgba(255,255,255,.9);
}

.panel header p,
.goal > p {
  color: #75847d;
  letter-spacing: .14em;
}

.panel h2 {
  font-size: 25px;
  letter-spacing: -.035em;
}

.legend {
  padding: 7px 9px;
  background: #f4f6f2;
  border: 1px solid #e8ece6;
  border-radius: 9px;
}

.bars {
  height: 280px;
  background: repeating-linear-gradient(to bottom, rgba(35, 81, 65, .075) 0 1px, transparent 1px 66px);
  border-bottom-color: rgba(27, 67, 54, .13);
}

.bar i {
  position: relative;
  border-radius: 6px 6px 2px 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
  transform-origin: bottom;
  animation: ord-grow .75s cubic-bezier(.2,.8,.2,1) both;
}

.bar i:first-child {
  background: linear-gradient(180deg, #48a886, #1f7458);
}

.bar i:last-child {
  background: linear-gradient(180deg, #e0a177, #c8764d);
}

.bar:hover i {
  filter: brightness(1.08) saturate(1.05);
}

.bar span {
  color: #7d8a84;
  font-weight: 750;
}

.goal {
  background:
    radial-gradient(circle at 100% 0, rgba(65, 159, 123, .10), transparent 38%),
    var(--ord-card);
}

.goal > h2 {
  margin-top: 17px;
  font-size: 42px;
}

.progress {
  height: 10px;
  padding: 2px;
  background: #e5ebe5;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(18,63,51,.08);
}

.progress i {
  background: linear-gradient(90deg, #237b5d, #5bc79a);
  box-shadow: 0 3px 12px rgba(50, 157, 116, .24);
}

.insight {
  position: relative;
  overflow: hidden;
  margin-top: 31px;
  padding: 18px;
  background: linear-gradient(135deg, #eaf5ee, #f4f8f4);
  border: 1px solid rgba(38, 126, 94, .1);
  border-radius: 13px;
}

.insight::after {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 90px;
  height: 90px;
  content: "";
  background: radial-gradient(circle, rgba(71,176,134,.18), transparent 70%);
}

.metric-list {
  gap: 15px;
}

.metric-row {
  grid-template-columns: minmax(0,1fr) auto;
}

.metric-row > span {
  color: #53635c;
  font-weight: 620;
}

.metric-row strong {
  font-variant-numeric: tabular-nums;
}

.metric-row em {
  height: 6px;
}

.metric-row em i {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  transition: width .5s ease;
}

.account-total {
  margin-top: 28px;
  font-size: 38px;
}

.simple-list > div {
  padding: 13px 2px;
  transition: padding .2s ease, background .2s ease;
}

.simple-list > div:hover {
  padding-right: 8px;
  padding-left: 8px;
  background: rgba(235, 241, 235, .58);
  border-radius: 8px;
}

.ranks i {
  color: #527167;
  background: linear-gradient(145deg, #edf2ed, #e5ebe5);
  border: 1px solid #dfe6df;
}

.table-wrap {
  scrollbar-color: #b9c7c0 transparent;
  scrollbar-width: thin;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  position: sticky;
  top: 0;
  color: #7c8983;
  background: rgba(249,250,248,.92);
  font-weight: 800;
  letter-spacing: .12em;
}

td {
  color: #3d4d47;
  border-top-color: rgba(30,70,56,.075);
  transition: background .18s ease;
}

tbody tr:hover td {
  background: rgba(233, 240, 233, .72);
}

.status {
  border: 1px solid rgba(158, 115, 46, .10);
  font-weight: 750;
}

.status.overdue {
  border-color: rgba(166, 70, 47, .10);
}

.transactions {
  margin-top: 14px;
}

.workflow {
  padding: 6px 9px;
  background: #e9f4ee;
  border: 1px solid rgba(41, 129, 95, .11);
  border-radius: 999px;
  font-weight: 750;
}

footer {
  position: relative;
  overflow: hidden;
  padding-top: 34px;
  padding-bottom: 34px;
  color: #65756e;
  background: rgba(228, 234, 226, .78);
  backdrop-filter: blur(10px);
}

body.ready #dashboard > * {
  animation: ord-reveal .6s cubic-bezier(.2,.8,.2,1) both;
}

body.ready #dashboard > *:nth-child(2) { animation-delay: .04s; }
body.ready #dashboard > *:nth-child(3) { animation-delay: .08s; }
body.ready #dashboard > *:nth-child(4) { animation-delay: .12s; }
body.ready #dashboard > *:nth-child(5) { animation-delay: .16s; }
body.ready #dashboard > *:nth-child(6) { animation-delay: .20s; }

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

@keyframes ord-grow {
  from { transform: scaleY(.08); opacity: .4; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes ord-pulse {
  0% { box-shadow: 0 0 0 0 rgba(39,162,118,.28); }
  70% { box-shadow: 0 0 0 7px rgba(39,162,118,0); }
  100% { box-shadow: 0 0 0 0 rgba(39,162,118,0); }
}

@media (max-width: 1120px) {
  .health-strip {
    grid-template-columns: 1.4fr repeat(3, .8fr);
  }

  .health-metric {
    padding: 18px 15px;
  }
}

.plan-analytics {
  margin-top: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(245,248,244,.94));
}

.plan-head {
  align-items: flex-end !important;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(20,63,52,.1);
}

.plan-head small {
  display: block;
  margin-top: 6px;
  color: #7a8781;
  font-size: 11px;
}

.plan-legend {
  display: flex;
  gap: 15px;
  color: #6f7c76;
  font-size: 11px;
}

.plan-legend span { display: flex; align-items: center; gap: 6px; }
.plan-legend i { width: 9px; height: 9px; background: #183f36; border-radius: 3px; }
.plan-legend span:last-child i { background: #cbd3ce; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.plan-card {
  min-width: 0;
  padding: 18px 17px 13px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(20,63,52,.11);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(26,60,50,.05);
}

.plan-card-focus { border: 2px solid #284c43; }
.plan-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plan-card-head span { color: #65746e; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.plan-card-head strong { display: block; margin-top: 7px; font: 500 28px Georgia, serif; letter-spacing: -.035em; }
.plan-card-head b { padding: 5px 7px; border-radius: 7px; font-size: 9px; white-space: nowrap; }
.plan-card-head b.good { color: #1f725a; background: #e8f3ed; }
.plan-card-head b.watch { color: #9a6136; background: #fbefe0; }

.plan-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(5px, 1fr));
  gap: 4px;
  align-items: end;
  height: 92px;
  margin-top: 17px;
  padding-top: 9px;
  border-top: 1px dashed #dde4df;
}

.plan-month { display: grid; grid-template-rows: 1fr 14px; height: 100%; min-width: 0; }
.plan-month > div { display: flex; align-items: end; justify-content: center; gap: 2px; height: 100%; }
.plan-month i { width: min(6px, 45%); min-height: 4px; border-radius: 3px 3px 1px 1px; transform-origin: bottom; animation: ord-grow .65s ease both; }
.plan-month i:first-child { background: linear-gradient(180deg, #2b7460, #173e35); }
.plan-month i:last-child { background: #cbd3ce; }
.plan-month span { overflow: hidden; color: #919b96; font-size: 7px; text-align: center; text-transform: uppercase; }

.interactive-point { cursor: crosshair; transition: filter .18s ease, transform .18s ease; }
.interactive-point:hover, .interactive-point:focus-visible { filter: saturate(1.18); transform: translateY(-3px); outline: none; }
.interactive-point:hover i:first-child, .interactive-point:focus-visible i:first-child { box-shadow: 0 0 0 2px rgba(42,116,96,.16), 0 7px 14px rgba(23,62,53,.22); }

.ordines-tooltip {
  position: fixed;
  z-index: 1000;
  width: min(270px, calc(100vw - 24px));
  padding: 14px;
  color: #eef7f2;
  background: rgba(17, 50, 42, .96);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  box-shadow: 0 18px 45px rgba(10,36,29,.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(.98);
  transition: opacity .16s ease, transform .16s ease;
  backdrop-filter: blur(16px);
}
.ordines-tooltip.visible { opacity: 1; transform: translateY(0) scale(1); }
.ordines-tooltip > strong { display: block; font: 600 16px Georgia, serif; }
.ordines-tooltip > small { display: block; margin: 3px 0 11px; color: #9fc7b9; font-size: 10px; }
.ordines-tooltip div { display: grid; gap: 6px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.11); }
.ordines-tooltip span { display: flex; justify-content: space-between; gap: 14px; color: #b9cdc6; font-size: 10px; }
.ordines-tooltip b { color: #fff; font-weight: 700; text-align: right; }

.date-detail { padding: 3px 6px; color: inherit; font: inherit; background: rgba(37,105,85,.07); border: 1px solid transparent; border-radius: 6px; cursor: pointer; white-space: nowrap; transition: .18s ease; }
.date-detail:hover, .date-detail:focus-visible { color: #1b6551; background: rgba(37,105,85,.12); border-color: rgba(37,105,85,.16); outline: none; }
.date-detail.expanded { color: #fff; background: #245f50; }
.sync-date { color: #317461; font-weight: 700; }

/* Power-BI-artige Drill-down-Erfahrung */
.demo-tour {
  display: grid;
  grid-template-columns: 1.25fr 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding: 15px 18px;
  color: #eaf4ef;
  background: linear-gradient(105deg,#123b31,#1d5546 58%,#2b725d);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  box-shadow: 0 15px 38px rgba(19,57,46,.14);
}
.demo-tour > div { display: flex; align-items: center; gap: 10px; }
.demo-tour i { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; color: #17483a; background: #dceee6; border-radius: 50%; font-size: 10px; font-style: normal; font-weight: 900; }
.demo-tour b,.demo-tour small { display: block; }
.demo-tour b { font-size: 10px; }
.demo-tour small { margin-top: 3px; color: #a9c9bd; font-size: 8px; }
.demo-tour em { color: #75a996; font-style: normal; }
.demo-tour-title { display: block !important; }
.demo-tour-title > span { display: inline-block; padding: 4px 7px; color: #1b4e40; background: #dceee6; border-radius: 999px; font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.demo-tour-title strong { display: block; margin-top: 6px; font: 600 15px Georgia,serif; }

.drill-card {
  position: relative;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.drill-card:hover,
.drill-card:focus-visible {
  z-index: 2;
  transform: translateY(-4px);
  border-color: rgba(31,98,79,.28) !important;
  box-shadow: 0 22px 52px rgba(24,61,50,.13) !important;
  outline: none;
}
.drill-card:focus-visible { box-shadow: 0 0 0 3px rgba(58,135,111,.18), 0 22px 52px rgba(24,61,50,.13) !important; }
.drill-cue {
  display: flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  margin-top: 11px;
  color: #347562;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .62;
  transition: opacity .18s ease, gap .18s ease;
}
.drill-card:hover .drill-cue,
.drill-card:focus-visible .drill-cue { gap: 9px; opacity: 1; }
.drill-cue i { font-style: normal; }
.plan-card .drill-cue { margin-top: 5px; }

body.drill-open { overflow: hidden; }
.drill-overlay { position: fixed; inset: 0; z-index: 900; }
.drill-overlay.hidden { display: none; }
.drill-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(8,27,22,.48);
  border: 0;
  backdrop-filter: blur(10px);
  animation: drill-fade .22s ease both;
}
.drill-workspace {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(1120px, calc(100vw - 36px));
  overflow: hidden;
  background: #f5f7f3;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 24px;
  box-shadow: 0 38px 100px rgba(7,29,23,.33);
  animation: drill-in .32s cubic-bezier(.22,.8,.2,1) both;
}
@keyframes drill-in { from { opacity: 0; transform: translateX(36px) scale(.985); } }
@keyframes drill-fade { from { opacity: 0; } }
.drill-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 21px 0 25px;
  color: #eaf3ee;
  background: linear-gradient(105deg,#143d33,#1d5445 58%,#276b57);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.drill-brand { display: flex; align-items: center; gap: 10px; }
.drill-brand > span { font: 700 13px Georgia,serif; letter-spacing: .19em; }
.drill-brand > i { width: 1px; height: 17px; background: rgba(255,255,255,.22); }
.drill-brand > small { color: #a9c9bd; font-size: 10px; }
.drill-brand > b { padding: 5px 8px; color: #183f35; background: #d9ede3; border-radius: 999px; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.drill-actions { display: flex; align-items: center; gap: 8px; }
.drill-back,
.drill-close,
.drill-print {
  color: inherit;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 9px;
  cursor: pointer;
  transition: .18s ease;
}
.drill-back { padding: 9px 12px; font-size: 10px; font-weight: 700; }
.drill-close { display: grid; place-items: center; width: 37px; height: 37px; font-size: 23px; line-height: 1; }
.drill-back:hover,.drill-close:hover { background: rgba(255,255,255,.15); }
.drill-back.hidden { display: none; }
.drill-scroll { height: calc(100% - 66px); overflow: auto; padding: 24px 28px 40px; }
.drill-breadcrumb { display: flex; align-items: center; gap: 7px; color: #74827c; font-size: 10px; }
.drill-breadcrumb span:not(:last-child)::after { content: "›"; margin-left: 7px; color: #aab4af; }
.drill-breadcrumb span:last-child { color: #245f4f; font-weight: 800; }
.drill-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 18px 0 24px; }
.drill-heading p { margin: 0 0 7px; color: #37816b; font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.drill-heading h2 { margin: 0; color: #173e35; font: 500 clamp(30px,4vw,48px)/1 Georgia,serif; letter-spacing: -.04em; }
.drill-heading span { display: block; margin-top: 9px; color: #76837e; font-size: 11px; }
.drill-heading-value { color: #173e35; font: 500 clamp(28px,3vw,42px) Georgia,serif; white-space: nowrap; }
.drill-content { display: grid; gap: 16px; }
.drill-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.drill-stat { padding: 17px 18px; background: #fff; border: 1px solid rgba(24,64,53,.09); border-radius: 14px; box-shadow: 0 10px 28px rgba(22,57,47,.045); }
.drill-stat span { display: block; color: #728079; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.drill-stat strong { display: block; margin-top: 8px; color: #173f35; font: 500 25px Georgia,serif; }
.drill-stat small { display: block; margin-top: 5px; color: #93a09a; font-size: 9px; }
.drill-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.45fr); gap: 14px; }
.drill-panel { min-width: 0; padding: 20px; background: #fff; border: 1px solid rgba(24,64,53,.09); border-radius: 16px; box-shadow: 0 12px 32px rgba(22,57,47,.05); }
.drill-panel > header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.drill-panel > header h3 { margin: 0; color: #21483e; font: 600 17px Georgia,serif; }
.drill-panel > header span { color: #8b9792; font-size: 9px; }
.drill-driver { display: grid; grid-template-columns: minmax(90px,1fr) 2fr auto; align-items: center; gap: 10px; margin: 11px 0; }
.drill-driver > span { overflow: hidden; color: #52635c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.drill-driver > i { height: 7px; overflow: hidden; background: #edf1ee; border-radius: 99px; }
.drill-driver > i b { display: block; height: 100%; background: linear-gradient(90deg,#2a7861,#78ad9a); border-radius: inherit; }
.drill-driver > strong { color: #264d42; font-size: 10px; }
.drill-driver.drill-row { padding: 5px 6px; border-radius: 8px; }
.drill-driver.drill-row > strong::after { content: "  ↗"; color: #2c735e; }
.drill-table-wrap { overflow-x: auto; margin: 0 -5px -5px; padding: 0 5px 5px; }
.drill-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.drill-table th { padding: 9px 10px; color: #8b9791; border-bottom: 1px solid #e5eae7; font-size: 8px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.drill-table td { padding: 11px 10px; color: #4f5f59; border-bottom: 1px solid #edf0ee; }
.drill-table td:last-child,.drill-table th:last-child { text-align: right; }
.drill-row { cursor: pointer; transition: background .15s ease; }
.drill-row:hover,.drill-row:focus-within { background: #f1f7f3; }
.drill-row td:first-child { color: #245f4f; font-weight: 800; }
.drill-row-action { padding: 5px 7px; color: #2d725e; background: #e9f3ee; border: 0; border-radius: 6px; font-size: 8px; font-weight: 800; cursor: pointer; }
.drill-empty { padding: 42px; color: #7a8882; text-align: center; }
.drill-demo-note { display: flex; align-items: center; gap: 9px; padding: 11px 13px; color: #76643c; background: #fff8e9; border: 1px solid #efe0b9; border-radius: 11px; font-size: 9px; }
.drill-demo-note b { color: #9a6b17; }
.drill-month-bars { display: grid; grid-template-columns: repeat(12,minmax(12px,1fr)); gap: 8px; align-items: end; height: 190px; padding-top: 18px; }
.drill-month-bar { display: grid; grid-template-rows: 1fr 18px; height: 100%; }
.drill-month-bar > div { display: flex; align-items: end; justify-content: center; gap: 4px; height: 100%; }
.drill-month-bar i { width: 10px; min-height: 3px; background: #245e4f; border-radius: 4px 4px 1px 1px; }
.drill-month-bar i:last-child { background: #cbd6d0; }
.drill-month-bar span { align-self: end; color: #8b9791; font-size: 8px; text-align: center; }

/* Fiktive Dokumentansicht */
.demo-document-wrap { display: grid; grid-template-columns: minmax(0,1fr) 220px; align-items: start; gap: 16px; }
.demo-document {
  position: relative;
  min-height: 760px;
  padding: clamp(30px,5vw,62px);
  color: #29352f;
  background: #fff;
  border: 1px solid #e1e6e2;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(25,54,46,.11);
}
.demo-watermark { position: absolute; top: 24px; right: 24px; padding: 7px 10px; color: #9a6328; background: #fff3df; border: 1px solid #ebd1a9; border-radius: 6px; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.document-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-bottom: 28px; border-bottom: 2px solid #1c4f42; }
.document-logo strong { display: block; color: #17463a; font: 700 19px Georgia,serif; letter-spacing: .14em; }
.document-logo span { display: block; margin-top: 6px; color: #7f8c86; font-size: 9px; }
.document-type { text-align: right; }
.document-type h3 { margin: 0; color: #1b473c; font: 500 28px Georgia,serif; }
.document-type span { color: #7f8b86; font-size: 10px; }
.document-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; margin: 34px 0; }
.document-parties small,.document-meta small { display: block; margin-bottom: 7px; color: #8a9690; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.document-parties strong { display: block; color: #233d35; font-size: 11px; }
.document-parties p { margin: 6px 0 0; color: #6b7772; font-size: 9px; line-height: 1.6; }
.document-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; padding: 16px 0; border-top: 1px solid #e6eae7; border-bottom: 1px solid #e6eae7; }
.document-meta strong { color: #31463e; font-size: 10px; }
.document-lines { width: 100%; margin-top: 31px; border-collapse: collapse; font-size: 10px; }
.document-lines th { padding: 10px 8px; color: #7f8a85; border-bottom: 1px solid #cfd8d3; font-size: 8px; text-align: left; text-transform: uppercase; }
.document-lines td { padding: 14px 8px; border-bottom: 1px solid #e8ece9; }
.document-lines th:last-child,.document-lines td:last-child { text-align: right; }
.document-totals { width: min(310px,100%); margin: 26px 0 0 auto; }
.document-totals div { display: flex; justify-content: space-between; padding: 7px 4px; color: #66736d; font-size: 10px; }
.document-totals div:last-child { margin-top: 5px; padding-top: 12px; color: #193f35; border-top: 2px solid #1b4c40; font-size: 13px; font-weight: 900; }
.document-footer { position: absolute; right: 50px; bottom: 34px; left: 50px; display: flex; justify-content: space-between; padding-top: 14px; color: #98a29d; border-top: 1px solid #e4e9e5; font-size: 8px; }
.document-side { display: grid; gap: 11px; }
.document-side-card { padding: 16px; background: #fff; border: 1px solid rgba(24,64,53,.09); border-radius: 13px; }
.document-side-card span { display: block; color: #84908b; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.document-side-card strong { display: block; margin-top: 7px; color: #254a40; font-size: 11px; }
.document-side-card p { margin: 7px 0 0; color: #77847e; font-size: 9px; line-height: 1.5; }
.drill-print { width: 100%; padding: 11px; color: #fff; background: #235c4d; border-color: #235c4d; font-size: 9px; font-weight: 800; }
.drill-print:hover { background: #18483c; }

@media (max-width: 820px) {
  .demo-tour { grid-template-columns: 1fr; gap: 10px; }
  .demo-tour > em { display: none; }
  .demo-tour-title { padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .drill-workspace { top: 8px; right: 8px; bottom: 8px; width: calc(100vw - 16px); border-radius: 18px; }
  .drill-scroll { padding: 20px 17px 30px; }
  .drill-summary { grid-template-columns: 1fr; }
  .drill-grid,.demo-document-wrap { grid-template-columns: 1fr; }
  .drill-heading { align-items: flex-start; flex-direction: column; }
  .drill-heading-value { white-space: normal; }
  .drill-month-bars { gap: 3px; overflow: hidden; }
  .drill-month-bar i { width: 6px; }
  .demo-document { min-width: 0; min-height: 700px; overflow: hidden; padding: 34px 18px 105px; }
  .document-head { align-items: flex-start; flex-direction: column; gap: 18px; }
  .document-type { text-align: left; }
  .document-type h3 { font-size: 23px; overflow-wrap: anywhere; }
  .document-parties { grid-template-columns: 1fr; gap: 20px; }
  .document-meta { grid-template-columns: 1fr; }
  .document-lines { table-layout: fixed; }
  .document-lines th,.document-lines td { overflow-wrap: anywhere; }
  .document-lines th:nth-child(1),.document-lines td:nth-child(1) { width: 30px; }
  .document-lines th:nth-child(3),.document-lines td:nth-child(3),.document-lines th:nth-child(4),.document-lines td:nth-child(4) { display: none; }
  .document-lines th:last-child,.document-lines td:last-child { width: 82px; }
  .document-footer { right: 18px; bottom: 25px; left: 18px; flex-direction: column; gap: 5px; }
}

@media print {
  body.drill-open > *:not(.drill-overlay) { display: none !important; }
  .drill-backdrop,.drill-topbar,.drill-breadcrumb,.drill-heading,.document-side,.drill-demo-note { display: none !important; }
  .drill-overlay,.drill-workspace,.drill-scroll { position: static; display: block !important; width: auto; height: auto; overflow: visible; background: #fff; box-shadow: none; }
  .demo-document { min-height: 95vh; border: 0; box-shadow: none; }
}

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

@media (max-width: 680px) {
  .plan-head { align-items: flex-start !important; flex-direction: column; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card-head strong { font-size: 30px; }
  .plan-chart { height: 105px; }
}

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

  .health-lead {
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .health-metric:nth-child(4) {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .intro h1 {
    font-size: clamp(52px, 8vw, 72px);
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 66px;
  }

  .shell {
    width: calc(100% - 24px);
    padding-top: 24px;
  }

  .intro {
    min-height: auto;
    padding: 8px 2px 26px;
  }

  .intro::before {
    display: none;
  }

  .intro h1 {
    margin-top: 14px;
    font-size: clamp(39px, 11.1vw, 44px);
    line-height: .96;
  }

  .company-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .actions {
    margin-top: 7px;
  }

  .period-control {
    min-width: 0;
  }

  .filter-panel {
    padding: 17px 15px;
  }

  .health-strip {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .health-lead,
  .health-metric,
  .health-metric:nth-child(4) {
    grid-column: auto;
    padding: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    border-left: 0;
  }

  .health-lead {
    border-top: 0;
  }

  .health-ring {
    width: 70px;
    height: 70px;
  }

  .health-metric {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .health-metric strong {
    grid-row: 1 / 3;
    grid-column: 2;
    margin: 0;
  }

  .health-metric small {
    grid-column: 1;
  }

  .kpis article {
    min-height: 180px;
    padding: 21px;
  }

  .kpis article > strong {
    margin: 20px 0 18px;
    font-size: 38px;
  }

  .panel {
    padding: 20px;
  }

  .bars {
    height: 225px;
  }

  .legend {
    display: none;
  }

  .goal > h2 {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
