/* MSG ERP — Entwicklung (mi-su.me/msgerp/entwicklung/)
   Eigene Datei, haengt nicht an mi-su.css/pages.css.
   Farben und Schriften wie die Produktseite /msgerp/ (Messing). */

:root {
  color-scheme: light dark;
  --ground:   #F2F1EC;
  --ground-2: #EAE8E1;
  --surface:  #FAF9F5;
  --line:     rgba(28, 36, 43, .16);
  --line-2:   rgba(28, 36, 43, .30);
  --text:     #3F484F;
  --text-dim: #5E6870;
  --heading:  #12181D;
  --brass:    #7E5819;
  --brass-2:  #A87A33;
  --grid:     rgba(28, 36, 43, .055);
  --glow:     rgba(138, 97, 34, .13);
  --ok:       #2F6B3A;
  --plan:     #4A5A7A;

  --font-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Noto Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --page: 1080px;
  --band: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:   #080B0E;
    --ground-2: #0C1116;
    --surface:  #12181E;
    --line:     rgba(141, 154, 164, .16);
    --line-2:   rgba(141, 154, 164, .32);
    --text:     #A3AFB8;
    --text-dim: #8A96A0;
    --heading:  #EDF1F4;
    --brass:    #C79B58;
    --brass-2:  #DCB679;
    --grid:     rgba(141, 154, 164, .05);
    --glow:     rgba(199, 155, 88, .16);
    --ok:       #7FC28B;
    --plan:     #9FB2D6;
  }
}
:root[data-theme="dark"] {
  --ground:   #080B0E;
  --ground-2: #0C1116;
  --surface:  #12181E;
  --line:     rgba(141, 154, 164, .16);
  --line-2:   rgba(141, 154, 164, .32);
  --text:     #A3AFB8;
  --text-dim: #8A96A0;
  --heading:  #EDF1F4;
  --brass:    #C79B58;
  --brass-2:  #DCB679;
  --grid:     rgba(141, 154, 164, .05);
  --glow:     rgba(199, 155, 88, .16);
  --ok:       #7FC28B;
  --plan:     #9FB2D6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--brass); text-underline-offset: .18em; }
a:hover { color: var(--brass-2); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2rem, var(--page)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; z-index: 50; padding: .5rem 1rem; background: var(--brass); color: var(--ground); }
.skip:focus { left: 1rem; top: .5rem; }

/* Kopf */
header.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem;
  color: var(--heading); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--heading); }
.ms-marke { display: block; width: 28px; height: 28px; flex: none; }
.ms-marke__flaeche { fill: var(--brass); }
.ms-marke__m { fill: var(--ground); }
.brand small { font-family: var(--font-body); font-weight: 500; font-size: .875rem; color: var(--text-dim); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: .625rem; }
.band {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1.05rem; clip-path: var(--band);
  font-weight: 700; font-size: .8125rem; text-decoration: none;
  background: transparent; color: var(--heading);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.band:hover { color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
/* clip-path schneidet den aeusseren Fokusrahmen ab: Rahmen nach innen legen */
.band:focus-visible { outline: none; color: var(--brass); background: color-mix(in srgb, var(--brass) 12%, transparent); box-shadow: inset 0 0 0 2px var(--brass); }
.lang { display: flex; gap: .25rem; }
.lang a {
  min-width: 34px; height: 30px; display: grid; place-items: center;
  background: var(--ground-2);
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500;
  color: var(--text-dim); text-decoration: none;
}
.lang a[aria-current="true"] { background: var(--brass); color: var(--ground); }
.lang a:hover:not([aria-current="true"]) { color: var(--heading); }
@media (max-width: 560px) { .brand small, .top-right .band { display: none; } }

/* Titel */
.hero { position: relative; text-align: center; padding: clamp(2.75rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3rem); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 10%;
  width: min(620px, 100%); height: 380px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--glow), transparent 70%);
}
.pill {
  display: inline-block; padding: .35rem 1.05rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brass);
}
h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 4.5rem); letter-spacing: -.03em; line-height: 1.02;
  color: var(--heading); margin: 1.25rem 0 0; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--brass); }
