/* Frindz AI — gemeinsame Styles für /blog & /blog/<slug> (SSOT).
   Wiederverwendet die Design-Tokens & Klassen der Hauptseite (dunkel, Teal-
   Akzent, Space Grotesk Headlines / Plus Jakarta Sans Body) — siehe legal.css
   für dasselbe Muster bei den Rechtsseiten. Keine Eyebrow-/Kicker-Pillen. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #050505;
  --surface: #0a0a0f;
  --glass: rgba(255,255,255,0.03);
  --glass-border: rgba(255,255,255,0.06);
  --glass-border-hover: rgba(255,255,255,0.12);
  --accent: #0D9488;
  --accent-soft: rgba(13,148,136,0.08);
  --text: #ffffff;
  --text-secondary: rgba(255,255,255,0.66);
  --text-muted: rgba(255,255,255,0.4);
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --ease: cubic-bezier(0.32,0.72,0,1);
}
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
::selection { background: var(--accent); color: #fff; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== BACKGROUND MESH (dezent, wie auf den Hauptseiten) ===== */
.mesh-bg { position: fixed; inset: 0; z-index: -1; opacity: 0.5; }
.mesh-bg .bg-art { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; filter: blur(2px); }

/* ===== NAV (identisch zur Hauptseite) ===== */
.nav {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 40;
  margin-top: 1.5rem; padding: 0.65rem 1.5rem; border-radius: 9999px;
  background: rgba(10,10,15,0.7); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border); display: flex; align-items: center; gap: 2.5rem;
  width: max-content; max-width: calc(100vw - 2rem);
}
.nav-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.nav-logo:hover { text-decoration: none; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em; transition: color 400ms var(--ease); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { padding: 0.5rem 1.25rem; border-radius: 9999px; background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 400ms var(--ease); }
.nav-cta:hover { background: #0f766e; text-decoration: none; }
.nav-hamburger { display: none; width: 32px; height: 32px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; background: none; border: none; padding: 0; }
.nav-hamburger span { display: block; width: 20px; height: 1.5px; background: var(--text-secondary); transition: all 400ms var(--ease); transform-origin: center; }
.nav-hamburger.active span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 39; background: rgba(5,5,5,0.92);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none; transition: opacity 500ms var(--ease);
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu a { color: var(--text); text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-size: 1.75rem; font-weight: 600; opacity: 0; transform: translateY(2rem); transition: all 500ms var(--ease); }
.mobile-menu.active a { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) { .nav-links, .nav-cta { display: none; } .nav-hamburger { display: flex; } }

/* ===== DOUBLE-BEZEL CARD (identisch zur Hauptseite) ===== */
.card-shell { background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); padding: 6px; border-radius: var(--radius-xl); transition: border-color 700ms var(--ease); }
.card-shell:hover { border-color: var(--glass-border-hover); }
.card-core { background: var(--surface); border-radius: calc(2rem - 6px); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: inset 0 1px 1px rgba(255,255,255,0.06); overflow: hidden; }

/* ===== PILL BUTTON (identisch zur Hauptseite) ===== */
.btn { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.25rem 0.85rem 1.75rem; border-radius: 9999px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all 500ms var(--ease); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0f766e; }
.btn .icon-circle { width: 2rem; height: 2rem; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; transition: transform 500ms var(--ease); }
.btn:hover .icon-circle { transform: translateX(3px) translateY(-1px) scale(1.05); }
.btn .icon-circle svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ===== BLOG-INDEX ===== */
.blog-index-wrap { max-width: 1100px; margin: 0 auto; padding: 9rem 1.5rem 6rem; }
.blog-index-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.blog-index-header h1 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.blog-index-header p { color: var(--text-secondary); font-size: 1.05rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.blog-card { display: block; text-decoration: none; color: inherit; }
.blog-card:hover { text-decoration: none; }
.blog-card h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; margin: 0.6rem 0 0.6rem; color: var(--text); }
.blog-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }
.blog-card-link { display: inline-block; margin-top: 1rem; color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.blog-empty .card-core { text-align: center; color: var(--text-secondary); }

/* ===== BLOG-ARTIKEL ===== */
.blog-article-wrap { max-width: 780px; margin: 0 auto; padding: 9rem 1.5rem 5rem; }
.blog-back { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2.5rem; }
.blog-back:hover { color: var(--text); text-decoration: none; }
.blog-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.blog-article-header h1 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2.1rem, 5vw, 3rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.blog-article-lead { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.6; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--glass-border); }

.blog-article-body h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(1.3rem, 3vw, 1.65rem); letter-spacing: -0.01em; margin: 2.5rem 0 1rem; }
.blog-article-body h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.15rem; margin: 1.75rem 0 0.75rem; color: var(--text); }
.blog-article-body p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 1.15rem; }
.blog-article-body ul, .blog-article-body ol { margin: 0 0 1.15rem 1.25rem; color: var(--text-secondary); display: flex; flex-direction: column; gap: 0.5rem; }
.blog-article-body li { font-size: 1rem; }
.blog-article-body strong { color: var(--text); font-weight: 600; }
.blog-article-body a { color: var(--accent); }
.blog-article-body blockquote { border-left: 2px solid var(--accent); padding: 0.25rem 0 0.25rem 1.25rem; margin: 1.5rem 0; color: var(--text-secondary); font-style: italic; }
.blog-article-body code { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 0.35rem; padding: 0.1rem 0.4rem; font-size: 0.88em; }
.blog-article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; }
.blog-article-body th, .blog-article-body td { border: 1px solid var(--glass-border); padding: 0.6rem 0.8rem; text-align: left; color: var(--text-secondary); }
.blog-article-body th { color: var(--text); font-weight: 600; }

.blog-article-cta { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--glass-border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.blog-article-cta p { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.15rem; }

@media (max-width: 640px) {
  .blog-index-wrap, .blog-article-wrap { padding-top: 7.5rem; }
  .blog-article-cta { flex-direction: column; align-items: flex-start; }
}

/* ===== FOOTER (identisch zur Hauptseite) ===== */
.footer { padding: 4rem 0; border-top: 1px solid var(--glass-border); }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.footer-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; text-align: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--glass-border); font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 600px) { .footer-inner { flex-direction: column; text-align: center; } }
