/* Jean&Len Tool-Suite – Launcher. Tokens der Suiten (Inter, Pink-Akzent, dunkles Blau). */
:root {
  --bg: #F7F8FA; --white: #FFFFFF; --ink: #111827; --ink-2: #374151; --ink-3: #6B7280;
  --border: #E5E7EB; --border-2: #F3F4F6; --pink: #D4608A; --pink-dark: #B8406E; --pink-light: #FDF0F5;
  --night: #1A1B2E; --success: #059669; --success-light: #ECFDF5; --warn: #C2410C; --warn-light: #FFF7ED;
  --r: 14px; --shadow: 0 1px 2px rgba(17,24,39,.05), 0 8px 24px rgba(17,24,39,.06);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
main { max-width: 1180px; margin: 0 auto; padding: 0 24px 60px; }

/* Kopfzeile */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--night); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; height: 60px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.brand-sub { font-size: 11px; font-weight: 600; color: var(--pink); text-transform: uppercase; letter-spacing: 2px; }
.topnav { display: flex; gap: 4px; }
.topnav a { color: #C8CDD5; text-decoration: none; font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 8px; }
.topnav a:hover { background: #2A2B3E; color: #fff; }
.topnav a.active { background: var(--pink); color: #fff; }

/* Hero + Suche */
.hero { text-align: center; padding: 56px 0 36px; }
.hero h1 { font-size: 30px; font-weight: 700; letter-spacing: -.5px; }
.hero p { color: var(--ink-3); margin-top: 6px; font-size: 15px; }
.searchbox { position: relative; max-width: 680px; margin: 22px auto 0; }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
#suche { width: 100%; height: 54px; padding: 0 20px 0 50px; border: 2px solid var(--border); border-radius: 27px; background: var(--white); font: inherit; font-size: 16px; color: var(--ink); outline: none; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
#suche:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(212,96,138,.15), var(--shadow); }
#suche::placeholder { color: #9CA3AF; }
.results { position: absolute; left: 0; right: 0; top: 62px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); box-shadow: 0 16px 40px rgba(17,24,39,.14); overflow: hidden; z-index: 30; text-align: left; }
.results[hidden] { display: none; }
.result { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border-2); cursor: pointer; }
.result:last-child { border-bottom: none; }
.result:hover { background: var(--pink-light); }
.result-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.result-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.result-name { font-weight: 600; font-size: 14px; }
.result-text { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-wo { font-size: 11px; font-weight: 600; color: var(--pink-dark); background: var(--pink-light); padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.result-empty { padding: 16px; font-size: 13px; color: var(--ink-3); }

/* Abschnitte */
.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--ink-3); margin: 36px 0 14px; display: flex; align-items: center; gap: 8px; scroll-margin-top: 80px; }
.section-title .count { font-size: 11px; background: var(--border); color: var(--ink-2); padding: 1px 8px; border-radius: 10px; letter-spacing: 0; }
.section-sub { color: var(--ink-3); font-size: 13px; margin: -8px 0 14px; }

/* Kacheln */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 4px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 18px 14px; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; min-height: 190px; }
.tile:hover { transform: translateY(-2px); border-color: var(--pink); box-shadow: 0 12px 28px rgba(17,24,39,.10); }
.tile-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 8px; }
.tile-team { font-size: 10px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1.2px; }
.tile-name { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.tile-text { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; flex: 1; }
.tile-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 11px; color: var(--ink-3); }
.tile-go { font-weight: 600; color: var(--pink-dark); opacity: 0; transition: opacity .15s; }
.tile:hover .tile-go { opacity: 1; }

/* Werkzeuge A–Z */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.tool { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.tool-name { font-weight: 600; font-size: 14px; }
.tool-text { font-size: 12.5px; color: var(--ink-2); }
.tool-wo { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tool-wo a { font-size: 12px; font-weight: 500; color: var(--pink-dark); background: var(--pink-light); border: 1px solid transparent; padding: 3px 10px; border-radius: 12px; text-decoration: none; }
.tool-wo a:hover { border-color: var(--pink); background: var(--white); }

/* KI-Agenten auf Anfrage */
.agent { scroll-margin-top: 80px; }
.agent:target { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-light); }
.agent-teams { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.agent-teams span { font-size: 11.5px; font-weight: 500; color: var(--ink-2); background: var(--border-2); border: 1px solid var(--border); padding: 2px 9px; border-radius: 12px; }
.pill { font-size: 10.5px; font-weight: 600; padding: 1px 8px; border-radius: 10px; vertical-align: 1px; margin-left: 4px; }
.pill.pilot { color: var(--warn); background: var(--warn-light); }
.agent-cta { margin: 14px 0 0; padding: 14px 16px; background: var(--pink-light); border-radius: 12px; font-size: 13.5px; color: var(--ink); }
.agent-cta a { color: var(--pink-dark); font-weight: 600; }
.connector-bsp { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.connector-bsp li { margin: 2px 0; }
.connector-setup { margin-top: 8px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--border-2); padding-top: 8px; }

/* Ansichten + Verwaltung */
.view { display: none; }
.view.active { display: block; }
#view-matrix .section-title { margin-top: 40px; }
.matrix-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.matrix { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.matrix th, .matrix td { border-bottom: 1px solid var(--border-2); padding: 6px 8px; text-align: center; white-space: nowrap; }
.matrix thead th { height: 150px; vertical-align: bottom; padding-bottom: 8px; }
.matrix thead th .rot { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.matrix th.sticky { position: sticky; left: 0; background: var(--white); text-align: left; font-weight: 600; z-index: 1; min-width: 150px; box-shadow: 1px 0 0 var(--border); }
.matrix td.ja a { color: var(--success); font-weight: 700; text-decoration: none; display: block; }
.matrix td.fehlt { background: var(--warn-light); color: var(--warn); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.matrix tbody tr:hover td, .matrix tbody tr:hover th.sticky { background: var(--pink-light); }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.sub { font-size: 14px; font-weight: 700; margin: 22px 0 8px; }
.gap-list { list-style: none; }
.gap-list li { padding: 8px 12px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
code { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; font-size: 11px; background: var(--border-2); padding: 2px 7px; border-radius: 6px; color: var(--pink-dark); }
.foot { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--ink-3); text-align: center; }

@media (max-width: 720px) {
  .topbar { padding: 0 16px; }
  .brand-sub { display: none; }
  main { padding: 0 14px 40px; }
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: 24px; }
  #suche { height: 48px; font-size: 15px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { min-height: 0; padding: 14px; }
  .tile-text { display: none; }
  .tools { grid-template-columns: 1fr; }
}

.result-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 46%; }
.result-chips a { font-size: 11px; font-weight: 600; color: var(--pink-dark); background: var(--pink-light); padding: 3px 9px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; }
.result-chips a:hover { border-color: var(--pink); background: var(--white); }
@media (max-width: 720px) {
  .topbar { height: auto; min-height: 52px; padding: 8px 12px; gap: 8px; }
  .brand-name { font-size: 15px; }
  .topnav a { font-size: 12px; padding: 6px 9px; }
  .result-chips { max-width: 100%; justify-content: flex-start; }
  .result { flex-wrap: wrap; }
}
