:root {
      --bg:       #1a2236;
      --bg-1:     #1f2a42;
      --bg-2:     #243050;
      --surface:  rgba(255,255,255,0.06);
      --surf-2:   rgba(255,255,255,0.10);
      --line:     rgba(150,190,255,0.13);
      --line-2:   rgba(150,190,255,0.24);
      --text:     #f0f5ff;
      --muted:    #9db4d4;
      --muted-2:  #6a8aaa;
      --accent:   #4da3ff;
      --accent-2: #82c4ff;
      --green:    #34e8b0;
      --amber:    #ffb830;
      --red:      #ff6060;
      --r-xl:     22px;
      --r-lg:     16px;
      --r-md:     11px;
      --shadow:   0 6px 32px rgba(0,0,0,0.28);
      --font:     'DM Sans', sans-serif;
      --mono:     'DM Mono', monospace;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; scroll-padding-top: 72px; }

    body {
      font-family: var(--font);
      color: var(--text);
      background: var(--bg);
      min-height: 100vh;
      line-height: 1.6;
      background-image:
        radial-gradient(ellipse 80% 50% at 10% -5%, rgba(77,163,255,.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 105%, rgba(52,232,176,.12) 0%, transparent 50%);
    }

    a { color: inherit; text-decoration: none; }
    button, input, select { font: inherit; }

    .container {
      width: min(1200px, calc(100% - 32px));
      margin: 0 auto;
    }

    /* ─── HEADER ───────────────────────────────────────── */
    .site-header {
      position: sticky; top: 0; z-index: 200;
      background: rgba(20,30,55,.92);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--line);
    }
    .header-inner {
      height: 64px;
      display: flex; align-items: center;
      justify-content: space-between; gap: 16px;
    }
    .brand {
      display: flex; align-items: center; gap: 11px;
      font-weight: 700; font-size: 1rem; letter-spacing: -.02em;
    }
    .brand-badge {
      width: 38px; height: 38px; border-radius: 11px;
      background: linear-gradient(135deg, var(--accent), #1a60d4);
      display: grid; place-items: center;
      font-weight: 700; color: #fff; font-size: .95rem;
      box-shadow: 0 0 18px rgba(59,142,255,.30);
    }
    .brand-sub { font-size: .75rem; color: var(--muted-2); font-weight: 400; }
    .nav-toggle {
      display: none;
      background: var(--surface); color: var(--text);
      border: 1px solid var(--line); border-radius: 9px;
      padding: 7px 13px; cursor: pointer; font-size: .88rem;
    }
    .main-nav { display: flex; align-items: center; gap: 3px; }
    .nav-link {
      padding: 7px 13px; border-radius: 9px;
      color: var(--muted); font-size: .88rem;
      transition: color .15s, background .15s;
      border: 1px solid transparent; cursor: pointer;
    }
    .nav-link:hover { color: var(--text); background: var(--surface); }
    .nav-link.active { color: #fff; background: var(--accent); border-color: var(--accent); }

    /* ─── PAGES ────────────────────────────────────────── */
    main { padding: 40px 0 72px; }
    .page { display: none; animation: fadeUp .22s ease; }
    .page.active { display: block; }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ─── CARDS ────────────────────────────────────────── */
    .card {
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(150,190,255,0.18);
      border-radius: var(--r-xl);
      backdrop-filter: blur(16px);
      box-shadow: var(--shadow);
    }
    .p-lg { padding: 30px 32px; }
    .p-md { padding: 20px 22px; }

    /* ─── STARTSEITE ───────────────────────────────────── */
    .hero-grid {
      display: grid; grid-template-columns: 1.4fr .6fr;
      gap: 18px; margin-bottom: 18px;
    }
    .hero-main { padding: 34px 36px; }
    .eyebrow {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 4px 11px; border-radius: 999px;
      background: rgba(59,142,255,.08); border: 1px solid rgba(59,142,255,.2);
      color: var(--accent-2); font-size: .78rem; font-weight: 600;
      letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px;
    }
    .hero-main h1 {
      font-size: clamp(1.8rem, 3.2vw, 2.8rem);
      font-weight: 700; line-height: 1.12;
      letter-spacing: -.03em; margin-bottom: 14px;
    }
    .hero-main p { color: var(--muted); font-size: .97rem; max-width: 50ch; }
    .btn-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
    .btn {
      display: inline-flex; align-items: center; gap: 7px;
      min-height: 40px; padding: 0 18px;
      border-radius: 11px; border: 1px solid var(--line);
      cursor: pointer; font-size: .88rem; font-weight: 500;
      transition: transform .14s, filter .14s, background .14s;
      white-space: nowrap; background: transparent; color: var(--text);
    }
    .btn-primary {
      background: linear-gradient(135deg, var(--accent), #1a60d4);
      color: #fff; border: none; font-weight: 600;
      box-shadow: 0 0 18px rgba(59,142,255,.22);
    }
    .btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
    .btn-ghost:hover { background: var(--surf-2); }

    .hero-aside { padding: 24px; }
    .hero-aside h3 { font-size: .95rem; font-weight: 600; margin-bottom: 7px; }
    .hero-aside p { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
    .check-list { list-style: none; display: grid; gap: 8px; }
    .check-list li { display: flex; align-items: flex-start; gap: 9px; font-size: .84rem; color: var(--muted); }
    .check-list li::before {
      content: '✓'; flex-shrink: 0; width: 18px; height: 18px;
      border-radius: 5px; margin-top: 1px;
      background: rgba(77,163,255,.15); border: 1px solid rgba(77,163,255,.30);
      color: var(--accent-2); font-size: .7rem; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
    }

    /* category cards on startseite */
    .cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .cat-card {
      background: rgba(255,255,255,0.07); border: 1px solid rgba(150,190,255,0.18);
      border-radius: var(--r-lg); padding: 20px 22px;
      transition: border-color .2s, box-shadow .2s, background .2s; cursor: pointer;
      user-select: none;
    }
    .cat-card:hover { border-color: rgba(77,163,255,0.4); background: rgba(255,255,255,0.10); box-shadow: var(--shadow); }
    .cat-icon {
      width: 42px; height: 42px; border-radius: 13px;
      background: rgba(59,142,255,.1); border: 1px solid rgba(59,142,255,.18);
      display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 12px;
    }
    .cat-card h3 { font-size: .93rem; font-weight: 600; margin-bottom: 5px; }
    .cat-card p  { font-size: .82rem; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
    .cat-count { font-size: .75rem; color: var(--accent-2); font-weight: 600; margin-top: 10px; display: block; }

    /* ─── RECHNER PAGE ─────────────────────────────────── */
    .rechner-header { margin-bottom: 20px; }
    .rechner-header h1 { font-size: 1.7rem; font-weight: 700; letter-spacing: -.025em; margin-bottom: 6px; }
    .rechner-header p  { color: var(--muted); font-size: .88rem; }

    /* Category tabs */
    .cat-tabs {
      display: flex; gap: 6px; flex-wrap: wrap;
      margin-bottom: 24px;
      padding: 20px 0;
      border-bottom: 1px solid var(--line);
      border-top: 1px solid var(--line);
    }
    .cat-tab {
      display: flex; align-items: center; gap: 7px;
      padding: 8px 14px; border-radius: 11px;
      background: rgba(255,255,255,0.05); border: 1px solid rgba(150,190,255,0.18);
      color: var(--muted); font-size: .85rem; font-weight: 500;
      cursor: pointer; transition: all .15s;
    }
    .cat-tab:hover { background: rgba(255,255,255,0.10); color: var(--text); }
    .cat-tab.active {
      background: rgba(77,163,255,.15); border-color: rgba(77,163,255,.4);
      color: var(--accent-2);
    }
    .cat-tab-icon { font-size: 1rem; }

    /* Tool grid */
    .tool-section { display: none; }
    .tool-section.active { display: block; }

    .tool-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
    }

    /* ─── TOOL CARD ────────────────────────────────────── */
    .tool-card {
      background: rgba(255,255,255,0.07); border: 1px solid rgba(150,190,255,0.18);
      border-radius: var(--r-xl); overflow: hidden;
      box-shadow: var(--shadow); display: flex; flex-direction: column;
    }
    .tool-head {
      padding: 18px 20px 14px;
      background: rgba(255,255,255,0.04);
      border-bottom: 1px solid rgba(150,190,255,0.15);
      border-radius: var(--r-xl) var(--r-xl) 0 0;
      display: flex; align-items: center; gap: 12px;
      overflow: hidden;
    }
    .tool-icon {
      width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
      background: rgba(77,163,255,.12); border: 1px solid rgba(77,163,255,.25);
      display: grid; place-items: center; font-size: 1.15rem;
      box-shadow: 0 2px 8px rgba(77,163,255,.15);
    }
    .tool-head-text h3 { font-size: .97rem; font-weight: 700; line-height: 1.2; }
    .output-label { font-size: .7rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 4px; }
    .tool-head-text p  { font-size: .78rem; color: var(--muted-2); margin-top: 2px; }

    .tool-body { padding: 0; flex: 1; display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
    .tool-inputs { padding: 20px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
    .tool-output { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; background: rgba(10,20,45,0.35); }
    @media (max-width: 700px) {
      .tool-body { grid-template-columns: 1fr; }
      .tool-inputs { border-right: none; border-bottom: 1px solid var(--line); }
      .tool-output { border-radius: 0 0 var(--r-xl) var(--r-xl); }
    }

    .tool-results {
      display: grid; gap: 8px;
      grid-template-columns: 1fr 1fr;
    }

    .res-card {
      background: rgba(255,255,255,0.08); border: 1px solid rgba(150,190,255,0.18);
      border-radius: var(--r-md); padding: 12px 14px;
    }
    .res-label {
      font-size: .68rem; color: var(--muted-2); text-transform: uppercase;
      letter-spacing: .07em; font-weight: 600; margin-bottom: 5px;
    }
    .res-val {
      font-family: var(--mono); font-size: 1.2rem; font-weight: 600;
      line-height: 1.1; color: var(--text);
    }
    .res-val.accent  { color: var(--accent-2); }
    .res-val.green   { color: var(--green); }
    .res-val.amber   { color: var(--amber); }
    .res-card.full   { grid-column: 1 / -1; }

    /* ─── FORM ELEMENTS ────────────────────────────────── */
    .fields { display: grid; gap: 12px; }
    .row-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }

    .field { display: grid; gap: 5px; }
    .field-row { display: flex; justify-content: space-between; align-items: baseline; }
    .field label { font-size: .78rem; font-weight: 600; color: var(--text); letter-spacing: .01em; }
    .field-hint  { font-size: .72rem; color: var(--muted-2); }

    .iw {
      display: flex; align-items: center;
      background: rgba(255,255,255,0.07); border: 1px solid rgba(150,190,255,0.22);
      border-radius: var(--r-md); overflow: hidden;
      transition: border-color .14s, box-shadow .14s;
      position: relative;
    }
    .iw:has(select):focus-within {
      z-index: 50;
    }
    .iw:focus-within {
      border-color: rgba(59,142,255,.45);
      box-shadow: 0 0 0 3px rgba(59,142,255,.09);
    }
    .iw input {
      flex: 1; min-height: 40px; padding: 0 12px;
      background: transparent; border: none; color: var(--text);
      outline: none; font-family: var(--mono); font-size: .9rem;
    }
    .iw input::placeholder { color: var(--muted-2); }
    .iw select {
      flex: 1; min-height: 40px; padding: 0 12px;
      background: rgba(255,255,255,0.07); border: none; color: var(--text);
      outline: none; font-family: var(--font); font-size: .88rem;
      -webkit-appearance: none; appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a7a9a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 34px;
      cursor: pointer;
    }
    .iw select option {
      background: #243050;
      color: #f0f5ff;
    }
    .iw-unit {
      padding: 0 11px; color: var(--muted-2); font-size: .75rem;
      font-family: var(--mono); border-left: 1px solid var(--line);
      white-space: nowrap; flex-shrink: 0;
    }

    /* slider */
    .slider-row { display: flex; align-items: center; gap: 10px; margin-top: 3px; }
    input[type="range"] {
      flex: 1; -webkit-appearance: none; height: 3px;
      background: rgba(150,190,255,0.30); border-radius: 99px; outline: none; cursor: pointer;
    }
    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none; width: 16px; height: 16px;
      border-radius: 50%; background: var(--accent);
      box-shadow: 0 0 6px rgba(59,142,255,.5);
      cursor: pointer; transition: transform .1s;
    }
    input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
    .slider-lbl {
      min-width: 52px; max-width: 62px; text-align: right; flex-shrink: 0;
      font-family: var(--mono); font-size: .75rem; color: var(--accent-2);
      white-space: nowrap; overflow: hidden; text-overflow: clip;
    }

    /* divider */
    hr.div { border: none; border-top: 1px solid var(--line); margin: 6px 0; }

    /* ─── LEGAL ────────────────────────────────────────── */
    .legal-wrap { max-width: 700px; padding-top: 4px; }
    .legal-wrap h1 { font-size: 1.7rem; font-weight: 700; margin-bottom: 20px; margin-top: 4px; }
    .legal-wrap h2 { font-size: .97rem; font-weight: 600; margin-bottom: 7px; }
    .legal-wrap p  { font-size: .88rem; color: var(--muted); line-height: 1.75; }
    .legal-s { padding: 18px 0; border-bottom: 1px solid var(--line); }
    .legal-s:last-child { border-bottom: none; }

    .info-box {
      border-radius: var(--r-md); padding: 12px 14px;
      font-size: .82rem; line-height: 1.6;
      background: rgba(255,184,48,.10); border: 1px solid rgba(255,184,48,.28); color: #ffe0a0;
    }
    .info-box.blue {
      background: rgba(77,163,255,.10); border-color: rgba(77,163,255,.28); color: #b8d8ff;
    }

    /* ─── FOOTER ───────────────────────────────────────── */
    .site-footer { border-top: 1px solid var(--line); background: rgba(20,30,55,.6); }
    .footer-inner {
      min-height: 58px; display: flex; align-items: center;
      justify-content: space-between; gap: 16px;
      font-size: .8rem; color: var(--muted-2); flex-wrap: wrap; padding: 10px 0;
    }
    .footer-links { display: flex; gap: 18px; }
    .footer-links a:hover { color: var(--text); }

    /* ─── RESPONSIVE ───────────────────────────────────── */
    @media (max-width: 900px) {
      .hero-grid  { grid-template-columns: 1fr; }
      .cat-grid   { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 640px) {
      .cat-grid   { grid-template-columns: 1fr; }
      .tool-grid  { grid-template-columns: 1fr; }
      .row-2      { grid-template-columns: 1fr; }
      .nav-toggle { display: inline-flex; }
      .main-nav   { display: none; width: 100%; flex-direction: column; padding: 10px 0 14px; }
      .main-nav.open { display: flex; }
      .header-inner { height: auto; padding: 10px 0; flex-wrap: wrap; }
      .hero-main  { padding: 22px; }
    }

    /* ── Select dropdown fix ───────────────────────── */
    select {
      color-scheme: dark;
    }
    .iw select {
      color-scheme: dark;
    }

    /* ── Card layout fix: ensure body doesn't clip ── */
    .tool-card {
      overflow: visible !important;
    }
    .tool-head {
      border-radius: var(--r-xl) var(--r-xl) 0 0;
      overflow: hidden;
    }
    .tool-body {
      border-radius: 0 0 var(--r-xl) var(--r-xl);
    }

    /* ── Slider row: prevent label truncation ──────── */
    .slider-row {
      display: flex; align-items: center; gap: 10px; margin-top: 3px;
      min-width: 0;
    }
    .slider-row input[type="range"] {
      min-width: 0; flex: 1;
    }

    /* ── field-hint on small screens ──────────────── */
    .field-row {
      display: flex; flex-wrap: wrap;
      justify-content: space-between; align-items: baseline; gap: 4px;
    }

/* ── Neue Tool-Elemente ─────────────────────────────────────────── */
textarea {
  color-scheme: dark;
}
textarea:focus {
  border-color: rgba(77,163,255,.45) !important;
  box-shadow: 0 0 0 3px rgba(77,163,255,.09) !important;
}

/* QR-Code img */
#qr-img { max-width: 100%; border-radius: 10px; }

/* Port & HTTP Listen Scroll */
#port-list, #http-list {
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

/* Cron Beispiel-Buttons Reihe */
.cron-row { display: flex; flex-wrap: wrap; gap: 4px; }

/* Regex Highlight */
#rx-preview mark { border-radius: 3px; }

/* Farb-Picker Wrapper */
input[type="color"] {
  -webkit-appearance: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 2px;
  cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 8px; }

/* Checkbox Label in Fields */
.field label input[type="checkbox"] {
  flex-shrink: 0;
}

/* ── Suche ──────────────────────────────────────────────────────── */
#tool-search-input::placeholder { color: var(--muted-2); }
#tool-search-input:focus { outline: none; }
#tool-search-bar .iw:focus-within {
  border-color: rgba(77,163,255,.5) !important;
  box-shadow: 0 0 0 4px rgba(77,163,255,.1);
}
#tool-search-results .tool-card {
  cursor: default;
}
#tool-search-results .tool-body {
  grid-template-columns: 1fr 1fr;
}
/* Search result cards don't recalculate - show as static */
#tool-search-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ── What's New Overlay ─────────────────────────────────────────── */
#wn-overlay {
  animation: wn-fade-in .25s ease;
}
@keyframes wn-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#wn-overlay > div {
  animation: wn-slide-up .3s cubic-bezier(.16,1,.3,1);
}
@keyframes wn-slide-up {
  from { transform: translateY(24px) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}


/* ══════════════════════════════════════════════════════════════════
   v2 Refresh — Hub, Breadcrumbs, TOC, Top-Tools
   ══════════════════════════════════════════════════════════════════ */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--muted-2);
  margin: 0 0 18px;
  padding: 0 4px;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* Kategorie-Page-Head */
