/* ============================================================
   Praxiswissen — CONTENT styles (overview cards + article).
   Site chrome (header/footer) lives in site.css. Brand tokens
   mirror the marketing site (Inter, #255deb accent).
   ============================================================ */
:root{
  --bg:#ffffff;
  --bg-soft:#f8fafc;
  --ink:#0f172a;
  --ink2:#475569;
  --ink3:#94a3b8;
  --border:#e8eaef;
  --border2:#e2e8f0;
  --accent:#255deb;
  --accent2:#1d4ed8;
  --grad:linear-gradient(135deg,#255deb 0%,#1d4ed8 100%);
  --ease:cubic-bezier(.22,1,.36,1);
  --maxw:1120px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:hidden}
body{
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  background:var(--bg);color:var(--ink2);line-height:1.6;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;width:100%;max-width:100%;
}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%;height:auto}
/* Long German compound words (e.g. "Dienstleistungsunternehmen") must break instead of
   overflowing narrow phones — hyphenate where possible, hard-break as a fallback. */
h1,h2,h3,h4{color:var(--ink);line-height:1.25;letter-spacing:-.02em;text-wrap:balance;
  overflow-wrap:break-word;word-break:break-word;hyphens:auto}

/* ── Layout ──────────────────────────────────────────────── */
.pw-wrap{max-width:var(--maxw);margin:0 auto;padding:3rem 1.5rem 4.5rem}
.pw-eyebrow{font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--accent);margin-bottom:.7rem}

/* ── Overview hero ───────────────────────────────────────── */
.pw-hero{max-width:760px;margin-bottom:2.8rem}
.pw-hero h1{font-size:clamp(2rem,4.5vw,3rem);font-weight:900;margin-bottom:1rem}
.pw-lead{font-size:clamp(1.02rem,1.6vw,1.18rem);color:var(--ink2);line-height:1.65}

/* ── Card grid ───────────────────────────────────────────── */
.pw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:1.5rem}
.pw-card{display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--border2);
  border-radius:16px;overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.04);
  transition:transform .22s var(--ease),box-shadow .22s var(--ease),border-color .22s}
