/* blogpost-layout.css
   Vollbreite, Dypa-Style, Blog-Header nicht sticky
*/

/* ===== Globale Overrides nur für Blog-Seiten ===== */

body[data-page="blogpost"]>header.header {
  position: static !important;
  /* Sticky global Header für Blog deaktivieren */
  top: auto !important;
}

/* Main-Bereich */
.blog-main {
  padding: 1.5rem 1rem 3.5rem;
  /* Standard mobile-first padding */
  box-sizing: border-box;
}

/* Artikel – zentrierte Lesebreite, kein Panel */
.blog-article {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ---------- HEADER / HERO ---------- */

.blog-article>header.blog-hero {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
}

.blog-hero {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .blog-hero {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

/* Kicker */

.blog-hero-kicker {
  display: none !important;
}

/* Titel – eigene Zeile */

.blog-hero-title {
  display: block;
  width: 100%;
  font-size: clamp(1.4rem, 7vw, 2.6rem);
  /* Slightly smaller base */
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.6rem;
  color: var(--text-strong, var(--text, #100F11));
  text-align: left;
  word-break: break-word;
  hyphens: auto;
}

@media (max-width: 480px) {
  .blog-hero-title {
    font-size: 1.35rem !important;
    /* Even smaller for very small screens */
    letter-spacing: -0.01em;
  }

  .blog-hero-subtitle {
    font-size: 0.95rem !important;
  }
}

/* Beschreibung – eigene Zeile */

.blog-hero-subtitle {
  display: block;
  width: 100%;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 1rem;
}

/* Tags: eigene Zeile, innerhalb nebeneinander als Badges */

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  width: 100%;
  overflow: hidden;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 999px;
  background: var(--color-ui-lightpurple, #DED7FA);
  color: var(--text, #100F11);
  white-space: nowrap;
}

html[data-theme="dark"] .blog-tag {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text, #ffffff);
}

/* Meta – Autor / Datum / Lesezeit je eigene Zeile */

.blog-meta-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  white-space: normal;
  /* Allow wrapping on mobile */
  flex-wrap: wrap;
}

.blog-meta-line i {
  font-size: 0.9rem;
  color: var(--color-ui-purple, #8B4CFC);
}

.blog-meta-separator {
  margin: 0 0.3rem;
  opacity: 0.6;
  color: var(--color-ui-gold);
}


/* ---------- SECTIONS ---------- */

.blog-section {
  margin-top: 2rem;
}

.blog-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--text-strong, var(--text, #100F11));
}

.blog-section h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--text-strong, var(--text, #100F11));
}

.blog-section p {
  line-height: 1.65;
  margin-bottom: 0.75rem;
  color: var(--text-soft);
}

.blog-section-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Float-Wrapper: hält das Bild links oder rechts neben dem Text */

.blog-img-float {
  width: 42%;
  max-width: 340px;
  margin-bottom: 0.75rem;
  margin-top: 0.15rem;
  shape-outside: margin-box;
}

.blog-img-float--right {
  float: right;
  margin-left: 4rem;
  margin-right: 0;
}

.blog-img-float--left {
  float: left;
  margin-right: 4rem;
  margin-left: 0;
}

/* Weicher Gradient-Blend: nur zur Textseite hin – keine Top/Bottom-Blur */

.blog-img-float--right .blog-section-image {
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 28%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 32%, rgba(0, 0, 0, 1) 100%);
}

.blog-img-float--left .blog-section-image {
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 28%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 32%, rgba(0, 0, 0, 1) 100%);
}

/* Clearfix: Section behält Höhe nach Float */

.blog-section::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 680px) {
  .blog-article {
    padding: 0 0.5rem !important;
    /* Minimal extra padding, landing-wrap already has 24px */
  }


  .blog-img-float {
    float: none !important;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0 !important;
  }

  .blog-img-float .blog-section-image {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}

.blog-section ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0.8rem;
}

.blog-section li {
  margin-bottom: 0.45rem;
  line-height: 1.6;
}

/* Zitat / Reflexion */

.blog-quote {
  margin: 1.25rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--color-ui-purple, #8B4CFC);
  background: linear-gradient(120deg,
      rgba(139, 76, 252, 0.06),
      rgba(232, 181, 14, 0.03));
  border-radius: 12px;
  font-style: italic;
  color: var(--color-text-soft, rgba(16, 15, 17, 0.9));
}

html[data-theme="dark"] .blog-quote {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

/* TL;DR Box */

.blog-tldr {
  margin-top: 2rem;
  padding: 1.1rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(139, 76, 252, 0.25);
  background: linear-gradient(130deg,
      rgba(139, 76, 252, 0.06),
      rgba(232, 181, 14, 0.03));
}

.blog-tldr h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.blog-tldr ul {
  margin-top: 0.3rem;
}

/* Skill / Mini-Übung Box */

.blog-skill-box {
  margin-top: 2rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 18px;
  border: 1px dashed rgba(139, 76, 252, 0.5);
  background: radial-gradient(circle at top left,
      rgba(139, 76, 252, 0.12),
      transparent 55%);
}

.blog-skill-box h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.blog-skill-box strong {
  color: var(--color-ui-purple, #8B4CFC);
}

/* FAQ */

.blog-faq {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 1.5rem;
}

html[data-theme="dark"] .blog-faq {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.blog-faq-item+.blog-faq-item {
  margin-top: 1rem;
}

.blog-faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* Abschluss / CTA */

.blog-cta {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.98rem;
  line-height: 1.6;
}

html[data-theme="dark"] .blog-cta {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.blog-cta a {
  color: var(--color-ui-purple, #8B4CFC);
  text-decoration: none;
  font-weight: 600;
}

.blog-cta a:hover {
  text-decoration: underline;
}

/* Language Buttons im Header (falls nötig) */

.language-buttons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.language-buttons a {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.language-buttons .lang-active {
  background: var(--color-ui-purple, #8B4CFC);
  color: #fff;
}

/* Mobile */

@media (max-width: 640px) {
  .mood-wrapper {
    margin-top: 60px;
  }

  .blog-main {
    padding: 1.5rem 0 3rem;
    width: 100%;
  }

  .blog-article {
    max-width: 100%;
    padding: 0 !important;
  }
}

/* Blog-Hero-Header soll NICHT sticky sein */
header.blog-hero,
.blog-article>header.blog-hero {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
}

/* Alle Blog-Überschriften in Dypa-Lila */

.blog-hero-title,
.blog-section h1,
.blog-section h2,
.blog-section h3 {
  color: var(--color-ui-purple, #8B4CFC) !important;
  text-align: left;
}

.blog-mini-exercise h2 {
  color: var(--color-ui-purple, #8B4CFC) !important;
}

/* ---------------------------------
   BLOG: HEADER NICHT STICKY
   Gilt für Blog-Übersicht & Artikel
---------------------------------- */

body[data-page="blog-index"] .header,
body[data-page="blog-article"] .header {
  position: static;
  top: auto;
  box-shadow: none;
}

/* ---------------------------------
   BLOG-ÜBERSICHT (Blog-Index)
---------------------------------- */

.blog-index-main {
  max-width: 1120px;
  margin: 0 auto 3.5rem;
  padding: 2.5rem 1.25rem 3.5rem;
}

/* Hero oben */

.blog-index-hero {
  padding-top: 0;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .blog-index-hero {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.blog-index-title {
  font-size: 2.1rem;
  margin: 0 0 0.75rem;
  color: var(--color-ui-purple);
}

.blog-index-lead {
  max-width: 52rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-soft);
}

/* Filter-Bar */

.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1.5rem 0 2rem;
}

.blog-filter-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-right: 0.5rem;
}

.blog-filter-pill {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.blog-filter-pill.is-active,
.blog-filter-pill:hover {
  background: var(--color-ui-purple);
  color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .blog-filter-pill {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--color-text-dark);
}

html[data-theme="dark"] .blog-filter-pill.is-active,
html[data-theme="dark"] .blog-filter-pill:hover {
  background: var(--color-ui-gold);
  color: var(--text);
}

/* Blog-Liste */

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Card-Layout */

.blog-card {
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  background: var(--bg-card, #ffffff);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .blog-card {
  background: var(--bg-card);
  box-shadow: 0 0 16px rgba(222, 215, 250, 0.22);
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card-kicker {
  display: none !important;
}

.blog-card-title {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  color: var(--color-ui-purple);
}

html[data-theme="dark"] .blog-card-title {
  color: var(--color-ui-lightpurple);
}

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.7rem;
}

.blog-card-meta span::after {
  content: " • ";
  margin: 0 0.25rem;
}

.blog-card-excerpt {
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 0.9rem;
}

/* Tags */

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-card-tags li {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--color-ui-lightpurple);
  color: var(--text);
}

html[data-theme="dark"] .blog-card-tags li {
  background: rgba(232, 181, 14, 0.14);
  color: var(--color-text-dark);
}

/* Abschluss-CTA */

.blog-cta-app {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.blog-cta-inner {
  width: 100%;
  max-width: 720px;
  padding: 2rem 1.6rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #8B4CFC 0%, var(--color-ui-gold) 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.blog-cta-inner h2 {
  margin: 0 0 0.7rem;
  font-size: 1.6rem;
}

.blog-cta-inner p {
  margin: 0 0 1.2rem;
  font-size: 1rem;
}

.blog-cta-button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--bg-card, #ffffff);
  color: #8B4CFC;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* Responsive */

@media (max-width: 768px) {
  .blog-index-main {
    padding: 2rem 1rem 3rem;
  }

  .blog-index-title {
    font-size: 1.7rem;
  }

  .blog-card {
    padding: 1.2rem 1.1rem;
  }

  .blog-filter-bar {
    flex-direction: row;
    align-items: flex-start;
  }
}


/* -----------------------------------------
   BLOGPOST: Mobile Navigation Fix (Override)
   ----------------------------------------- */
@media (max-width: 768px) {

  /* Header als Anker für das Dropdown-Menü */
  body[data-page="blogpost"]>header.header {
    position: relative !important;
    /* static !important übersteuern */
    z-index: 1000;
  }

  /* Mobile-Navi zuerst verstecken – andockend an den Header */
  body[data-page="blogpost"] #nav-menu {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    background: var(--bg);
    border-radius: 12px;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: none;
  }

  /* Beim Klick: anzeigen */
  body[data-page="blogpost"] #nav-menu.show {
    display: flex;
  }
}


/* Meta (Datum/Lesezeit) + Share-Icons in einer Reihe */

.blog-meta-share-row {
  display: flex !important;
  flex-direction: column;
  /* FORCE SHARE UNDER META INFO */
  align-items: flex-start;
  margin-top: 2rem;
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  /* Premium Divider */
  padding-top: 1.5rem;
  gap: 1.5rem;
}

html[data-theme="dark"] .blog-meta-share-row {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* blog-meta-line war vorher width:100% – für die Reihe überschreiben */
.blog-meta-share-row .blog-meta-line {
  width: auto;
  margin: 0;
  font-size: 0.95rem;
}

/* Share-Icons in einer Zeile */

.social-share-inline {
  display: inline-flex;
  flex-direction: row;
  /* FORCE HORIZONTAL ICONS */
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.social-share-inline #share-label {
  opacity: 0.8;
  margin-right: 0.25rem;
}

.social-share-inline a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.social-share-inline a i {
  font-size: 0.8rem;
}

/* Dark Mode */

html[data-theme="dark"] .social-share-inline a {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Syndication & Directories */

.syndication-pills {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  padding: 0.25rem 0.6rem;
  background: rgba(139, 76, 252, 0.08);
  border: 1px solid rgba(139, 76, 252, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.syndication-pills:hover {
  background: rgba(139, 76, 252, 0.12);
  border-color: rgba(139, 76, 252, 0.3);
  box-shadow: 0 4px 12px rgba(139, 76, 252, 0.1);
}

.syndication-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--color-ui-purple);
  transition: transform 0.2s ease;
  border: none !important;
  /* Override social icon border */
  width: auto !important;
  height: auto !important;
}

.syndication-pills a:hover {
  transform: scale(1.1);
}

.blog-dir-badge img {
  height: 16px;
  width: auto;
  vertical-align: middle;
  filter: grayscale(1) invert(0.2);
  opacity: 0.6;
  transition: all 0.3s ease;
}

html[data-theme="dark"] .blog-dir-badge img {
  filter: grayscale(1) invert(0.8);
}

.syndication-pills:hover .blog-dir-badge img {
  filter: grayscale(0) invert(0);
  opacity: 1;
}

/* Mobile: untereinander statt nebeneinander */

/* Care Gap Infographic (Landing Page Style) */
.gap-visual-container {
  max-width: 760px;
  margin: 3rem auto 2rem auto;
  position: relative;
  padding: 0 10px;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 3rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.gap-visual-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 60px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 120px;
  padding: 0 10px;
}

.gap-visual-track.secondary-track {
  max-width: 520px;
  margin: 0 auto;
  height: 50px;
  background: rgba(139, 76, 252, 0.05);
  margin-bottom: 20px;
}

.gap-visual-track::before {
  content: "";
  position: absolute;
  left: 35px;
  right: 35px;
  top: 50%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 4px;
}

.gap-visual-progress {
  position: absolute;
  left: 35px;
  top: 50%;
  height: 4px;
  background: linear-gradient(90deg, #FC4C4C, #E8B50E);
  transform: translateY(-50%);
  width: 0%;
  z-index: 1;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(252, 76, 76, 0.5);
}

.secondary-track .gap-visual-progress {
  background: #8B4CFC;
  box-shadow: 0 0 12px rgba(139, 76, 252, 0.5);
}

.gap-visual-track.animate-line .gap-visual-progress {
  width: calc(100% - 70px) !important;
  transition: width 1.5s ease-in-out;
}

.gap-point {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
}

.gap-icon-circle {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 2px solid var(--line-landing, #444);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  transition: all 0.3s ease;
}

.start .gap-icon-circle {
  color: #FC4C4C;
  border-color: #FC4C4C;
}

.end .gap-icon-circle {
  color: #6CC24A;
  border-color: #6CC24A;
}

.gap-icon-small {
  font-size: 11px;
  background: var(--bg-card);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid #8B4CFC;
  color: #8B4CFC;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.gap-label {
  position: absolute;
  top: 48px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.gap-segment {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
}

/* Fix overlap with logo in Before phase */
.gap-segment.waiting {
  top: -4.5rem !important;
  /* Elevated much higher to clear large pulsing logo */
  left: 50% !important;
  /* Back to centered as requested */
}

.gap-warning {
  background: #FC4C4C;
  color: white;
  padding: 7px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 5px 15px rgba(252, 76, 76, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.session-gap .gap-warning {
  background: #8B4CFC;
  box-shadow: 0 5px 15px rgba(139, 76, 252, 0.5);
}

.gap-message-box {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 260px;
  background: #1a1a1d;
  border: 1px solid rgba(252, 76, 76, 0.4);
  padding: 1.25rem;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.gap-visual-track.animate-line .gap-message-box {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition-delay: 1s;
}

.gap-message-box.small {
  width: 220px;
  border-color: rgba(139, 76, 252, 0.4);
  top: 55px;
  transform: translateX(-50%) translateY(-15px);
}

.gap-visual-track.secondary-track.animate-line .gap-message-box.small {
  transform: translateX(-50%) translateY(0);
}

.gap-message-box strong {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #FC4C4C;
  line-height: 1.4;
}

.gap-message-box.small strong {
  color: #8B4CFC;
}

.gap-message-box span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  display: block;
}

.gap-message-box::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #1a1a1d;
  border-bottom: 1px solid rgba(252, 76, 76, 0.3);
  border-right: 1px solid rgba(252, 76, 76, 0.3);
}

.gap-message-box.small::after {
  top: -6px;
  bottom: auto;
  border-bottom: none;
  border-right: none;
  border-top: 1px solid rgba(139, 76, 252, 0.3);
  border-left: 1px solid rgba(139, 76, 252, 0.3);
}

@media (max-width: 768px) {
  .gap-visual-container {
    padding: 3rem 1rem 2rem;
    margin-top: 2rem;
  }

  .gap-visual-track {
    margin-bottom: 80px;
  }

  .gap-message-box {
    top: -160px;
    width: 220px;
  }

  .gap-warning {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* Re-using highlight box from previous turn */
.blog-highlight-box {
  background: rgba(139, 76, 252, 0.04);
  border: 1px solid rgba(139, 76, 252, 0.12);
  border-radius: 20px;
  padding: 1.75rem;
  margin: 2.75rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

html[data-theme="dark"] .blog-highlight-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.highlight-header {
  margin-top: 0 !important;
  color: var(--color-ui-purple) !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  margin-bottom: 1.25rem !important;
}

.highlight-img-wrap {
  margin-bottom: 1.25rem;
  text-align: center;
}

/* Blog Tabs */
.blog-tabs-container {
  margin: 3rem 0;
}

.blog-tabs-nav {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(139, 76, 252, 0.12);
  padding-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.blog-tabs-nav::-webkit-scrollbar {
  display: none;
}

.blog-tab-btn {
  background: rgba(139, 76, 252, 0.15);
  border: 1px solid rgba(139, 76, 252, 0.3);
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.blog-tab-btn:hover {
  background: rgba(139, 76, 252, 0.12);
  color: var(--color-ui-purple);
  transform: translateY(-1px);
}

.blog-tab-btn.active {
  background: var(--color-ui-purple);
  color: #fff;
  border-color: var(--color-ui-purple);
  box-shadow: 0 8px 20px rgba(139, 76, 252, 0.4);
}

.blog-tab-pane {
  display: none;
  animation: tabFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 1.5rem !important;
  /* Space separation from tabs */
}

.blog-tab-pane.active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .blog-tab-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.88rem;
  }

  .blog-tabs-nav {
    gap: 0.4rem;
  }
}

/* Integrated Journey Cards in Tabs */
.journey-stage-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 2rem !important;
  /* Smaller gap now that we have sibling margins */
  background: transparent !important;
  border: none !important;
  padding: 1rem 0 !important;
  margin: 1.5rem 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: visible !important;
}

.journey-stage-card .gap-visual-container {
  position: static !important;
  display: block !important;
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  width: 100% !important;
  max-width: none !important;
}

.journey-stage-card .gap-visual-track {
  background: rgba(255, 255, 255, 0.1) !important;
  height: 2px !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 3.5rem 0 !important;
  /* Healthy space for logo breathing */
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
}

/* Ensure message box is in the vertical flow - NOW AS A SIBLING */
.journey-stage-card .gap-message-box {
  position: relative !important;
  top: 0 !important;
  margin: 0 auto 2rem !important;
  /* Centered with space below */
  width: 95% !important;
  max-width: 650px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: rgba(139, 76, 252, 0.08) !important;
  border: 1px solid rgba(139, 76, 252, 0.2) !important;
  border-left: 4px solid #8B4CFC !important;
  padding: 1.25rem 1.5rem !important;
  z-index: 10 !important;
  transform: none !important;
}

.journey-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .journey-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .journey-stage-card {
    padding: 1.5rem;
  }
}

.journey-info-text h4 {
  color: #8B4CFC;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.journey-info-text p {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.journey-info-text strong {
  color: #fff;
  font-weight: 600;
}

.journey-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background: #000;
}

.journey-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.9;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.journey-image-wrap:hover img {
  transform: scale(1.03);
  opacity: 1;
}

.journey-image-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

/* Layout Fix: Prevent message box overlaps in tabs */
.journey-stage-card .gap-message-box {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 1.5rem auto 0 !important;
  width: 90% !important;
  max-width: 600px !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  background: rgba(139, 76, 252, 0.08) !important;
  border: 1px solid rgba(139, 76, 252, 0.2) !important;
  border-left: 4px solid #8B4CFC !important;
  box-shadow: none !important;
  padding: 1rem 1.5rem !important;
}

.journey-stage-card .gap-message-box::after {
  display: none !important;
  /* Hide the arrow */
}

/* Dypa Icon Point for Timeline */
.gap-mood-point {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Back to centered as requested */
  transform: translate(-50%, -50%);
  z-index: 20;
}

.gap-mood-icon {
  width: 72px;
  height: 72px;
  background: var(--bg-card);
  border: 4px solid #8B4CFC;
  border-radius: 50%;
  display: flex !important;
  align-items: center !important;
  /* Perfect vertical center */
  justify-content: center !important;
  /* Perfect horizontal center */
  box-shadow: 0 0 40px rgba(139, 76, 252, 0.7);
  animation: pulse-mood 2s infinite ease-in-out;
  padding: 0 !important;
  /* Remove padding for zero offset */
  overflow: hidden;
  z-index: 50;
}

.gap-mood-icon img {
  width: 75% !important;
  /* Fixed size for perfect centering */
  height: 75% !important;
  object-fit: contain;
}

@keyframes pulse-mood {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(139, 76, 252, 0.6);
  }

  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 20px rgba(139, 76, 252, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(139, 76, 252, 0);
  }
}

.journey-stage-card .gap-visual-track {
  height: 2px !important;
  display: flex !important;
  align-items: center !important;
  overflow: visible !important;
}

/* 📱 MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .blog-tabs-container {
    padding: 0 1rem !important;
    margin: 2rem 0 !important;
  }

  /* Make tabs scrollable horizontally without cutting off */
  .blog-tabs-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 0.8rem !important;
    margin-bottom: 1.5rem !important;
    gap: 0.5rem !important;
    border-bottom: 1px solid rgba(139, 76, 252, 0.08) !important;
  }

  .blog-tab-btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.85rem !important;
    flex-shrink: 0 !important;
    /* Prevent tabs from squishing */
  }

  /* Scale down the large pulsing logo for mobile */
  .gap-mood-icon {
    width: 60px !important;
    height: 60px !important;
    padding: 0 !important;
    /* Perfect center on mobile too */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Adjust vertical spacing for mobile structural flow */
  .journey-stage-card {
    gap: 1.5rem !important;
  }

  .journey-stage-card .gap-visual-track {
    margin: 3rem 0 !important;
  }

  .before-stage .gap-segment.waiting {
    top: -3.8rem !important;
    /* Elevated for mobile logo clearance */
    left: 50% !important;
    /* Back to centered */
  }

  .before-stage .gap-mood-point {
    left: 50% !important;
    /* Back to centered */
  }

  .journey-stage-card .gap-message-box {
    margin: 0 auto 1.5rem !important;
    padding: 1rem !important;
    font-size: 0.9rem !important;
  }

  .journey-stage-card .gap-message-box strong {
    font-size: 1rem !important;
  }

  /* Content Grid Stacking */
  .journey-content-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .journey-image-wrap {
    order: -1 !important;
    /* Image on top on mobile */
  }
}

/* ---------------------------------
   BLOG: COMPARISON TABLE
---------------------------------- */
.blog-article {
  width: 100%;
  max-width: 1100px;
  /* Increased from 960px to fit 5+1 columns better */
  margin: 0 auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.blog-table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 16px;
  border: 1px solid rgba(139, 76, 252, 0.2);
  background: var(--bg-card, var(--card-landing, #ffffff));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .blog-table-container {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

.blog-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
  /* Slightly reduced min-width to help it "fit" better within 1100px */
  font-size: 0.8rem;
  /* Further reduced */
}

.blog-comparison-table th,
.blog-comparison-table td {
  padding: 0.7rem 0.5rem;
  /* Further reduced */
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease;
}

html[data-theme="dark"] .blog-comparison-table th,
html[data-theme="dark"] .blog-comparison-table td,
html[data-theme="dark"] .blog-comparison-table td b,
html[data-theme="dark"] .blog-comparison-table td span {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #f7fdfd !important;
  /* Force high contrast white */
}

.blog-comparison-table th {
  background: rgba(139, 76, 252, 0.08);
  color: var(--color-ui-purple);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  /* Further reduced */
  letter-spacing: 0.08em;
  position: sticky;
  top: 0;
  z-index: 2;
}

html[data-theme="dark"] .blog-comparison-table th {
  background: rgba(139, 76, 252, 0.2);
  color: #fff !important;
}

.blog-comparison-table th a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid rgba(139, 76, 252, 0.3);
  transition: border-color 0.2s ease;
}

.blog-comparison-table th a:hover {
  border-bottom-color: var(--color-ui-purple);
}

html[data-theme="dark"] .blog-comparison-table th a {
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .blog-comparison-table th a:hover {
  border-bottom-color: #fff;
}

.blog-comparison-table tr:hover td {
  background: rgba(139, 76, 252, 0.04);
}

html[data-theme="dark"] .blog-comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.blog-comparison-table td:first-child {
  font-weight: 700;
  background: rgba(139, 76, 252, 0.02);
  color: var(--color-ui-purple);
  width: 13%;
  /* Further reduced */
}

html[data-theme="dark"] .blog-comparison-table td:first-child {
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-ui-lightpurple);
}

/* Interaktive Spalten-Hervorhebung */
.blog-comparison-table td:hover {
  background: rgba(139, 76, 252, 0.08) !important;
  cursor: default;
}

/* Checkmarks and text readability */
.blog-comparison-table .check-wrap {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-comparison-table .check-icon {
  color: #2fb344;
  font-size: 0.9rem;
}

.blog-comparison-table .detail-text {
  font-size: 0.75rem;
  opacity: 0.8;
  line-height: 1.1;
}

/* Blue-to-Red Clinical Waterfall Path (Dypa Premium) */
.phases-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--text);
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

/* High-Fidelity Phase Console (Dypa Signature Style - GOLD & ADAPTIVE) */
:root {
  --phase-03-color: var(--color-text-light, #222);
}

html[data-theme="dark"] {
  --phase-03-color: #fff;
}

.phases-title {
  font-size: 2.22rem;
  margin-bottom: 4rem;
  color: var(--text);
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.phases-container.console-mode {
  width: 100%;
  max-width: 1200px;
  margin: 6rem auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Tab Navigation Strip */
.console-tabs {
  display: flex;
  width: 100%;
  background: rgba(139, 76, 252, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 24px 24px 0 0;
  /*border: 1px solid rgba(167, 164, 157, 0.3);
  /* SUBTLE GOLD */
  border-bottom: none;
  overflow: hidden;
}

.console-tab {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  /*border-right: 1px solid rgba(167, 164, 157, 0.3);*/
  text-align: center;
}

.console-tab:last-child {
  border-right: none;
}

.console-tab span {
  font-family: monospace;
  font-size: 1.4rem;
  font-weight: 950;
  color: var(--stage-color) !important;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.console-tab .tab-title {
  font-size: 0.82rem;
  font-weight: 850;
  margin: 0.4rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stage-color) !important;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.console-tab:hover span,
.console-tab.active span {
  opacity: 1;
}

.console-tab:hover .tab-title,
.console-tab.active .tab-title {
  opacity: 1;
}

.console-tab.active {
  background: rgba(139, 76, 252, 0.08);
  box-shadow: inset 0 -4px 0 var(--stage-color) !important;
}

/* The Main Console Glass Window */
.console-window {
  width: 100%;
  min-height: 500px;
  background: var(--bg-card);
  border-radius: 0 0 32px 32px;
  /*border: 1px solid rgba(212, 175, 55, 0.8);
  /* GOLD FRAME */
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .console-window {
  background: rgba(20, 20, 22, 0.9);
  backdrop-filter: blur(45px);
  box-shadow: 0 50px 150px rgba(0, 0, 0, 0.6);
  border-color: rgba(212, 175, 55, 0.5);
  /* ADAPTED GOLD */
}

.console-panel {
  display: none;
  padding: 4rem;
  animation: consoleFade 0.6s ease both;
  flex-direction: column;
}

.console-panel.active {
  display: flex;
}

.panel-header {
  padding-left: 2rem;
  margin-bottom: 3.5rem;
}

.panel-header h3 {
  font-size: 2.8rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  margin: 0;
}

.panel-desc {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 4rem;
  max-width: 90%;
}

html[data-theme="dark"] .panel-desc {
  color: rgba(255, 255, 255, 0.75);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
}

.grid-col h4 {
  font-size: 0.95rem;
  font-weight: 950;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.diag-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.diag-list li {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
  display: flex;
  gap: 1.15rem;
}

.diag-list li::before {
  content: '→';
  color: var(--stage-color) !important;
  font-weight: 950;
}

html[data-theme="dark"] .diag-list li {
  color: rgba(255, 255, 255, 0.9);
}

.strat-box {
  background: rgba(139, 76, 252, 0.04);
  padding: 2.5rem;
  border-radius: 28px;
  border: 1px solid rgba(212, 175, 55, 0.8) !important;
  /* GOLD FRAME */
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-soft);
}

html[data-theme="dark"] .strat-box {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(212, 175, 55, 0.5) !important;
}

@media (max-width: 1000px) {
  .phases-title {
    font-size: 1.7rem;
    margin-bottom: 2.5rem;
  }

  .console-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .console-tab {
    min-width: 85px;
    padding: 1.25rem 0.5rem;
    flex: 0 0 85px;
  }

  .console-tab span {
    font-size: 1.4rem;
    opacity: 0.6;
  }

  .console-tab .tab-title {
    display: none;
  }

  .console-tab.active {
    background: rgba(139, 76, 252, 0.15);
    box-shadow: inset 0 -4px 0 var(--stage-color) !important;
  }

  .console-tab.active span {
    opacity: 1;
    transform: scale(1.1);
  }

  .console-window {
    border-radius: 0 0 32px 32px;
    border-top: none;
  }

  .console-panel {
    padding: 3.5rem 2rem;
  }

  .panel-header {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    border-left-width: 5px;
  }

  .panel-header h3 {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  .panel-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
  }

  .panel-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .console-tab {
    min-width: 75px;
    flex: 0 0 75px;
    padding: 1.25rem 0;
  }

  .console-tab span {
    font-size: 1.3rem;
  }

  .console-panel {
    padding: 3rem 1.5rem;
  }

  .panel-header h3 {
    font-size: 1.6rem;
  }

  .panel-desc {
    font-size: 1rem;
    line-height: 1.5;
  }

  .diag-list li {
    font-size: 1.05rem;
    /* Better flow on tiny screens */
  }

  .strat-box {
    padding: 1.5rem;
    font-size: 1rem;
    border-radius: 20px;
    border-left-width: 5px;
  }

  /* Social Share Headline (Mobile Only) */
  .social-share-inline {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
  }

  .social-share-inline #share-label {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.6rem;
    font-weight: 850;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    opacity: 0.9;
    text-align: center;
  }
}