/* ==========================================================================
   kollektiv.dev — Stylesheet
   Dunkles, technisches Erscheinungsbild. Systemschriften, damit keine
   externen Requests entstehen (DSGVO) und nichts nachgeladen werden muss.
   ========================================================================== */

:root {
  --bg: #0b0f17;
  --bg-alt: #0f1522;
  --surface: #141c2c;
  --surface-2: #1a2436;
  --border: #24304a;
  --border-soft: #1c2639;

  --text: #e8edf7;
  --muted: #94a2ba;

  --accent: #2dd4bf;
  --accent-strong: #14b8a6;
  --accent-2: #7c5cff;

  --radius: 14px;
  --radius-sm: 9px;
  --max-width: 1140px;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

p a,
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

p a:hover,
.prose a:hover { color: var(--text); }

h1, h2, h3 {
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); }
h3 { font-size: 1.15rem; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.muted { color: var(--muted); }
.center { text-align: center; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #04121a;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; }

.brand__mark {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  gap: 4px;
  flex: 0 0 auto;
}
.brand__mark span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.brand__mark span:nth-child(2) { background: var(--accent-2); }
.brand__mark span:nth-child(3) { background: var(--accent-2); opacity: 0.55; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__text small { color: var(--muted); font-size: 0.78rem; font-family: var(--font-mono); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a { font-size: 0.96rem; color: var(--muted); }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.site-nav .btn { color: #04121a; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  margin-inline: auto;
  border-radius: 2px;
  transition: transform 0.18s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: relative; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 4px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #04121a;
  font-weight: 650;
  font-size: 0.98rem;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--accent); }

.btn--small { padding: 0.55rem 1.05rem; font-size: 0.9rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(70ch 40ch at 12% -10%, rgba(45, 212, 191, 0.13), transparent 60%),
    radial-gradient(60ch 36ch at 88% 0%, rgba(124, 92, 255, 0.14), transparent 62%);
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  max-width: 24ch;
  text-wrap: balance; /* moderne Browser brechen die Zeilen gleichmäßiger */
}

.grad {
  background: linear-gradient(96deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border-soft); }

.section__head { margin-bottom: 2.5rem; max-width: 62ch; }
.section__head h2 { margin-bottom: 0.35em; }
.section__head p { margin: 0; }

.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

.page-head {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  background: radial-gradient(70ch 34ch at 15% -20%, rgba(45, 212, 191, 0.1), transparent 62%);
  border-bottom: 1px solid var(--border-soft);
}
.page-head__text { max-width: 66ch; color: var(--muted); margin: 0; }
.page-head__badges { display: flex; gap: 0.5rem; margin-bottom: 1rem; }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

/* ---------- Grid & Karten ---------- */

/*
 * min(100%, …) statt einer festen Mindestbreite: Ohne das bleibt eine
 * auto-fit-Spalte auch dann bei ihrem Minimum, wenn der Viewport schmaler ist —
 * die Karten laufen auf dem Handy seitlich aus dem Bild.
 */
.grid { display: grid; gap: 1.35rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }

.service {
  padding: 1.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.service h3 { margin-bottom: 0.5rem; }
.service .checklist { margin-top: 0.5rem; }

.migration-path {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-weight: 650;
  font-size: 1.05rem;
  line-height: 1.35;
}
.migration-path__arrow { color: var(--accent); }
.migration-path__to { color: var(--accent); }

.service--link {
  display: block;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.service--link:hover { border-color: var(--accent); transform: translateY(-3px); }
.service--link .tile__more { display: inline-block; margin-top: 1rem; }
.service--link .card__head { margin-bottom: 0.75rem; }

/* Hervorgehobener Hinweis im Fließtext */
.inline-note {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0.6rem; }

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.faq__item[open] { border-color: var(--accent); }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}
.faq__item[open] .faq__question::after { content: "\2212"; }
.faq__question:hover { color: var(--accent); }

.faq__answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--muted);
}

/* ---------- AI-Search-Check ---------- */

.audit-form { max-width: 46rem; }
.audit-form .form-hint { display: block; margin-top: 0.35rem; font-size: 0.85rem; }

.explainer .service h3 { font-size: 1rem; color: var(--accent); }

/* Systemumschalter — vorbereitet für die Shopware-Fassung */
.system-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0.75rem;
}
.system-switch__item {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
}
.system-switch__item.is-active {
  color: #04121a;
  background: var(--accent);
  border-color: var(--accent);
}
.system-switch__item.is-pending { opacity: 0.55; }
.system-switch__item small {
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.8;
}
.system-switch__note { margin: 0; font-size: 0.9rem; max-width: 66ch; }

/* ---------- Prüfanimation ---------- */

.audit-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(11, 15, 23, 0.88);
  backdrop-filter: blur(4px);
}
.audit-overlay[hidden] { display: none; }
body.has-audit-overlay { overflow: hidden; }

