/* 9Work. Aus dem Logo abgeleitet: Schwarz, Papierweiß, Kreis. Ein Signalton als Marker. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@property --a {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

:root {
  --paper: #F2EFE7;
  --paper-2: #E9E5DA;
  --white: #FFFFFF;
  --ink: #0B0B0C;
  --ink-2: #4E4B45;
  --ink-3: #7A766D;
  --line: rgba(11, 11, 12, 0.14);
  --signal: #C8F53C;
  --ok: #1F7A4D;
  --warn: #9A5B00;
  --due: #B8301C;
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: max(16px, 4vw); }
@media (min-width: 1280px) { .wrap { padding-inline: 16px; } }

.skip { position: absolute; left: 16px; top: -4rem; z-index: 60; background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; border-radius: 99px; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.band-dark :focus-visible, .overlay :focus-visible { outline-color: var(--signal); }

/* Typografie */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 8.2vw, 6.4rem); line-height: 0.98; letter-spacing: -0.045em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch; }
h3 { font-size: 1.35rem; line-height: 1.2; }
mark {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--signal) 58%, var(--signal) 94%, transparent 94%);
  padding-inline: 0.06em;
  margin-inline: -0.06em;
}
.band-dark mark { background: none; color: var(--signal); }
.eyebrow {
  display: block;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.eyebrow::before { content: ""; display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; background: currentColor; margin-right: 0.7em; }
.band-dark .eyebrow { color: var(--signal); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 54ch; margin-top: 1.6rem; }
.intro { color: var(--ink-2); max-width: 66ch; }
.note { margin-top: 2rem; font-size: 0.95rem; color: var(--ink-2); max-width: 70ch; }
.head { display: grid; gap: 1.2rem; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.head .eyebrow { margin-bottom: 0; }

/* Bänder */
.band { padding-block: clamp(4rem, 9vw, 7.5rem); }
.band-tint { background: var(--paper-2); }
.band-dark { background: var(--ink); color: var(--paper); }
.band-dark .lead, .band-dark p { color: rgba(242, 239, 231, 0.72); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font: 600 1rem/1 var(--font); text-decoration: none;
  padding: 1.05rem 1.6rem; border-radius: 99px; border: 1.5px solid var(--ink);
  transition: transform 260ms var(--ease), background 260ms var(--ease), color 260ms var(--ease);
}
.btn .arr { transition: transform 260ms var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--signal); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.band-dark .btn-primary { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.band-dark .btn-primary:hover { background: var(--paper); border-color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.4rem; }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background 260ms var(--ease), box-shadow 260ms var(--ease); }
.nav.scrolled { background: rgba(242, 239, 231, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; transition: padding 260ms var(--ease); }
.scrolled .nav-in { padding-block: 0.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.links { display: flex; gap: 0.3rem; }
.links a { text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 0.5rem 0.9rem; border-radius: 99px; transition: background 200ms var(--ease), color 200ms var(--ease); }
.links a:hover { background: var(--ink); color: var(--paper); }
.burger, .close { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
.burger { display: none; }
@media (max-width: 767px) { .links { display: none; } .burger { display: grid; } }

.overlay {
  position: fixed; inset: 0; z-index: 50; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 0.4rem;
  padding: 5rem max(16px, 6vw) 3rem;
}
.overlay[hidden] { display: none; }
.overlay a { display: flex; align-items: baseline; gap: 1rem; font-size: clamp(2rem, 9vw, 3rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.25; text-decoration: none; }
.overlay a span { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.1em; color: var(--signal); }
.overlay a:hover { color: var(--signal); }
.overlay .close { position: absolute; top: 1.1rem; right: max(16px, 4vw); }

/* Hero */
.hero { padding-top: clamp(7.5rem, 14vw, 10.5rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); overflow: clip; }
.hero-in { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 980px) { .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.hero h1 { max-width: 11ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.8rem; }
.hero-meta li { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 99px; padding: 0.45rem 0.85rem; }

/* Kreis mit den neun Bausteinen */
.orbit {
  position: relative; container-type: inline-size;
  width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto;
  animation: orbit 120s linear infinite;
}
@keyframes orbit { to { --a: 360deg; } }
.orbit-ring { position: absolute; inset: 11%; border: 1.5px dashed rgba(11, 11, 12, 0.28); border-radius: 50%; }
.orbit-logo { position: absolute; inset: 26%; width: 48%; height: 48%; border-radius: 50%; }
.chip {
  --w: calc(var(--a) + var(--i) * 40deg);
  position: absolute; left: 50%; top: 50%;
  translate: -50% -50%;
  transform: rotate(var(--w)) translateX(39cqw) rotate(calc(var(--w) * -1));
  font-family: var(--mono); font-size: clamp(0.62rem, 2.6cqw, 0.8rem); font-weight: 500; letter-spacing: 0.04em;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 99px; padding: 0.4em 0.85em; white-space: nowrap;
}
.chip:nth-of-type(3n + 1) { background: var(--signal); }
.chip:nth-of-type(3n + 2) { background: var(--ink); color: var(--paper); }

/* Vorlagen */
.explorer { display: grid; gap: 1.5rem; }
.tabs { display: flex; justify-content: space-between; max-width: 26rem; }
.tab {
  display: flex; align-items: center; gap: 0.9rem; text-align: left;
  font: 500 1.02rem/1.25 var(--font); color: var(--ink);
  background: none; border: 0; border-radius: 99px; padding: 0; cursor: pointer;
  transition: background 200ms var(--ease);
}
.tab-nr {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.tab:hover .tab-nr { background: var(--signal); }
.tab[aria-selected="true"] .tab-nr { background: var(--ink); color: var(--paper); }
.tab-titel { display: none; padding-right: 1rem; }
html:not(.js) .tabs { display: none; }

.panels { display: grid; gap: 1.5rem; min-width: 0; }
.panel {
  background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2.6rem); display: grid; gap: 1.1rem; align-content: start; min-width: 0;
}
.js .panel[data-inactive] { display: none; }
.js .panel { animation: rise 420ms var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.panel-head { display: flex; align-items: baseline; gap: 1rem; }
.panel-head h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.03em; }
.panel-nr { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); }
.panel > p { color: var(--ink-2); max-width: 58ch; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 99px; padding: 0.3rem 0.7rem; }
.tags .tag-status { border-style: dashed; color: var(--ink-2); }

.view { margin-top: 0.6rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; }
.view figcaption { display: flex; align-items: center; gap: 0.6rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.view-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.view-scroll { overflow-x: auto; }
.view table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: 0.9rem; }
.view th { text-align: left; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.view th, .view td { padding: 0.75rem 1rem; white-space: nowrap; }
.view tbody tr { border-top: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; font-weight: 500; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.pill-ok { color: var(--ok); } .pill-ok::before { background: var(--ok); }
.pill-warn { color: var(--warn); } .pill-warn::before { background: var(--warn); }
.pill-due { color: var(--due); } .pill-due::before { background: var(--due); }
.pill-idle { color: var(--ink-2); }

@media (min-width: 900px) {
  .js .explorer { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 2.5rem; align-items: start; }
  .tabs { flex-direction: column; gap: 0.2rem; max-width: none; }
  .tab { padding: 0.35rem; }
  .tab-titel { display: block; }
  .tab[aria-selected="true"] { background: var(--paper-2); }
  html:not(.js) .panels { grid-template-columns: 1fr 1fr; }
}

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2.5rem; }
.steps li { display: grid; gap: 0.9rem; align-content: start; }
.step-n {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  border: 1.5px solid var(--signal); color: var(--signal);
  font-size: 2.4rem; font-weight: 600; letter-spacing: -0.04em; margin-bottom: 0.6rem;
}

/* Anleitungen */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.card { background: var(--white); border-radius: var(--radius); padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; border: 1.5px solid transparent; transition: border-color 260ms var(--ease), transform 260ms var(--ease); }
.card:hover { border-color: var(--ink); transform: translateY(-3px); }
.card p { color: var(--ink-2); }
.card .tags { margin-top: auto; padding-top: 0.6rem; }
.icon { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wege { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 2.5rem; margin-top: 3.5rem; }
.weg { border-top: 1.5px solid var(--ink); padding-top: 1.4rem; display: grid; gap: 0.8rem; align-content: start; }
.weg p { color: var(--ink-2); }

/* Treppe */
.stair { display: grid; gap: 1rem; }
.stair li { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 1.8rem 1.6rem; display: grid; gap: 0.7rem; align-content: end; }
.stair .eyebrow { color: var(--signal); margin-bottom: 0.3rem; }
.stair p { color: rgba(242, 239, 231, 0.72); }
@media (min-width: 820px) {
  .stair { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .stair li:nth-child(1) { min-height: 13rem; }
  .stair li:nth-child(2) { min-height: 17rem; }
  .stair li:nth-child(3) { min-height: 21rem; }
}

.apps { margin-top: 3.5rem; border-top: 1.5px solid var(--ink); }
.app { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2.4fr) auto; gap: 1.5rem; align-items: baseline; padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.app p { color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.status-live { color: var(--ok); } .status-live::before { background: var(--ok); border-color: var(--ok); }
.status-dev::before { background: var(--ink); border-color: var(--ink); }
.status-plan { color: var(--ink-2); }
@media (max-width: 700px) { .app { grid-template-columns: 1fr; gap: 0.4rem; } }

/* Pakete */
.pakete { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.2rem; }
.paket { background: var(--white); border-radius: var(--radius); padding: 1.8rem 1.6rem 2rem; display: grid; gap: 1rem; align-content: start; min-width: 0; }
.paket-kreis { display: flex; align-items: flex-end; }
@media (min-width: 560px) { .paket-kreis { height: 136px; } }
.paket-kreis span {
  --d: calc(48px + var(--k) * 22px);
  display: grid; place-items: center; width: var(--d); height: var(--d); border-radius: 50%;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: calc(0.8rem + var(--k) * 0.28rem); letter-spacing: -0.03em;
}
.paket dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.9rem; }
.paket dt:first-child { margin-top: 0; }

/* Argumente */
.gruende { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 2.6rem 3rem; counter-reset: g; }
.gruende li { counter-increment: g; display: grid; gap: 0.7rem; align-content: start; border-top: 1.5px solid var(--ink); padding-top: 1.2rem; }
.gruende li::before { content: "0" counter(g); font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); }
.gruende p { color: var(--ink-2); }

/* Abschluss und Footer */
.final h2 { max-width: 14ch; font-size: clamp(2.6rem, 7vw, 5.4rem); }
.footer { background: var(--ink); color: rgba(242, 239, 231, 0.62); font-size: 0.88rem; border-top: 1px solid rgba(242, 239, 231, 0.16); padding-block: 2.2rem; }
.footer-in { display: grid; gap: 1.4rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: start; }
.footer-brand { color: var(--paper); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.03em; }
.footer nav { display: flex; gap: 1.4rem; }
.footer a { color: var(--paper); text-underline-offset: 3px; }
.footer a:hover { color: var(--signal); }

/* Rechtliche Seiten */
.legal { padding-top: clamp(7.5rem, 14vw, 10rem); }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.prose { margin-top: 2.5rem; max-width: 64ch; display: grid; gap: 0.8rem; }
.prose h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin-top: 1.4rem; max-width: none; }
.prose p { color: var(--ink-2); }

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

/* Beispielansicht auf schmalen Bildschirmen: dritte Spalte ausblenden, damit der Status sichtbar bleibt */
@media (max-width: 599px) {
  .view table { min-width: 0; font-size: 0.85rem; }
  .view th, .view td { padding: 0.65rem 0.7rem; white-space: normal; }
  .view td:first-child { white-space: nowrap; }
  .view th:nth-child(3), .view td:nth-child(3) { display: none; }
}

/* Rechtstexte */
.prose h3 { font-size: 1.1rem; letter-spacing: -0.01em; margin-top: 0.8rem; }
.prose a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose ul { list-style: disc; padding-left: 1.2rem; color: var(--ink-2); }
.anbieter { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem 2.5rem; }
.siegel { display: inline-block; }
.stand { margin-top: 1.6rem; font-family: var(--mono); font-size: 0.8rem; }
