/* =============================================================
   FLOWAGENTEN BLOG-LAYOUT v1 — Apple-Light Rekonstruktion
   Basis: Flowagenten-Website/blog/ki-arztpraxen-automatisierung.html
   Modernisiert: helles, freundliches Styling (Cream + White)
   ============================================================= */

/* === Inline-Content-Bilder === */
.article-content .article-figure {
  margin: 36px 0;
}
.article-content .article-figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  box-shadow: 0 4px 16px rgba(15, 15, 16, 0.06);
}

/* === Section-Icons in H2 (Outline-Stil) === */
.article-content h2 .h2-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 12px;
  border-radius: 10px;
  background: var(--accent-soft, #FFFBD6);
  color: var(--accent-dark, #6E5E0E);
  vertical-align: middle;
  flex-shrink: 0;
}
.article-content h2 .h2-icon svg {
  width: 21px;
  height: 21px;
}
.article-content h2 {
  display: flex;
  align-items: center;
}
/* Inline-Akzent-Icons im Fließtext (kleiner, currentColor) */
.article-content .inline-icon svg {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.18em;
  margin: 0 2px;
  color: var(--accent-dark, #6E5E0E);
}

:root {
  /* Surfaces — helles Apple-Cream Setup */
  --bg-base:        #F7F5F1;
  --bg-soft:        #FBFAF7;
  --surface:        #FFFFFF;
  --surface-alt:    #F2EFEA;

  /* Brand-Akzente (konsistent mit Cockpit) */
  --accent:         #8A7A12;
  --accent-dark:    #6E5E0E;
  --accent-soft:    #FFFBD6;
  --info:           #5B8DEF;

  /* Pastell-Akzent-Wolken */
  --mint:           #DDF4E7;
  --peach:          #FFE7DA;
  --lavender:       #E8E2F7;
  --sky:            #DCEEFA;

  /* Text */
  --t1:             #0F0F10;
  --t2:             #4A4F57;
  --t3:             #8A8F98;

  /* Lines + Shadows */
  --border:         rgba(15, 15, 16, 0.08);
  --border-strong:  rgba(15, 15, 16, 0.14);
  --shadow-sm:      0 1px 2px rgba(15, 15, 16, 0.04);
  --shadow-md:      0 4px 16px rgba(15, 15, 16, 0.06);
  --shadow-lg:      0 12px 36px rgba(15, 15, 16, 0.08);

  /* Radii */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Type */
  --font:           'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease:           cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:    cubic-bezier(0.4, 0, 0.2, 1);
  --dur:            220ms;
}

/* === Scope: nur auf Single-Post-Pages aktiv. WP-Body bleibt global vom V4-Theme. === */

.single-post { scroll-behavior: smooth; scroll-padding-top: 100px; }

.flow-blog-article,
.flow-blog-article * { box-sizing: border-box; }

.flow-blog-article {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--t1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

.flow-blog-article a { color: inherit; text-decoration: none; }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  padding: 132px 32px 64px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-soft) 100%);
}
.hero::before {
  /* Sanfter pastell-Blob im Background */
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--mint), transparent);
  opacity: 0.7;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -300px; left: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--sky), transparent);
  opacity: 0.5;
  z-index: 0;
}
.hero__inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  font-size: 14px;
  color: var(--t3);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 8px;
}
.breadcrumb a {
  color: var(--accent-dark);
  transition: color var(--dur);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--t3); }

.meta-row {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 14px; color: var(--t3);
}
.badge {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.meta-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--t3); opacity: 0.5;
}

.hero__title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--t1);
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: 19px;
  color: var(--t2);
  line-height: 1.55;
  max-width: 720px;
  font-weight: 400;
}

/* =============================================================
   ARTICLE WRAPPER (2-Spalten-Layout)
   ============================================================= */
.article-section {
  padding: 64px 32px 96px;
  background: var(--bg-soft);
}
.article-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
}

/* === LINKE SPALTE === */
.article-content {
  max-width: 720px;
  font-size: 17px;
  color: var(--t2);
  line-height: 1.75;
}

.article-content h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--t1);
  margin: 56px 0 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  scroll-margin-top: 100px;
}
.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
  font-size: 21px;
  font-weight: 600;
  color: var(--t1);
  margin: 36px 0 14px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.article-content p {
  margin-bottom: 22px;
}

.article-content strong { color: var(--t1); font-weight: 600; }

.article-content ul,
.article-content ol {
  margin: 0 0 24px 24px;
}
.article-content li {
  margin-bottom: 10px;
  padding-left: 6px;
}
.article-content ul li::marker { color: var(--accent); }

/* Highlight-Box (in helle Variante) */
.highlight {
  background: var(--mint);
  border-radius: var(--r-md);
  padding: 28px 32px;
  margin: 32px 0;
  position: relative;
}
.highlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
}
.highlight__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.highlight p { margin: 0; color: var(--t1); font-size: 17px; }