.audit-overlay__box {
  width: min(100%, 26rem);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.audit-overlay__spinner {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: devk-spin 0.9s linear infinite;
}

@keyframes devk-spin { to { transform: rotate(360deg); } }

.audit-overlay__title { margin: 0 0 0.35rem; font-weight: 700; }
.audit-overlay__step {
  margin: 0 0 1.25rem;
  min-height: 1.5em;
  color: var(--muted);
  font-size: 0.93rem;
}

.audit-overlay__bar {
  height: 4px;
  border-radius: 2px;
  background: var(--bg-alt);
  overflow: hidden;
}
.audit-overlay__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.4s ease;
}

.audit-cta { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  .audit-overlay__spinner { animation-duration: 2.5s; }
  .audit-overlay__bar span { transition: none; }
}

.audit-deeper {
  margin: 0 0 1rem;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.audit-deeper legend {
  padding: 0 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.audit-deeper__intro { margin: 0 0 1.25rem; font-size: 0.92rem; }
.audit-deeper .field:last-child { margin-bottom: 0; }

/* Die Varianten-Angabe ist keine Nebensache: Sie verschärft den Maßstab der
   Produktprüfung, deshalb bekommt sie mehr Gewicht als eine Zeile Kleingedrucktes. */
.audit-variants {
  margin: 0 0 1.35rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.audit-variants label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-weight: 400;
}
.audit-variants label strong { font-size: 0.94rem; color: var(--text); font-weight: 600; }
.audit-variants label small { font-size: 0.85rem; line-height: 1.5; color: var(--muted); }

.audit-optional {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 1.25rem;
  margin-bottom: 0.25rem;
}
.audit-optional > summary {
  padding: 0.9rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.audit-optional > summary::-webkit-details-marker { display: none; }
.audit-optional > summary::before {
  content: "+\00a0";
  color: var(--accent);
  font-weight: 700;
}
/* Geschütztes Leerzeichen, weil ein normales die Hex-Escape-Sequenz beendet
   statt gerendert zu werden. */
.audit-optional[open] > summary::before { content: "\2212\00a0"; }
.audit-optional[open] { padding-bottom: 1.25rem; }
.audit-optional .inline-note { margin-top: 0; }

.audit-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}
.audit-summary__item {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}
.audit-summary__item strong { color: var(--text); }
.audit-summary__item--fail { border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.1); }
.audit-summary__item--warn { border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.08); }
.audit-summary__item--pass { border-color: rgba(45, 212, 191, 0.4); background: rgba(45, 212, 191, 0.08); }