.pw-card:hover{transform:translateY(-5px);box-shadow:0 26px 52px rgba(15,23,42,.11);border-color:#c7d6f0}
.pw-card-body{flex:1;padding:1.55rem 1.5rem .6rem}
.pw-chip{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.02em;
  color:var(--accent2);background:#eef3fe;border:1px solid #dbe6fd;
  padding:.28rem .6rem;border-radius:999px;margin-bottom:1rem}
.pw-card-title{font-size:1.24rem;font-weight:800;line-height:1.3;color:var(--ink);margin-bottom:.65rem;letter-spacing:-.015em;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pw-card-excerpt{font-size:.93rem;color:var(--ink2);line-height:1.62;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pw-card-foot{display:flex;align-items:center;justify-content:space-between;gap:.75rem;
  margin:0 1.5rem;padding:.95rem 0 1.15rem;border-top:1px solid var(--border);
  font-size:.78rem;color:#64748b;font-weight:500}
.pw-card-read{display:inline-flex;align-items:center;gap:.3rem;color:var(--accent);font-weight:700;font-size:.82rem;white-space:nowrap}
.pw-card-read svg{transition:transform .2s var(--ease)}
.pw-card:hover .pw-card-read svg{transform:translateX(3px)}
.pw-empty{color:var(--ink3);font-size:1rem}

/* ── Article ─────────────────────────────────────────────── */
.pw-article-wrap{max-width:820px;margin:0 auto;padding:2.4rem 1.5rem 4rem}
.pw-breadcrumb{font-size:.82rem;color:var(--ink3);margin-bottom:1.7rem;display:flex;gap:.45rem;flex-wrap:wrap;align-items:center;overflow-wrap:anywhere;min-width:0}
.pw-breadcrumb a{color:var(--ink3);transition:color .15s}
.pw-breadcrumb a:hover{color:var(--accent)}
.pw-breadcrumb .pw-bc-current{color:var(--ink2);font-weight:600}
.pw-article-head{margin-bottom:2rem;padding-bottom:1.7rem;border-bottom:1px solid var(--border)}
.pw-article-head .pw-chip{margin-bottom:0}
.pw-article-head h1{font-size:clamp(1.85rem,4vw,2.7rem);font-weight:900;margin:1rem 0 1.1rem}
.pw-article-meta{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap;font-size:.85rem;color:#64748b;font-weight:500}

/* Prose — comfortable long-form reading */
.pw-prose{font-size:1.09rem;line-height:1.8;color:#334155;overflow-wrap:break-word;hyphens:auto}
.pw-prose>p{margin:0 0 1.2rem}
.pw-prose .pw-intro{font-size:1.2rem;line-height:1.68;color:var(--ink2)}
.pw-prose h2{font-size:1.55rem;font-weight:800;margin:2.6rem 0 .95rem;letter-spacing:-.02em}
.pw-prose h3{font-size:1.22rem;font-weight:700;margin:1.9rem 0 .6rem}
.pw-prose ul,.pw-prose ol{margin:0 0 1.25rem;padding-left:1.4rem}
.pw-prose li{margin-bottom:.55rem}
.pw-prose li::marker{color:var(--accent)}
.pw-prose strong{color:var(--ink);font-weight:700}
.pw-prose a{color:var(--accent2);font-weight:600;text-decoration:underline;text-underline-offset:2px;
  text-decoration-color:#bcd0fb;transition:text-decoration-color .15s}
.pw-prose a:hover{text-decoration-color:var(--accent2)}
.pw-prose blockquote{margin:1.5rem 0;padding:.7rem 1.25rem;border-left:3px solid var(--accent);
  background:var(--bg-soft);border-radius:0 10px 10px 0;color:var(--ink2);font-style:italic}

/* End-of-article CTA */
.pw-ctabox{margin-top:3rem;padding:2.1rem 2rem;border-radius:18px;
  background:linear-gradient(135deg,#eef3fe 0%,#f6f9ff 100%);border:1px solid #dbe6fd}
.pw-ctabox h3{font-size:1.32rem;font-weight:800;margin-bottom:.55rem}
.pw-ctabox p{font-size:.98rem;color:var(--ink2);margin-bottom:1.35rem;line-height:1.62}
.pw-cta-btn{display:inline-block;background:var(--grad);color:#fff;font-size:.95rem;font-weight:700;
  padding:.82rem 1.6rem;border-radius:11px;box-shadow:0 8px 20px rgba(37,93,235,.3);
  transition:transform .15s var(--ease),box-shadow .15s,filter .15s}
.pw-cta-btn:hover{transform:translateY(-2px);filter:brightness(1.05);box-shadow:0 12px 26px rgba(37,93,235,.4)}

/* Related posts — lives inside the (820px) article column, so it aligns with the article body. */
.pw-more{margin:3.5rem 0 0}
.pw-more-title{font-size:1.4rem;font-weight:800;margin-bottom:1.4rem}

/* 404 */
.pw-notfound{max-width:560px;margin:2rem auto;text-align:center;padding:3rem 0}
.pw-notfound h1{font-size:2rem;font-weight:900;margin:.4rem 0 1rem}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width:720px){
  .pw-wrap{padding:2.2rem 1.15rem 3.5rem}
  .pw-grid{grid-template-columns:1fr;gap:1.1rem}
  .pw-article-wrap{padding:1.6rem 1.15rem 3rem}
  .pw-prose{font-size:1.05rem;line-height:1.75}
  .pw-prose .pw-intro{font-size:1.12rem}
  .pw-prose h2{font-size:1.38rem;margin-top:2.1rem}
  .pw-ctabox{padding:1.6rem 1.4rem}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;scroll-behavior:auto!important}
}
