/* digitreal.de — Werkbank-Sprache, eine Stufe größer. Tokens: cowork-shared/digitreal-landing/design.md §1 */

@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexSans-Light.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --surface: #ffffff;
  --sunken: #f4f4f4;
  --line: #e0e0e0;
  --line-strong: #c6c6c6;
  --fg: #161616;
  --fg-2: #525252;
  --fg-3: #6f6f6f;
  --accent: #1D4ED8;
  --primary: #1D4ED8;
  --on-primary: #ffffff;
  --primary-hover: #1a44bf;
  --ref: #8d8d8d;
  --ok: #198038;
  --pending: #8e6a00;
  --missing: #da1e28;
  --logo: #1D4ED8;

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: 32px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #161616;
    --sunken: #262626;
    --line: #393939;
    --line-strong: #525252;
    --fg: #f4f4f4;
    --fg-2: #c6c6c6;
    --fg-3: #a8a8a8;
    --accent: #60A5FA;
    --primary-hover: #2a5ce6;
    --ref: #6f6f6f;
    --ok: #42be65;
    --pending: #f1c21b;
    --missing: #fa4d56;
    --logo: #ffffff;
  }
}
@media (max-width: 479px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--fg-2);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
strong, b { font-weight: 500; color: var(--fg); }
a { color: var(--accent); }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); color: var(--fg); padding: 8px 16px; z-index: 10; }
.skip:focus { left: 0; }

/* Typografie */
.display {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 300;
  color: var(--fg);
}
.display .l, .display .b { display: block; }
.display .b { font-weight: 500; }
.lead {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  line-height: 1.55;
  font-weight: 300;
}

/* Knopf */
.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  background: var(--primary);
  color: var(--on-primary);
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  border-radius: 0;
  white-space: nowrap;
}
.btn:hover { background: var(--primary-hover); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; box-shadow: inset 0 0 0 3px var(--surface); }
.btn-sm { height: 38px; font-size: 14px; }

/* Kopfzeile */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo {
  display: block;
  height: 34px;
  aspect-ratio: 874 / 257;
  background: var(--logo);
  -webkit-mask: url("../assets/logo-quer.svg") no-repeat left center / contain;
  mask: url("../assets/logo-quer.svg") no-repeat left center / contain;
}

/* Abschnitte */
main > section { border-bottom: 1px solid var(--line); }

/* 1 — Hero */
.hero { padding: 48px 0; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-text > * + * { margin-top: 24px; }
.hero-text .lead { max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mail { font: 400 13px/1.4 var(--mono); color: var(--fg-3); }
@media (min-width: 720px) {
  .hero { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
}

.scene { width: 100%; height: auto; }
.scene .doc rect, .scene .card rect { fill: var(--surface); stroke: var(--accent); stroke-width: 1.6; }
.scene .doc.half { opacity: 0.35; }
.scene .ln { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linecap: round; opacity: 0.6; }
.scene .glyph { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.scene .house, .scene .px { fill: var(--accent); }
.scene .order { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 0.1 5; }
.scene text { font-family: var(--sans); }
.scene .t1 { font-size: 12.5px; font-weight: 500; fill: var(--fg); }
.scene .t2 { font-size: 10.5px; font-weight: 400; fill: var(--fg-3); }

/* Abschnitte allgemein */
.sec { padding: 48px 0; }
@media (min-width: 720px) { .sec { padding: 72px 0; } }
.h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 300;
  color: var(--fg);
}
.h2 b { font-weight: 500; }
.h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.3; font-weight: 600; color: var(--fg); }
.num { font-family: var(--mono); font-weight: 400; }
.sub { color: var(--fg-3); }
.r { text-align: right; }

/* 2 — Schieberegler */
.slider .h2 { margin-bottom: 32px; }
.tabbar { display: flex; border: 1px solid var(--line); background: var(--sunken); }
.tabs { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  flex: 1 0 5.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px 12px;
  border: 0; border-right: 1px solid var(--line); border-radius: 0;
  background: transparent;
  color: var(--fg-3);
  font: 400 13px/1.2 var(--sans);
  cursor: pointer;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--fg); font-weight: 500; }
.tab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); }
.tab:focus-visible { outline-offset: -2px; }
.prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); opacity: 0.7; transform: scaleX(0); transform-origin: left; }
.slider.is-playing .tab[aria-selected="true"] .prog { animation: prog 5.2s linear forwards; }
.slider.is-paused .tab[aria-selected="true"] .prog { animation-play-state: paused; }
@keyframes prog { to { transform: scaleX(1); } }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: square; }
.playpause { flex: 0 0 48px; border: 0; border-radius: 0; background: transparent; color: var(--fg-2); cursor: pointer; display: grid; place-items: center; }
.playpause:hover { color: var(--fg); }
.playpause:focus-visible { outline-offset: -2px; }
.playpause .i-play, .playpause[aria-pressed="true"] .i-pause { display: none; }
.playpause[aria-pressed="true"] .i-play { display: block; }
.i-play path { fill: currentColor; }