.cat-page-head {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 4px;
}
.cat-intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 12px 0 20px;
}
.cat-intro-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 16px;
  background: rgba(77,163,255,.10);
  border: 1px solid rgba(77,163,255,.22);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}
.cat-intro h1 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 6px;
  line-height: 1.1;
}
.cat-intro p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
  max-width: 70ch;
}

/* TOC */
.cat-toc {
  margin: 18px 0 8px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.cat-toc summary {
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.cat-toc summary::-webkit-details-marker { display: none; }
.cat-toc summary::before {
  content: "▸";
  display: inline-block;
  font-size: .75rem;
  color: var(--muted-2);
  transition: transform .2s;
}
.cat-toc[open] summary::before {
  transform: rotate(90deg);
}
.cat-toc ol {
  margin: 12px 0 4px;
  padding: 0 0 0 4px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 14px;
}
.cat-toc li {
  font-size: .85rem;
}
.cat-toc a {
  display: block;
  padding: 4px 8px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  transition: all .12s;
}
.cat-toc a:hover {
  color: var(--accent);
  background: rgba(77,163,255,.08);
}

/* Hero auf Hub-Startseite */
.hero {
  text-align: center;
  padding: 48px 16px 56px;
  margin: 0 auto 32px;
  max-width: 800px;
}
.hero-eyebrow {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-2, var(--accent));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px rgba(77,163,255,.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.04);
  border-color: var(--muted-2);
}

/* Section-Heading auf Hub */
.section-h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 18px;
  padding: 0 4px;
}
.top-tools-section,
.cat-grid-section {
  max-width: 1200px;
  margin: 0 auto 40px;
}

