/* ── VARIABLES ── */
:root {
  --bg: #f5f0e8;
  --surface: #ffffff;
  --surface-warm: #fdf9f2;
  --yellow: #f5c500;
  --yellow-light: #fef9d9;
  --yellow-dark: #c9a000;
  --text: #1c1c1a;
  --text-soft: #5a5a52;
  --text-muted: #9a9a8e;
  --border: #e8e2d6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.11);
  --font: 'Plus Jakarta Sans', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img, video, iframe { max-width: 100%; display: block; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,240,232,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1rem; font-weight: 700; color: var(--text);
  text-decoration: none; display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo-dot { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; flex-shrink: 0; }
.nav-links { display: flex; gap: 0.25rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-soft); font-size: 0.875rem;
  font-weight: 500; padding: 0.4rem 0.8rem; border-radius: 100px;
  transition: background 0.18s, color 0.18s;
}
.nav-links a:hover { background: var(--surface); color: var(--text); }
.nav-links .nav-pill { background: var(--yellow); color: var(--text); font-weight: 600; }
.nav-links .nav-pill:hover { background: var(--yellow-dark); color: #fff; }

/* HAMBURGER */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform 0.25s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE DRAWER */
.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(245,240,232,0.98); backdrop-filter: blur(16px);
  z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--text); font-size: 1.4rem; font-weight: 700;
  padding: 0.75rem 2.5rem; border-radius: 100px; transition: background 0.18s;
}
.mobile-menu a:hover { background: var(--yellow-light); }
.mobile-menu .mob-pill { background: var(--yellow); margin-top: 0.5rem; }

/* ── LAYOUT ── */
main { max-width: 1100px; margin: 0 auto; padding: 1.5rem clamp(0.875rem, 3vw, 1.5rem) 3rem; }

/* ── BENTO GRID (Startseite) ── */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.875rem; }

/* TILE BASE */
.tile {
  background: var(--surface); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.tile-warm { background: var(--surface-warm); }

/* HERO */
.tile-hero {
  grid-column: 1 / 9; display: flex; gap: 1.75rem; align-items: center;
  background: var(--surface-warm); min-height: 280px; padding: 2rem;
}
.hero-photo {
  width: 200px; min-width: 200px; height: 256px;
  border-radius: var(--radius-sm); background: #ddd8ce; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: #b0a898; flex-shrink: 0;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-tags {
  font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.6rem;
}
.hero-tags span::after { content: ' · '; color: var(--yellow-dark); }
.hero-tags span:last-child::after { display: none; }
.hero-title { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; line-height: 1.2; margin-bottom: 0.875rem; }
.hero-desc { font-size: 0.9rem; color: var(--text-soft); max-width: 380px; margin-bottom: 1.5rem; line-height: 1.7; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 1.25rem; border-radius: 100px; font-family: var(--font);
  font-weight: 600; font-size: 0.875rem; cursor: pointer; border: none;
  text-decoration: none; transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
}
.btn-yellow { background: var(--yellow); color: var(--text); }
.btn-yellow:hover { background: var(--yellow-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-soft); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--text); transform: translateY(-1px); }

/* STATS */
.tile-aside-col { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 0.875rem; }
.tile-fact {
  background: var(--surface); border-radius: var(--radius);
  padding: 1.5rem 1.75rem; box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04); flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.tile-fact:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.tile-fact:first-child { background: var(--yellow-light); border: 1px solid #f0e090; }
.fact-num { font-size: 2.75rem; font-weight: 800; line-height: 1; margin-bottom: 0.3rem; }
.fact-num span { color: var(--yellow-dark); }
.fact-label { font-size: 0.82rem; color: var(--text-soft); line-height: 1.4; }

/* BOOK TILE */
.tile-book {
  grid-column: 8 / 13; background: var(--yellow);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 200px; gap: 1rem; padding: 1.75rem;
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.tile-book:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.book-badge {
  display: inline-flex; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(0,0,0,0.1); padding: 0.25rem 0.65rem;
  border-radius: 100px; margin-bottom: 0.5rem; width: fit-content;
}
.tile-book h2 { font-size: 1.2rem; font-weight: 800; line-height: 1.25; margin-bottom: 0.4rem; }
.tile-book p { font-size: 0.84rem; opacity: 0.75; line-height: 1.5; margin-bottom: 1rem; }
.btn-book {
  background: var(--text); color: #fff; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 1.25rem; border-radius: 100px; font-family: var(--font);
  font-weight: 600; font-size: 0.875rem; text-decoration: none;
  transition: background 0.18s, transform 0.15s; width: fit-content;
}
.btn-book:hover { background: #333; transform: translateY(-1px); }

/* PROCESS */
.process-steps { display: flex; flex-direction: column; }
.process-step {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; padding-bottom: 0; }
.process-step:first-child { padding-top: 0; }
.step-icon {
  width: 36px; height: 36px; background: var(--yellow-light);
  border: 1.5px solid #f0e090; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem;
}
.step-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
.step-desc { font-size: 0.84rem; color: var(--text-soft); line-height: 1.55; }

/* CONTACT */
.tile-contact {
  grid-column: 1 / 13; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.contact-icon { font-size: 2rem; margin-bottom: 0.4rem; }
.tile-contact h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }
.tile-contact p { font-size: 0.85rem; color: var(--text-soft); }
.contact-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

/* BLOG GRID */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; gap: 1rem; }
.section-header h2 { font-size: 1rem; font-weight: 700; }
.section-header a { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.section-header a:hover { color: var(--text); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.875rem; }
.blog-card {
  background: var(--surface-warm); border-radius: var(--radius-sm);
  padding: 1.1rem; text-decoration: none; color: inherit; display: block;
  border: 1px solid var(--border);
  transition: box-shadow 0.22s ease, transform 0.22s ease, background 0.18s;
}
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); background: var(--surface); }
.blog-pill {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--yellow-dark); background: var(--yellow-light); border: 1px solid #f0e090;
  padding: 0.18rem 0.5rem; border-radius: 100px; display: inline-block; margin-bottom: 0.6rem;
}
.blog-card h3 { font-size: 0.875rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.4rem; }
.blog-card p { font-size: 0.8rem; color: var(--text-soft); line-height: 1.5; margin-bottom: 0.75rem; }
.blog-meta { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }

