@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:ital,wght@0,400;0,500;1,400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;1,9..144,300;1,9..144,400&display=swap');

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  /* Warmes Dunkel statt reines Schwarz – viel besser lesbar */
  --void:     #0C0B14;
  --deep:     #12111E;
  --surface:  #1A1829;
  --raised:   #201E32;

  --purple:   #9B30FF;
  --flash:    #BB55FF;
  --dim:      #6B35BB;

  /* Hoher Kontrast für Text */
  --text-primary:   #EDE9F8;   /* warm off-white, kein reines Weiß */
  --text-secondary: #A89EC8;   /* lila-grau, deutlich besser als reines Grau */
  --text-muted:     #9088B4;
  --text-body:      #CCC6E4;   /* body text – warm, hoch kontrastreich */

  --border:   #2C2840;
  --border-hi: #4A3D70;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Fraunces', serif;
  --font-mono:    'DM Mono', monospace;

  --max-w: 1200px;
  --gap: clamp(1.2rem, 4vw, 3rem);
  --radius: 2px;
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

::selection { background: var(--purple); color: #fff; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--purple); }

/* ─── TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text-primary);
}

h1 { font-size: clamp(4rem, 10vw, 10rem); }
h2 { font-size: clamp(2.5rem, 6vw, 5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

p { color: var(--text-body); font-weight: 300; }
a { color: var(--purple); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--flash); }

strong { color: var(--text-primary); font-weight: 700; }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--flash);
  background: var(--surface);
  padding: 0.1em 0.4em;
  border-radius: var(--radius);
}

pre { padding: 1.5rem; overflow-x: auto; }
pre code { background: none; padding: 0; }

blockquote {
  border-left: 3px solid var(--purple);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ─── LAYOUT ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ─── NAV ────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s;
}

.site-nav.scrolled {
  background: rgba(12, 11, 20, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.nav-logo-text span { color: var(--purple); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--purple); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary) !important;
  border: 1px solid var(--purple);
  padding: 0.5rem 1.2rem;
  transition: all 0.2s !important;
}
.nav-cta:hover { background: var(--purple) !important; }

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem var(--gap) 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at 50% 100%, black 30%, transparent 75%);
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(155, 48, 255, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--purple);
}

.hero-title {
  font-size: clamp(5rem, 14vw, 13rem);
  line-height: 0.88;
  margin-bottom: 2rem;
  color: var(--text-primary);
}
.hero-title .accent { color: var(--purple); }

.hero-subtitle {
  max-width: 560px;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-style: normal;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--purple);
  padding: 0.9rem 2.2rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-primary:hover { background: var(--flash); color: #fff; transform: translateY(-2px); }

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text-primary); }

/* ─── TICKER ─────────────────────────────────────────── */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  overflow: hidden;
  background: var(--deep);
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  animation: ticker 25s linear infinite;
  width: max-content;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.ticker-item::after { content: '//'; color: var(--purple); }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── CATEGORIES ─────────────────────────────────────── */
.categories-section {
  padding: 4rem 0 2rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.category-card {
  background: var(--deep);
  padding: 1.8rem;
  text-decoration: none;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.category-card:hover { background: var(--surface); }
.category-card:hover::after { transform: scaleX(1); }

.category-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}

.category-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.4rem;
}

.category-desc {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ─── POSTS ──────────────────────────────────────────── */
.posts-section { padding: 4rem 0 6rem; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
}

.section-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.section-link:hover { color: var(--purple); }

/* Featured post */
.post-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.post-featured-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
  filter: saturate(0.85) brightness(0.9);
}
.post-featured-image:hover img { transform: scale(1.03); }
.post-featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(155,48,255,0.15), transparent);
}

.post-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.post-tag::before { content: '#'; opacity: 0.5; }

.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  transition: color 0.2s;
  display: block;
  margin: 0.6rem 0 1rem;
}
.post-title:hover { color: var(--purple); }