.lead { margin: 1.25rem auto 0; max-width: 40rem; }
.stand { margin: .75rem auto 0; font-size: .875rem; color: var(--text-dim); }

.zahlen {
  list-style: none; padding: 0; margin: 2rem auto 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  max-width: 820px; background: var(--line); border: 1px solid var(--line);
}
.zahlen li { background: var(--surface); padding: 1rem .75rem; }
.zahlen b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: var(--heading); line-height: 1.1; }
.zahlen span { display: block; font-size: .8125rem; color: var(--text-dim); line-height: 1.35; margin-top: .3rem; }
@media (max-width: 640px) { .zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Abschnitte */
section { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
h2.abschnitt { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.85rem); color: var(--heading); margin: 0 0 .5rem; letter-spacing: -.01em; }
.unter { margin: 0 0 1.25rem; color: var(--text-dim); max-width: 46rem; }

/* Sprungleiste */
.sprung { border: 1px solid var(--line); background: var(--surface); padding: 1rem 1.1rem; }
.sprung h2 { font-size: .75rem; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 .6rem; font-weight: 500; }
.sprung ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.sprung a {
  display: inline-block; padding: .3rem .6rem; min-height: 32px;
  font-family: var(--font-mono); font-size: .8125rem; text-decoration: none;
  color: var(--heading); border: 1px solid var(--line-2); background: var(--ground);
}
.sprung a:hover { border-color: var(--brass); color: var(--brass); }
.sprung a.s-veroeffentlicht { border-color: var(--brass); }
.sprung a.s-in-arbeit { border-style: dashed; }
.sprung .weiter { margin: .75rem 0 0; font-size: .875rem; }

/* Legende */
.legende { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: .5rem 1.25rem; font-size: .875rem; color: var(--text-dim); }
.legende li { display: flex; gap: .6rem; align-items: baseline; }
.legende .marke { flex: none; }

/* Marken */
.marke {
  display: inline-block; padding: .15rem .55rem;
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid currentColor;
}
.m-veroeffentlicht { color: var(--brass); background: color-mix(in srgb, var(--brass) 10%, transparent); }
.m-paket { color: var(--ok); }
.m-zwischen { color: var(--text-dim); }
.m-arbeit { color: var(--brass); border-style: dashed; }
.m-entwicklung { color: var(--plan); }
.m-geplant { color: var(--plan); border-style: dotted; }

/* Umschalten 1.20.0: nur das Attribut data-status am Eintrag aendern. */
.fassung[data-status="in-arbeit"] .nur-fertig { display: none; }
.fassung:not([data-status="in-arbeit"]) .nur-arbeit { display: none; }

/* Ausblick */
.ausblick { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.plan { border: 1px dotted var(--line-2); padding: 1rem 1.15rem; background: transparent; }
.plan h3 { margin: .5rem 0 .25rem; font-size: 1.05rem; color: var(--heading); }
.plan ul { margin: .25rem 0 0; padding-left: 1.1rem; font-size: .9375rem; }

/* Zeitleiste */
.zeitleiste { --zl: 1.75rem; list-style: none; margin: 0; padding: 0 0 0 var(--zl); position: relative; }
.zeitleiste::before { content: ""; position: absolute; left: .45rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line-2); }
.zeitleiste > li { position: relative; margin: 0 0 1.25rem; }
.zeitleiste > li::before {
  content: ""; position: absolute; left: calc(-1 * var(--zl) + .45rem - 5px); top: 1.35rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ground); border: 2px solid var(--line-2);
}
/* Punkte und Rahmen folgen data-status der Karte, damit beim Umschalten nur ein Attribut wechselt */
.zeitleiste > li:has(> .fassung[data-status="veroeffentlicht"])::before { background: var(--brass); border-color: var(--brass); }
.zeitleiste > li:has(> .fassung[data-status="in-arbeit"])::before { border-color: var(--brass); border-style: dashed; }
.zeitleiste > li:has(> .fassung[data-status="paket-gebaut"])::before { border-color: var(--ok); }

