/*
 * base.css
 * Layout, Struktur und theme-unabhängige Stile.
 * Hier werden KEINE Farben definiert – nur in themes.css.
 */

/* ── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── TYPOGRAPHY ───────────────────────────────────── */
.font-serif   { font-family: 'Instrument Serif', Georgia, serif; }
.font-mono    { font-family: 'JetBrains Mono', 'Courier New', monospace; }

/* ── LAYOUT ───────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── NAV ──────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--accent-dim);
}

/* ── THEME SWITCHER ───────────────────────────────── */
.theme-switcher {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
}

.theme-btn {
  background: none;
  border: none;
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 0.72rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
  font-family: 'JetBrains Mono', monospace;
}

.theme-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* ── MAIN CONTENT ─────────────────────────────────── */
main {
  padding: 0 0 4rem;
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  padding: 3.5rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
}

@keyframes heroFlow {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

[data-theme="dark"] .hero {
  background: linear-gradient(
    -45deg,
    #08080f 0%,
    #08080f 30%,
    rgba(141, 169, 190, 0.2) 50%,
    #08080f 70%,
    #08080f 100%
  );
  background-size: 300% 300%;
  animation: heroFlow 10s ease infinite;
}

[data-theme="light"] .hero {
  background: linear-gradient(
    -45deg,
    #f2ede4 0%,
    #f2ede4 30%,
    rgba(77, 122, 150, 0.12) 50%,
    #f2ede4 70%,
    #f2ede4 100%
  );
  background-size: 300% 300%;
  animation: heroFlow 10s ease infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  font-size: 0.7rem;
  color: var(--text-subtle);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.hero-name {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-thesis {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 400;
  font-style: normal;
  color: var(--text);
  line-height: 1.08;
  max-width: 620px;
  margin-bottom: 1.75rem;
}

.hero-thesis em {
  font-style: italic;
  color: var(--accent);
}

.hero-strike {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--text-subtle);
  color: var(--text-muted);
}

.hero-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-next-webinar {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: color 0.2s;
  flex-wrap: wrap;
}

.hero-next-webinar:hover { color: var(--accent); }

.hero-next-webinar-label {
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.6rem;
}

/* ── FUNDAMENT-STACK (Hero-Visual) ────────────────── */
.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
  perspective: 800px;
}

.stack-layer {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 0;
  transform: translateY(14px);
  animation: stackIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 0.15s);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.stack-layer:hover {
  transform: translateX(8px);
  border-color: var(--accent);
  box-shadow: 0 0 22px -8px var(--accent);
}

/* mittlere Schichten (Governance, Architektur): Beschreibung erst beim Hover */
.stack-layer:not(.stack-ki):not(.stack-base) .stack-note {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.stack-layer:not(.stack-ki):not(.stack-base):hover .stack-note {
  max-height: 2rem;
  opacity: 1;
}

/* KI ruht auf dem Fundament: Hover auf die KI-Schicht hebt die Schichten darunter hervor */
.stack-ki:hover ~ .stack-layer {
  border-color: var(--accent);
}

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

.stack-label {
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.stack-note {
  font-size: 0.6rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

/* oberste Schicht: die "KI", die alle wollen – auffällig, aber dünn */
.stack-ki {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 24px -6px var(--accent);
}

.stack-ki .stack-label {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* unterste Schicht: das Fundament – breit, solide, betont */
.stack-base {
  border-width: 2px;
  border-color: var(--border-hover);
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}

.stack-base .stack-label {
  font-weight: 500;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-stack { max-width: 420px; }
}

/* ── SCROLL REVEAL ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── ABOUT SECTION ────────────────────────────────── */
.about-section {
  padding: 2.5rem 0 0;
}

.about-inner {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.about-text a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.about-text a:hover { border-bottom-color: var(--accent); }

.about-text .about-ps {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-subtle);
  font-style: italic;
}

.about-photo-wrap {
  flex-shrink: 0;
}

.about-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: block;
}

@media (max-width: 620px) {
  .about-inner { flex-direction: column-reverse; gap: 1.5rem; }
  .about-photo { width: 100px; height: 100px; }
}

/* ── SECTION STRIPE (alternating bg bands) ────────── */
.section-stripe {
  background: var(--bg-card);
  transition: background 0.3s;
}

/* ── TABS (Wirken & Beweise) ──────────────────────── */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

.tab-count {
  font-size: 0.62rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.35rem;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
}

.tab.active .tab-count {
  background: color-mix(in srgb, var(--bg) 25%, transparent);
  color: var(--bg);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabIn 0.35s ease both;
}

@keyframes tabIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── KLARTEXT / THESEN ────────────────────────────── */
.thesen {
  display: flex;
  flex-direction: column;
}

.these {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}

.these:last-child { border-bottom: none; }

.these-num {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 0.3rem;
  width: 2rem;
}

.these-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

.these-text em {
  font-style: italic;
  color: var(--accent);
}

/* ── FUNDAMENT-CHECK ──────────────────────────────── */
.check-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--bg-card);
}

.check-intro { margin-bottom: 1.5rem; }

.check-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.check-title em { font-style: italic; color: var(--accent); }

.check-lead {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
}

.check-questions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.check-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}

.check-q.answered { border-color: var(--border-hover); }

.check-q-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}