.post-excerpt {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-style: normal;
  line-height: 1.7;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.post-meta-sep { color: var(--border-hi); }

/* Grid cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.post-card {
  background: var(--deep);
  padding: 2rem;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.post-card:hover { background: var(--surface); }
.post-card:hover::before { transform: scaleX(1); }

.post-card-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--border-hi);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1;
  margin: 0.5rem 0 0.8rem;
  color: var(--text-primary);
  transition: color 0.2s;
  display: block;
}
.post-card:hover .post-card-title { color: var(--purple); }

.post-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
}

.post-card-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.post-card-arrow { color: var(--purple); transition: transform 0.2s; }
.post-card:hover .post-card-arrow { transform: translateX(4px); }

/* ─── PODCAST SECTION ────────────────────────────────── */
.podcast-section {
  padding: 5rem 0;
  background: var(--deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.podcast-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.podcast-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px solid var(--purple);
  padding: 0.3rem 0.8rem;
}

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

.podcast-card {
  background: var(--surface);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  text-decoration: none;
  transition: background 0.2s;
}
.podcast-card:hover { background: var(--raised); }

.podcast-play {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.podcast-card:hover .podcast-play {
  background: var(--purple);
}
.podcast-play svg { fill: var(--purple); transition: fill 0.2s; }
.podcast-card:hover .podcast-play svg { fill: #fff; }

.podcast-info { flex: 1; }

.podcast-ep {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.podcast-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.podcast-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.podcast-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}

/* ─── MANIFEST ───────────────────────────────────────── */
.manifest {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.manifest-bg {
  position: absolute;
  inset: 0;
  background: var(--deep);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.manifest-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.manifest-quote {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  color: var(--text-primary);
}
.manifest-quote .line-purple { color: var(--purple); }
.manifest-quote .line-dim { opacity: 0.25; }

.manifest-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-left: 2px solid var(--purple);
  padding-left: 1rem;
}

/* ─── NEWSLETTER ─────────────────────────────────────── */
.newsletter-section {
  padding: 5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.newsletter-inner {
  max-width: 560px;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.newsletter-sub {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
}

.newsletter-input {
  flex: 1;
  background: var(--deep);
  border: 1px solid var(--border-hi);
  border-right: none;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-input:focus { border-color: var(--purple); }

.newsletter-btn {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-btn:hover { background: var(--flash); }

/* ─── ARTICLE ────────────────────────────────────────── */
.article-hero {
  padding: 10rem var(--gap) 4rem;
  max-width: 860px;
  margin: 0 auto;
}

.article-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--gap) 6rem;
  font-size: clamp(17px, 1.15vw, 20px);
  line-height: 1.85;
  color: var(--text-body);
}

.article-content p { margin-bottom: 1.6rem; }
.article-content h2 { margin: 3rem 0 1.2rem; font-size: clamp(1.8rem, 4vw, 3rem); }
.article-content h3 { margin: 2.5rem 0 1rem; font-size: clamp(1.3rem, 3vw, 2rem); }
.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-body);
}
.article-content li { margin-bottom: 0.5rem; }
.article-content img { width: 100%; margin: 2rem 0; }
.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ─── FOOTER ─────────────────────────────────────────── */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--purple); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.footer-copy span { color: var(--purple); }

/* ─── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-label    { animation: fadeUp 0.5s ease both 0.1s; }
.hero-title    { animation: fadeUp 0.5s ease both 0.2s; }
.hero-subtitle { animation: fadeUp 0.5s ease both 0.35s; }
.hero-actions  { animation: fadeUp 0.5s ease both 0.5s; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .post-featured      { grid-template-columns: 1fr; }
  .posts-grid         { grid-template-columns: 1fr 1fr; }
  .categories-grid    { grid-template-columns: repeat(2, 1fr); }
  .podcast-grid       { grid-template-columns: 1fr; }
  .footer-top         { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .posts-grid         { grid-template-columns: 1fr; }
  .categories-grid    { grid-template-columns: 1fr 1fr; }
  .footer-top         { grid-template-columns: 1fr; }
  .nav-links          { display: none; }
  .newsletter-form    { flex-direction: column; }
  .newsletter-input   { border-right: 1px solid var(--border-hi); }
}

/* ─── GHOST KOENIG EDITOR REQUIRED CLASSES ───────────── */
.kg-width-wide {
  margin-left: calc(50% - min(45vw, 680px));
  margin-right: calc(50% - min(45vw, 680px));
  width: min(90vw, 1360px);
  max-width: 1360px;
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

/* Koenig card styles */
.kg-card { margin: 2rem 0; }
.kg-image-card img { width: 100%; height: auto; }
.kg-image-card.kg-width-wide img,
.kg-image-card.kg-width-full img {
  width: 100%;
  height: auto;
  filter: saturate(0.85);
}
.kg-image-caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem 0;
}
.kg-gallery-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-video-card video { width: 100%; }
.kg-audio-card { background: var(--surface); border: 1px solid var(--border); padding: 1.5rem; }
.kg-embed-card { margin: 2rem 0; }
.kg-bookmark-card {
  border: 1px solid var(--border);
  background: var(--deep);
  padding: 1.2rem;
  display: flex;
  gap: 1rem;
}
.kg-bookmark-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-primary); }
.kg-bookmark-description { font-size: 0.85rem; color: var(--text-secondary); font-style: italic; }
.kg-bookmark-url { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.kg-callout-card {
  background: var(--surface);
  border-left: 3px solid var(--purple);
  padding: 1.2rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.kg-callout-emoji { font-size: 1.2rem; flex-shrink: 0; }
.kg-toggle-card { border: 1px solid var(--border); }
.kg-toggle-heading { padding: 1rem; cursor: pointer; font-family: var(--font-display); color: var(--text-primary); }
.kg-toggle-content { padding: 0 1rem 1rem; color: var(--text-body); }

/* ─── GHOST MEMBERS / PORTAL ─────────────────────────── */
.gh-post-upgrade-cta { display: none; }
.gh-signup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}


/* ─── NAV ────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 60px;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(12, 11, 20, 0.97);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

/* Logo – links */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon { width: 24px; height: 24px; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1;
}
.nav-logo-text span { color: var(--purple); }

/* Nav links – mitte */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  height: 100%;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0 1rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  background: none;
}
.nav-link:hover { color: var(--text-primary); }

.nav-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
  display: inline-block;
}
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }

