/* taxonic.de – Stylesheet
   Farben: Tinte (Basis dunkel), Papier (Inhalt hell), Signal (Neongrün, nur Akzent) */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0e1726;
  --ink-2: #17233a;
  --ink-3: #24324d;
  --paper: #f4f6f3;
  --white: #ffffff;
  --line: #dce1e8;
  --line-dark: #2c3a55;
  --muted: #566174;
  --muted-dark: #a7b1c2;
  --signal: #b8ff3c;
  --signal-deep: #3b7300;
  --radius-s: 4px;
  --radius-m: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Unbounded", "Instrument Sans", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--signal-deep); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--signal); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--signal); color: var(--ink); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip:focus { left: 16px; top: 16px; }

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

/* Typografie */
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.1vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.35rem); }
h3 { font-family: var(--text); font-size: 1.3rem; font-weight: 650; line-height: 1.3; margin: 0 0 0.4em; letter-spacing: -0.005em; }
h4 { font-size: 1.05rem; font-weight: 650; margin: 0 0 0.3em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.55; max-width: 38em; }
.measure { max-width: 42em; }
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }
ul.clean { list-style: none; padding: 0; margin: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

/* Platzhalter – vor Livegang ersetzen */
.ph { background: #fff3a8; color: #3d3400; padding: 0 4px; border-radius: 3px; outline: 1px dashed #b39b00; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font: 600 1rem/1 var(--text);
  padding: 0.95em 1.4em; border-radius: var(--radius-s);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #a6f01f; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(184, 255, 60, 0.12); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-3); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header { background: var(--ink); color: var(--white); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 30px; width: auto; }
/* Logo-Platzhalter (Wortmarke), wird durch die Logodatei ersetzt */
.brand-word { font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.04em; color: var(--white); line-height: 1; }
.brand-mark { width: 14px; height: 14px; border-radius: 3px; background: var(--signal); margin-right: 10px; box-shadow: 8px 8px 0 -3px var(--ink), 8px 8px 0 -1px var(--signal); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #dfe5ef; text-decoration: none; padding: 8px 12px; border-radius: var(--radius-s); font-size: 1rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: var(--ink-3); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 0.7em 1.1em; font-size: 0.95rem; }

/* Login-Menü */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 300px;
  background: var(--white); color: var(--ink); border-radius: var(--radius-m);
  border: 1px solid var(--line); padding: 8px; box-shadow: 0 18px 40px rgba(14, 23, 38, 0.28);
}
.menu-panel a { display: block; padding: 10px 12px; border-radius: var(--radius-s); text-decoration: none; }
.menu-panel a:hover { background: var(--paper); }
.menu-panel strong { display: block; font-weight: 600; }
.menu-panel span { display: block; font-size: 0.88rem; color: var(--muted); }
.menu-panel .menu-note { font-size: 0.85rem; color: var(--muted); padding: 8px 12px 4px; border-top: 1px solid var(--line); margin-top: 6px; }

/* Mobile Navigation */
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .nav, .header-actions .hide-m { display: none; }
  .nav-toggle { display: block; }
  .nav-toggle > summary { padding: 8px 12px; border: 1px solid var(--line-dark); border-radius: var(--radius-s); font-weight: 600; font-size: 0.95rem; }
  .nav-toggle .menu-panel { position: fixed; left: 12px; right: 12px; top: 80px; min-width: 0; max-height: calc(100vh - 100px); overflow: auto; }
  .nav-toggle .menu-panel a { font-size: 1.05rem; }
}
@media (max-width: 420px) {
  .header-actions .login > summary { padding-left: 0.8em; padding-right: 0.8em; }
  .brand img { height: 26px; }
  .brand-word { font-size: 1.25rem; }
}

/* Bereiche */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.dark { background: var(--ink); color: var(--white); }
.dark .muted { color: var(--muted-dark); }
.dark a { text-decoration-color: var(--signal); }
.white { background: var(--white); }
.section-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); }
.dark .section-head p { color: var(--muted-dark); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 17em; }
.hero-title { grid-column: 1 / -1; margin-bottom: 0; }
.hero .lead { color: #d3dae6; }
.hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted-dark); font-size: 0.98rem; }
.hero-meta span::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--signal); border-radius: 2px; margin-right: 9px; vertical-align: 1px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Belegfluss-Diagramm */
.flow { width: 100%; }
.flow .node rect { fill: var(--ink-2); stroke: var(--line-dark); stroke-width: 1.2; }
.flow .node text { fill: #e6ebf3; font-family: var(--text); font-size: 15px; font-weight: 550; }
.flow .node .sub { fill: var(--muted-dark); font-size: 12.5px; font-weight: 450; }
.flow .hub rect { fill: var(--ink); stroke: var(--signal); stroke-width: 2; }
.flow .hub text { fill: var(--white); font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.flow .hub .sub { fill: var(--signal); font-family: var(--text); font-size: 12.5px; font-weight: 500; letter-spacing: 0; }
.flow .wire { fill: none; stroke: var(--line-dark); stroke-width: 1.6; }
.flow .wire-out { stroke: #3d4f70; }
.flow .pulse { fill: var(--signal); }
.flow .colhead { fill: var(--muted-dark); font-family: var(--text); font-size: 12.5px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .flow .pulse { display: none; } }

/* Software-Leiste */
.stack { border-bottom: 1px solid var(--line); background: var(--white); }
.stack .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 40px; padding-top: 26px; padding-bottom: 26px; }
.stack p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.wordmarks { display: flex; flex-wrap: wrap; gap: 12px 36px; align-items: center; }
.wordmark { font-family: var(--text); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.wordmark small { font-weight: 500; font-size: 0.82em; color: var(--muted); margin-left: 4px; }

/* Ablauf (echte Reihenfolge) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.steps li { padding: 28px 28px 8px 0; position: relative; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--display); font-weight: 600; font-size: 1.05rem; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--signal); color: var(--ink); margin-bottom: 18px; }
.steps p { color: var(--muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
}

/* Zielgruppen als Liste */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) auto; gap: 24px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; }
.row h3 { margin: 0; }
.row p { margin: 0; color: var(--muted); }
.row .go { font-weight: 600; white-space: nowrap; padding-top: 2px; text-decoration: underline; text-decoration-color: var(--signal-deep); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.row::before { content: ""; position: absolute; left: -18px; top: 28px; bottom: 28px; width: 4px; background: var(--signal); border-radius: 2px; opacity: 0; transition: opacity .15s ease; }
.row:hover::before, .row:focus-visible::before { opacity: 1; }
.row .tags { margin-top: 8px; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 8px; } .row::before { display: none; } }

/* Tabellen */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
thead th { font-weight: 650; background: var(--paper); font-size: 0.95rem; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 650; width: 22%; }
td ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 700px) { table { min-width: 640px; } }