/* Stat-Box */
.stat-card {
  background: var(--peach);
  border-radius: var(--r-md);
  padding: 28px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat-card__number {
  font-size: 56px;
  font-weight: 800;
  color: var(--t1);
  line-height: 1;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.stat-card__label {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.5;
}

/* CTA-Block am Ende */
.article-cta {
  background: var(--t1);
  color: white;
  border-radius: var(--r-lg);
  padding: 48px;
  margin-top: 64px;
  text-align: center;
}
.article-cta h3 {
  color: white;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.article-cta p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}
.article-cta__btn {
  display: inline-block;
  background: #F4F485;
  color: var(--t1);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--dur) var(--ease-smooth);
}
.article-cta__btn:hover {
  background: #FFFFAF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 244, 133, 0.4);
}

/* === RECHTE SPALTE — STICKY-SIDEBAR === */
.article-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  align-self: start;
}

.toc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.toc-card__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--t3);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.toc-card__title::before {
  content: '';
  width: 14px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 2px; }
.toc-list a {
  display: block;
  font-size: 14px;
  color: var(--t2);
  padding: 9px 14px 9px 16px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: all var(--dur) var(--ease-smooth);
  line-height: 1.4;
}
.toc-list a:hover {
  color: var(--t1);
  background: var(--surface-alt);
  border-left-color: var(--border-strong);
  transform: translateX(2px);
}
.toc-list a.is-active {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* Author-Block */
.author-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--info));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.author-info { font-size: 13px; }
.author-info__name { color: var(--t1); font-weight: 600; }
.author-info__date { color: var(--t3); margin-top: 2px; }

/* Reading-Time */
.reading-time {
  margin-top: 16px;
  padding: 14px;
  background: var(--surface-alt);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--t2);
  display: flex; align-items: center; gap: 8px;
}

/* Share-Row */
.share-row {
  margin-top: 18px;
  display: flex; gap: 8px;
}
.share-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--t2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--dur) var(--ease);
}
.share-btn:hover {
  background: var(--t1);
  color: white;
  border-color: var(--t1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =============================================================
   RELATED ARTICLES
   ============================================================= */
.related {
  padding: 96px 32px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-base) 100%);
  border-top: 1px solid var(--border);
}
.related__inner { max-width: 1200px; margin: 0 auto; }
.related__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 48px;
  color: var(--t1);
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  display: flex; flex-direction: column;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.related-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 16px;
}
.related-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--t1);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.related-card__excerpt {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.6;
  margin-bottom: 20px;
}
.related-card__more {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  display: inline-flex; align-items: center; gap: 6px;
}
.related-card__more::after {
  content: '→';
  transition: transform var(--dur);
}
.related-card:hover .related-card__more::after {
  transform: translateX(4px);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 980px) {
  .article-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .article-sidebar {
    position: static;
    order: -1; /* TOC nach oben auf Mobile */
  }
  .article-content { max-width: 100%; }
  .hero { padding-top: 108px; }
}

@media (max-width: 640px) {
  .hero, .article-section, .related { padding-left: 20px; padding-right: 20px; }
  .article-cta { padding: 32px 24px; }
}

/* =============================================================
   MICRO-INTERACTIONS
   ============================================================= */
.fade-up {
  animation: fadeUp 600ms var(--ease-smooth) backwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up:nth-child(1) { animation-delay: 60ms; }
.fade-up:nth-child(2) { animation-delay: 120ms; }
.fade-up:nth-child(3) { animation-delay: 180ms; }

/* =============================================================
   NEWSLETTER BLOCK
   ============================================================= */
.newsletter-block {
  background: var(--lavender);
  border-radius: var(--r-md);
  padding: 32px;
  margin-top: 48px;
}
.newsletter-block h4 { font-size: 18px; font-weight: 700; color: var(--t1); margin-bottom: 6px; letter-spacing: -0.015em; }
.newsletter-block p { font-size: 14px; color: var(--t2); margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-input { flex: 1; min-width: 200px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--r-sm); background: white; font: inherit; font-size: 14px; outline: none; transition: border-color var(--dur); }
.newsletter-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.newsletter-button { padding: 12px 24px; background: var(--t1); color: white; border: none; border-radius: var(--r-sm); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: all var(--dur) var(--ease-smooth); }
.newsletter-button:hover { background: var(--accent); transform: translateY(-1px); }


/* === Disclaimer / Transparenzhinweis — dezentes Kleingedrucktes unten (greift fuer alle Artikel) === */
.disclaimer{margin:clamp(40px,5vw,64px) 0 0;padding-top:18px;border-top:1px solid rgba(15,23,42,.10);font-size:13px;line-height:1.6;color:#94a3b8;}
.disclaimer--ai-act{display:block;}
.disclaimer a{color:inherit;text-decoration:underline;}