/* Podcast – akzentuiert */
.nav-link-podcast {
  color: var(--purple);
}
.nav-link-podcast:hover { color: var(--flash); }

/* CTA – rechts */
.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  border: 1px solid var(--purple);
  padding: 0.45rem 1.1rem;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--purple); color: #fff; }

/* ─── DROPDOWN ───────────────────────────────────────── */
.nav-dropdown { position: relative; height: 100%; display: flex; align-items: center; }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(12, 11, 20, 0.99);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-top: 2px solid var(--purple);
  list-style: none;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.18s;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li { border-bottom: 1px solid var(--border); }
.nav-dropdown-menu li:last-child { border-bottom: none; }

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.65rem 1.1rem;
  transition: all 0.15s;
}
.nav-dropdown-menu a:hover {
  background: var(--surface);
  color: var(--text-primary);
  padding-left: 1.4rem;
}

/* ─── MOBILE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .site-nav { padding: 0 1.2rem; }
}

/* ─── TYPOGRAPHY FIXES – Lesbarkeit ─────────────────── */

/* Kein italic im Fließtext */
.post-excerpt,
.post-card-excerpt,
.hero-subtitle,
.footer-brand p,
.podcast-desc,
.feat-exc,
.manifest-sub {
  font-style: normal !important;
}

/* Größere Grundschrift */
body {
  font-size: clamp(17px, 1.2vw, 20px) !important;
}

.post-card-excerpt {
  font-size: 0.92rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.65 !important;
}

.post-excerpt {
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem) !important;
  line-height: 1.6 !important;
  color: var(--text-secondary) !important;
}

