/* =====================================================
 * GastroAudit Blog — Styles
 * Dark theme, PromptSteuer Brand Gradient, Inter/Space Grotesk System-Stack
 * ===================================================== */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
}

/* ---------- Breadcrumb ---------- */
.blog-breadcrumb {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 13px;
  color: var(--fg-muted);
}

.blog-breadcrumb a {
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--border-strong);
}

.blog-breadcrumb a:hover {
  color: var(--accent);
}

/* ---------- Article Container ---------- */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.blog-article .article-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.blog-article .eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

.blog-article h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--fg);
}

.blog-article h1 .accent {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-article .lead {
  font-size: 19px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.blog-article .article-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-article .article-meta span::before {
  content: none;
}

/* ---------- TL;DR Block (AEO Featured-Snippet) ---------- */
.blog-article .tldr {
  margin: 0 0 32px;
  padding: 18px 22px 16px;
  background: var(--bg-elev);
  border-left: 3px solid #a78bfa;
  border-radius: 0 10px 10px 0;
}

.blog-article .tldr-label {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a78bfa;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-article .tldr ul {
  margin: 0;
  padding-left: 20px;
}

.blog-article .tldr li {
  font-size: 15px;
  margin-bottom: 6px;
  color: #e4e4e7;
  line-height: 1.55;
}

.blog-article .tldr li:last-child {
  margin-bottom: 0;
}

/* ---------- Definition Box (GEO Entity-Extraction) ---------- */
.blog-article .definition {
  margin: 24px 0;
  padding: 14px 18px;
  background: rgba(96, 165, 250, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 10px;
  font-size: 15px;
}

.blog-article .definition .term {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60a5fa;
  font-weight: 700;
  margin-right: 8px;
}

.blog-article .definition p {
  display: inline;
  font-size: 15px;
  margin: 0;
  color: #d4d4d8;
}

/* ---------- Inline Cite (Legal Sources) ---------- */
.blog-article cite {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-style: normal;
  font-size: 0.92em;
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ---------- Sources Section (E-E-A-T) ---------- */
.blog-article .sources {
  margin: 40px 0 24px;
  padding: 22px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.blog-article .sources h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.blog-article .sources ul {
  margin: 0;
  padding-left: 18px;
  list-style: square;
}

.blog-article .sources li {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 6px;
  line-height: 1.55;
}

.blog-article .sources li cite {
  background: transparent;
  padding: 0;
  color: #c4b5fd;
}

/* ---------- Author Bio (E-E-A-T) ---------- */
.article-footer .author-bio {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.article-footer .author-bio .avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #09090b;
}

.article-footer .author-bio .bio-text {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
}

.article-footer .author-bio .bio-text strong {
  color: var(--fg);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

/* ---------- Table of Contents (Long Articles) ---------- */
.blog-article .toc {
  margin: 0 0 36px;
  padding: 18px 22px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.blog-article .toc-label {
  display: block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-article .toc ol {
  margin: 0;
  padding-left: 22px;
  counter-reset: toc-counter;
  list-style: decimal;
}

.blog-article .toc li {
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.5;
  color: var(--fg-muted);
}

.blog-article .toc a {
  color: #c4b5fd;
  text-decoration: none;
  border-bottom: 1px dotted rgba(167, 139, 250, 0.3);
}

.blog-article .toc a:hover {
  color: #a78bfa;
  border-bottom-style: solid;
}

/* ---------- Body Typography ---------- */
.blog-article h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 48px 0 16px;
  letter-spacing: -0.015em;
  color: var(--fg);
}

.blog-article h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--fg);
}

.blog-article p {
  font-size: 17px;
  color: #d4d4d8;
  margin-bottom: 20px;
  line-height: 1.75;
}

.blog-article ul,
.blog-article ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.blog-article li {
  font-size: 17px;
  color: #d4d4d8;
  margin-bottom: 10px;
  line-height: 1.7;
}

.blog-article strong {
  color: var(--fg);
  font-weight: 600;
}

.blog-article a {
  color: #a78bfa;
  text-decoration: none;
  border-bottom: 1px solid rgba(167, 139, 250, 0.4);
  transition: border-color 0.15s;
}

.blog-article a:hover {
  border-bottom-color: #a78bfa;
}

.blog-article blockquote {
  border-left: 3px solid #a78bfa;
  background: rgba(167, 139, 250, 0.06);
  padding: 16px 22px;
  margin: 24px 0;
  border-radius: 0 10px 10px 0;
}

.blog-article blockquote p {
  color: var(--fg);
  font-style: italic;
  margin: 0;
}

/* ---------- Tables ---------- */
.blog-article .table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.blog-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--card-bg);
}

.blog-article th,
.blog-article td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.blog-article thead th {
  background: var(--bg-elev);
  color: var(--fg-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.blog-article tbody tr:last-child td {
  border-bottom: none;
}

.blog-article tbody tr:hover {
  background: rgba(167, 139, 250, 0.04);
}

/* ---------- Info-Box / Callout ---------- */
.blog-article .callout {
  background: rgba(96, 165, 250, 0.07);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-left: 3px solid #60a5fa;
  padding: 16px 20px;
  border-radius: 10px;
  margin: 24px 0;
}

.blog-article .callout-warn {
  background: rgba(234, 179, 8, 0.07);
  border-color: rgba(234, 179, 8, 0.3);
  border-left-color: #eab308;
}

.blog-article .callout-danger {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.3);
  border-left-color: #ef4444;
}

.blog-article .callout p:last-child {
  margin-bottom: 0;
}

.blog-article .callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--fg);
}

/* ---------- FAQ-Section ---------- */
.faq-section {
  margin: 56px 0 32px;
  padding: 32px 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.faq-section h2 {
  font-size: 24px;
  margin: 0 0 20px;
  color: var(--fg);
}

.faq-section details {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.faq-section details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-section summary {
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  color: var(--fg);
  padding: 4px 0;
  list-style: none;
  position: relative;
  padding-right: 32px;
  user-select: none;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 4px;
  font-size: 22px;
  font-weight: 400;
  color: #a78bfa;
  transition: transform 0.2s;
}

.faq-section details[open] summary::after {
  content: "−";
}

.faq-section details p {
  margin-top: 12px;
  color: #d4d4d8;
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- CTA-Box ---------- */
.cta-box {
  margin: 48px 0;
  padding: 32px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(167, 139, 250, 0.1), rgba(244, 114, 182, 0.1));
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: 16px;
  pointer-events: none;
}

.cta-box h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--fg);
}

.cta-box p {
  color: var(--fg-muted);
  margin-bottom: 20px;
  font-size: 16px;
}

.cta-box .btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  color: #09090b;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-box .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.25);
}

/* ---------- Related ---------- */
.related {
  margin: 48px 0 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--fg);
}

.related ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.related li {
  padding: 0;
  margin: 0;
}

.related li a {
  display: block;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  transition: border-color 0.15s, transform 0.15s;
}

.related li a:hover {
  border-color: #a78bfa;
  transform: translateX(4px);
}

/* ---------- Article Footer / Disclaimer ---------- */
.article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-footer .disclaimer {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.article-footer .disclaimer strong {
  color: var(--fg-muted);
}

/* ---------- Site Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--border-strong);
  margin: 0 6px;
}

.site-footer a:hover {
  color: #a78bfa;
}

.site-footer .ps-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

.site-footer .ps-logo {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  letter-spacing: 0.25em;
}

/* ---------- Site Header Tagline on Mobile (override) ---------- */
.site-header .tagline {
  display: none;
}

@media (min-width: 768px) {
  .site-header .tagline {
    display: inline;
    padding-left: 12px;
    margin-left: 4px;
    border-left: 1px solid var(--border);
  }
}

/* ============================================================
 * Blog-Index: Karten-Grid
 * ============================================================ */

.blog-index-header {
  max-width: 960px;
  margin: 40px auto 32px;
  padding: 0 24px;
  text-align: center;
}

.blog-index-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.blog-index-header h1 .accent {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-index-header p {
  color: var(--fg-muted);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

.blog-index-grid {
  max-width: 1100px;
  margin: 0 auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.blog-card:hover {
  border-color: #a78bfa;
  transform: translateY(-3px);
}

.blog-card .card-eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-card h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 12px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.blog-card p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}

.blog-card .card-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
}

.blog-card .card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