.fassung { background: var(--surface); border: 1px solid var(--line); padding: 1.1rem 1.25rem 1.2rem; }
.fassung.gross { border-color: var(--line-2); padding: 1.35rem 1.5rem 1.5rem; }
.fassung[data-status="in-arbeit"] { border-style: dashed; border-color: var(--brass); }
.f-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .9rem; }
.f-kopf h3 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; color: var(--heading); letter-spacing: -.01em; }
.gross .f-kopf h3 { font-size: 1.7rem; }
.f-datum { font-family: var(--font-mono); font-size: .875rem; color: var(--text-dim); }
.f-titel { flex-basis: 100%; margin: .15rem 0 0; font-weight: 700; color: var(--heading); font-size: 1rem; }
.f-punkte { margin: .75rem 0 0; padding-left: 1.15rem; list-style: disc; }
.f-punkte li { margin: .2rem 0; }
.f-punkte li::marker { color: var(--brass); }
.f-zusatz { margin: .75rem 0 0; font-size: .875rem; color: var(--text-dim); }

.zwischenraum { margin: 0 0 1.25rem; padding: .75rem 1rem; border-left: 2px dashed var(--line-2); font-size: .9375rem; color: var(--text-dim); }
.zeitleiste > li.zwischen::before { display: none; }

/* Bilder */
.bilder { margin-top: 1.1rem; display: grid; gap: 1rem; }
.vergleich { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.reihe3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 700px) { .vergleich { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .reihe3 { grid-template-columns: minmax(0, 1fr); max-width: 320px; } }
figure { margin: 0; }
figure a { display: block; border: 1px solid var(--line-2); background: var(--ground-2); }
figure a:hover { border-color: var(--brass); }
figure img { display: block; width: 100%; height: auto; }
figcaption { margin-top: .45rem; font-size: .8125rem; line-height: 1.5; color: var(--text-dim); }
figcaption b { color: var(--heading); font-weight: 700; }
.vh { display: inline-block; margin-right: .4rem; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.schmal { max-width: 460px; }
.halb { max-width: 560px; }
picture { display: block; }

/* Hinweise */
.hinweise { border-top: 1px solid var(--line); }
.hinweise ul { margin: 0; padding-left: 1.15rem; max-width: 52rem; }
.hinweise li { margin: .35rem 0; }
.verwandt { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.nachoben {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 20;
  padding: .45rem .75rem; background: var(--ground-2); border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: .75rem; color: var(--heading); text-decoration: none;
}
.nachoben:hover { border-color: var(--brass); color: var(--brass); }
.nachoben.weg { visibility: hidden; }

footer { border-top: 1px solid var(--line); padding-block: 2rem 4rem; font-size: .875rem; color: var(--text-dim); }
.foot-in { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
footer a { color: var(--text); }

@media print {
  header.top, .nachoben, .sprung { display: none; }
  body { background: #fff; color: #000; }
  .fassung { break-inside: avoid; }
}

.stapel { display: grid; gap: 1rem; }
.sprung .weiter a { display: inline; padding: 0; min-height: 0; border: 0; background: none; font-family: var(--font-body); font-size: inherit; color: var(--brass); text-decoration: underline; }
.hero + section { padding-top: .5rem; }

@media (max-width: 520px) {
  body { font-size: 1rem; line-height: 1.6; }
  .zeitleiste { --zl: 1.3rem; }
  .fassung, .fassung.gross { padding: 1rem .95rem 1.1rem; }
  .f-punkte { padding-left: 1rem; }
  .nachoben { right: .5rem; bottom: .5rem; padding: .3rem .5rem; font-size: .6875rem; }
}
