/* Zeugify Ratgeber – Blog Design v2 */

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

:root {
  --blue:        #1a6fe0;
  --blue-dark:   #1559b8;
  --blue-light:  #eff6ff;
  --blue-mid:    #dbeafe;
  --green:       #16a34a;
  --green-light: #dcfce7;
  --amber:       #f5a623;
  --amber-dark:  #d97706;
  --amber-light: #fef3c7;
  --red:         #dc2626;
  --red-light:   #fee2e2;
  --fg:          #0f172a;
  --fg-2:        #334155;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --bg:          #f1f5f9;
  --white:       #ffffff;
  --radius:      1rem;
  --font:        'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1rem;
  /* no flex — keeps position:sticky reliable across all browsers */
}

/* ─── Header ─────────────────────────── */
.site-header {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 16px rgba(26,111,224,0.22);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo img {
  height: 2rem;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.logo:hover { opacity: 0.8; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.main-nav a {
  padding: 0.45rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.15s;
}
.main-nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-cta {
  background: var(--amber) !important;
  color: #1a1a2e !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(245,166,35,0.35) !important;
}
.nav-cta:hover { background: #e08c1a !important; transform: none; }

/* ─── Breadcrumb bar ─────────────────── */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  list-style: none;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
}
.breadcrumb li { display: flex; align-items: center; gap: 0.25rem; }
.breadcrumb li::after { content: '›'; margin-left: 0.25rem; color: #cbd5e1; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--blue); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

/* ─── Page wrapper ───────────────────── */
.outer { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Cards ──────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  padding: 2rem 2.5rem;
  margin-bottom: 1.25rem;
}
.card-hero {
  padding: 2.5rem;
  margin-bottom: 1.25rem;
}

/* ─── Category tag ───────────────────── */
.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 0.875rem;
}
.tag-job          { background: var(--blue-mid);    color: var(--blue-dark); }
.tag-formulierung { background: var(--amber-light); color: var(--amber-dark); }
.tag-ratgeber     { background: var(--green-light); color: var(--green); }

/* ─── Hero title ─────────────────────── */
.hero-title {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.875rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  font-size: 0.8rem;
  color: var(--muted);
  align-items: center;
}
.hero-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* ─── Main grid ──────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  padding: 2rem 0 5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
}

/* ─── Article prose ──────────────────── */
.prose h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 0.6rem;
}
.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin: 1rem 0 0.4rem;
}
.prose p { color: var(--fg-2); margin-bottom: 0.875rem; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0.4rem 0 0.875rem 1.1rem; color: var(--fg-2); }
.prose li { margin-bottom: 0.35rem; }
.prose strong { font-weight: 600; color: var(--fg); }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; }

.lead {
  font-size: 1.05rem;
  color: var(--fg-2);
  line-height: 1.8;
}

/* ─── Task chip grid ─────────────────── */
.task-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0.5rem 0 0;
}
.task-chips li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.3rem 0.875rem;
  font-size: 0.82rem;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.task-chips li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ─── Phrase quote (note-aware via inline style) ── */
.phrase-quote {
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
  border-width: 1px;
  border-style: solid;
  border-left-width: 5px;
  margin-bottom: 0;
}
.phrase-quote-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  opacity: 0.65;
}
.phrase-quote-text {
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
}

/* ─── Note badges ────────────────────── */
.note-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-width: 1.5px;
  border-style: solid;
}
.note-badge-lg { font-size: 1.05rem; padding: 0.45rem 1.1rem; }
.note-badge-md { font-size: 0.82rem; padding: 0.3rem 0.875rem; }
.note-badge-sm { font-size: 0.7rem;  padding: 0.18rem 0.6rem; }

