/* Kowalski.Software – gemeinsames Layout für /tools/ und /games/ */
.ll-lang{display:inline-flex;align-items:center;gap:2px;padding:2px;border-radius:999px;border:1px solid rgba(127,127,127,.45);background:rgba(255,255,255,.92);font:700 12px/1 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;vertical-align:middle;flex:0 0 auto}.ll-lang button{all:unset;cursor:pointer;padding:5px 9px;border-radius:999px;color:#333;letter-spacing:.04em}.ll-lang button[aria-pressed="true"]{background:#c0392b;color:#fff}.ll-lang button:focus-visible{outline:2px solid #c0392b;outline-offset:1px}.ll-lang-float{position:fixed;right:12px;bottom:12px;z-index:9999;box-shadow:0 6px 18px rgba(0,0,0,.28)}[data-ll-lang-slot]{display:inline-flex;align-items:center;margin:0 8px}

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

:root {
  --ink:       #1a1a18;
  --ink-soft:  #4a4a44;
  --ink-muted: #8a8a80;
  --page:      #f7f5ef;
  --surf:      #fffffe;
  --surf2:     #f0ede4;
  --surf3:     #e8e5dc;
  --border:    rgba(26,26,24,0.11);
  --border-hi: rgba(26,26,24,0.22);
  --radius:    5px;
  --radius-lg: 14px;
  --mono: 'JetBrains Mono','Cascadia Code','Fira Code','Consolas','SF Mono','Monaco','Menlo','Courier New',monospace;
  --sans: 'Inter','Segoe UI','SF Pro Display','Helvetica Neue',Arial,system-ui,sans-serif;
  --serif: 'Georgia','Times New Roman',serif;

  /* Kategorie-Farben */
  --green:    #2a5c45;
  --c-agile:  #2a5c45; --c-agile-bg:  #e4ede9;
  --c-oracle: #1a4fcc; --c-oracle-bg: #eef2fc;
  --c-miles:  #0e6b6b; --c-miles-bg:  #e6f4f4;
  --c-sec:    #5e3a8c; --c-sec-bg:    #f0eafa;
  --c-sap:    #c24b1a; --c-sap-bg:    #fce8df;
}

html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: var(--sans); background: var(--page); color: var(--ink);
  font-size: 15px; line-height: 1.65; min-height: 100vh;
}
:focus-visible { outline: 2px solid var(--c-agile); outline-offset: 2px; }

