:root {
  color-scheme: dark;
  --bg: #0b0a12;
  --surface: #14121e;
  --surface-2: #1b1826;
  --line: #2b2838;
  --text: #f6f4f9;
  --muted: #a09aa9;
  --subtle: #787183;
  --magenta: #fa0879;
  --magenta-light: #ff70b0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 280px;
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse 680px 400px at 90% -5%, rgba(250, 8, 121, .095), transparent 70%), var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--magenta-light); outline-offset: 4px; }
.container { width: min(100% - 48px, 980px); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(11, 10, 18, .94);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 760; letter-spacing: -.8px; white-space: nowrap; }
.brand-logo { display: block; flex-shrink: 0; width: 44px; height: 44px; object-fit: cover; border: none; }
.brand-highlight { color: var(--magenta); }
.brand-domain { color: #ada6b5; font-weight: 500; }
.site-header nav { display: flex; align-items: center; gap: 30px; color: #b3adbc; font-size: 13px; font-weight: 600; }
.site-header nav a { transition: color .15s ease; }
.site-header nav a:hover { color: white; }

main { padding-top: 56px; padding-bottom: 104px; }
.page-heading { margin-bottom: 32px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--magenta-light); font-size: 10px; font-weight: 800; letter-spacing: 1.75px; }
.eyebrow-line { width: 17px; height: 2px; border-radius: 1px; background: var(--magenta); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -2.2px; line-height: 1.12; font-weight: 750; }
.accent { color: var(--magenta); }
.page-heading p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.connection-card {
  border: 1px solid #54304c;
  border-radius: 17px;
  padding: 27px 30px 20px;
  background: radial-gradient(circle at 100% 0%, rgba(250,8,121,.105), transparent 48%), linear-gradient(135deg, #1b1423, #14121e 75%);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
}
.connection-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.connection-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--magenta-light); border: 1px solid #633048; background: rgba(250,8,121,.085); border-radius: 11px; }
.connection-icon svg { width: 21px; height: 21px; }
.connection-heading h2 { font-size: 16px; letter-spacing: -.25px; font-weight: 700; }
.connection-heading p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.address-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 9px;
  padding-left: 20px;
  border: 1px solid #443447;
  border-radius: 11px;
  background: #0f0d16;
}
.address-box code { color: #fff; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: clamp(17px, 2.8vw, 23px); font-weight: 600; letter-spacing: -.6px; overflow-wrap: anywhere; }
.copy-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 45px;
  min-width: 123px;
  padding: 11px 17px;
  border: none;
  border-radius: 8px;
  background: var(--magenta);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.copy-button:hover { background: #dc076b; }
.copy-button:active { transform: scale(.98); }
.copy-button.is-copied { background: #a91266; }
.copy-feedback { min-height: 17px; margin-top: 10px; color: #ed9dc2; font-size: 12px; line-height: 1.4; }

.details-section { margin-top: 43px; }
.section-title { font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -.65px; }
.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.detail-card { display: flex; flex-direction: column; min-height: 151px; padding: 24px 25px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.detail-label { color: var(--subtle); font-size: 10px; font-weight: 800; letter-spacing: 1.3px; }
.detail-value { display: block; margin-top: 15px; color: var(--text); font-size: 27px; line-height: 1; font-weight: 750; letter-spacing: -.95px; }
.version-value { color: #ff62aa; }
.detail-note { margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.3; }

.rules-section { margin-top: 66px; scroll-margin-top: 110px; }
.section-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.section-header p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.rule-count { padding-top: 7px; color: var(--subtle); font-size: 10px; font-weight: 800; letter-spacing: 1.25px; white-space: nowrap; }
.rules-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 23px; }
.rule-item { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 15px; padding: 23px 22px; border: 1px solid var(--line); border-radius: 12px; background: rgba(20,18,30,.86); }
.rule-number { padding-top: 2px; color: var(--magenta-light); font-size: 11px; font-weight: 800; letter-spacing: .8px; }
.rule-item h3 { font-size: 14px; line-height: 1.45; font-weight: 700; }
.rule-item p { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; color: #847d8c; font-size: 12px; }
.footer-dot { padding: 0 5px; color: var(--magenta); }

@media (max-width: 700px) {
  .container { width: min(100% - 36px, 540px); }
  .header-inner { min-height: 68px; }
  .brand { font-size: 17px; gap: 9px; }
  .brand-logo { width: 38px; height: 38px; border: none; }
  .site-header nav { gap: 16px; font-size: 12px; }
  main { padding-top: 40px; padding-bottom: 70px; }
  .connection-card { padding: 22px 19px 17px; }
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-card { padding: 21px; }
  .rules-list { grid-template-columns: 1fr; }
  .rules-section { margin-top: 56px; scroll-margin-top: 90px; }
}
@media (max-width: 470px) {
  .brand-domain { display: none; }
  h1 { letter-spacing: -1.4px; }
  .address-box { align-items: stretch; flex-direction: column; padding: 13px; gap: 14px; }
  .address-box code { padding: 8px 4px 0; font-size: 18px; }
  .copy-button { width: 100%; }
  .details-grid { gap: 10px; }
  .detail-card { min-height: 132px; padding: 18px 16px; }
  .detail-value { font-size: 25px; }
  .detail-note { font-size: 11px; }
  .rule-item { padding: 20px 17px; gap: 10px; }
  .footer-inner { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Fabric-Mitgliederbereich */
:root { --subtle: #aaa2b6; --muted: #b2abba; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 108px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--magenta-light); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 16px; padding: 12px 18px; background: var(--text); color: var(--bg); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.site-header nav a { padding-block: 12px; }
.site-header nav a[aria-current="page"] { color: var(--text); }
.site-header nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; width: 16px; margin: 5px auto -7px; background: var(--magenta); border-radius: 2px; }
.copy-button { background: #ca0862; }
.copy-button:hover { background: #df096e; }
.details-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.detail-card { min-height: 148px; padding: 22px; }
.detail-note { line-height: 1.5; }
.guide-link { margin-top: 16px; display: flex; align-items: center; gap: 15px; padding: 20px 23px; border: 1px solid var(--line); border-radius: 12px; background: #17131f; transition: border-color .15s ease; }
.guide-link:hover { border-color: #775064; }
.guide-symbol { display: flex; color: var(--magenta-light); }
.guide-link > span:nth-child(2) { display: grid; gap: 5px; }
.guide-link strong { font-size: 14px; font-weight: 650; }
.guide-link span span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.guide-link > svg { flex-shrink: 0; margin-left: auto; color: var(--magenta-light); }
.content-section { margin-top: 60px; }
.section-index { flex-shrink: 0; padding-top: 7px; color: var(--subtle); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.notice { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #54412d; background: #211a19; border-radius: 10px; padding: 16px 18px; margin-top: 21px; }
.notice-icon { display: grid; place-items: center; width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; border: 1px solid #bd9565; border-radius: 50%; color: #eac291; font: 600 12px Georgia, serif; }
.notice strong { display: block; color: #f0cfaa; font-size: 12px; font-weight: 650; line-height: 1.5; }
.notice p { color: #c2b3a8; font-size: 12px; line-height: 1.65; margin-top: 3px; }
.download-list { margin-top: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); overflow: hidden; }
.download-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 24px; }
.download-row + .download-row { border-top: 1px solid var(--line); }
.file-icon { display: grid; place-items: center; width: 46px; height: 50px; border: 1px solid #443a50; border-radius: 9px; background: #1b1826; color: #c8bece; font: 700 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .5px; }
.file-icon-primary { color: var(--magenta-light); border-color: #66314e; background: #2d1727; }
.download-description h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 14px; font-weight: 650; line-height: 1.5; }
.download-description p { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 4px; }
.download-description > code { display: block; font-size: 10px; color: var(--subtle); margin-top: 7px; overflow-wrap: anywhere; }
.status-badge { display: inline-block; padding: 2px 7px; border: 1px solid #534133; border-radius: 4px; color: #e9c193; background: #2c221e; font-size: 9px; font-weight: 600; letter-spacing: .2px; }
.status-badge.is-ready { color: #a6dcc3; background: #152d25; border-color: #345a49; }
.download-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 13px; border: 1px solid #594055; border-radius: 7px; background: #241b2b; color: #f3dcea; font-size: 11px; font-weight: 650; white-space: nowrap; transition: border-color .15s ease, background .15s ease; }
.download-link:hover { border-color: var(--magenta-light); background: #321b2d; }
.download-link svg { flex-shrink: 0; }
.release-info { display: flex; align-items: center; flex-wrap: wrap; column-gap: 20px; row-gap: 10px; padding-top: 16px; color: var(--subtle); font-size: 11px; line-height: 1.6; }
.release-info strong { color: var(--muted); font-weight: 500; }
.release-info a { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--magenta-light); }
.release-info a:hover { text-decoration: underline; }
.footer-inner { color: #aaa2b6; }

/* Kurze Dokumentation */
.back-link { display: inline-block; font-size: 12px; color: var(--muted); margin-bottom: 29px; }
.back-link:hover { color: var(--text); }
.docs-heading { margin-bottom: 21px; }
.docs-meta { display: flex; flex-wrap: wrap; gap: 9px; }
.docs-meta > span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: 11px; color: var(--muted); line-height: 1.6; }
.docs-meta strong { color: var(--text); font-weight: 550; margin-left: 4px; }
.docs-layout { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 52px; margin-top: 46px; align-items: start; }
.docs-sidebar { position: sticky; top: 110px; }
.sidebar-title { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: var(--subtle); padding: 0 0 16px 12px; }
.docs-sidebar nav { display: flex; flex-direction: column; }
.docs-sidebar a { padding: 11px 12px; font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); line-height: 1.6; }
.docs-sidebar a:hover { color: var(--text); background: var(--surface); border-color: var(--magenta); }
.docs-sidebar a span { display: inline-block; color: var(--subtle); font-size: 10px; margin-right: 10px; }
.docs-sidebar a.sidebar-help { display: flex; align-items: center; gap: 8px; color: var(--magenta-light); margin-top: 18px; border-left: none; }
.steps { list-style: none; padding: 0; margin: 0; }
.step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 17px; padding-bottom: 33px; }
.step + .step { border-top: 1px solid var(--line); padding-top: 29px; }
.step-number { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #633048; border-radius: 8px; color: var(--magenta-light); background: #281623; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.step h2 { font-size: 18px; font-weight: 650; letter-spacing: -.4px; line-height: 1.5; padding-top: 2px; }
.step p, .faq-list p { color: var(--muted); font-size: 13px; line-height: 1.85; margin-top: 10px; }
.step p strong, .faq-list p strong { color: #e1dce7; font-weight: 600; }
.step p code, .faq-list p code { padding: 2px 5px; color: #e7c9dd; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; font-size: 11px; overflow-wrap: anywhere; }
.text-link { color: var(--magenta-light); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: #ffa4cc; }
.step p.step-note { font-size: 12px; color: var(--subtle); line-height: 1.7; }
.inline-downloads { margin-top: 15px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--surface); }
.inline-downloads > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; }
.inline-downloads > div + div { border-top: 1px solid var(--line); }
.inline-downloads > div > span { font-size: 12px; color: #cec6d4; line-height: 1.5; }
.compact-download { font-size: 10px; min-height: 36px; padding: 8px 10px; }
.inline-help { margin-top: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.inline-help summary { padding: 14px 16px; font-size: 12px; line-height: 1.6; color: #d9cddb; cursor: pointer; }
.inline-help > div { padding: 0 16px 16px; }
.inline-help > div > p:first-child { margin-top: 0; }
.command { display: block; color: #e7c9dd; font-size: 12px; overflow-wrap: anywhere; padding: 12px; margin-top: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.docs-address { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 15px; margin-top: 14px; background: var(--surface); border: 1px solid #54304c; border-radius: 9px; }
.docs-address code { color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.docs-address .copy-button { min-height: 37px; min-width: 103px; font-size: 11px; padding: 9px 12px; }
.step .copy-feedback { margin-top: 7px; min-height: 19px; color: #ed9dc2; font-size: 11px; }
.help-section { border-top: 1px solid var(--line); padding-top: 30px; margin-left: 51px; }
.help-section > h2 { font-size: 20px; }
.faq-list { margin-top: 17px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { font-size: 13px; line-height: 1.6; color: #ddd5e3; padding: 17px 0; cursor: pointer; }
.faq-list details[open] summary { color: var(--magenta-light); }
.faq-list details > div { padding-bottom: 18px; }
.faq-list details p:first-child { margin-top: 0; }
.source-note { font-size: 11px; color: var(--subtle); line-height: 1.8; margin-top: 25px; }
.source-note a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 850px) {
  .docs-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; }
  .docs-sidebar a { padding-inline: 8px; font-size: 11px; }
  .docs-sidebar a span { margin-right: 6px; }
  .inline-downloads > div { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  [id] { scroll-margin-top: 134px; }
  .header-inner { flex-direction: column; gap: 5px; padding-block: 13px 5px; }
  .site-header nav { gap: 27px; width: 100%; justify-content: center; }
  .site-header nav a { padding-block: 10px 14px; }
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-card { min-height: 143px; padding: 21px; }
  .content-section { margin-top: 46px; }
  .section-index { display: none; }
  .download-row { grid-template-columns: 39px minmax(0, 1fr); gap: 11px 14px; padding: 20px; }
  .file-icon { width: 39px; height: 44px; }
  .download-row > .download-link { grid-column: 2; justify-self: start; }
  .download-description h3 { font-size: 14px; }
  .release-info { align-items: flex-start; flex-direction: column; gap: 6px; }
  .release-info a { margin-left: 0; margin-top: 5px; }
  .docs-layout { display: block; margin-top: 32px; }
  .docs-sidebar { position: static; margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
  .docs-sidebar nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
  .docs-sidebar a { font-size: 11px; padding-block: 9px; }
  .docs-sidebar a.sidebar-help { margin-top: 8px; grid-column: 1 / -1; }
  .sidebar-title { padding-bottom: 9px; }
  .help-section { margin-left: 0; }
  .back-link { margin-bottom: 25px; }
  .footer-inner { line-height: 1.7; }
}
@media (max-width: 470px) {
  .brand-domain { display: inline; }
  .brand { font-size: 17px; }
  .site-header nav { gap: 22px; font-size: 11px; }
  .detail-card { padding: 19px 16px; }
  .guide-link { padding: 17px; gap: 12px; }
  .guide-symbol { display: none; }
  .download-row { padding: 18px 16px; }
  .notice { padding: 14px; }
  .step { grid-template-columns: 27px minmax(0, 1fr); gap: 12px; }
  .step-number { width: 27px; height: 29px; border-radius: 6px; font-size: 10px; }
  .step h2 { font-size: 17px; }
  .step p, .faq-list p { font-size: 13px; }
  .docs-address { flex-direction: column; align-items: stretch; padding: 13px; }
  .docs-address code { font-size: 12px; padding-block: 4px; }
  .inline-downloads > div { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .compact-download { width: 100%; }
  .footer-inner { flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding-block: 19px; }
}
@media (max-width: 340px) {
  .site-header nav { gap: 15px; }
  .container { width: calc(100% - 28px); }
  .docs-sidebar nav { grid-template-columns: 1fr; }
  .download-row { grid-template-columns: minmax(0, 1fr); }
  .file-icon { display: none; }
  .download-row > .download-link { grid-column: 1; }
  .step { grid-template-columns: minmax(0, 1fr); }
}