/* Top-Tools Grid auf Hub */
.top-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.top-tool {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all .15s;
}
.top-tool:hover {
  border-color: rgba(77,163,255,.4);
  background: rgba(77,163,255,.04);
  transform: translateY(-1px);
}
.top-tool-icon {
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(77,163,255,.08);
  border: 1px solid rgba(77,163,255,.18);
}
.top-tool-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.top-tool-text strong {
  font-size: .92rem;
  font-weight: 600;
}
.top-tool-text span {
  font-size: .78rem;
  color: var(--muted-2);
}

/* Hub-Kategoriegrid (eigenständige Klasse, um nicht mit existierender cat-grid zu kollidieren) */
.cat-grid-hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.cat-grid-hub .cat-card {
  display: block;
  padding: 22px 22px 20px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all .18s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cat-grid-hub .cat-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(77,163,255,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.cat-grid-hub .cat-card:hover {
  background: rgba(77,163,255,.04);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -16px rgba(0,0,0,.5);
}
.cat-grid-hub .cat-card:hover::before {
  opacity: 1;
}
.cat-card-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: inline-block;
}
.cat-grid-hub .cat-card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 6px;
}
.cat-grid-hub .cat-card p {
  margin: 0 0 14px;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}
.cat-card-count {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(77,163,255,.10);
  border: 1px solid rgba(77,163,255,.20);
}

@media (max-width: 600px) {
  .hero { padding: 32px 12px 36px; }
  .cat-intro { gap: 12px; }
  .cat-intro-icon { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 12px; }
  .cat-intro h1 { font-size: 1.35rem; }
  .top-tools-grid, .cat-grid-hub { grid-template-columns: 1fr; }
}
