/* HYOS Tools – gleiche Farben wie hyos.tech */
:root {
  --bg: #05070d;
  --bg-2: #080b14;
  --surface: #0c111c;
  --surface-2: #131928;
  --surface-3: #1c2335;
  --text: #f3f5fa;
  --text-2: #a9b1c1;
  --text-3: #7d8698;
  --line: #ffffff14;
  --line-2: #ffffff29;
  --accent: #2f5bff;
  --accent-2: #8098ff;
  --lime: #d6ff3f;
  --on-lime: #070a05;
  --warn: #ffc46b;
  --warn-text: #f3dcb5;
  --warn-bg: #ffb02e12;
  --warn-line: #ffb02e33;
  --bad: #ff8a80;
  --bad-bg: #ff5a4a14;
  --bad-line: #ff5a4a40;

  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* Keine externen Schriften (DSGVO): Systemschrift, Space Grotesk nur falls lokal installiert */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }

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

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

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 600px) { .wrap { padding-inline: 24px; } }

/* Hintergrund: blauer Schein + Punktraster wie auf hyos.tech */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 85% -10%, #2f5bff38, transparent 60%),
    radial-gradient(40rem 30rem at -10% 10%, #2f5bff1a, transparent 60%);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(#ffffff12 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
          mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

/* Kopfzeile */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }

.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; font-size: .95rem; }
.brand-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 14px #d6ff3f99; }
.brand .dim { color: var(--text-3); }
.brand-sep { color: var(--text-3); font-weight: 400; }
.brand-sub { color: var(--text-2); font-weight: 600; }

.social { display: flex; gap: 6px; }
.social a {
  font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--text-2);
  padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  transition: color .2s, background-color .2s, border-color .2s;
}
.social a:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 400px) {
  .brand-sep, .brand-sub { display: none; }
  .social a { padding: 7px 10px; }
}

/* Hero */
.hero { padding-top: 28px; padding-bottom: 28px; }
@media (min-width: 760px) { .hero { padding-top: 64px; padding-bottom: 40px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #0c111ccc; color: var(--text-2); font-size: .82rem; font-weight: 600;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 #d6ff3f80; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #d6ff3f80; } 70% { box-shadow: 0 0 0 8px #d6ff3f00; } 100% { box-shadow: 0 0 0 0 #d6ff3f00; } }

h1 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.35rem, 8.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em;
  text-wrap: balance;
}
h1 .hl { color: var(--lime); }
.lead { margin: 18px 0 0; max-width: 54ch; color: var(--text-2); font-size: clamp(1rem, 2.4vw, 1.15rem); line-height: 1.6; }

/* Banner (optional) */
.banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 20px;
  padding: 16px 18px; border-radius: var(--radius); text-decoration: none;
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(120deg, #d6ff3f88, #2f5bff88) border-box;
}
.banner strong { font-family: var(--font-display); font-size: 1.05rem; }
.banner .banner-text { color: var(--text-2); flex: 1 1 220px; }

/* Such- und Filterleiste */
.toolbar {
  position: sticky; top: 0; z-index: 20; padding-block: 12px;
  background: #05070dd9; -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.toolbar.is-stuck { border-bottom-color: var(--line); }

.search {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 16px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px #d6ff3f1f; }
.search-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  color: var(--text); font: 500 16px/1 var(--font);
}
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.search-kbd {
  flex: none; font: 600 .75rem/1 var(--mono); color: var(--text-3);
  padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 8px;
}
@media (hover: none) { .search-kbd { display: none; } }

.chips {
  display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
          mask-image: linear-gradient(to right, #000 88%, transparent);
  padding-right: 32px;
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { -webkit-mask-image: none; mask-image: none; padding-right: 0; flex-wrap: wrap; } }

.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent;
  color: var(--text-2); font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
}
.chip:hover { color: var(--text); background: var(--surface-2); }
.chip .n { font: 600 .72rem/1 var(--mono); color: var(--text-3); }
.chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.chip[aria-pressed="true"] .n { color: #070a05aa; }

/* Abschnitte */
.section { padding-top: 28px; }
.section[hidden] { display: none; }
.section-head { margin-bottom: 14px; }
.section-head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section h2 { margin: 0; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.015em; }
.section-sub, .count { margin: 4px 0 0; color: var(--text-3); font-size: .88rem; }
.count { font-family: var(--mono); font-size: .8rem; }

/* Raster */
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Karte */
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, transform .35s var(--ease);
  scroll-margin-top: 150px;
}
.card:hover { border-color: var(--line-2); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-2px); } }

