/* Szenario-Werkstatt · Stil nach dem Vorbild von claude.ai:
   warmer Cremegrund, dunkle Serifen-Überschriften, viel Luft, weiche Kanten,
   ein einziger warmer Akzent. MFS-Farben (Navy, Teal, Gold) nur für Daten. */

:root {
  --bg: #F5F3EE;
  --bg-2: #EEEBE3;
  --paper: #FBFAF7;
  --ink: #1F1E1C;
  --ink-2: #4B4945;
  --ink-3: #7A776F;
  --line: #E4E0D6;
  --line-2: #D6D1C4;
  --accent: #D97757;
  --accent-2: #C4643F;
  --accent-soft: #F7E7DE;
  --navy: #1B2A4A;
  --blue: #3A6B9F;
  --teal: #2A9D8F;
  --teal-soft: #E1F2EF;
  --gold: #C49A2A;
  --gold-soft: #F6EED8;
  --red: #B4432F;
  --red-soft: #F6E1DC;
  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 1px 2px rgba(31, 30, 28, .04), 0 8px 24px -16px rgba(31, 30, 28, .18);
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0 0 .4em; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46em; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.serif { font-family: var(--serif); }
code, .mono { font-family: var(--mono); font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.narrow { max-width: 760px; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245, 243, 238, .86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.15rem; }
.brand svg { width: 28px; height: 28px; }
.brand small { font-family: var(--sans); color: var(--ink-3); font-size: .8rem; margin-left: 4px; }
nav.main { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
nav.main a { padding: 7px 12px; border-radius: 999px; color: var(--ink-2); font-size: .93rem; }
nav.main a:hover { background: var(--bg-2); text-decoration: none; color: var(--ink); }
nav.main a.active { background: var(--ink); color: #fff; }
nav.main .menu { position: relative; }
nav.main .menu .caret { font-size: .7em; opacity: .7; margin-left: 2px; }
nav.main .submenu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow); padding: 6px; display: none; flex-direction: column; gap: 2px; z-index: 30; }
nav.main .submenu a { border-radius: 7px; padding: 8px 12px; white-space: nowrap; display: block; }
nav.main .submenu a.active { background: var(--bg-2); color: var(--ink); font-weight: 600; }
nav.main .menu:hover .submenu, nav.main .menu:focus-within .submenu, nav.main .menu.open .submenu { display: flex; }
.userchip { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.userchip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.userchip .dot.pending { background: var(--gold); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-size: .95rem; cursor: pointer; transition: transform .08s ease, background .15s ease; }
.btn:hover { background: #000; text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--bg-2); }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--accent-2); }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.btn.danger { background: transparent; border-color: var(--line-2); color: var(--red); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Formulare */
input[type=text], input[type=email], textarea, select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-s);
  background: #fff; font: inherit; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(217, 119, 87, .35); border-color: var(--accent); }
textarea { min-height: 96px; resize: vertical; }
label { display: block; font-size: .85rem; color: var(--ink-2); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 200px; }
.code-input { font-size: 2rem; letter-spacing: .4em; text-align: center; font-family: var(--mono); }

/* Karten */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card.tight { padding: 16px 18px; }
.card.accent { background: var(--accent-soft); border-color: #EFD3C5; }
.card.teal { background: var(--teal-soft); border-color: #C6E6E0; }
.grid { display: grid; gap: 14px; align-items: stretch; }
.grid > .card, .grid > .card + .card { margin-top: 0; height: 100%; }
.grid > .card > p:last-child { margin-bottom: 0; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Abzeichen */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .01em; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge.muss { background: var(--accent-soft); color: var(--accent-2); }
.badge.soll { background: var(--bg-2); color: var(--ink-2); }
.badge.offen { background: var(--bg-2); color: var(--ink-3); }
.badge.geliefert { background: var(--gold-soft); color: #8A6B12; }
.badge.geprueft { background: var(--teal-soft); color: #1E7A6F; }
.badge.ersatzweg { background: var(--gold-soft); color: #8A6B12; }
.badge.entfaellt { background: var(--bg-2); color: var(--ink-3); text-decoration: line-through; }
.badge.gate { background: var(--navy); color: #fff; }
.badge.fokus { background: var(--accent); color: #fff; }
.badge.critical { background: var(--red-soft); color: var(--red); }
.badge.high { background: var(--gold-soft); color: #8A6B12; }
.badge.moderate { background: var(--teal-soft); color: #1E7A6F; }
.badge.core { background: var(--navy); color: #fff; }
.badge.pending { background: var(--gold-soft); color: #8A6B12; }
.badge.approved { background: var(--teal-soft); color: #1E7A6F; }
.badge.blocked { background: var(--red-soft); color: var(--red); }
.badge.cat-Political { background: #E7E9F5; color: #3A4A8F; }
.badge.cat-Economic { background: var(--gold-soft); color: #8A6B12; }
.badge.cat-Social { background: var(--accent-soft); color: var(--accent-2); }
.badge.cat-Technological { background: #E1EEF7; color: var(--blue); }
.badge.cat-Environmental { background: var(--teal-soft); color: #1E7A6F; }
.badge.cat-Legal { background: #ECE7F5; color: #5B4B8A; }

/* Seiten */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(32px, 6vw, 70px); }
.hero h1 { max-width: 16em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; color: var(--ink-3); font-weight: 600; margin-bottom: 14px; }
section.block { padding: clamp(28px, 5vw, 56px) 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.page-head { padding: 36px 0 18px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* Reiter */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 6px 0 26px; }
.tabs a { padding: 10px 14px; border-radius: 8px 8px 0 0; color: var(--ink-2); font-size: .93rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { text-decoration: none; color: var(--ink); background: var(--bg-2); }
.tabs a.active { color: var(--ink); border-bottom-color: var(--ink); }

/* Tabellen */
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 10px 10px; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
tr.gate td { background: #F1EFE8; }

/* Zeitleiste */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.timeline li { position: relative; padding: 0 0 22px 40px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line-2); }
.timeline li.done::before { background: var(--teal); border-color: var(--teal); }
.timeline li.now::before { background: var(--accent); border-color: var(--accent); }
.timeline .when { font-size: .8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }

/* Szenario-Kreuz */
.cross { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cross .cell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; min-height: 150px; }
.cross .cell.fokus { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cross .cell h4 { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.prob { font-family: var(--serif); font-size: 1.8rem; color: var(--navy); line-height: 1; }
.axis-label { font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }

/* Streudiagramm */
.scatter { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); }
.scatter text { font-family: var(--sans); }

/* Fortschritt */
.progress { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--teal); border-radius: 999px; transition: width .4s ease; }
.progress.accent > span { background: var(--accent); }
.kpi { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--ink); }
.kpi + .small { margin-top: 6px; }

/* Listen */
.filelist { list-style: none; padding: 0; margin: 8px 0 0; }
.filelist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: .9rem; }
.filelist li:first-child { border-top: 0; }
.filelist .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone { border: 1.5px dashed var(--line-2); border-radius: var(--radius-s); padding: 14px; text-align: center; color: var(--ink-3); font-size: .9rem; background: #fff; cursor: pointer; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.comment { padding: 12px 0; border-top: 1px solid var(--line); }
.comment:first-child { border-top: 0; }
.comment .meta { font-size: .8rem; color: var(--ink-3); margin-bottom: 4px; }
.comment .meta b { color: var(--ink-2); font-weight: 600; }
details { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 16px; background: #fff; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { margin-bottom: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .8rem; cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Hinweise */
.notice { padding: 12px 16px; border-radius: var(--radius-s); background: var(--gold-soft); border: 1px solid #EBDDB3; font-size: .93rem; }
.notice.ok { background: var(--teal-soft); border-color: #C6E6E0; }
.notice.err { background: var(--red-soft); border-color: #EBC4BB; color: var(--red); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow); z-index: 50; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

/* Team */
.person { display: flex; gap: 14px; align-items: flex-start; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; flex: 0 0 52px; }

footer { padding: 40px 0 60px; color: var(--ink-3); font-size: .85rem; border-top: 1px solid var(--line); margin-top: 60px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 1180px) {
  .brand small { display: none; }
  nav.main a { padding: 6px 10px; font-size: .88rem; }
}

@media (max-width: 720px) {
  .top .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  nav.main { width: 100%; margin-left: 0; }
  .cross { grid-template-columns: 1fr; }
}