/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,239,0.93); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); padding: 0 2rem;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.25rem; height: 54px;
}
.nav-logo {
  font-family: var(--mono); font-size: 13px; font-weight: 500; white-space: nowrap;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.nav-logo span { color: var(--c-agile); }
.switch {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: var(--surf2); border: 1px solid var(--border);
}
.switch a {
  font-size: 12px; font-weight: 600; text-decoration: none; color: var(--ink-soft);
  padding: 5px 13px; border-radius: 999px; transition: background .15s, color .15s;
}
.switch a:hover { color: var(--ink); }
.switch a[aria-current="page"] { background: var(--ink); color: var(--page); }
.nav-links { display: flex; gap: 1.25rem; list-style: none; margin-left: auto; }
.nav-links a { font-size: 13px; color: var(--ink-soft); text-decoration: none; transition: color 0.15s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
[data-ll-lang-slot] { margin: 0; }
.nav-links + [data-ll-lang-slot] { margin-left: 0; }

/* ── HERO ── */
.hero {
  max-width: 1100px; margin: 0 auto; padding: 4rem 2rem 2.5rem;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: end;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-agile); background: var(--c-agile-bg);
  border: 1px solid rgba(42,92,69,0.2);
  padding: 4px 10px; border-radius: 3px; margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(2rem,3.8vw,3.1rem);
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.hero h1 em { font-style: italic; color: var(--c-agile); }
.hero-sub { font-size: 15px; color: var(--ink-soft); max-width: 46ch; }

.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.stat {
  background: var(--surf); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 16px;
}
.stat b {
  display: block; font-family: var(--serif); font-size: 1.9rem;
  line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.stat span { font-size: 11px; color: var(--ink-muted); font-family: var(--mono); letter-spacing: .03em; }

/* ── TOOLBAR (Suche + Filter) ── */
.toolbar-wrap {
  position: sticky; top: 54px; z-index: 90;
  background: rgba(247,245,239,0.95); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.toolbar-wrap.stuck { border-bottom-color: var(--border); }
.toolbar {
  max-width: 1100px; margin: 0 auto; padding: 14px 2rem;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.search {
  position: relative; flex: 0 1 210px; min-width: 180px;
}
.search svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--ink-muted); pointer-events: none;
}
.search input {
  width: 100%; font: inherit; font-size: 13px; color: var(--ink);
  background: var(--surf); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 34px 8px 32px;
  transition: border-color .15s;
}
.search input:focus { outline: none; border-color: var(--c-agile); }
.search kbd {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 10px; color: var(--ink-muted);
  border: 1px solid var(--border); border-radius: 3px; padding: 0 5px; background: var(--surf2);
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font: inherit; font-size: 12px; font-weight: 500; cursor: pointer;
  color: var(--ink-soft); background: var(--surf);
  border: 1px solid var(--border); border-radius: 20px; padding: 5px 10px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--border-hi); color: var(--ink); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); }
.chip .n { font-family: var(--mono); font-size: 10px; color: var(--ink-muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
.chip[aria-pressed="true"] .n { color: rgba(247,245,239,.6); }
.toggle {
  margin-left: auto; font-size: 12px; color: var(--ink-soft); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none;
}
.toggle input { accent-color: var(--c-agile); width: 14px; height: 14px; }

/* ── TOOLS ── */
.tools-section { max-width: 1100px; margin: 0 auto; padding: 1.25rem 2rem 4rem; }
.cat { margin-top: 2.25rem; }
.cat:first-child { margin-top: .75rem; }
.cat-head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 1rem;
}
.cat-head h2 {
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.015em;
  display: flex; align-items: center; gap: 10px;
}
.cat-head h2::before {
  content: ''; width: 9px; height: 9px; border-radius: 2px; background: var(--accent);
}
.cat-head p { font-size: 12px; color: var(--ink-muted); }
.cat-head::after { content: ''; flex: 1; height: 1px; background: var(--border); align-self: center; }


.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem;
}
.card {
  background: var(--surf); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.35rem 1.15rem;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card:hover { border-color: var(--border-hi); box-shadow: 0 6px 28px rgba(0,0,0,0.07); transform: translateY(-2px); }
.card:hover::before, .card:focus-visible::before { transform: scaleX(1); }

.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: .7rem; }
.icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--accent-bg); border: 1px solid var(--border); overflow: hidden;
}
.icon img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-family: var(--serif); font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.2; }
.meta { font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: .04em; margin-top: 2px; }
.mode {
  margin-left: auto; align-self: flex-start; flex-shrink: 0;
  font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 3px; border: 1px solid var(--border); color: var(--ink-muted); background: var(--surf2);
}
.mode.local { color: #1a6640; background: #e4f1ea; border-color: rgba(26,102,64,.18); }
.card p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin-bottom: .8rem; }
.card ul { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 1rem; flex: 1; }
.card li { font-size: 12px; color: var(--ink-soft); display: flex; gap: 7px; align-items: flex-start; }
.card li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); opacity: .6; margin-top: 7px; flex-shrink: 0;
}
.open {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--accent); margin-top: auto;
}
.open svg { width: 13px; height: 13px; transition: transform .15s; }
.card:hover .open svg { transform: translate(2px,-2px); }

mark { background: #fbe9a8; color: inherit; border-radius: 2px; padding: 0 1px; }

.empty {
  display: block; text-align: center; padding: 3rem 1rem; color: var(--ink-muted); font-size: 14px;
}
.empty button {
  font: inherit; font-size: 13px; margin-top: .75rem; cursor: pointer;
  background: var(--surf); border: 1px solid var(--border); border-radius: 8px; padding: 6px 14px; color: var(--ink);
}
.soon {
  margin-top: 2rem; border: 1px dashed var(--border-hi); border-radius: var(--radius-lg);
  padding: .9rem 1.25rem; display: flex; align-items: center; gap: .9rem;
  font-size: 12px; color: var(--ink-muted);
}
.soon strong { color: var(--ink-soft); font-weight: 600; }
.privacy-strip {
  margin-top: 1rem; background: var(--surf2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.privacy-strip p { font-size: 12px; color: var(--ink-soft); }
.privacy-strip strong { color: var(--ink); font-weight: 500; }
.ico-lg { font-size: 18px; flex-shrink: 0; }

[hidden] { display: none !important; }

/* ── ABOUT ── */
.about-section {
  background: var(--ink); color: var(--page); padding: 4rem 2rem;
}
.about-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.about-eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(247,245,239,0.4); margin-bottom: 1rem;
}
.about-inner h2 {
  font-family: var(--serif); font-size: 1.9rem; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--page); margin-bottom: 1rem;
}
.about-inner p { font-size: 13px; color: rgba(247,245,239,0.6); line-height: 1.7; margin-bottom: 0.7rem; }
.about-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #8bc4a8;
  text-decoration: none; margin-top: 0.5rem;
}
.about-link:hover { color: var(--page); }
.about-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stack-item {
  background: rgba(247,245,239,0.05); border: 1px solid rgba(247,245,239,0.09);
  border-radius: var(--radius); padding: 10px 12px;
  font-family: var(--mono); font-size: 11px; color: rgba(247,245,239,0.5);
}

