/* ============================================================
   KPR Kategorie Pages — shared stylesheet
   Modern Ratgeber design: light, professional, blue accent
   Version: 4.0 (INIT_015 P3 redesign)
   ============================================================ */

:root {
  --bg: #f8f9fa;
  --white: #fff;
  --border: #e4e7ec;
  --primary: #2563eb;
  --primary-light: #dbeafe;
  --primary-hover: #1d4ed8;
  --green: #16a34a;
  --green-light: #dcfce7;
  --text: #1a1a2e;
  --muted: #6b7280;
  --max: 1200px;
  --radius: 12px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-hover: 0 8px 28px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}
.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  display: grid;
  place-items: center;
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
}
.nav-links { display: flex; gap: .15rem; margin-left: auto; }
.nav-links a {
  padding: .45rem .8rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  transition: all .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
  padding: .25rem .4rem;
  border-radius: 8px;
  transition: background .18s;
}
.hamburger:hover { background: var(--primary-light); }

/* ---- Mobile menu ---- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--white);
  flex-direction: column;
  padding: 1.5rem 1.75rem;
  gap: .25rem;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu .close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 1.25rem;
  padding: .3rem .5rem;
  border-radius: 8px;
  transition: background .18s;
}
.mobile-menu .close-btn:hover { background: var(--primary-light); }
.mobile-menu a {
  font-size: 1.05rem;
  font-weight: 600;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-menu a:hover { color: var(--primary); }

/* ---- Main content ---- */
.content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.breadcrumb {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

h1 {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: .75rem;
  color: var(--text);
}
.intro {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1rem;
  max-width: 700px;
  line-height: 1.65;
}

/* ---- Article card grid ---- */
.article-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.article-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.card-cat {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
  background: var(--primary-light);
  padding: .2rem .55rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: .55rem;
  align-self: flex-start;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: .35rem;
  color: var(--text);
}
.card-desc {
  font-size: .87rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: .75rem;
  line-height: 1.6;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .7rem;
  border-top: 1px solid var(--border);
}
.card-price {
  font-weight: 700;
  color: var(--green);
  font-size: .88rem;
  background: var(--green-light);
  padding: .22rem .65rem;
  border-radius: 8px;
}
.card-link {
  font-size: .8rem;
  color: var(--primary);
  font-weight: 600;
}
.article-card:hover .card-link { text-decoration: underline; }

/* ---- Footer — light ---- */
.footer {
  background: var(--white);
  border-top: 3px solid var(--primary);
  margin-top: 3rem;
  padding: 2.5rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .75rem;
}
.footer-col p,
.footer-col a {
  font-size: .82rem;
  color: #4a5568;
  display: block;
  margin-bottom: .4rem;
  line-height: 1.5;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .content { padding: 2rem 1rem; }
  .nav-inner { padding: 0 1rem; }
  .footer-inner { grid-template-columns: 1fr; }
}