.audit-group { margin-bottom: 2rem; }
.audit-group__title {
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.audit-checks { display: grid; gap: 0.6rem; }

.audit-check {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.audit-check--pass { border-left-color: var(--accent); }
.audit-check--warn { border-left-color: #fbbf24; }
.audit-check--fail { border-left-color: #f87171; }
.audit-check--info { border-left-color: var(--border); }
.audit-check--skip { border-left-color: var(--border); opacity: 0.75; }

.audit-check__status {
  flex: 0 0 auto;
  min-width: 6.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.15rem;
}
.audit-check--pass .audit-check__status { color: var(--accent); }
.audit-check--warn .audit-check__status { color: #fbbf24; }
.audit-check--fail .audit-check__status { color: #f87171; }
.audit-check--info .audit-check__status,
.audit-check--skip .audit-check__status { color: var(--muted); }

.audit-check__body { flex: 1 1 auto; min-width: 0; }
.audit-check__label { margin: 0; font-weight: 600; }
.audit-check__detail {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}
.audit-check__fix {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 0.85rem;
  border-left: 2px solid var(--border);
}
.audit-check__link { margin: 0.5rem 0 0; font-size: 0.9rem; }

/* ---------- Playbook: Roadmap ---------- */

.roadmap { display: grid; gap: 0.6rem; }

.roadmap-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.roadmap-item[open] { border-color: var(--accent); }

.roadmap-item__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
}
.roadmap-item__head::-webkit-details-marker { display: none; }

.roadmap-item__number {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent);
}
.roadmap-item__title { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.roadmap-item__title small { color: var(--muted); font-size: 0.85rem; }
.roadmap-item__priority { flex: 0 0 auto; }
.roadmap-item .checklist { padding: 0 1.25rem 1.25rem; }

/* ---------- Playbook: Prüfliste ---------- */

.checklist-groups {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.checklist-group {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.checklist-group h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--accent); }
.checklist-group ul { display: grid; gap: 0.85rem; }

.checklist-item { display: flex; align-items: flex-start; gap: 0.7rem; }
.checklist-item input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 0.2rem; }
.checklist-item label { display: flex; flex-direction: column; gap: 0.15rem; cursor: pointer; }
.checklist-item label strong { font-weight: 600; font-size: 0.94rem; }
.checklist-item label small { color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
.checklist-item input:checked + label strong { color: var(--muted); text-decoration: line-through; }

.audit-progress {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
}

/* ---------- Artikel ---------- */

.article-meta {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
}

.prose .checklist { margin-bottom: 1.5rem; }
.prose .inline-note { margin: 1.5rem 0; }
.service p { margin: 0; font-size: 0.97rem; }
.service .tags { margin-top: 1.1rem; }

.card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

@media (max-width: 980px) {
.card {
	width: calc(100% - 3.2rem);
}	
	
}	
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card__head { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.card__title { margin: 0; font-size: 1.2rem; }
.card__teaser { margin: 0; color: var(--muted); flex: 1 1 auto; font-size: 0.97rem; }

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-soft);
}
.card__price { font-weight: 650; font-size: 0.97rem; }
.card__link { color: var(--accent); font-size: 0.92rem; font-weight: 600; }

/* Ganze Karte klickbar, Linktext bleibt der zugängliche Anker */
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card { position: relative; }

/* ---------- Badges & Tags ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface-2);
}
.badge--magento { color: #ffb08a; border-color: rgba(242, 99, 34, 0.4); background: rgba(242, 99, 34, 0.12); }
.badge--shopware { color: #8ecbff; border-color: rgba(24, 158, 255, 0.4); background: rgba(24, 158, 255, 0.12); }
.badge--wordpress { color: #8fc7e0; border-color: rgba(33, 117, 155, 0.45); background: rgba(33, 117, 155, 0.16); }
.badge--status { color: var(--accent); border-color: rgba(45, 212, 191, 0.35); background: rgba(45, 212, 191, 0.1); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tag {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ---------- Tiles (Systeme) ---------- */

.tile {
  display: block;
  padding: 1.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.tile:hover { border-color: var(--accent); transform: translateY(-3px); }
.tile__dot {
  display: block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--dot, var(--accent));
  margin-bottom: 1rem;
}
.tile h3 { margin-bottom: 0.4rem; }
.tile p { margin: 0 0 1rem; font-size: 0.95rem; }
.tile__more { color: var(--accent); font-size: 0.9rem; font-weight: 600; }

/* ---------- Kompetenzen ---------- */

.skills {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  margin-bottom: 2.5rem;
}
.skills__item {
  padding: 1.25rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.skills__item h3 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--accent); }
.skills__item p { margin: 0; font-size: 0.92rem; }

/* ---------- Filter ---------- */

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.filter__item {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--surface);
}
.filter__item:hover { color: var(--text); border-color: var(--accent); }
.filter__item.is-active {
  color: #04121a;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 650;
}
.filter__item.is-active .muted { color: rgba(4, 18, 26, 0.65); }

.empty {
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------- Moduldetail ---------- */

.module-layout,
.contact-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: start;
}

.module-main > p { color: var(--muted); }
.module-main h2 { margin-top: 2.25rem; }

.checklist { display: grid; gap: 0.65rem; }
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.checklist--plain li::before { background: var(--border); }

.changelog { display: grid; gap: 1.5rem; }
.changelog__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 0.5rem;
}
.changelog ul { display: grid; gap: 0.4rem; padding-left: 1.75rem; }
.changelog ul li {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}
.changelog ul li::before {
  content: "";
  position: absolute;
  left: -1rem; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border);
}