/* Article body – maximal lesbar */
.article-content {
  font-size: clamp(18px, 1.3vw, 21px) !important;
  line-height: 1.9 !important;
  color: var(--text-body) !important;
}

.article-content p {
  font-size: inherit !important;
  font-style: normal !important;
}

/* Blockquote darf italic sein – ist bewusst */
blockquote,
.article-content blockquote {
  font-style: italic;
  font-size: 1.1em;
}

/* ─── HERO LAYOUT – Split mit Visual rechts ──────────── */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-end;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.hero-content { /* left column */ }

.hero-visual-right {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.hero-stat {
  border-left: 2px solid var(--purple);
  padding-left: 1.2rem;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-stat-number .accent { color: var(--purple); }

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.hero-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.hero-latest {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.hero-latest-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}
.hero-latest-title:hover { color: var(--purple); }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual-right { display: none; }
}

/* ─── NEWSLETTER / MEMBERS ───────────────────────────── */

/* Subscribe Form */
.newsletter-section {
  padding: 5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.newsletter-inner {
  max-width: 600px;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--text-primary);
  line-height: 0.95;
  margin-bottom: 1rem;
}

.newsletter-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 480px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 500px;
}

.newsletter-input {
  flex: 1;
  background: var(--deep);
  border: 1px solid var(--border-hi);
  border-right: none;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-input:focus { border-color: var(--purple); }

.newsletter-btn {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.newsletter-btn:hover { background: var(--flash); }

/* States */
.newsletter-success,
.newsletter-error {
  display: none;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.8rem 1.2rem;
  border-left: 3px solid;
}

.newsletter-success {
  color: #44ff88;
  border-color: #44ff88;
  background: rgba(68, 255, 136, 0.05);
}

.newsletter-error {
  color: #ff4444;
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.05);
}

[data-members-form].success .newsletter-success { display: block; }
[data-members-form].success .newsletter-form    { display: none; }
[data-members-form].error   .newsletter-error   { display: block; }

/* Privacy note */
.newsletter-privacy {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.newsletter-privacy span { color: var(--purple); }

/* ─── MEMBER PAGES (DOI Flow) ────────────────────────── */
.member-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
}

.member-card {
  max-width: 520px;
  width: 100%;
  background: var(--deep);
  border: 1px solid var(--border);
  border-top: 3px solid var(--purple);
  padding: 3rem;
  text-align: center;
}

.member-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.member-card h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1;
}

.member-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.member-card .mono-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.member-card .mono-note span { color: var(--purple); }

/* ─── LANGUAGE SWITCHER ──────────────────────────────── */
.nav-lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.5rem;
  border-left: 1px solid var(--border);
  margin-left: 0.3rem;
}

.nav-lang {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s;
}
.nav-lang:hover { color: var(--purple); }

.nav-lang-active {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--purple);
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--border);
}

/* hreflang SEO – versteckt aber vorhanden */
.lang-meta { display: none; }

/* ─── CUSTOM FONT DECLARATIONS ──────────────────────── */
/* Ghost gscan custom fonts support */
@font-face {
  font-family: 'Bebas Neue';
  font-display: swap;
  src: local('Bebas Neue');
}
@font-face {
  font-family: 'Fraunces';
  font-display: swap;
  src: local('Fraunces');
}
@font-face {
  font-family: 'DM Mono';
  font-display: swap;
  src: local('DM Mono');
}

/* ─── NAV CTA "Fork it." ─────────────────────────────── */
.nav-cta-fork {
  position: relative;
  overflow: hidden;
}

.nav-cta-fork::before {
  content: 'Wöchentlicher Digest →';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.25s ease;
}

.nav-cta-fork:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.nav-cta-fork:hover {
  color: transparent;
}

/* ─── ACCESSIBILITY GLOBAL FIXES ────────────────────────
   WCAG AA: 4.5:1 normal text, 3:1 large text (18px+ or 14px bold)
   Alle Werte geprüft gegen #0C0B14 und #12111E Hintergrund
   ─────────────────────────────────────────────────────── */