.check-q-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.check-opt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
}

.check-opt:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.check-opt.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

.check-result {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.5s ease both;
}

.check-score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.check-score-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}

.check-score-value {
  font-size: 1.5rem;
  color: var(--accent);
}

.check-bar {
  height: 8px;
  border-radius: 100px;
  background: var(--accent-dim);
  overflow: hidden;
  margin-bottom: 1rem;
}

.check-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: var(--accent);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.check-verdict {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.6rem;
  max-width: 560px;
}

.check-synalis {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 560px;
}

.check-cta { display: inline-flex; }

/* ── SO ARBEITE ICH (Prozess-Schritte) ────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.2s, transform 0.2s;
}

.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.step-num {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.step-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.steps-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
}

.steps-note a {
  color: var(--accent);
  white-space: nowrap;
}

.steps-note a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .check-q { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .check-panel { padding: 1.25rem; }
}

/* ── FEED SECTION ─────────────────────────────────── */
.feed-section {
  padding: 2.5rem 0 2rem;
}

.feed-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-subtle);
  margin-bottom: 1rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--accent);
  transition: border-color 0.3s;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-list .article-item {
  margin: 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
}

.feed-list .article-item:last-child {
  border-bottom: 1px solid var(--border);
}

.feed-list .article-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

/* ── MENTION LIST ─────────────────────────────────── */
.mention-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mention-item {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.mention-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.mention-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  margin-bottom: 0.1rem;
}

.mention-author {
  color: var(--text-muted);
}

.mention-sep {
  opacity: 0.4;
}

.mention-title {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

.mention-context {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.mention-arrow {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-subtle);
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
}

.mention-item:hover .mention-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(3px);
}

/* ── TIMELINE (Vorträge & Auftritte) ─────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-group {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.timeline-year-col {
  width: 2.5rem;
  flex-shrink: 0;
  padding-top: 0.75rem;
  text-align: right;
}

.timeline-year {
  font-size: 0.62rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-events {
  flex: 1;
  border-left: 1px solid var(--border);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  padding: 0.85rem 0.5rem 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  position: relative;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item:hover {
  background: var(--accent-dim);
}

.timeline-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: -4px;
  top: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.5);
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-org {
  font-size: 0.62rem;
  color: var(--text-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.2rem;
  transition: color 0.2s;
}

.timeline-item:hover .timeline-title {
  color: var(--accent);
}

.timeline-item-meta {
  font-size: 0.62rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

/* ── WEBINAR LIST ─────────────────────────────────── */
.webinar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.webinar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.webinar-item.upcoming {
  border-color: rgba(110,231,183,0.25);
}