/* ── FOOTER ── */
footer {
  background: var(--surf2); border-top: 1px solid var(--border); padding: 1.25rem 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
}
.footer-inner p { font-size: 11px; color: var(--ink-muted); font-family: var(--mono); }
.footer-links { display: flex; gap: 1.25rem; list-style: none; }
.footer-links a { font-size: 11px; color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { animation: fadeUp 0.5s ease both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.2s; }
.d4 { animation-delay: 0.28s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; align-items: start; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .site-nav { padding: 0 1rem; }
  .nav-inner { gap: .6rem; }
  .nav-links { display: none; }
  .switch { margin-left: auto; }
  .switch a { padding: 5px 10px; }
  .hero { padding: 3rem 1.25rem 2rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .toolbar { padding: 10px 1.25rem; gap: 10px; }
  .search { flex: 1 1 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .toggle { margin-left: 0; }
  .tools-section { padding: 1rem 1.25rem 3rem; }
  .grid { grid-template-columns: 1fr; }
  .cat-head p { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .cross { padding: 0 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}


/* ── Karten mit Unterlinks (Saloon, Spielesammlung) ── */
.card-wide { grid-column: span 2; }
.card-multi .card-main { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.card-multi > *:not(.card-main) { position: relative; z-index: 1; pointer-events: none; }
.card-multi .sub-tiles, .card-multi .sub-tiles a, .card-multi .sub-chips, .card-multi .sub-chips a { pointer-events: auto; }
.card-multi:has(.card-main:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-multi .card-main:focus-visible { outline: none; }
.sub-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: .2rem 0 .9rem; }
.sub-tiles a { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); background: var(--surf2); border: 1px solid var(--border); border-radius: 10px; padding: 6px 9px 6px 6px; transition: border-color .15s, transform .15s; }
.sub-tiles a:hover { border-color: var(--accent); transform: translateY(-1px); }
.sub-tiles img { width: 40px; height: 51px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.sub-tiles span { font-size: 12px; font-weight: 600; line-height: 1.25; }
.sub-tiles small { display: block; font-weight: 400; font-size: 11px; color: var(--ink-muted); }
.sub-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: .1rem 0 .9rem; }
.sub-chips a { font-size: 12px; font-weight: 600; text-decoration: none; color: var(--accent); background: var(--accent-bg); border: 1px solid transparent; border-radius: 999px; padding: 5px 11px; transition: border-color .15s, transform .15s; }
.sub-chips a:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ── Zusatz-Badges ── */
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin: -.2rem 0 .7rem; }
.badge {
  font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 3px; border: 1px solid var(--border); color: var(--ink-soft); background: var(--surf2);
}
.badge-beta { color: #8a5a00; background: #fbf1d6; border-color: rgba(138,90,0,.2); }
.badge-spotify { color: #136c34; background: #e3f5e9; border-color: rgba(19,108,52,.2); }
.badge-multi { color: #1a4fcc; background: #eef2fc; border-color: rgba(26,79,204,.18); }
.badge-pwa { color: #5e3a8c; background: #f0eafa; border-color: rgba(94,58,140,.18); }

.note { margin-top: 1rem; font-size: 12px; color: var(--ink-muted); padding: 0 .25rem; }
.note strong { color: var(--ink-soft); font-weight: 600; }

/* ── Querverweis Tools ↔ Spiele ── */
.cross { max-width: 1100px; margin: 0 auto 4rem; padding: 0 2rem; }
.cross a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  text-decoration: none; color: inherit; background: var(--surf); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.1rem 1.4rem; transition: border-color .2s, box-shadow .2s;
}
.cross a:hover { border-color: var(--border-hi); box-shadow: 0 6px 28px rgba(0,0,0,0.07); }
.cross h2 { font-family: var(--serif); font-size: 1.25rem; letter-spacing: -0.015em; }
.cross p { font-size: 13px; color: var(--ink-soft); }
.cross .go { font-size: 13px; font-weight: 600; color: var(--c-agile); white-space: nowrap; }

@media (max-width: 760px) {
  .card-wide { grid-column: auto; }
  .sub-tiles { grid-template-columns: 1fr; }
}