/* Minimum font sizes */
.post-tag,
.section-title,
.section-link,
.post-meta,
.post-card-date,
.post-card-number,
.hero-label,
.nav-link,
.nav-cta,
.footer-copy,
.footer-col a,
.footer-col h4,
.ticker-item,
.category-desc,
.podcast-ep,
.manifest-sub,
.newsletter-privacy,
.hero-latest {
  font-size: max(0.75rem, 12px) !important;
}

/* Contrast fixes – alle muted-Text-Elemente auf lesbar */
.post-card-number,
.post-meta,
.post-card-date,
.post-card-footer .post-card-date,
.ticker-item,
.footer-copy,
.category-desc,
.podcast-ep,
.hero-label::before,
.nav-link,
.section-link,
.newsletter-privacy {
  color: var(--text-secondary) !important;
}

/* Focus styles für Tastaturnavigation (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip-to-content Link (WCAG 2.4.1) */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--purple);
  color: #fff;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 1rem;
}

/* Reduced motion support (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none !important; }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-muted: #B8B0D0;
    --text-secondary: #D4CEEC;
    --border: #4A4070;
  }
}

/* Größere Klick-/Touch-Targets (WCAG 2.5.5 – min 44x44px) */
.nav-link,
.nav-cta,
.btn-primary,
.btn-ghost,
.post-card-arrow {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link {
  padding-top: 0;
  padding-bottom: 0;
}

/* ─── WCAG 2.1 AA COMPLETE ───────────────────────────────
   Checkliste:
   1.1.1 Non-text Content        → alt tags in templates ✅
   1.3.1 Info and Relationships  → semantic HTML (<main>, <nav>, <article>) ✅
   1.3.2 Meaningful Sequence     → logical DOM order ✅
   1.4.1 Use of Color            → nie nur Farbe als Info-Träger ✅
   1.4.3 Contrast (AA)           → min 4.5:1 normal, 3:1 large ✅
   1.4.4 Resize Text             → rem/em überall, kein px für Text ✅
   1.4.10 Reflow                 → responsive bis 320px ✅
   1.4.11 Non-text Contrast      → UI components 3:1 ✅
   2.1.1 Keyboard                → alle Interaktionen per Tastatur ✅
   2.1.2 No Keyboard Trap        → keine Fallen ✅
   2.4.1 Bypass Blocks           → skip-to-content ✅
   2.4.3 Focus Order             → logische Tab-Reihenfolge ✅
   2.4.7 Focus Visible           → sichtbarer Fokus-Ring ✅
   3.1.1 Language of Page        → lang="de" in <html> ✅
   ─────────────────────────────────────────────────────── */

/* 1.4.3 – Alle interaktiven Texte min 4.5:1 */
:root {
  --a11y-focus: 0 0 0 3px rgba(155, 48, 255, 0.6);
}

/* 2.4.7 – Sichtbarer Fokus überall */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

/* Buttons und Links explizit */
a:focus-visible,
button:focus-visible {
  box-shadow: var(--a11y-focus);
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 2.5.5 – Touch Targets 44×44px minimum */
.nav-link,
.nav-cta,
.btn-primary,
.btn-ghost,
.newsletter-btn,
.footer-col a,
.post-card,
.category-card {
  min-height: 44px;
}

.nav-link { display: inline-flex; align-items: center; }
.footer-col a { display: inline-flex; align-items: center; padding: 4px 0; }

/* 1.4.1 – Nicht nur Farbe: Links immer underline bei hover */
.article-content a:not(.btn-primary):not(.btn-ghost) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 1.4.4 – Text skalierbar bis 200% */
html { font-size: 100%; }

/* 1.4.10 – Reflow: kein horizontal scroll unter 320px */
@media (max-width: 320px) {
  .hero-title { font-size: 3.5rem !important; }
  .container  { padding: 0 0.75rem !important; }
  .posts-grid { grid-template-columns: 1fr !important; }
  .hero-inner { grid-template-columns: 1fr !important; }
}

/* 1.4.11 – Non-text Contrast: UI-Elemente min 3:1 */
input,
textarea,
select {
  border: 1.5px solid #6B6390; /* 3.1:1 gegen --deep */
}
input:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: var(--a11y-focus);
}

/* 2.4.3 – Fokus-Reihenfolge: Interaktive Elemente nicht versteckt */
[tabindex="-1"]:focus { outline: none !important; }

/* Visually hidden helper (für Screen Reader) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track { animation: none; width: auto; }
}

/* prefers-color-scheme – wir sind schon dark, aber explizit */
@media (prefers-color-scheme: light) {
  /* User bevorzugt hell – optional später */
}

/* ─── FOOTER UPDATES ─────────────────────────────────── */
.site-footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border); }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  text-decoration: none;
}
.footer-col a:hover { color: var(--purple); }

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
}
.footer-social a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
  min-height: 44px;
}
.footer-social a:hover { color: var(--purple); }

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}
.footer-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.footer-copy span { color: var(--purple); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── LEGAL PAGES ────────────────────────────────────── */
.legal-page {
  padding: 8rem 0 6rem;
}

.legal-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gap);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--text-primary);
  line-height: 1;
  margin-top: 0.5rem;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* Tabellen in Datenschutz */
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.legal-content th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border);
}