.card--own {
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, #2f5bffaa, #d6ff3f66 70%, #2f5bff44) border-box;
  box-shadow: 0 24px 60px -30px #2f5bff66;
}
.card--own:hover { border-color: transparent; }

.card.flash { animation: flash 2.6s var(--ease); }
@keyframes flash {
  0%, 30% { box-shadow: 0 0 0 2px var(--lime), 0 0 40px #d6ff3f40; }
  100% { box-shadow: 0 0 0 2px transparent, 0 0 0 transparent; }
}

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  font: 700 .68rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.badge-new { background: var(--lime); color: var(--on-lime); }
.badge-hot { background: #2f5bff2e; color: #b9c6ff; border: 1px solid #2f5bff55; }
.badge-own { background: transparent; color: var(--lime); border: 1px solid #d6ff3f66; }
.date { color: var(--text-3); font: 500 .75rem/1 var(--mono); white-space: nowrap; margin-left: auto; }

.card h3 { margin: 0; font-family: var(--font-display); font-size: 1.28rem; line-height: 1.2; letter-spacing: -.015em; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: " #"; color: var(--text-3); opacity: 0; transition: opacity .2s; }
.card h3 a:hover::after, .card h3 a:focus-visible::after { opacity: 1; }

.what { margin: 0; color: var(--text-2); font-size: .95rem; line-height: 1.55; }

.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.platforms li {
  padding: 4px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-2); font: 500 .72rem/1.2 var(--mono);
}

.shortcut { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--text-3); font: 600 .8rem/1 var(--mono); }
kbd {
  display: inline-block; padding: 6px 9px; border-radius: 7px; background: var(--surface-3);
  border: 1px solid var(--line-2); border-bottom-width: 3px; color: var(--text); font: 700 .82rem/1 var(--mono);
}

.cmd {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; min-width: 0;
  background: #070a12; border: 1px solid var(--line); border-radius: 10px;
}
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; color: #d7defb; font: 500 .8rem/1.4 var(--mono); }
.cmd code::-webkit-scrollbar { display: none; }
.copy {
  flex: none; height: 32px; padding: 0 10px; border-radius: 7px; cursor: pointer;
  background: var(--surface-3); border: 1px solid var(--line-2); font-size: .78rem; font-weight: 600;
}
.copy:hover { background: #262e44; }
.copy.is-done { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }

.catch {
  margin: 0; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text);
  font-size: .87rem; line-height: 1.5;
}
.catch strong { color: var(--warn); }
.catch--offline { background: var(--bad-bg); border-color: var(--bad-line); color: #ffd6d1; }
.catch--offline strong { color: var(--bad); }

.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.src { margin: 0; color: var(--text-3); font: 500 .72rem/1.3 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .btn-primary, .actions .btn-disabled { flex: 1 1 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-size: .92rem; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, filter .2s;
}
.btn svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--lime); color: var(--on-lime); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-ghost svg { fill: currentColor; stroke: none; width: 12px; height: 12px; }
.btn-disabled { border: 1px dashed var(--line-2); color: var(--text-3); cursor: not-allowed; }

/* Leerer Zustand */
.empty { padding: 36px 20px; text-align: center; color: var(--text-2); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty p { margin: 0 auto 14px; max-width: 46ch; }
.empty-title { color: var(--text); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 6px !important; }

/* Sicherheitshinweis */
.safety { padding: 22px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
@media (min-width: 700px) { .safety { padding: 28px 32px; } }
.safety h2 { margin: 0 0 12px; font-size: 1.1rem; }
.safety ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
@media (min-width: 860px) { .safety ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; } }
.safety li { position: relative; padding-left: 18px; color: var(--text-2); font-size: .93rem; line-height: 1.55; }
.safety li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); }
.safety strong { color: var(--text); }

/* Footer */
.footer { margin-top: 56px; border-top: 1px solid var(--line); background: #05070d99; }
.footer-inner { display: grid; gap: 28px; padding-block: 40px calc(40px + env(safe-area-inset-bottom)); }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.footer-cta h2 { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 4.5vw, 2.1rem); letter-spacing: -.025em; line-height: 1.1; }
.footer-cta p { margin: 8px 0 18px; color: var(--text-2); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-meta { display: grid; gap: 14px; }
@media (min-width: 860px) { .footer-meta { justify-items: end; text-align: right; } }
.agency { color: var(--text-3); text-decoration: none; font-size: .9rem; }
.agency span { color: var(--text-2); font-weight: 600; }
.agency:hover span { color: var(--lime); }
.legal { display: flex; gap: 18px; }
.legal a { color: var(--text-3); font-size: .85rem; text-decoration: none; }
.legal a:hover { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