.webinar-item.upcoming:hover {
  border-color: var(--accent);
  background: var(--bg-card);
}

.webinar-item.past {
  opacity: 0.5;
}

.webinar-item.past:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
  opacity: 0.7;
}

.webinar-date {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.webinar-item.past .webinar-date {
  color: var(--text-subtle);
}

.webinar-title {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.webinar-format {
  font-size: 0.65rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

.webinar-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--accent);
  border-radius: 100px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.webinar-badge.past {
  background: transparent;
  color: var(--text-subtle);
  border: 1px solid var(--border);
}

/* ── CERTIFICATIONS ───────────────────────────────── */
.cert-groups {
  column-count: 2;
  column-gap: 1.5rem;
}

.cert-group {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.cert-group:last-child { margin-bottom: 0; }

.cert-group-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.cert-kind {
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 1px 7px;
  border-radius: 100px;
  white-space: nowrap;
}

/* GCPS-Partner-Badge: dezent umrandet */
.cert-kind-badge {
  color: var(--text-muted);
  border: 1px solid var(--border-hover);
}

/* externe Zertifizierung: am zurückhaltendsten */
.cert-kind-ext {
  color: var(--text-subtle);
  border: 1px solid var(--border);
}

/* Punkt-Marker signalisiert die Stufe:
   gefüllt = offizielle Zertifizierung, Ring = Badge/extern */
.cert-group--badge .cert-row-dot,
.cert-group--external .cert-row-dot {
  background: transparent;
  border: 1.5px solid var(--accent);
}

.cert-group--external .cert-row-dot {
  border-color: var(--text-subtle);
}

@media (max-width: 620px) {
  .cert-groups { column-count: 1; }
}

.cert-list {
  display: flex;
  flex-direction: column;
}

.cert-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 0.5rem;
  margin: 0 -0.5rem;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.cert-row:last-child { border-bottom: none; }

.cert-row:hover {
  background: var(--accent-dim);
}

.cert-row-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.cert-row-content { flex: 1; min-width: 0; }

.cert-row-name {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.45;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.cert-row-meta {
  font-size: 0.65rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

.cert-level {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 1px 6px;
  opacity: 0.8;
  white-space: nowrap;
}

.cert-row-arrow {
  font-size: 0.8rem;
  color: var(--text-subtle);
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  margin-top: 2px;
}

.cert-row:hover .cert-row-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ── GARDEN TEASER ────────────────────────────────── */
.garden-teaser {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.garden-teaser:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.garden-teaser-label {
  font-size: 0.65rem;
  color: var(--text-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.garden-teaser-text {
  font-family: 'Instrument Serif', serif;
  font-size: 1rem;
  flex: 1;
}

.garden-teaser-text em {
  font-style: italic;
  color: var(--accent);
}

.garden-teaser-arrow {
  color: var(--text-subtle);
  font-size: 0.9rem;
  transition: transform 0.2s, color 0.2s;
}

.garden-teaser:hover .garden-teaser-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 500;
}

.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--accent-dim);
  color: var(--text);
  border-color: var(--border-hover);
}

/* ── ARTICLE ITEMS (Feed) ─────────────────────────── */
.article-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.article-item:last-child { border-bottom: none; }

.article-item:hover {
  background: var(--accent-dim);
}

.article-source-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.article-source-dot.li { background: var(--li-color); }

.article-item-content { flex: 1; min-width: 0; }

.article-item-title {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.article-item-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.article-source-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

.article-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-subtle);
}

.article-mine-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 1px 6px;
  opacity: 0.75;
}

.article-arrow {
  font-size: 0.8rem;
  color: var(--text-subtle);
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  margin-top: 2px;
}

.article-item:hover .article-arrow {
  opacity: 1;
  transform: translateX(3px);
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-subtle);
}

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

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 560px) {
  .container { padding: 0 1rem; }
  .nav-links { display: none; }
  .garden-teaser { flex-wrap: wrap; gap: 0.5rem; }
  .garden-teaser-label { width: 100%; }
}