.note-1 { background: #dcfce7; color: #15803d; border-color: #15803d33; }
.note-2 { background: #ecfccb; color: #4d7c0f; border-color: #4d7c0f33; }
.note-3 { background: #fef9c3; color: #a16207; border-color: #a1620733; }
.note-4 { background: #ffedd5; color: #c2410c; border-color: #c2410c33; }
.note-5 { background: #fee2e2; color: #b91c1c; border-color: #b91c1c33; }
.note-6 { background: #fecaca; color: #991b1b; border-color: #991b1b33; }

/* legacy grade pill */
.grade-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.875rem; border-radius: 99px; font-size: 0.82rem; font-weight: 700; }
.g1 { background: #dcfce7; color: #14532d; }
.g2 { background: #ecfccb; color: #365314; }
.g3 { background: #fef9c3; color: #713f12; }
.g4 { background: #ffedd5; color: #7c2d12; }
.g5, .g6 { background: #fee2e2; color: #7f1d1d; }

/* ─── Note scale (formulation pages) ─── */
.note-scale { display: flex; flex-direction: column; gap: 0.5rem; }
.note-scale-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  border: 2px solid transparent;
  transition: all 0.15s;
}
.note-scale-item.active { border-color: currentColor; }
.note-scale-label { font-size: 0.875rem; font-weight: 500; color: var(--fg-2); flex: 1; }
.note-scale-item.active .note-scale-label { font-weight: 700; }
.note-scale-current {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 99px;
  border-width: 1.5px;
  border-style: solid;
}

/* ─── Info / callout box ─────────────── */
.callout {
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  border-left-width: 4px;
  border-left-style: solid;
}
.callout-blue   { background: var(--blue-light);   border-left-color: var(--blue);  color: #1e3a8a; }
.callout-amber  { background: var(--amber-light);  border-left-color: var(--amber-dark); color: #78350f; }
.callout-green  { background: var(--green-light);  border-left-color: var(--green); color: #14532d; }
.callout p { margin: 0; }
.callout strong { color: inherit; }

/* ─── Key points list ────────────────── */
.key-list { list-style: none; margin: 0; }
.key-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--fg-2);
}
.key-list li:last-child { border-bottom: none; }
.key-list li::before { content: '→'; color: var(--blue); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ─── FAQ ────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item:first-child { padding-top: 0; }
.faq-q {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--fg);
  margin-bottom: 0.45rem;
  line-height: 1.45;
}
.faq-a {
  font-size: 0.875rem;
  color: var(--fg-2);
  line-height: 1.65;
}

/* ─── Inline CTA banner ──────────────── */
.cta-banner {
  background: linear-gradient(135deg, #1a6fe0 0%, #3b82f6 100%);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  color: #fff;
  text-align: center;
  margin: 1.5rem 0;
}
.cta-banner h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.45rem; color: #fff; }
.cta-banner p  { font-size: 0.88rem; color: rgba(255,255,255,0.85); margin-bottom: 1.1rem; }
.cta-banner .btn { background: var(--amber); color: #1a1a2e; font-weight: 700; }
.cta-banner .btn:hover { background: #e08c1a; }

/* ─── Related tag row ────────────────── */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.tag-link {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.3rem 0.875rem;
  font-size: 0.78rem;
  color: var(--blue);
  text-decoration: none;
  transition: all 0.15s;
}
.tag-link:hover { background: var(--blue-light); border-color: var(--blue); }

/* ─── Related formulations grid ─────── */
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.rel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid var(--border);
  text-decoration: none;
  background: var(--bg);
  transition: all 0.15s;
}
.rel-card:hover { border-color: var(--blue); background: var(--blue-light); }
.rel-card-phrase { font-size: 0.8rem; font-weight: 600; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-card-cat { font-size: 0.68rem; color: var(--muted); margin-top: 0.1rem; }

/* ─── Sidebar ────────────────────────── */
.sidebar {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Primary blue gradient CTA */
.sidebar-cta-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #1559b8 100%);
  border-radius: var(--radius);
  padding: 1.75rem;
  color: #fff;
  box-shadow: 0 8px 32px rgba(26,111,224,0.22);
}
.sidebar-cta-primary .icon-box {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.sidebar-cta-primary h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.4rem; }
.sidebar-cta-primary p  { font-size: 0.82rem; opacity: 0.85; line-height: 1.55; margin-bottom: 1.1rem; }
.sidebar-cta-primary .sub-note { font-size: 0.7rem; opacity: 0.6; text-align: center; margin-top: 0.6rem; }

/* Secondary white card */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.sidebar-card .icon-box {
  width: 40px; height: 40px;
  background: var(--amber-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.875rem;
  font-size: 1.15rem;
}
.sidebar-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--fg); }
.sidebar-card p  { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.875rem; line-height: 1.5; }
.sidebar-card .btn { width: 100%; text-align: center; }

/* Trust card */
.sidebar-trust {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.trust-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fg);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.8rem;
  color: var(--fg-2);
}
.trust-item::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ─── Buttons ────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.375rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #1a1a2e; box-shadow: 0 4px 12px rgba(245,166,35,0.3); }
.btn-primary:hover { background: #e08c1a; box-shadow: 0 6px 16px rgba(245,166,35,0.4); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { background: var(--white); color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue-light); }
.btn-sm { padding: 0.45rem 0.875rem; font-size: 0.78rem; }

/* ─── Hub hero ───────────────────────── */
.hub-hero {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.hub-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 0.75rem; }
.hub-hero p  { font-size: 1.05rem; color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 1.5rem; }

.hub-section { padding: 2.25rem 0 0; }
.hub-section-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.hub-section-header h2 { font-size: 1.1rem; font-weight: 700; }
.hub-count { font-size: 0.75rem; color: var(--muted); background: var(--white); border: 1px solid var(--border); border-radius: 99px; padding: 0.15rem 0.6rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.65rem; }
.page-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem 1.1rem;
  text-decoration: none;
  color: var(--fg);
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.page-card:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(26,111,224,0.1); transform: translateY(-1px); }
.card-title { font-size: 0.875rem; font-weight: 600; line-height: 1.4; }
.card-desc  { font-size: 0.775rem; color: var(--muted); line-height: 1.45; }
.card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.2rem;
}
.badge-blue  { background: var(--blue-mid);    color: #1d4ed8; }
.badge-amber { background: var(--amber-light); color: var(--amber-dark); }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-red   { background: var(--red-light);   color: var(--red); }

/* ─── Footer ─────────────────────────── */
.site-footer {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand { max-width: 280px; }
.footer-logo-link { display: inline-block; margin-bottom: 0.75rem; }
.footer-logo-link:hover { opacity: 0.75; }
.footer-logo-link img { height: 2rem; width: auto; display: block; }
.footer-brand p { font-size: 0.78rem; color: var(--muted); line-height: 1.6; }
.footer-cols {
  display: flex;
  gap: 3rem;
}
.footer-col h4 {
  color: var(--fg);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.875rem;
}
.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── Responsive ─────────────────────── */
@media (max-width: 900px) {
  .footer-top { flex-direction: column; gap: 1.5rem; }
  .footer-brand { max-width: 100%; }
  .rel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .header-inner { padding: 0 1rem; }
  .outer { padding: 0 1rem; }
  .content-grid { padding: 1.25rem 0 3rem; gap: 1.25rem; }
  .card { padding: 1.25rem; }
  .card-hero { padding: 1.5rem; }
  .hub-hero { padding: 2rem 0; }
  .footer-cols { flex-wrap: wrap; gap: 1.5rem; }
}