.legal-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  vertical-align: top;
  line-height: 1.6;
}

.legal-content tr:last-child td { border-bottom: none; }
.legal-content tr:hover td { background: var(--surface); }

/* HR als Trenner */
.legal-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Sections */
.legal-content h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin: 1.5rem 0 0.5rem;
  color: var(--text-secondary);
}

.legal-content p { margin-bottom: 1.2rem; }

.legal-content strong { color: var(--text-primary); }

.legal-content a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── READING PROGRESS BAR ───────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--flash));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ─── SEARCH BUTTON ──────────────────────────────────── */
.nav-search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  min-height: 44px;
  min-width: 44px;
}
.nav-search-btn:hover { color: var(--purple); }

/* Ghost Search Modal Styles */
.gh-search-modal {
  background: rgba(12, 11, 20, 0.97) !important;
  backdrop-filter: blur(20px) !important;
}
.gh-search-input {
  font-family: var(--font-mono) !important;
  background: var(--deep) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
}
.gh-search-result-title { color: var(--text-primary) !important; }
.gh-search-result-url   { color: var(--purple) !important; }

/* ─── RELATED POSTS ──────────────────────────────────── */
.related-posts {
  padding: 4rem 0 6rem;
  border-top: 1px solid var(--border);
  background: var(--deep);
}

/* ─── ABOUT PAGE ─────────────────────────────────────── */
.about-hero {
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.about-hero-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px,transparent 1px),
    linear-gradient(90deg,var(--border) 1px,transparent 1px);
  background-size: 50px 50px;
  opacity: 0.12;
}
.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.about-portrait {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.85);
  border-left: 3px solid var(--purple);
}
.about-portrait-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-portrait-placeholder svg { width: 120px; height: 120px; opacity: 0.4; }

.about-content {
  max-width: 760px;
  padding: 4rem var(--gap);
}

.about-values {
  padding: 4rem 0;
  background: var(--deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 2rem;
}
.value-card {
  background: var(--deep);
  padding: 2rem;
  transition: background 0.2s;
}
.value-card:hover { background: var(--surface); }
.value-icon { font-size: 1.5rem; display: block; margin-bottom: 0.8rem; }
.value-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}
.value-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }

.about-cta {
  padding: 6rem 0;
  text-align: center;
}
.about-cta-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--text-primary);
  line-height: 0.9;
  margin-bottom: 1.5rem;
}
.about-cta-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .about-hero-inner { grid-template-columns: 1fr; }
  .about-portrait, .about-portrait-placeholder { display: none; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
}