.stage { display: grid; margin-top: 24px; }
.panel { grid-area: 1 / 1; display: grid; gap: 24px; align-content: start; min-width: 0; visibility: hidden; opacity: 0; }
.panel.is-active { visibility: visible; opacity: 1; animation: rise 350ms ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.panel:focus-visible { outline-offset: 4px; }
@media (min-width: 760px) {
  .panel { grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: start; }
}
.card-text { max-width: 65ch; padding-top: 8px; }
.card-text .h3 { margin-bottom: 12px; }

/* Mockups */
.mock { border: 1px solid var(--line-strong); padding: 16px; min-height: 280px; min-width: 0; overflow-x: auto; font-size: 12px; font-weight: 400; color: var(--fg-2); }
.mock-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mt { font-size: 13px; font-weight: 600; color: var(--fg); }
.ms { font-size: 11px; color: var(--fg-3); display: inline-flex; align-items: center; gap: 6px; }
.tt { display: block; font-size: 11px; font-weight: 600; color: var(--fg); }
.src { display: block; font-size: 11px; color: var(--fg-3); margin-top: 4px; }
.src a { color: var(--accent); text-decoration: none; }
.src a:hover { text-decoration: underline; }
.miss { color: var(--missing); }
.chip { display: inline-block; padding: 2px 6px; border: 1px solid currentColor; font-size: 11px; line-height: 1.3; white-space: nowrap; }
.c-pending { color: var(--pending); }
.c-missing { color: var(--missing); }

.tbl { width: 100%; min-width: 500px; border-collapse: collapse; }
.tbl th { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); text-align: left; padding: 0 8px 8px 0; white-space: nowrap; }
.tbl th.r { text-align: right; }
.tbl td { padding: 10px 8px 10px 0; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl td:first-child { display: flex; align-items: center; gap: 10px; }
.obj { line-height: 1.35; }
.obj strong { font-weight: 500; }
.thumb { width: 36px; height: 28px; background: var(--sunken); border: 1px solid var(--line); }
.bars { width: 96px; height: 6px; }
.bars .bt { fill: var(--line); }
.bars .bf { fill: var(--accent); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line-strong); padding: 14px; display: grid; gap: 10px; }
.ring { width: 56px; height: 56px; }
.ring circle { fill: none; stroke-width: 4; }
.ring .rt { stroke: var(--line); }
.ring .rf { stroke: var(--accent); }
.tv { display: block; font-size: 13px; color: var(--fg); }
.tile .sub { font-size: 11px; line-height: 1.5; }