/* UTIL */
.tile-h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.tile-p { font-size: 0.9rem; color: var(--text-soft); line-height: 1.75; margin-bottom: 0.875rem; }
.tile-p:last-child { margin-bottom: 0; }

/* ── WEBMCP PAGE ── */
.static-webmcp main,
.static-webmcp .grid,
.static-webmcp .tile,
.static-webmcp .toc-list,
.static-webmcp .webmcp-tool-list,
.static-webmcp .webmcp-tool {
  min-width: 0;
}

.static-webmcp .tile {
  overflow: hidden;
}

.static-webmcp .toc-list li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.static-webmcp .toc-list a {
  min-height: 44px;
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.static-webmcp :not(pre) > code {
  display: inline;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--text);
  background: var(--yellow-light);
  border: 1px solid #f0e090;
  border-radius: 7px;
  padding: 0.08rem 0.35rem;
  font-size: 0.78rem;
  line-height: 1.55;
}

.webmcp-status-list,
.webmcp-action-list {
  gap: 0.45rem;
}

.webmcp-status-list li,
.webmcp-action-list li {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  font-size: 0.84rem;
  line-height: 1.5;
}

.webmcp-tool-list {
  list-style: none;
  display: grid;
  gap: 0.875rem;
}

.webmcp-tool {
  display: grid;
  gap: 0.45rem;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.webmcp-tool-name {
  display: block;
  line-height: 1.35;
}

.webmcp-tool-purpose,
.webmcp-tool-source,
.webmcp-tool-readonly,
.webmcp-tool-example-label {
  display: block;
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.webmcp-tool-example-label {
  color: var(--text);
  font-weight: 700;
  margin-top: 0.2rem;
}

.static-webmcp pre.webmcp-code {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 0.85rem 1rem;
  margin: 0.15rem 0 0.55rem;
}

.static-webmcp pre.webmcp-code code {
  display: block;
  min-width: max-content;
  white-space: pre;
  color: #d4d0c0;
}

.webmcp-resource-list {
  gap: 0.35rem;
}

@media (max-width: 600px) {
  .static-webmcp main {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .static-webmcp .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
  }

  .static-webmcp .tile {
    padding: 1rem;
    border-radius: 14px;
  }

  .static-webmcp .tile:hover {
    transform: none;
  }

  .static-webmcp .tile-hero {
    min-height: auto;
  }

  .static-webmcp .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.45rem;
    line-height: 1.45;
  }

  .static-webmcp .hero-title {
    font-size: 1.35rem;
  }

  .webmcp-status-list li,
  .webmcp-action-list li,
  .webmcp-tool-purpose,
  .webmcp-tool-source,
  .webmcp-tool-readonly,
  .webmcp-tool-example-label {
    font-size: 0.8rem;
  }

  .webmcp-tool-list {
    gap: 0.65rem;
  }

  .webmcp-tool {
    padding: 0.875rem;
  }

  .static-webmcp pre.webmcp-code {
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.45rem;
  }
}

/* ── ARTIKEL-SEITE ── */
.article-header {
  background: var(--surface-warm); border-radius: var(--radius);
  padding: clamp(1.25rem, 5vw, 2.5rem); margin-bottom: 0.875rem;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04);
}
.article-meta-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.article-pill {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--yellow-dark);
  background: var(--yellow-light); border: 1px solid #f0e090;
  padding: 0.2rem 0.6rem; border-radius: 100px;
}
.article-read-time, .article-date { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.article-date::before { content: '·'; margin-right: 0.5rem; }
.article-title { font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 0.875rem; word-break: break-word; }
.article-subtitle { font-size: clamp(0.88rem, 2vw, 1rem); color: var(--text-soft); line-height: 1.65; margin-bottom: 1.5rem; }
.article-author { display: flex; align-items: center; gap: 0.75rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.author-avatar { width: 38px; height: 38px; border-radius: 50%; background: #ddd8ce; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.author-name { font-size: 0.875rem; font-weight: 700; }
.author-role { font-size: 0.75rem; color: var(--text-muted); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 0.875rem; align-items: start; }

.article-body {
  background: var(--surface); border-radius: var(--radius);
  padding: clamp(1.25rem, 5vw, 2.5rem);
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04);
  min-width: 0;
}

/* PROSE */
.prose h2 { font-size: clamp(1.1rem, 3vw, 1.3rem); font-weight: 800; margin: 1.75rem 0 0.75rem; line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1rem; font-weight: 700; margin: 1.25rem 0 0.5rem; }
.prose p { font-size: clamp(0.875rem, 2vw, 0.95rem); color: var(--text-soft); line-height: 1.8; margin-bottom: 0.875rem; }
.prose p:last-child { margin-bottom: 0; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 1.75rem 0; }

.prose .callout {
  background: var(--yellow-light); border-left: 3px solid var(--yellow-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.875rem 1.1rem; margin: 1.25rem 0;
  font-size: clamp(0.85rem, 2vw, 0.9rem); color: var(--text); line-height: 1.65;
}

.prose figure { margin: 1.5rem 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.prose figure .fig-placeholder {
  background: linear-gradient(135deg, #ede7d5 0%, #e0d9c8 100%);
  height: clamp(140px, 25vw, 240px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; color: var(--text-muted);
}
.prose figure .fig-icon { font-size: 2rem; }
.prose figure .fig-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; text-align: center; padding: 0 1rem; }
.prose figcaption { background: var(--surface-warm); padding: 0.65rem 1rem; font-size: 0.78rem; color: var(--text-muted); border-top: 1px solid var(--border); line-height: 1.5; }

.prose .table-wrap { margin: 1.5rem 0; border-radius: var(--radius-sm); overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); }
.prose table { border-collapse: collapse; font-size: 0.85rem; min-width: 480px; width: 100%; }
.prose thead { background: var(--surface-warm); }
.prose th { padding: 0.65rem 0.875rem; text-align: left; font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.prose td { padding: 0.65rem 0.875rem; border-bottom: 1px solid var(--border); color: var(--text-soft); vertical-align: top; line-height: 1.45; }
.prose tr:last-child td { border-bottom: none; }
.prose tr:nth-child(even) td { background: var(--surface-warm); }
.td-label { font-weight: 600; color: var(--text) !important; }
.td-good { color: #2d7a3a !important; font-weight: 600; }
.td-bad  { color: #b84040 !important; font-weight: 600; }

.prose .code-block { margin: 1.5rem 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.code-header { background: #2a2a26; padding: 0.6rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.code-lang { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #888880; }
.code-dots { display: flex; gap: 5px; }
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }
pre { background: #1e1e1a; padding: 1.1rem 1.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0; }
code { font-family: 'Menlo', 'Monaco', 'Courier New', monospace; font-size: clamp(0.72rem, 1.5vw, 0.82rem); line-height: 1.7; color: #d4d0c0; white-space: pre; display: block; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 0.875rem; min-width: 0; }
.sidebar-tile { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04); }
.sidebar-tile.warm { background: var(--surface-warm); }
.sidebar-tile.yellow { background: var(--yellow); }
.sidebar-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.875rem; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.15rem; }
.toc-list a { text-decoration: none; font-size: 0.82rem; color: var(--text-soft); font-weight: 500; padding: 0.3rem 0.55rem; border-radius: 8px; display: block; transition: background 0.15s, color 0.15s; border-left: 2px solid transparent; }
.toc-list a:hover, .toc-list a.active { background: var(--bg); color: var(--text); border-left-color: var(--yellow-dark); font-weight: 600; }
.share-btns { display: flex; flex-direction: column; gap: 0.4rem; }
.share-btn { display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600; text-decoration: none; color: var(--text); background: var(--bg); border: none; transition: background 0.18s; cursor: pointer; font-family: var(--font); width: 100%; text-align: left; }
.share-btn:hover { background: var(--border); }
.sidebar-tile.yellow .book-cta-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(0,0,0,0.1); padding: 0.2rem 0.55rem; border-radius: 100px; display: inline-block; margin-bottom: 0.65rem; }
.sidebar-tile.yellow h3 { font-size: 1rem; font-weight: 800; line-height: 1.3; margin-bottom: 0.3rem; }
.sidebar-tile.yellow p { font-size: 0.78rem; opacity: 0.8; line-height: 1.5; margin-bottom: 0.875rem; }
.btn-book-sm { background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.5rem 1rem; border-radius: 100px; font-family: var(--font); font-weight: 600; font-size: 0.82rem; text-decoration: none; transition: background 0.18s; width: 100%; }
.btn-book-sm:hover { background: #333; }

/* RELATED */
.related-section { margin-top: 0.875rem; }
.related-tile { background: var(--surface); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 1.75rem); box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04); margin-bottom: 0.875rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.more-articles { background: var(--surface); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 1.75rem); box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04); }
.more-articles h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1.1rem; }
.article-linklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.article-linklist li { border-bottom: 1px solid var(--border); }
.article-linklist li:nth-child(odd)  { border-right: 1px solid var(--border); padding-right: 1.25rem; }
.article-linklist li:nth-child(even) { padding-left: 1.25rem; }
.article-linklist li:nth-last-child(-n+2) { border-bottom: none; }
.article-linklist a { display: flex; align-items: flex-start; gap: 0.6rem; text-decoration: none; color: var(--text); padding: 0.75rem 0; font-size: 0.85rem; font-weight: 600; line-height: 1.35; transition: color 0.18s; }
.article-linklist a:hover { color: var(--yellow-dark); }
.link-arrow { flex-shrink: 0; margin-top: 2px; font-size: 0.68rem; color: var(--yellow-dark); font-weight: 700; transition: transform 0.15s; }
.article-linklist a:hover .link-arrow { transform: translateX(3px); }
.link-category { display: block; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0.15rem; }

/* FOOTER */
footer {
  max-width: 1100px; margin: 0 auto;
  padding: 1.25rem clamp(0.875rem, 3vw, 1.5rem) 2rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: var(--text-muted);
  flex-wrap: wrap; gap: 0.5rem; border-top: 1px solid var(--border);
}
footer a { color: var(--text-muted); text-decoration: none; transition: color 0.18s; }
footer a:hover { color: var(--text); }

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

/* ── TABLET ≤ 860px ── */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .tile-hero { grid-column: 1 / -1; }
  .tile-aside-col { grid-column: 1 / -1; flex-direction: row; }
  .tile-book { grid-column: 1 / -1; }
  .gc-1-8, .gc-1-7, .gc-7-13, .gc-1-13,
  [style*="grid-column: 1 / 8"], [style*="grid-column: 1 / 7"],
  [style*="grid-column: 7 / 13"], [style*="grid-column: 1 / 13"] { grid-column: 1 / -1 !important; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .tile-contact { flex-direction: column; align-items: flex-start; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar-tile { flex: 1; min-width: 200px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .article-linklist { grid-template-columns: 1fr; }
  .article-linklist li:nth-child(odd)  { border-right: none; padding-right: 0; }
  .article-linklist li:nth-child(even) { padding-left: 0; }
  .article-linklist li { border-bottom: 1px solid var(--border); }
  .article-linklist li:last-child { border-bottom: none; }
  .article-linklist li:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* ── MOBILE ≤ 600px ── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .grid { grid-template-columns: 1fr; }
  .tile-hero { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1.5rem; }
  .hero-photo { width: 100%; min-width: unset; height: 220px; }
  .tile-aside-col { flex-direction: row; }
  .tile-fact { padding: 1.25rem; }
  .fact-num { font-size: 2.2rem; }
  .tile { padding: 1.25rem; }
  .tile-book { padding: 1.25rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .tile-contact { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
  .contact-actions { width: 100%; flex-direction: column; }
  .contact-actions .btn { width: 100%; justify-content: center; }
  .sidebar { flex-direction: column; }
  .sidebar-tile { min-width: unset; width: 100%; }
  .related-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
}

/* ── GRID COLUMNS (ersetzt inline style="grid-column") ── */
.col-1-8  { grid-column: 1 / 8; }
.col-8-13 { grid-column: 8 / 13; }
.col-1-7  { grid-column: 1 / 7; }
.col-7-13 { grid-column: 7 / 13; }
.col-1-13 { grid-column: 1 / 13; }

/* BOOK SUBTITLE */
.book-subtitle {
  font-size: .82rem; font-weight: 600; margin-bottom: .3rem;
}

/* TILE H2 VARIANT mit mehr Abstand */
.tile-h2--spaced { margin-bottom: 1.5rem; }

/* ASO TILE */
.aso-inner {
  display: flex; flex-direction: column;
  height: 100%; justify-content: space-between;
}
.aso-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-muted); margin-bottom: .75rem;
}
.aso-number {
  font-size: 3.5rem; font-weight: 800; line-height: 1; margin-bottom: .4rem;
}
.aso-number span { color: var(--yellow-dark); }
.aso-conversion {
  font-size: 1rem; font-weight: 700; margin-bottom: .5rem;
}
.aso-desc {
  font-size: .875rem; color: var(--text-soft); line-height: 1.6;
}
.aso-cta { margin-top: 1.5rem; }

/* ── TABLET: col-* Klassen überschreiben ── */
@media (max-width: 860px) {
  .col-1-8, .col-8-13, .col-1-7, .col-7-13, .col-1-13 {
    grid-column: 1 / -1;
  }
}


/* ══════════════════════════════════════════
   PANDA-DIÄT ARTIKEL — Neue Komponenten
   Ans Ende von main.css anhängen
   ══════════════════════════════════════════ */

/* ── STATS ROW ── */
.panda-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin: 1.5rem 0;
}
.panda-stat {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
}
.panda-stat--yellow {
  background: var(--yellow-light);
  border-color: #f0e090;
}
.panda-stat-num {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.panda-stat--yellow .panda-stat-num {
  color: var(--yellow-dark);
}
.panda-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-weight: 500;
}

/* ── BEFORE / AFTER COMPARISON ── */
.panda-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin: 1.5rem 0;
}
.panda-comparison-col {
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.panda-comparison-col--bad {
  background: #fff8f8;
  border-color: #f0d0d0;
}
.panda-comparison-col--good {
  background: #f4fbf4;
  border-color: #c0e0c0;
}
.panda-comparison-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.875rem;
  color: var(--text-soft);
}
.panda-comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.panda-comparison-col--bad .panda-comparison-list li::before {
  content: '✗ ';
  color: #b84040;
  font-weight: 700;
}
.panda-comparison-col--good .panda-comparison-list li::before {
  content: '✓ ';
  color: #2d7a3a;
  font-weight: 700;
}
.panda-comparison-list li {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.45;
}

/* ── DECISION BLOCK ── */
.decision-block {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1.5rem 0;
}
.decision-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.decision-step:last-child { border-bottom: none; }
.decision-step:nth-child(even) { background: var(--surface-warm); }
.decision-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--text);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.decision-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.decision-desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .panda-stats-row { grid-template-columns: 1fr 1fr 1fr; }
  .panda-comparison { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .panda-stats-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   MOBILE TOC – ans Ende von main.css anhängen
   (nach dem Panda-Diät Block)
   ══════════════════════════════════════════ */

/* Basis: mobile-toc standardmäßig versteckt */
.mobile-toc {
  display: none;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 0.875rem;
}
.mobile-toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

/* Desktop (≥ 861px): Sidebar-TOC sichtbar, mobile-toc weg */
@media (min-width: 861px) {
  .mobile-toc { display: none; }
  .sidebar-toc-tile { display: block; }
}

/* Tablet + Mobil (≤ 860px): mobile-toc einblenden, Sidebar-TOC weg */
@media (max-width: 860px) {
  .mobile-toc { display: block; }
  .sidebar-toc-tile { display: none !important; }
}



/* ══════════════════════════════════════════
   BLOG INDEX — Featured Card
   Ans Ende von main.css anhängen
   ══════════════════════════════════════════ */

.blog-card-featured {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.18s;
}
.blog-card-featured:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  background: var(--surface-warm);
}

.blog-card-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}

.blog-card-featured-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.blog-card-featured-desc {
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.blog-card-featured-cta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--yellow-dark);
  display: inline-block;
  transition: transform 0.15s;
}
.blog-card-featured:hover .blog-card-featured-cta {
  transform: translateX(3px);
}

/* Placeholder cards etwas gedämpfter */
.blog-card--placeholder {
  opacity: 0.65;
  pointer-events: none;
}

/* Mobile ≤ 600px */
@media (max-width: 600px) {
  .blog-card-featured {
    padding: 1.25rem;
  }
}


/* artikel-ownership-vakuum – Tabellen-Status */
.td-good {
  color: #2d7a4f;
  font-weight: 600;
}

.td-bad {
  color: #c0392b;
  font-weight: 600;
}


/* ── Hebel-Signal-Block (technische-seo-entropie) ── */
.hebel-signal {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 1.25rem 0 1.5rem;
}

.hebel-signal-item {
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.125rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.hebel-signal-label {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.hebel-signal-item--erkennst {
  background: #f0faf2;
  border: 1px solid #b8dfc0;
  color: var(--text);
}

.hebel-signal-item--erkennst .hebel-signal-label {
  color: #2d7a3a;
}

.hebel-signal-item--fehler {
  background: #fdf3f2;
  border: 1px solid #f0c0ba;
  color: var(--text);
}

.hebel-signal-item--fehler .hebel-signal-label {
  color: #b84040;
}

@media (max-width: 860px) {
  .hebel-signal { margin: 1rem 0 1.25rem; }
}


/* ══════════════════════════════════════════
   GROUNDING PAGE — Neue Komponenten
   Ans Ende von main.css anhängen
   ══════════════════════════════════════════ */

/* ── GROUNDING NOTE ── */
.grounding-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  max-width: 680px;
}

/* ── ENTITY STATUS BAR ── */
.entity-status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.entity-status-bar strong {
  color: var(--text);
}

/* ── AUTHOR AVATAR LARGE (Profil-Seite) ── */
.author-avatar--lg {
  width: 64px !important;
  height: 64px !important;
  border-radius: var(--radius-sm) !important;
}
.author-avatar--lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ── AUTHOR ACTIONS (Buttons im article-author) ── */
.author-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}
.author-actions .btn {
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
}

/* ── GROUNDING SECTION HEADINGS ── */
.grounding-h2 {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 800;
  color: var(--text);
  margin: 1.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}

/* ── GROUNDING DIVIDER ── */
.grounding-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}

