/* blogpost-layout.css
   Vollbreite, MoodTrackMe-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: 2.5rem 1.25rem 3.5rem;
}

/* 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;
}

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

.blog-article > header.blog-hero {
  display: block !important; /* sicherstellen, dass kein globales flex wirkt */
}

.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: block;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ui-purple, #8B4CFC);
  margin: 0 0 0.75rem;
}

/* Titel – eigene Zeile */

.blog-hero-title {
  display: block;
  width: 100%;
  font-size: clamp(2.0rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  color: var(--text, var(--color-text-main, #100F11));
  text-align: left;
}

/* Beschreibung – eigene Zeile */

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

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

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0;
}

.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.4rem;
  margin: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--color-text-muted, rgba(16,16,17,0.7));
}

.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, var(--color-text-main, #100F11));
}

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

.blog-section p {
  line-height: 1.65;
  margin-bottom: 0.75rem;
  color: var(--color-text-soft, rgba(16,15,17,0.74));
}

.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) {
  .blog-main {
    padding: 2rem 1rem 3rem;
  }

  .blog-article {
    max-width: 100%;
  }
}

/* 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 MoodTrackMe-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: white !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: #100F11;
}

/* 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: #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: #031a1c;
  box-shadow: 0 0 16px rgba(222,215,250,0.22);
}

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

.blog-card-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.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: #100F11;
}

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: #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;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* 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;
  align-items: center;
  gap: 0.5rem;
  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);
}

/* Mobile: untereinander statt nebeneinander */

@media (max-width: 640px) {
  .blog-meta-share-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}
