/* ---------------------------------------------------------------
   kefkas.studio / Tools – Übersichtsseite (Design wie Startseite, 2026-10-19)
   Farbe je Kategorie: .cat-<id> setzt --c (Akzent) und --c2 (zweiter Ton)
   --------------------------------------------------------------- */

:root {
  color-scheme: dark;
  --bg: #0b0b10;
  --bg2: #101018;
  --surface: #14141d;
  --surface2: #1a1a25;
  --line: #262633;
  --line2: #34344a;
  --ink: #ece8e1;
  --muted: #a29eaa;
  --gold: #c9a83e;
  --gold-soft: #e2c76a;
  --blue: #5b8cff;
  --radius: 16px;
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Kategorie-Farben */
.cat-dokumente     { --c: #f2a33a; --c2: #f7c46c; }
.cat-konvertierung { --c: #5b8cff; --c2: #8fb0ff; }
.cat-vergleich     { --c: #2ec4a6; --c2: #6fe3c9; }
.cat-netzwerk      { --c: #a68bff; --c2: #c6b5ff; }
.cat-generatoren   { --c: #ff7aa8; --c2: #ffadc9; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1000px 480px at 8% 0%, rgba(91, 140, 255, .10), transparent 60%),
    radial-gradient(900px 460px at 100% 0%, rgba(201, 168, 62, .07), transparent 60%);
  background-repeat: no-repeat;
  background-position: 0 64px, 0 64px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 6px; }

/* ---------- Kopfzeile (wie Startseite) ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(201, 168, 62, .35); }
.brand-name { font-weight: 650; letter-spacing: .02em; font-size: 15px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: var(--ink); }

/* ---------- Intro, Suche, Filter ---------- */
.intro { padding: 52px 0 36px; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.intro h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.12; letter-spacing: -.02em; font-weight: 720; max-width: 20ch; text-wrap: balance; }
.lead { margin-top: 14px; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); max-width: 60ch; }

.controls { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.search {
  display: flex; align-items: center; gap: 10px;
  max-width: 520px; padding: 0 16px; height: 50px;
  border: 1px solid var(--line2); border-radius: 12px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(91, 140, 255, .18); }
.search-icon { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--muted); stroke-width: 2; fill: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.search input::placeholder { color: #8a8692; }
.search input::-webkit-search-cancel-button { filter: invert(.7); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line2); border-radius: 999px;
  background: transparent; color: var(--muted);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chip[class*="cat-"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip:hover { color: var(--ink); border-color: #4a4a62; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #14141d; }

/* ---------- Kategorien ---------- */
.category { margin-bottom: 44px; }
.category-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.category-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.category-head h2 { font-size: 20px; letter-spacing: -.01em; font-weight: 700; }
.category-count { color: var(--muted); font-size: 13px; font-weight: 600; padding: 1px 9px; border: 1px solid var(--line2); border-radius: 999px; }

.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }

/* ---------- Kachel ---------- */
.tool {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: inherit; text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
a.tool:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--c) 45%, var(--line));
  background: var(--surface2);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .9);
}
a.tool:focus-visible { border-color: var(--c); }
.icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  color: var(--c2);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px; font-weight: 800; letter-spacing: -.02em;
  transition: background .2s, color .2s;
}
a.tool:hover .icon { background: var(--c); color: #111; }
.tool-text { min-width: 0; }
.tool h3 { font-size: 17px; line-height: 1.3; font-weight: 700; margin-bottom: 6px; }
.tool p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.tool.is-planned { opacity: .6; cursor: default; }
.status { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; vertical-align: 2px; }
.status.planned { background: #232331; color: var(--muted); }

/* ---------- Empfohlen (Konverter) ---------- */
.category.featured { margin-bottom: 48px; }
.tool.is-featured {
  display: block; position: relative; overflow: hidden;
  padding: 32px 34px; border-color: color-mix(in srgb, var(--c) 35%, var(--line));
  background:
    radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%),
    radial-gradient(500px 260px at 0% 100%, rgba(201, 168, 62, .08), transparent 70%),
    var(--surface);
}
.tool.is-featured::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(91, 140, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 140, 255, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
  mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.featured-main { position: relative; z-index: 1; }
.featured-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tool.is-featured .icon { width: 60px; height: 60px; border-radius: 18px; font-size: 15px; background: var(--c); color: #0b1020; border: 0; }
.featured-badge { padding: 5px 12px; border-radius: 999px; background: rgba(201, 168, 62, .14); color: var(--gold-soft); border: 1px solid rgba(201, 168, 62, .35); font-size: 12.5px; font-weight: 700; }
.tool.is-featured h2 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.02em; font-weight: 720; margin-bottom: 10px; }
.tool.is-featured > .featured-main > p { max-width: 820px; color: #cfcbd4; font-size: 16px; line-height: 1.6; }
.featured-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.featured-tags li { padding: 5px 12px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(255, 255, 255, .03); color: var(--ink); font-size: 13.5px; font-weight: 600; }
.tool.is-featured .featured-extras { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 900px; }
.featured-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; padding: 12px 20px; border-radius: 10px; background: var(--c); color: #0b1020; font-size: 15px; font-weight: 700; transition: background .15s; }
a.tool.is-featured:hover { transform: none; }
a.tool.is-featured:hover .featured-cta { background: var(--c2); }
a.tool.is-featured:hover .icon { background: var(--c2); }

/* ---------- Leer / Idee ---------- */
.empty { padding: 48px 0; color: var(--muted); font-size: 15px; text-align: center; }
.idea {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin: 8px 0 64px; padding: 28px 32px; border-radius: var(--radius);
  border: 1px dashed var(--line2); background: rgba(255, 255, 255, .02);
}
.idea h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.idea p { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px; background: var(--gold); color: #16130a; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--gold-soft); }

/* ---------- Fußzeile (wie Startseite) ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; font-size: 14px; }
.footer-inner p { color: var(--muted); }
.footer-inner nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--gold-soft); }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: 56px; }
  .brand img { width: 32px; height: 32px; }
  .intro { padding: 28px 0 24px; }
  .eyebrow { font-size: 11px; margin-bottom: 8px; }
  .lead { font-size: 15px; margin-top: 10px; }
  .controls { margin-top: 20px; }
  .search { max-width: none; height: 48px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .tools { grid-template-columns: 1fr; gap: 10px; }
  .tool { padding: 16px; gap: 14px; }
  .icon { width: 44px; height: 44px; border-radius: 12px; font-size: 12px; }
  .tool h3 { font-size: 16px; }
  .tool p { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .tool.is-featured .featured-extras { display: none; }
  .category { margin-bottom: 34px; }
  .tool.is-featured { padding: 22px 20px; }
  .tool.is-featured .icon { width: 52px; height: 52px; }
  .tool.is-featured > .featured-main > p { font-size: 15px; }
  .featured-cta { width: 100%; justify-content: center; }
  .idea { padding: 22px 20px; margin-bottom: 48px; }
  .idea .btn { width: 100%; }
}
@media (max-width: 380px) {
  .brand-name { display: none; }
}