/* Zweispaltig */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: 1fr; } }

/* Häkchenliste */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 0.6em; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; border-radius: 50%; background: var(--signal); }
.checks li::after { content: ""; position: absolute; left: 6px; top: calc(0.32em + 4px); width: 5px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Kacheln mit Inhalt (Login, Szenarien) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px; display: flex; flex-direction: column; }
.tile p { color: var(--muted); }
.tile .btn { margin-top: auto; align-self: flex-start; }
.tile-dark { background: var(--ink-2); border-color: var(--line-dark); color: var(--white); }
.tile-dark p { color: var(--muted-dark); }

/* Beispielszenarien */
.case { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(22px, 3vw, 34px); }
.case + .case { margin-top: 20px; }
.case-label { display: inline-block; align-self: flex-start; font-size: 0.85rem; font-weight: 650; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; margin-bottom: 14px; }
.case dl { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 10px 24px; margin: 18px 0 0; }
.case dt { font-weight: 650; }
.case dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .case dl { grid-template-columns: 1fr; gap: 2px; } .case dd { margin-bottom: 10px; } }

/* Seitenkopf Unterseiten */
.page-head { padding: clamp(44px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.page-head .lead { color: #d3dae6; }
.crumbs { font-size: 0.92rem; color: var(--muted-dark); margin-bottom: 18px; }
.crumbs a { color: var(--muted-dark); }

/* CTA */
.cta { border-top: 1px solid var(--line-dark); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: end; }
.cta h2 { margin-bottom: 0.3em; }
.cta p { color: var(--muted-dark); margin: 0; }
@media (max-width: 820px) { .cta .wrap { grid-template-columns: 1fr; } }

/* Person */
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-m); background: var(--ink-2); display: grid; place-items: center; color: var(--muted-dark); font-size: 0.95rem; text-align: center; padding: 24px; border: 1px dashed var(--line-dark); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-top: 28px; }
.facts div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
.facts strong { display: block; font-weight: 650; }
.facts span { color: var(--muted); font-size: 0.98rem; }

/* Formular */
.form { display: grid; gap: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .two { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 0.98rem; display: block; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1.5px solid #b9c2cf; border-radius: var(--radius-s); padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 0.95rem; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list strong { display: block; }

/* Wissen */
.article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(22px, 3vw, 38px); }
.article + .article { margin-top: 24px; }
.article .meta { font-size: 0.92rem; color: var(--muted); margin-bottom: 10px; }
.note { border-left: 4px solid var(--signal); background: var(--white); padding: 16px 20px; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 1rem; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d1de; font-size: 0.98rem; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h2 { font-family: var(--text); font-size: 1rem; font-weight: 650; color: var(--white); letter-spacing: 0; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c9d1de; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--signal); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; color: var(--muted-dark); font-size: 0.92rem; }
.footer-bottom nav { display: flex; gap: 20px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Flussgrafiken – Erweiterungen */
.flow .frame { fill: rgba(184, 255, 60, 0.035); stroke: var(--signal); stroke-width: 1.6; }
.flow .frame-soft { fill: rgba(255, 255, 255, 0.025); stroke: var(--line-dark); }
.flow .frametitle { fill: var(--white); font-family: var(--text); font-size: 15px; font-weight: 650; }
.flow .hubtitle { fill: var(--white); font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.flow .hubsub { fill: var(--signal); font-family: var(--text); font-size: 12.5px; font-weight: 500; }
.flow .module rect { fill: var(--ink-2); stroke: #3d4f70; }
.flow .key rect { stroke: var(--signal); stroke-width: 2; }
.flow .port { fill: var(--signal); }
.flow .wire-back { stroke: #3d4f70; stroke-dasharray: 4 5; }
.flow .wire-dash { stroke-dasharray: 5 6; }
.flow .note { fill: var(--muted-dark); font-family: var(--text); font-size: 12.5px; }
.flow .note-hi { fill: var(--signal); font-family: var(--text); font-size: 12.5px; font-weight: 600; }
.flow .rowlabel { fill: #e6ebf3; font-family: var(--text); font-size: 12.5px; font-weight: 500; }
.flow .rail { stroke: var(--line-dark); stroke-width: 1.2; }
.flow .due { fill: #3d4f70; }
.flow .due-on { fill: var(--signal); }
.flow .scan line { stroke: var(--signal); stroke-width: 1.5; opacity: 0.5; }
.flow .scan circle { fill: var(--signal); }
.flow .chip rect { fill: var(--ink-2); stroke: var(--line-dark); }
.flow .chip text { fill: #e6ebf3; font-family: var(--text); font-size: 11.5px; font-weight: 650; }
.flow .glow { fill: none; stroke: var(--signal); stroke-width: 2; }
.flow-mob { display: none; }
@media (max-width: 600px) { .flow-desk { display: none; } .flow-mob { display: block; max-width: 420px; } }
@media (prefers-reduced-motion: reduce) { .flow .scan, .flow .glow, .flow .due-on { display: none; } }

/* Seitenkopf mit Grafik */
.head-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.head-grid figure { margin: 0; max-width: 560px; justify-self: end; width: 100%; }
.head-grid figcaption { margin-top: 14px; font-size: 0.88rem; color: var(--muted-dark); line-height: 1.5; }
@media (max-width: 900px) { .head-grid { grid-template-columns: 1fr; } .head-grid figure { justify-self: start; } }