/* ── FACT DL ── */
.fact-dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  margin-bottom: 0.5rem;
}
.fact-dl dt,
.fact-dl dd {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.5;
}
.fact-dl dt:last-of-type,
.fact-dl dd:last-of-type { border-bottom: none; }
.fact-dl dt {
  font-weight: 700;
  color: var(--text);
  padding-right: 1rem;
}
.fact-dl dd {
  color: var(--text-soft);
  margin: 0;
}
.fact-dl dd a {
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
}
.fact-dl dd a:hover {
  color: var(--text);
  border-bottom-color: var(--yellow-dark);
}

/* ── CAREER TIMELINE ── */
.career-timeline { display: flex; flex-direction: column; gap: 0; }
.career-item {
  display: flex;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.career-item:first-child { padding-top: 0; }
.career-item:last-child  { border-bottom: none; padding-bottom: 0; }
.career-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  flex-shrink: 0;
  width: 16px;
}
.career-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--yellow-dark);
  flex-shrink: 0;
}
.career-dot--past { background: var(--border); border-color: var(--text-muted); }
.career-line { width: 1px; flex: 1; background: var(--border); margin-top: 4px; }
.career-period { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.2rem; }
.career-title  { font-size: 0.9rem;  font-weight: 700; color: var(--text); margin-bottom: 0.15rem; }
.career-org    { font-size: 0.82rem; color: var(--text-soft); }