/* ---------- Panel (Sidebar) ---------- */

.panel {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.panel__price { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.3rem; }
.panel__note { margin: 0 0 1.35rem; font-size: 0.9rem; }
.panel__title { font-size: 0.95rem; margin: 1.4rem 0 0.3rem; }
.panel__title:first-child { margin-top: 0; }

.panel__meta {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
  display: grid;
  gap: 0.15rem;
}
.panel__meta dt {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.8rem;
}
.panel__meta dt:first-child { margin-top: 0; }
.panel__meta dd { margin: 0; font-size: 0.94rem; }

.panel__hint { margin: 1.35rem 0 0; font-size: 0.87rem; }

.panel__beta {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.5;
}
.panel__beta strong { color: var(--text); }

/* ---------- Team ---------- */

.person {
  padding: 1.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.person__avatar,
.person__image {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  margin-bottom: 1.1rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: #04121a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  object-fit: cover;
}
.person__name { font-size: 1.15rem; margin-bottom: 0.15rem; }
.person__role { color: var(--accent); font-size: 0.93rem; margin: 0 0 0.85rem; }
.person p { font-size: 0.95rem; }

/* ---------- Prose (Textseiten) ---------- */

.prose { max-width: 84ch; }

/*
 * Absatz mit fetter Einstiegszeile: Der Umbruch macht aus dem Auftakt eine
 * Mini-Ueberschrift, deshalb bekommt er die volle Textfarbe statt Muted.
 */
.lead-in { margin-bottom: 1.35rem; }
.lead-in strong {
  color: var(--text);
  letter-spacing: -0.01em;
}

.prose h2 { margin-top: 2.4rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { color: var(--muted); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.15em 0.4em;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* ---------- CTA ---------- */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cta h2 { margin-bottom: 0.35rem; }
.cta p { margin: 0; max-width: 60ch; }

/* ---------- Hinweise ---------- */

.notice {
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 1.75rem;
}
.notice p { margin: 0.35rem 0 0; color: var(--muted); }
.notice ul { margin: 0.5rem 0 0; display: grid; gap: 0.3rem; color: var(--muted); }
.notice--success { border-color: rgba(45, 212, 191, 0.5); background: rgba(45, 212, 191, 0.09); }
.notice--error { border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.09); }
.notice--warn { border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.08); }

/* ---------- Formular ---------- */

.form { display: grid; gap: 1.15rem; max-width: 40rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.93rem; font-weight: 600; }
.req { color: var(--accent); }

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.97rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.field input:focus,
.field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { resize: vertical; min-height: 8rem; }

.field--choice {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
}
.field--choice input { width: 18px; height: 18px; margin-top: 0.25rem; }
.field--choice label { font-weight: 400; font-size: 0.9rem; color: var(--muted); }

.form .btn { justify-self: start; }
.form__note { font-size: 0.85rem; margin: 0; }

/* Honeypot: für Menschen unsichtbar, für Bots vorhanden */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
  padding: 3rem 0 1.75rem;
  margin-top: 1rem;
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  padding-bottom: 2.25rem;
}
.site-footer__brand { font-weight: 700; margin: 0 0 0.3rem; }
.site-footer__grid p { margin: 0; font-size: 0.94rem; }
.site-footer__title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.75rem !important;
}
.site-footer__grid ul { display: grid; gap: 0.5rem; }
.site-footer__grid a { color: var(--text); font-size: 0.94rem; }
.site-footer__grid a:hover { color: var(--accent); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
}
.site-footer__bottom p { margin: 0; font-size: 0.86rem; }

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .module-layout,
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

/*
 * Umschaltpunkt richtet sich nach der Breite der Navigation, nicht nach einer
 * runden Geräteklasse: Sieben Punkte plus Schaltfläche brauchen rund 900 px,
 * darunter bricht die Kopfzeile um.
 */
@media (max-width: 980px) {
  body { font-size: 16px; }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.5rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .site-nav li { border-bottom: 1px solid var(--border-soft); }
  .site-nav li:last-child { border-bottom: 0; padding-top: 0.9rem; }
  .site-nav a { display: block; padding: 0.7rem 0; font-size: 1rem; }
  .site-nav .btn { justify-content: center; text-align:center}

  .site-header__inner { position: relative; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .card:hover, .tile:hover { transform: none; }
}