.docflow { display: grid; grid-template-columns: 150px 24px 1fr; gap: 16px; align-items: center; min-width: 560px; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.files li { font: 400 11px/1 var(--mono); color: var(--fg-2); border: 1px solid var(--line-strong); padding: 6px 8px; width: max-content; background: var(--surface); }
.files .k1 { transform: rotate(-4deg); }
.files .k2 { transform: rotate(3deg) translateX(10px); }
.files .k3 { transform: rotate(-2deg) translateX(4px); }
.files .k4 { transform: rotate(5deg) translateX(16px); }
.flow-arrow { width: 24px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.6; transform: rotate(-90deg); }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.col { border: 1px solid var(--line-strong); padding: 10px; display: grid; gap: 8px; align-content: start; }
.slot { display: flex; align-items: baseline; gap: 6px; font-size: 11px; line-height: 1.35; }
.slot i { font-style: normal; flex: 0 0 10px; }
.slot em { font-style: normal; color: var(--accent); }
.s-ok i { color: var(--ok); }
.s-sug i { color: var(--accent); }
.s-none { color: var(--fg-3); }

.fields { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 16px 20px; }
.fl { display: block; font-size: 11px; color: var(--fg-2); margin-bottom: 4px; }
.fv { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; background: var(--sunken); border-bottom: 1px solid var(--ref); padding: 6px 8px; font-size: 13px; color: var(--fg); }
.calc .fv { border-bottom-style: dashed; }
.fu { font-size: 11px; color: var(--fg-3); }

.finance { display: grid; grid-template-columns: minmax(300px, 1.6fr) minmax(170px, 1fr); gap: 16px; min-width: 500px; }
.chart { width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { font: 400 9px var(--mono); fill: var(--fg-3); }
.chart .b-brut { fill: var(--ref); }
.chart .b-net { fill: var(--accent); }
.chart .soll { opacity: 0.4; }
.chart .today { stroke: var(--fg-3); stroke-width: 1; stroke-dasharray: 3 3; }
.lg { display: inline-block; width: 8px; height: 8px; }
.lg-ref { background: var(--ref); }
.lg-acc { background: var(--accent); margin-left: 6px; }
.units { display: grid; gap: 6px; align-content: start; font-size: 11px; }
.unit { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.tt-gap { margin-top: 10px; }

.calc-tbl { width: 100%; min-width: 360px; border-collapse: collapse; font-size: 12px; }
.calc-tbl td { padding: 6px 0; border-top: 1px solid var(--line); }
.calc-tbl tr:first-child td { border-top: 0; }
.calc-tbl .pct { color: var(--fg-3); font-size: 11px; padding: 6px 12px; }
.calc-tbl .num { color: var(--fg); font-size: 13px; }
.calc-tbl .sum td { border-top: 1px solid var(--fg); font-weight: 600; color: var(--fg); padding-top: 8px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)); gap: 12px; margin-top: 16px; }
.kpi { border: 1px solid var(--line-strong); padding: 12px; }
.kv { display: block; font-size: 18px; color: var(--fg); }

@media (max-width: 759px) {
  .tabbar { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .panel.is-active { animation: none; }
  .prog { display: none; }
}

/* 3 — Module (Rail wie RailItem im DAP) */
.modules .h2, .steps .h2 { margin-bottom: 32px; }
.rail-layout { display: grid; gap: 24px; }
@media (min-width: 760px) { .rail-layout { grid-template-columns: minmax(220px, 0.8fr) 2fr; gap: 48px; } }
.rail { align-self: start; display: flex; flex-direction: column; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rail-item {
  position: relative;
  display: flex; align-items: baseline; gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0; border-top: 1px solid var(--line); border-radius: 0;
  background: transparent;
  color: var(--fg-2);
  font: 400 15px/1.4 var(--sans);
  text-align: left;
  cursor: pointer;
}
.rail-item:first-child { border-top: 0; }
.rail-item:hover { color: var(--fg); }
.rail-item[aria-selected="true"] { color: var(--fg); font-weight: 500; }
.rail-item[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.rail-item:focus-visible { outline-offset: -2px; }
.rail-stage { display: grid; }
.rail-panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; max-width: 65ch; }
.rail-panel.is-active { visibility: visible; opacity: 1; animation: rise 350ms ease-out; }
.rail-panel > * + * { margin-top: 16px; }
.rail-panel .lead { margin-top: 12px; }
.chapters { margin: 16px 0 0; padding-left: 1.6em; columns: 2 16em; column-gap: 32px; }
.chapters li { padding: 2px 0; break-inside: avoid; }
.chapters li::marker { font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.cat-h { font-size: 13px; font-weight: 500; color: var(--fg); padding-top: 8px; }
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line-strong); padding: 5px 10px; font-size: 13px; font-weight: 400; color: var(--fg); }
.chips li span { color: var(--fg-3); margin-left: 4px; }
@media (prefers-reduced-motion: reduce) { .rail-panel.is-active { animation: none; } }

/* 4 — transparent und nachvollziehbar */
ol.rail { list-style: none; margin: 0; padding: 0; }
ol.rail li + li { border-top: 1px solid var(--line); }
.rail-item .n { font: 400 12px/1 var(--mono); color: var(--fg-3); min-width: 1.2em; }
.rail-item[aria-selected="true"] .n { color: var(--accent); }
.steps-right { display: grid; gap: 32px; align-content: start; min-width: 0; }
.steps-right .rail-panel > * + * { margin-top: 12px; }
.mock-conflict { min-height: 0; }
.mock-conflict > .src { margin-bottom: 16px; }
.proposals { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.prop { border: 1px solid var(--line-strong); border-top: 2px solid var(--accent); padding: 12px; display: grid; gap: 6px; align-content: start; }
.prop-h { font-size: 11px; font-weight: 600; color: var(--accent); }
.pick { justify-self: start; margin-top: 4px; border: 1px solid var(--line-strong); padding: 3px 10px; font-size: 11px; color: var(--fg); }

/* 5 — drei Ziele */
.goals .h2 { margin-bottom: 8px; }
.goal { padding: 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 16px; }
.goal:last-child { border-bottom: 0; padding-bottom: 0; }
.goal-sub { margin-top: 12px; font-size: clamp(1.05rem, 1.9vw, 1.25rem); line-height: 1.55; }
.goal-body { max-width: 65ch; }
.goal-body > * + * { margin-top: 12px; }
@media (min-width: 960px) { .goal { grid-template-columns: minmax(260px, 1fr) minmax(0, 65ch); column-gap: 48px; } }

/* 6 — Aufruf */
.cta-inner { display: grid; justify-items: center; text-align: center; gap: 20px; }
.cta-inner p { max-width: 60ch; }
.cta-inner .btn { margin-top: 8px; }

/* 7 — Fußzeile */
.site-footer { padding: 32px 0; font-size: 13px; font-weight: 400; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.mark {
  width: 24px; height: 24px; flex: 0 0 24px;
  background: var(--fg-3);
  -webkit-mask: url("../assets/bildmarke.svg") no-repeat center / contain;
  mask: url("../assets/bildmarke.svg") no-repeat center / contain;
}
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--fg-3); }
.footer-nav a { color: var(--fg-2); text-decoration: none; }
.footer-nav a:hover { color: var(--fg); text-decoration: underline; }
.footer-note { margin-left: auto; color: var(--fg-3); font-size: 12px; }
@media (max-width: 599px) { .footer-note { margin-left: 0; flex-basis: 100%; } }

/* Pflichtseiten */
.legal { padding: 48px 0 72px; border-bottom: 1px solid var(--line); }
.legal .wrap > * { max-width: 65ch; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; color: var(--fg); margin-bottom: 24px; }
.legal h2 { font-size: 1.1rem; font-weight: 600; color: var(--fg); margin: 32px 0 8px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 1.2em; }
.legal address { font-style: normal; margin-bottom: 12px; }
.draft-note { border: 1px solid var(--pending); color: var(--pending); padding: 12px 16px; margin-bottom: 32px; font-weight: 400; }
.ph { background: transparent; color: var(--missing); font-weight: 500; }
