/*
Theme Name: KI-Kompendium Starter
Template: kadence
Author: KI-Kompendium
Description: Schlankes Magazin-Child-Theme für KI-Kompendium.
Version: 2.0.0
*/

:root{
  --kk-primary:#2563eb;
  --kk-primary-dark:#1d4ed8;
  --kk-text:#111827;
  --kk-muted:#64748b;
  --kk-bg:#f8fafc;
  --kk-surface:#ffffff;
  --kk-border:#e2e8f0;
}

html{scroll-behavior:smooth}
body{background:var(--kk-bg);color:var(--kk-text)}

.site-header{border-bottom:1px solid var(--kk-border);background:#fff}
.site-title,.site-title a{font-weight:800;letter-spacing:-.025em;color:var(--kk-text)}
.site-description{color:var(--kk-muted)}
.primary-menu-container .menu>li>a{font-weight:600;color:var(--kk-text)}
.primary-menu-container .menu>li>a:hover{color:var(--kk-primary)}

.kk-home-wrap{max-width:1180px;margin:0 auto;padding:0 22px 70px}
.kk-hero{
  margin:44px 0 52px;
  padding:58px 44px;
  border:1px solid var(--kk-border);
  border-radius:24px;
  background:linear-gradient(135deg,#eff6ff 0%,#ffffff 55%,#eef2ff 100%);
}
.kk-eyebrow{
  display:inline-block;
  margin:0 0 14px;
  padding:7px 11px;
  border-radius:999px;
  background:#dbeafe;
  color:#1d4ed8;
  font-size:13px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.kk-hero h1{
  margin:0 0 15px;
  font-size:clamp(38px,5vw,64px);
  line-height:1.05;
  letter-spacing:-.04em;
}
.kk-hero p{
  max-width:760px;
  margin:0;
  color:var(--kk-muted);
  font-size:19px;
  line-height:1.65;
}

.kk-section{margin:0 0 56px}
.kk-section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-bottom:20px;
}
.kk-section h2{margin:0;font-size:30px;letter-spacing:-.025em}
.kk-section-sub{margin:6px 0 0;color:var(--kk-muted)}

.kk-post-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.kk-post-card{
  display:flex;
  flex-direction:column;
  min-height:100%;
  overflow:hidden;
  border:1px solid var(--kk-border);
  border-radius:18px;
  background:var(--kk-surface);
  box-shadow:0 6px 24px rgba(15,23,42,.05);
}
.kk-post-thumb{
  aspect-ratio:16/9;
  background:#e2e8f0;
  overflow:hidden;
}
.kk-post-thumb img{width:100%;height:100%;object-fit:cover}
.kk-post-body{padding:22px}
.kk-post-cat{
  margin:0 0 9px;
  color:var(--kk-primary);
  font-size:12px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.kk-post-title{margin:0 0 10px;font-size:22px;line-height:1.2}
.kk-post-title a{color:var(--kk-text);text-decoration:none}
.kk-post-title a:hover{color:var(--kk-primary)}
.kk-post-excerpt{margin:0;color:var(--kk-muted);line-height:1.65}
.kk-more{display:inline-flex;margin-top:auto;padding:0 22px 22px;font-weight:700;color:var(--kk-primary);text-decoration:none}

.kk-cat-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.kk-cat-card{
  padding:22px;
  border:1px solid var(--kk-border);
  border-radius:16px;
  background:#fff;
  text-decoration:none;
}
.kk-cat-card strong{display:block;color:var(--kk-text);font-size:18px;margin-bottom:5px}
.kk-cat-card span{color:var(--kk-muted);font-size:14px}
.kk-cat-card:hover{border-color:#bfdbfe;background:#f8fbff}

.kk-empty{
  padding:30px;
  border:1px dashed #cbd5e1;
  border-radius:16px;
  background:#fff;
  color:var(--kk-muted);
}

.site-footer{border-top:1px solid var(--kk-border);background:#0f172a;color:#e2e8f0}
.site-footer a{color:#e2e8f0}
.site-footer a:hover{color:#93c5fd}

@media(max-width:900px){
  .kk-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kk-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .kk-home-wrap{padding:0 16px 48px}
  .kk-hero{padding:38px 24px;border-radius:18px}
  .kk-post-grid,.kk-cat-grid{grid-template-columns:1fr}
}