/* ── CONCEPT GRID & CARDS ── */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.concept-card {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}
.concept-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow-dark);
  background: var(--yellow-light);
  border: 1px solid #f0e090;
  padding: 0.18rem 0.5rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 0.65rem;
}
.concept-card h3 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: var(--text);
}
.concept-card p {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.65;
}
.concept-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.75rem;
}
.concept-date a {
  color: var(--yellow-dark);
  text-decoration: none;
}
.concept-date a:hover { text-decoration: underline; }

/* ── DISAMBIGUATION ── */
.disambig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.disambig-item {
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  font-size: 0.82rem;
  line-height: 1.6;
  border: 1px solid var(--border);
}
.disambig-item--ist   { background: #f4fbf4; border-color: #c0e0c0; }
.disambig-item--nicht { background: #fdf3f2; border-color: #f0c0ba; }
.disambig-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.disambig-item--ist   .disambig-label { color: #2d7a3a; }
.disambig-item--nicht .disambig-label { color: #b84040; }
.disambig-list { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.disambig-item--ist   .disambig-list li::before { content: '✓ '; color: #2d7a3a; font-weight: 700; }
.disambig-item--nicht .disambig-list li::before { content: '✗ '; color: #b84040; font-weight: 700; }
.disambig-list a { color: inherit; }

/* ── TRUST GRID ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.trust-item {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.trust-item-title {
  font-weight: 700;
  color: var(--text);
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}
.trust-item a {
  color: var(--yellow-dark);
  text-decoration: none;
}
.trust-item a:hover { text-decoration: underline; }

/* ── PROFILE QUICKFACTS (Sidebar) ── */
.profile-quickfacts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.profile-quickfact {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.profile-quickfact-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .fact-dl         { grid-template-columns: 140px 1fr; }
  .concept-grid    { grid-template-columns: 1fr 1fr; }
  .disambig-grid   { grid-template-columns: 1fr; }
  .trust-grid      { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .fact-dl              { grid-template-columns: 1fr; }
  .fact-dl dt           { padding-bottom: 0; border-bottom: none; font-size: 0.78rem; color: var(--text-muted); }
  .fact-dl dd           { padding-top: 0.25rem; }
  .concept-grid         { grid-template-columns: 1fr; }
  .trust-grid           { grid-template-columns: 1fr; }
  .author-actions       { flex-direction: column; }
  .author-actions .btn  { width: 100%; justify-content: center; }
}


/* ══════════════════════════════════════════
   ARTICLE LANGUAGE SWITCHER
   Autor links · Sprachwechsel rechts
   ══════════════════════════════════════════ */

.article-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.article-author-row .article-author {
  padding-top: 0;
  border-top: none;
  margin: 0;
}

.article-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.article-language-switch:hover {
  background: var(--yellow-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.article-language-flag {
  font-size: 1rem;
  line-height: 1;
}

.article-language-label {
  white-space: nowrap;
}

/* Mobile: unter Autor, linksbündig */
@media (max-width: 600px) {
  .article-author-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-language-switch {
    width: fit-content;
  }
}

/* ══════════════════════════════════════════
   DYNAMIC GROUNDING MAP
   Fakten-Seite · Concept Graph Cards
   Ans Ende von main.css anhängen
   ══════════════════════════════════════════ */

.mdb-grounding-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.mdb-grounding-updated {
  grid-column: 1 / -1;
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Concept Card */
.mdb-grounding-card {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: none;
  transition: box-shadow 0.22s ease, transform 0.22s ease, background 0.18s;
}

.mdb-grounding-card:hover {
  background: var(--surface);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Header */
.mdb-grounding-head {
  display: block;
}

.mdb-grounding-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow-dark);
  background: var(--yellow-light);
  border: 1px solid #f0e090;
  padding: 0.18rem 0.5rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 0.65rem;
}

.mdb-grounding-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.mdb-grounding-desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
}

/* Count Badge */
.mdb-grounding-count {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.875rem;
  border-radius: 100px;
  padding: 0.25rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Primary Links */
.mdb-grounding-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.75rem;
}

.mdb-grounding-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  padding: 0.45rem 0.8rem;
  background: var(--yellow);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.mdb-grounding-links a:hover {
  background: var(--yellow-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Related Concepts */
.mdb-grounding-related {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.mdb-grounding-related strong {
  color: var(--text-soft);
  font-weight: 700;
}

/* Details / Accordion */
.mdb-grounding-details {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
}

.mdb-grounding-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.65rem 0.8rem;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.mdb-grounding-details summary::-webkit-details-marker {
  display: none;
}

.mdb-grounding-details summary::after {
  content: "↓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--yellow-light);
  color: var(--yellow-dark);
  font-size: 0.75rem;
  font-weight: 800;
  transition: transform 0.18s ease;
}

.mdb-grounding-details[open] summary {
  background: var(--yellow-light);
  border-color: #f0e090;
}

.mdb-grounding-details[open] summary::after {
  transform: rotate(180deg);
}

/* Signal List */
.mdb-grounding-signal-list {
  display: grid;
  gap: 0.625rem;
  list-style: none;
  margin: 0.875rem 0 0;
  padding: 0;
}

.mdb-grounding-signal-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.mdb-grounding-signal-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.mdb-grounding-signal-item a {
  display: block;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.mdb-grounding-signal-item a:hover {
  color: var(--yellow-dark);
}

.mdb-grounding-signal-meta {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.45;
  font-weight: 500;
}

.mdb-grounding-signal-excerpt {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* Signal Strength */
.mdb-grounding-signal-item.is-strong {
  border-left: 3px solid var(--yellow-dark);
}

.mdb-grounding-signal-item.is-medium {
  border-left: 3px solid var(--border);
}

/* Empty / More */
.mdb-grounding-more,
.mdb-grounding-empty {
  margin: 0.875rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* Mobile */
@media (max-width: 860px) {
  .mdb-grounding-map {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .mdb-grounding-map {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .mdb-grounding-card {
    padding: 1.1rem;
  }

  .mdb-grounding-title {
    font-size: 0.95rem;
  }

  .mdb-grounding-links {
    flex-direction: column;
  }

  .mdb-grounding-links a {
    width: 100%;
    justify-content: center;
  }
}


/* ══════════════════════════════════════════
   GROUNDING HUB — /grounding/
   Konzeptseite für SEO, GEO und AI Search
   ══════════════════════════════════════════ */

.grounding-hero {
  position: relative;
  overflow: hidden;
}

.grounding-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,0,0.22), rgba(245,197,0,0));
  pointer-events: none;
}

.grounding-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: 0.75rem;
}

.grounding-definition-card {
  background: var(--yellow-light);
  border: 1px solid #f0e090;
  border-left: 4px solid var(--yellow-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.grounding-definition-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yellow-dark);
  margin-bottom: 0.5rem;
}

.grounding-definition-card p {
  font-size: clamp(1rem, 2vw, 1.08rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.grounding-layer-stack {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.grounding-layer {
  display: grid;
  grid-template-columns: 86px minmax(120px, 180px) 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.125rem;
}

.grounding-layer span {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yellow-dark);
}

.grounding-layer strong {
  font-size: 0.9rem;
  color: var(--text);
}

.grounding-layer p {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
}

.grounding-relationship-map {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
  padding: 1.25rem;
  margin: 1.5rem 0;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.grounding-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
}

.grounding-node-main {
  background: var(--yellow);
  color: var(--text);
  border-color: var(--yellow-dark);
}

.grounding-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.grounding-signal-card {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}

.grounding-signal-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow-dark);
  margin-bottom: 0.6rem;
}

.grounding-signal-card h3 {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.grounding-signal-card p {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.grounding-metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.grounding-metric-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  transition: box-shadow 0.22s ease, transform 0.22s ease, background 0.18s;
}

.grounding-metric-card:hover {
  background: var(--surface-warm);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.grounding-metric-card span {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--yellow-dark);
  background: var(--yellow-light);
  border: 1px solid #f0e090;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  margin-bottom: 0.65rem;
}

.grounding-metric-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.grounding-metric-card p {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.grounding-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.grounding-hub-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  transition: box-shadow 0.22s ease, transform 0.22s ease, background 0.18s;
}

.grounding-hub-card:hover {
  background: var(--surface);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.grounding-hub-card span {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow-dark);
}

.grounding-hub-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0.45rem 0;
  color: var(--text);
}

.grounding-hub-card p {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 860px) {
  .grounding-signal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .grounding-layer {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .grounding-signal-grid,
  .grounding-metric-row,
  .grounding-hub-grid {
    grid-template-columns: 1fr;
  }
}



/* ══════════════════════════════════════════
   GROUNDING MAP — /grounding/grounding-map/
   Methodenseite zur Beziehungsebene
   ══════════════════════════════════════════ */

.article-header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.article-author .author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Sidebar copy without inline styles */
.sidebar-copy {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
}

/* Final definition paragraph */
.grounding-final-definition {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
}

/* Central map diagram */
.grounding-map-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.grounding-map-center {
  grid-column: 1 / -1;
  background: var(--yellow);
  border: 1px solid var(--yellow-dark);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

.grounding-map-branch {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.grounding-map-branch span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow-dark);
  margin-bottom: 0.4rem;
}

.grounding-map-branch strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}

/* Principle comparison */
.grounding-map-principle {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
  margin: 1.5rem 0;
}

.grounding-map-principle-item {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}

.grounding-map-principle-item span {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow-dark);
  background: var(--yellow-light);
  border: 1px solid #f0e090;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  margin-bottom: 0.65rem;
}

.grounding-map-principle-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.grounding-map-principle-item p {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.grounding-map-principle-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow-dark);
  font-size: 1.5rem;
  font-weight: 800;
}

/* Relationship cards */
.grounding-relation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.grounding-relation-card {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}

.grounding-relation-card h3 {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.grounding-relation-card p {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

/* Diagnostic list */
.grounding-diagnostic-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.grounding-diagnostic-item {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--yellow-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.15rem;
}

.grounding-diagnostic-item span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow-dark);
  margin-bottom: 0.35rem;
}

.grounding-diagnostic-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.grounding-diagnostic-item p {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

/* Automation flow */
.grounding-automation-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.grounding-automation-step {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.grounding-automation-step span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  border-radius: 50%;
  color: var(--text);
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.grounding-automation-step strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.grounding-automation-step p {
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
}

/* Remove underline dependence for prose links only if theme has no style */
.prose a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--yellow-dark);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--yellow-dark);
}

/* Responsive */
@media (max-width: 860px) {
  .grounding-automation-flow {
    grid-template-columns: 1fr 1fr;
  }

  .grounding-relation-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .article-header-actions {
    width: 100%;
  }

  .article-header-actions .article-language-switch {
    width: fit-content;
  }

  .grounding-map-diagram,
  .grounding-relation-grid,
  .grounding-automation-flow {
    grid-template-columns: 1fr;
  }

  .grounding-map-principle {
    grid-template-columns: 1fr;
  }

  .grounding-map-principle-arrow {
    transform: rotate(90deg);
    padding: 0.25rem 0;
  }
}

/* Static accessibility helpers. */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
}
