/* ============================================
   DENTICOR — PORADNA.CSS
   Styles for ratgeber.html (Guide Hub)
   Design tokens + .poradna-* class system
   ============================================ */

/* --- Design tokens (match other DE pages) --- */
:root {
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --brand: #244651;
  --brand-light: #3A6B7C;
  --brand-bg: rgba(46, 85, 100, .06);
  --cta: #244651;
  --cta-hover: #1B3640;
  --text: #1E2328;
  --text-s: #4B5563;
  --text-m: #6B7280;
  --bg: #FAF8F5;
  --bg-alt: #F2EFEA;
  --bg-card: #fff;
  --border: #D4D0C8;
  --border-light: #E2DED6;
  --gold: #8B7335;
  --gold-bg: #FAF5E8;
  --green: #2D6E4C;
  --green-bg: #EDF6F1;
  --danger: #A13F3F;
  --danger-bg: #F7EAEA;
  --r: 16px;
  --r-sm: 10px;
  --r-lg: 20px;
  --r-pill: 100px;
  --s-xs: 8px;
  --s-sm: 16px;
  --s-md: 24px;
  --s-lg: 40px;
  --s-xl: 64px;
  --max: 1240px;
  --max-text: 800px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font);
  color: var(--text-s);
  background: transparent;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Layout helpers --- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}
.wt {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}
h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
a { color: var(--brand); text-decoration: none; }
.sec { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.rv { /* reveal placeholder — no-op, used by reveal.js if present */ }

/* --- PORADNA (Guide Hub) — scenario cards --- */
.poradna-page {
  background: transparent;
}

.poradna-section-title {
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  margin: var(--s-lg) 0 var(--s-md);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
  letter-spacing: -0.01em;
}

.poradna-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: var(--s-lg);
}

.poradna-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.poradna-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 20px rgba(30, 35, 40, 0.06);
  transform: translateY(-1px);
}

.poradna-card-difficulty {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 6px;
  /* color is set inline via style="color:#2D6E4C" etc. */
}

.poradna-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}

.poradna-card-meta {
  font-size: 12px;
  color: var(--text-m);
  line-height: 1.5;
  margin: 0;
}

/* --- Blog card variant (Artikel section) --- */
.poradna-blog-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.poradna-blog-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 20px rgba(30, 35, 40, 0.06);
  transform: translateY(-1px);
}
.poradna-blog-card .poradna-card-title {
  font-size: 16px;
  margin: 8px 0 6px;
}
.poradna-blog-card .poradna-card-meta {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-s);
}
.poradna-blog-card .poradna-card-difficulty {
  font-size: 11px;
  letter-spacing: 0.08em;
  /* color set inline (#A13F3F for NEU, #8B7335 for gold labels, etc.) */
}

/* --- Search status/summary line --- */
.poradna-status {
  font-size: 14px;
  color: var(--text-m);
  padding: 12px 0;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .poradna-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .poradna-card {
    padding: 16px 18px;
  }
  .poradna-blog-card {
    padding: 18px 20px;
  }
  .poradna-section-title {
    font-size: 1.15rem;
    margin-top: var(--s-md);
  }
}

@media (max-width: 400px) {
  .poradna-card-title {
    font-size: 14px;
  }
}

/* --- SCENARIO PAGE (single-guide template) --- */
/* Article hero */
.article-hero { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1rem, 2vw, 1.5rem); }
.article-hero .breadcrumb {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-m); margin-bottom: 12px;
}
.article-hero .breadcrumb a { color: var(--brand); text-decoration: none; }
.reviewed-by-byline { margin: 12px 0 0; font-size: 14px; color: #5a6b6f; line-height: 1.5; }
.reviewed-by-byline a { color: var(--brand); text-decoration: none; font-weight: 600; }

/* Intro box */
.intro-box {
  background: var(--bg-alt); border-radius: 12px;
  padding: 20px 24px; margin: 0 0 var(--s-md);
}
.intro-box p { font-size: 16px; line-height: 1.8; color: var(--text-s); margin-bottom: 12px; }
.intro-box p:last-child { margin-bottom: 0; }

/* Info grid (6 boxes) */
.info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: var(--s-md) 0;
}
@media (max-width: 500px) { .info-grid { grid-template-columns: 1fr; } }
@media (min-width: 768px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-box {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 12px; padding: 14px 16px;
}
.info-label { font-size: 12px; color: var(--text-m); margin-bottom: 4px; }
.info-val { font-size: 16px; font-weight: 500; color: var(--text); }

/* Article content blocks */
.article-content { margin: var(--s-md) 0; }
.article-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700; color: var(--text);
  letter-spacing: -0.01em; line-height: 1.3;
  margin-top: var(--s-md);
}

/* Steps */
.steps-wrap { margin: var(--s-md) 0; }
.steps-wrap h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700; color: var(--text);
  letter-spacing: -0.01em; line-height: 1.3;
  margin-bottom: 4px;
}
.step-row {
  display: grid; grid-template-columns: 36px 1fr;
  gap: 12px; margin-bottom: 20px;
}
.step-num, .step-done {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 14px; flex-shrink: 0;
}
.step-done { background: var(--green); }
.step-title {
  font-weight: 600; font-size: 16px; color: var(--text);
  margin-bottom: 6px; line-height: 1.35;
}
.step-text { font-size: 15px; line-height: 1.75; color: var(--text-s); margin: 0; }
.tip-box {
  font-size: 14px; line-height: 1.65; color: var(--text);
  background: var(--gold-bg); border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 10px 0 0;
}

/* CTA box */
.cta-box {
  background: var(--bg-card); border: 2px solid var(--brand);
  border-radius: 16px; padding: 28px 24px;
  text-align: center; margin: var(--s-lg) 0 var(--s-md);
}
.cta-box .btn {
  display: inline-block; padding: 12px 28px;
  background: var(--brand); color: #fff;
  border-radius: 10px; text-decoration: none;
  font-size: 15px; font-weight: 700;
  transition: background 0.2s;
}
.cta-box .btn:hover { background: var(--cta-hover); }

/* Related scenario links */
.related-link {
  display: block; padding: 14px 18px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 10px; text-decoration: none; color: inherit;
  transition: border-color 0.2s; margin-bottom: 8px;
}
.related-link:hover { border-color: var(--brand); }
.related-link-title { font-size: 15px; font-weight: 600; color: var(--brand); margin-bottom: 4px; }
.related-link-meta { font-size: 13px; color: var(--text-m); margin: 0; }

/* HWG disclaimer block (DE legal requirement) */
.hwg-disclaimer {
  background: var(--bg-alt); border: 1px solid var(--border-light);
  border-radius: 12px; padding: 18px 22px;
  margin: var(--s-lg) 0 var(--s-md);
  font-size: 13px; line-height: 1.7; color: var(--text-m);
}
.hwg-disclaimer h3 {
  font-size: 13px; font-weight: 700;
  color: var(--text); text-transform: uppercase;
  letter-spacing: 0.05em; margin: 0 0 10px;
}
.hwg-disclaimer p { margin: 0 0 8px; }
.hwg-disclaimer p:last-child { margin-bottom: 0; }

/* Contraindication warning strip (bottom of page) */
.contraindication-strip {
  background: rgba(161, 63, 63, 0.04);
  border-top: 1px solid rgba(161, 63, 63, 0.15);
  padding: 16px 0; margin-top: 12px;
}
.contraindication-strip p {
  font-size: 13px; color: var(--danger); line-height: 1.6;
  max-width: 640px; margin: 0 auto; text-align: center;
}
.contraindication-strip strong { color: var(--danger); }
