/* =============================================
   KI-Didaktik Portal - Academic Design System
   Seriös, Klar, Autorität (Harvard-Style)
   ============================================= */
:root {
    /* Primary Colors - Deep Academic Navy */
    --primary: #0f172a;
    /* Dark Navy */
    --primary-dark: #020617;
    /* Almost Black */
    --primary-light: #334155;
    /* Slate */

    /* Secondary/Accent */
    --secondary: #b45309;
    /* Muted Gold/Amber - Classic Academic Accent */
    --accent-red: #991b1b;
    /* Dark Red for alerts/emphasis */

    /* Neutral Colors */
    --ink: #1e293b;
    /* Slate 800 - Good for text */
    --muted: #475569;
    /* Slate 600 - Secondary text */
    --light: #94a3b8;
    /* Slate 400 */
    --border: #e2e8f0;
    /* Slate 200 */
    --background: #f8fafc;
    /* Slate 50 - Very subtle off-white */
    --paper: #ffffff;

    /* Decision Mode Colors - Desaturated/Serious */
    --prohibit: #9f1239;
    /* Rose 800 */
    --prohibit-bg: #fff1f2;
    /* Rose 50 */
    --accompany: #92400e;
    /* Amber 800 */
    --accompany-bg: #fffbeb;
    /* Amber 50 */
    --limit: #155e75;
    /* Cyan 800 */
    --limit-bg: #ecfeff;
    /* Cyan 50 */
    --allow: #166534;
    /* Emerald 800 */
    --allow-bg: #f0fdf4;
    /* Emerald 50 */

    /* Spacing - Unchanged */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;
    /* More generous vertical spacing for gravitas */

    /* Gradients (from Model Page) */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #334155 100%);

    /* Border Radius - SHARP */
    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;
    --radius-full: 9999px;
    /* Keep for pills/icons only */

    /* Shadows - Minimalist/Flat */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    /* Very subtle */
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05);

    /* Typography: 3 families sitewide */
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-ui: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
    --font-h1: 'Source Serif 4', 'Times New Roman', serif;
    --font-display: var(--font-ui);

    /* Type Scale */
    --fs-body: 1rem;
    --fs-body-sm: 0.9rem;
    --fs-meta: 0.85rem;
    --fs-label: 0.8rem;
    --fs-xs: 0.75rem;
    --fs-h1: clamp(2.4rem, 4.5vw, 3rem);
    --fs-h2: clamp(1.75rem, 3.2vw, 2.1rem);
    --fs-h3: 1.4rem;
    --fs-h4: 1.05rem;
    --fs-lead: 1.15rem;
    --fs-logo: 1.25rem;
    --fs-nav: 0.85rem;
    --fs-button: 0.9rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--ink);
    background: var(--background);
    line-height: 1.75;
    /* Increased line-height for readability */
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-ui);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 1rem;
}

h1 {
    font-family: var(--font-h1);
    font-size: var(--fs-h1);
    letter-spacing: -0.02em;
    font-weight: 700;
}

h2 {
    font-size: var(--fs-h2);
    letter-spacing: -0.01em;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-bottom: 2rem;
}

h3 {
    font-size: var(--fs-h3);
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--ink);
    border-bottom: none;
}

/* Sub-headings can be sans */
h4 {
    font-size: var(--fs-h4);
    font-family: var(--font-ui);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

p {
    margin-bottom: 1.25rem;
    max-width: 70ch;
    font-size: var(--fs-body);
    /* Optimal reading width */
    color: var(--ink);
}

a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--secondary);
    text-decoration-thickness: 2px;
}

/* ---------- Layout ---------- */
.container {
    max-width: 1000px;
    /* Slightly narrower for academic focus */
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
    border-bottom: 1px solid var(--border);
}

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

.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ---------- Navigation (Academic Header) ---------- */
.nav {
    background: white;
    border-bottom: 1px solid var(--border);
    /* Subtle border instead of heavy brand color */
    padding: 1rem 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3rem;
    /* Fixed height for consistency */
}

/* Logo Area */
.nav-logo {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: var(--fs-logo);
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 20;
    /* Ensure above mobile menu */
}

.nav-logo span {
    color: var(--primary);
}

.nav-logo:hover {
    color: var(--primary-light);
    text-decoration: none;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.dropdown-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all var(--transition-normal);
    z-index: 12;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    font-size: var(--fs-meta);
    border-bottom: none;
}

.dropdown-caret {
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-links a {
    text-decoration: none;
    font-family: var(--font-ui);
    font-weight: 500;
    /* Lighter weight */
    font-size: var(--fs-nav);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    border-bottom-color: var(--secondary);
}

/* UX rationale: Ein klarer Fokuszustand verbessert Tastaturnavigation. */
.nav-links a:focus-visible,
.btn:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Special styling for Kontakt button in nav */
.nav-links .btn-primary {
    padding: 0.5rem 1rem;
    color: white !important;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    text-transform: none;
    /* Keep buttons normal case */
}

.nav-links .btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* Mobile Toggle - Hidden by default on Desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--primary);
    z-index: 20;
}

/* ---------- Hero Section (Academic) ---------- */
.hero-expert {
    background: white;
    color: var(--ink);
    padding: 5rem 0 4rem;
    /* Balanced padding */
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.hero-expert h1 {
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    max-width: 800px;
    font-weight: 800;
}

.hero-expert .lead {
    font-size: var(--fs-lead);
    color: var(--muted);
    max-width: 680px;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    line-height: 1.6;
}

/* Compact and readable intro bands that use var(--gradient-dark). */
.hero-expert[style*="var(--gradient-dark)"] {
    background: var(--gradient-dark) !important;
    padding: 3.25rem 0 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-expert[style*="var(--gradient-dark)"] h1 {
    color: #ffffff !important;
    margin-bottom: 0.85rem;
    max-width: 900px;
}

.hero-expert[style*="var(--gradient-dark)"] .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 920px;
    margin-bottom: 0.9rem;
}

.hero-expert[style*="var(--gradient-dark)"] p {
    max-width: 920px;
}

.hero-expert[style*="var(--gradient-dark)"] .badge-pro {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.section[style*="var(--gradient-dark)"] {
    background: var(--gradient-dark) !important;
    color: #ffffff !important;
    padding-top: 3rem;
    padding-bottom: 2.25rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.section[style*="var(--gradient-dark)"] h1 {
    color: #ffffff !important;
    margin-bottom: 0.85rem;
}

.section[style*="var(--gradient-dark)"] .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 920px !important;
    margin-bottom: 0.75rem;
}

.section[style*="var(--gradient-dark)"] .badge-pro {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-map-preview {
    margin-top: 2rem;
    max-width: 920px;
}

.hero-map-preview img {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.hero-map-preview figcaption {
    margin-top: 0.65rem;
    font-size: var(--fs-meta);
    color: var(--muted);
}

.model-page-hero-visual {
    margin-top: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.model-page-hero-visual img {
    width: 100%;
    display: block;
}

/* Hero Stats - Clean Horizontal Layout */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    max-width: 800px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-family: var(--font-ui);
    font-size: var(--fs-meta);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Breadcrumbs ---------- */
/* UX rationale: Breadcrumbs geben Kontext und reduzieren Orientierungslast. */
.breadcrumbs {
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    padding: 0.75rem var(--space-lg);
    margin: 0 auto;
    max-width: 1000px;
    font-size: var(--fs-meta);
    color: var(--muted);
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--light);
}

.breadcrumb-list li:last-child::after {
    content: '';
}

.breadcrumb-list a {
    text-decoration: none;
    color: var(--muted);
}

.breadcrumb-list a:hover {
    color: var(--primary);
}

/* ---------- UI Components: Cards (Paper Style) ---------- */
.card,
.feature-card,
.blog-card,
.research-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.75rem;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

/* Top accent line for "Instituts-Look" */
.card::before,
.feature-card::before,
.blog-card::before,
.research-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 0;
    /* Hidden by default for cleaner look */
    background: var(--primary);
    transition: height 0.2s ease;
}

.card:hover,
.feature-card:hover,
.blog-card:hover,
.research-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.card:hover::before,
.feature-card:hover::before,
.blog-card:hover::before,
.research-card:hover::before {
    height: 4px;
    /* Show on hover */
}

/* ---------- Homepage Model Center ---------- */
.model-center-section {
    background: linear-gradient(180deg, var(--paper) 0%, var(--background) 100%);
}

.model-center-head {
    max-width: 820px;
    margin: 0 auto 2.25rem;
}

.model-center-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.model-core-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.model-core-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.model-core-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.model-core-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.model-core-letter {
    font-family: var(--font-h1);
    font-size: 2.1rem;
    line-height: 1;
    color: var(--primary);
}

.model-core-tag {
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--background);
    padding: 0.2rem 0.55rem;
}

.model-core-card h3 {
    margin: 0.2rem 0 0;
    color: var(--primary);
}

.model-core-media {
    margin: 0.1rem 0 0.35rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--paper);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-core-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.model-core-card p {
    margin-bottom: 0;
    max-width: none;
    font-size: var(--fs-body-sm);
    color: var(--muted);
}

.model-core-points {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0.75rem;
    display: grid;
    gap: 0.45rem;
}

.model-core-points li {
    position: relative;
    padding-left: 1rem;
    color: var(--ink);
    font-size: var(--fs-meta);
}

.model-core-points li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.model-core-cta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.model-core-cta .btn {
    flex: 1 1 160px;
}

.model-inline-link {
    font-size: var(--fs-meta);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.model-inline-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ---------- Orientation Update ---------- */
.start-here-shell {
    max-width: 920px;
    margin: 0 auto;
}

.start-here-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.start-here-step {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.start-here-step h3 {
    margin: 0.45rem 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.start-here-step p {
    margin: 0;
    max-width: none;
    font-size: var(--fs-body-sm);
    color: var(--muted);
}

.step-index {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.15rem 0.55rem;
}

.mapping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.mapping-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.system-map-figure {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.system-map-figure img {
    width: 100%;
    display: block;
}

.mapping-card h3 {
    margin-bottom: 0.55rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.mapping-track {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.mapping-track div {
    font-size: var(--fs-body-sm);
    color: var(--muted);
}

.mapping-track strong {
    color: var(--ink);
}

.newcomer-box {
    background: var(--paper);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1.2rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.newcomer-box h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.newcomer-box p {
    margin-bottom: 0.7rem;
    max-width: none;
    color: var(--muted);
    font-size: var(--fs-body-sm);
}

.newcomer-box ol {
    margin: 0;
    padding-left: 1.2rem;
}

.newcomer-box li {
    margin-bottom: 0.35rem;
    color: var(--ink);
    font-size: var(--fs-body-sm);
}

/* ---------- Layout: Page + TOC ---------- */
/* UX rationale: Inhaltsverzeichnis hilft bei langen Seiten (Scanbarkeit). */
.page-layout {
    display: block;
}


.page-toc {
    position: sticky;
    top: 1.5rem;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-size: var(--fs-meta);
}

.page-toc h4 {
    margin-bottom: 0.75rem;
    font-size: var(--fs-meta);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.page-toc a {
    text-decoration: none;
    color: var(--muted);
}

.page-toc a:hover {
    color: var(--primary);
}

/* ---------- Buttons (Academic) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    font-size: var(--fs-button);
    font-weight: 500;
    font-family: var(--font-ui);
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
    text-decoration: none;
}

.btn-outline,
.btn-secondary,
.btn-white {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-outline:hover,
.btn-secondary:hover,
.btn-white:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--background);
    text-decoration: none;
}

/* ---------- Subnav ---------- */
/* UX rationale: Bereichs-Subnavigation reduziert kognitive Last. */
.subnav {
    background: var(--paper);
    border-bottom: 1px solid var(--border);
}

.subnav .subnav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0.75rem var(--space-lg);
    margin: 0 auto;
    max-width: 1000px;
    flex-wrap: wrap;
}

.subnav .subnav-links a {
    text-decoration: none;
    font-size: var(--fs-meta);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    color: var(--muted);
}

.subnav .subnav-links a:hover,
.subnav .subnav-links a.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--background);
}

/* ---------- Pills/Tags ---------- */
.pill,
.tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    background: var(--background);
    color: var(--muted);
    border: 1px solid var(--border);
    margin-right: 0.5rem;
}

/* ---------- Tool Cards ---------- */
/* UX rationale: Status + CTA schaffen klare nächste Schritte. */
.tool-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tool-card .status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
}

.status-available {
    background: var(--allow-bg);
    color: var(--allow);
    border: 1px solid var(--allow);
}

.status-soon {
    background: var(--accompany-bg);
    color: var(--accompany);
    border: 1px solid var(--accompany);
}

.tool-card .tool-cta {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ---------- Tag Filter + Search ---------- */
/* UX rationale: Filter + Suche reduzieren die Zeit bis zur Antwort. */
.filter-bar {
    display: grid;
    gap: 1rem;
    margin-bottom: var(--space-lg);
}

.filter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-btn {
    border: 1px solid var(--border);
    background: var(--paper);
    color: var(--muted);
    font-size: var(--fs-label);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-full);
    cursor: pointer;
}

.tag-btn.active,
.tag-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ---------- FAQ ---------- */
.faq-item {
    background: var(--background);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ink);
}

.faq-question:hover {
    background: var(--paper);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: none;
    color: var(--muted);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-anchor {
    font-size: var(--fs-meta);
    color: var(--muted);
    text-decoration: none;
    margin-left: 0.5rem;
}

.faq-anchor:hover {
    color: var(--primary);
}

/* ---------- Professional Cards (Global Unification) ---------- */
.card-pro,
.feature-card,
.blog-card,
.research-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-pro::before,
.feature-card::before,
.blog-card::before,
.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card-pro:hover,
.feature-card:hover,
.blog-card:hover,
.research-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
    border-color: var(--primary-light);
}

.card-pro:hover::before,
.feature-card:hover::before,
.blog-card:hover::before,
.research-card:hover::before {
    transform: scaleX(1);
}

.card-pro h3,
.card-pro h4,
.feature-card h3,
.feature-card h4,
.blog-card h3,
.blog-card h4,
.research-card h3,
.research-card h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-weight: 700;
}

.card-pro p,
.feature-card p,
.blog-card p,
.research-card p {
    font-size: var(--fs-body-sm);
    color: var(--muted);
    line-height: 1.6;
}

/* Badge Style from Model Page */
.badge-pro {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    /* Pill shape */
    border-radius: 9999px;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    align-self: flex-start;
}

/* Intervention Library Style (Blocky) */
.card-intervention {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 100%;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.card-intervention:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.card-intervention-header {
    background: var(--primary);
    /* Dark Navy */
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-intervention-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-intervention h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-family: var(--font-ui);
    font-weight: 700;
}

.card-intervention p {
    font-size: var(--fs-body-sm);
    color: var(--muted);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Re-add gradient variable just in case */
:root {
    --gradient-primary: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}

/* ---------- Explanation Box (Guide Style) ---------- */
.explanation-box {
    display: flex;
    gap: 1.5rem;
    margin: 3rem 0;
    padding-left: 0.5rem;
    /* Slight offset */
}

.explanation-line {
    width: 2px;
    background: var(--primary);
    /* User requested black/dark */
    position: relative;
    margin-top: 10px;
    margin-bottom: 10px;
    flex-shrink: 0;
    opacity: 0.8;
}

.explanation-line::before,
.explanation-line::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.explanation-line::before {
    top: -8px;
}

.explanation-line::after {
    bottom: -8px;
}

.explanation-content h3,
.explanation-content h4 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.explanation-content p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.section-cta {
    background: var(--primary);
    color: white;
    padding: 5rem 0;
}

/* ---------- Footer ---------- */
.footer {
    background: #0f172a;
    /* Slate 900 */
    color: #ffffff;
    padding: 4rem 0 2rem 0;
    border-top: none;
    /* Removed accent border */
    font-size: var(--fs-body-sm);
}

.footer,
.footer * {
    color: #ffffff !important;
}

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

.footer-logo {
    font-size: 1.25rem;
    color: white !important;
    margin-bottom: 1rem;
}

.footer h4 {
    color: white;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: var(--fs-meta);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border-bottom: none;
}

.footer a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: var(--fs-label);
    color: #ffffff;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {

    /* Increased breakpoint */
    .hero-expert h1 {
        font-size: 2.25rem;
    }

    .hero-expert {
        padding: 3rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-toggle {
        display: block;
        /* Show toggle only on mobile */
    }

    .nav-links {
        display: none;
        /* Hide links by default on mobile */
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        /* Below header */
        left: 0;
        right: 0;
        background: white;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        z-index: 10;
        gap: 1rem;
        align-items: flex-start;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        width: 100%;
    }

    .dropdown-menu a {
        padding-left: 0;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .page-toc {
        position: static;
        order: -1;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ---------- Utilities (Restored) ---------- */
.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-sm {
    font-size: var(--fs-meta);
}

.text-xs {
    font-size: var(--fs-xs);
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.w-100 {
    width: 100%;
}

/* ---------- Axiom Cards (Ported) ---------- */
.axiom-showcase {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.axiom-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.axiom-card-new {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.axiom-card-new:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.axiom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.axiom-badge {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--muted);
    font-size: 1.2rem;
    opacity: 0.5;
}

.axiom-icon {
    font-size: 1.5rem;
    background: var(--background);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.axiom-card-new h4 {
    margin-bottom: var(--space-sm);
    color: var(--primary);
    font-size: 1.1rem;
}

/* ---------- Ecosystem Specific Styles (Ported) ---------- */
.layer-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.layer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.layer-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(13, 115, 119, 0.1);
    /* Teal low opacity */
    position: absolute;
    top: -10px;
    right: 20px;
    pointer-events: none;
}

.component-card {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    height: 100%;
}

.component-card:hover {
    border-color: var(--accent-teal);
    box-shadow: var(--shadow-md);
}

.component-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-teal);
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.component-link {
    margin-top: auto;
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ---------- Portal Feeds ---------- */
.portal-feed-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.portal-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.portal-card h3 {
    margin-bottom: 0.45rem;
}

.portal-summary {
    margin-bottom: 0.7rem;
    font-size: var(--fs-body-sm);
    color: var(--muted);
    max-width: none;
}

.portal-meta {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 1rem;
    display: grid;
    gap: 0.35rem;
}

.portal-meta li {
    font-size: var(--fs-meta);
    line-height: 1.35;
    color: var(--muted);
}

.portal-meta strong {
    color: var(--ink);
}

.portal-card-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.portal-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.portal-chip {
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--paper);
    color: var(--primary);
    padding: 0.3rem 0.75rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.portal-chip:hover,
.portal-chip.active {
    border-color: var(--primary);
    background: var(--background);
}

.portal-chip.active {
    background: var(--primary);
    color: #ffffff;
}

.portal-empty {
    border: 1px dashed var(--border);
    background: var(--paper);
    padding: 1rem;
    color: var(--muted);
    font-size: var(--fs-body-sm);
}

.portal-highlight {
    border-left: 4px solid var(--primary);
    background: var(--paper);
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
}

.portal-highlight p {
    margin-bottom: 0.6rem;
    max-width: none;
}

/* ---------- Reading Flow Refresh ---------- */
/* Ziel: weniger Box-Optik, mehr zusammenhaengender Lesefluss ueber alle Seiten. */

.section {
    padding: clamp(2.3rem, 4.4vw, 3.6rem) 0;
    border-bottom: none;
}

.section .container>p,
.section .container>ul,
.section .container>ol {
    max-width: 74ch;
}

.section .container>*+* {
    margin-top: 1rem;
}

.section .container>h2+p,
.section .container>h3+p,
.section .container>.lead+p {
    margin-top: 0.35rem;
}

.section .container>.grid,
.section .container>.model-center-grid,
.section .container>.mapping-grid,
.section .container>.start-here-steps,
.section .container>.portal-feed-grid,
.section .container>.portal-chip-row,
.section .container>.hero-map-preview,
.section .container>.system-map-figure,
.section .container>.model-page-hero-visual,
.section .container>.hero-stats,
.section .container>.filter-bar,
.section .container>.page-layout {
    max-width: none;
}

.feature-list {
    max-width: 74ch;
    margin: 0;
    padding-left: 1.15rem;
}

.feature-list li+li {
    margin-top: 0.45rem;
}

.module-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.2rem;
    align-items: start;
}

.module-main {
    display: grid;
    gap: 0.85rem;
}

.module-block {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 0.95rem 1rem;
}

.module-block-header {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.module-block h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.module-block-count {
    font-size: var(--fs-meta);
    color: var(--muted);
    white-space: nowrap;
}

.module-block p {
    max-width: none;
    margin: 0 0 0.55rem;
    color: var(--muted);
    font-size: var(--fs-body-sm);
}

.module-link-list {
    margin: 0;
    padding-left: 1.05rem;
}

.module-link-list li+li {
    margin-top: 0.28rem;
}

.module-aside {
    display: grid;
    gap: 0.85rem;
}

.module-aside-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem;
}

.module-aside-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    color: var(--primary);
}

.module-aside-card p {
    margin: 0;
    max-width: none;
    color: var(--muted);
    font-size: var(--fs-body-sm);
}

.module-aside-card ul {
    margin: 0;
    padding-left: 1.05rem;
}

.module-aside-card li+li {
    margin-top: 0.28rem;
}

@media (max-width: 980px) {
    .module-layout {
        grid-template-columns: 1fr;
    }
}

.card {
    background: transparent;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    padding: 0.25rem 0 0.25rem 1rem;
    box-shadow: none;
}

.card::before {
    content: none;
}

.card:hover {
    transform: none;
    box-shadow: none;
    border-left-color: var(--primary-light);
}

.card.text-center {
    border-left: none;
    border-top: 2px solid var(--border);
    padding-left: 0;
    padding-top: 0.85rem;
}

.grid>.card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-left: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.2rem 1.2rem 1.2rem 1rem;
}

.grid>.card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-light);
}

.card-pro,
.feature-card,
.blog-card,
.research-card,
.tool-card,
.mapping-card,
.start-here-step,
.axiom-card-new,
.layer-card,
.component-card,
.portal-card,
.newcomer-box {
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
}

.card-pro::before,
.feature-card::before,
.blog-card::before,
.research-card::before,
.axiom-card-new::before {
    content: none;
}

.card-pro:hover,
.feature-card:hover,
.blog-card:hover,
.research-card:hover,
.tool-card:hover,
.mapping-card:hover,
.start-here-step:hover,
.axiom-card-new:hover,
.layer-card:hover,
.component-card:hover,
.portal-card:hover,
.newcomer-box:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.9);
}

/* ---------- Sticky Table of Contents (TOC) ---------- */
.toc-layout-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    padding: 0 var(--space-lg);
    gap: 3rem;
    position: relative;
}

.toc-sidebar {
    position: sticky;
    top: 5rem;
    flex: 0 0 250px;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding-right: 1rem;
    padding-top: 4rem;
}

.toc-sidebar::-webkit-scrollbar {
    width: 4px;
}

.toc-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.toc-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}

.toc-sidebar .toc-title {
    font-size: var(--fs-meta);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 1rem;
    font-family: var(--font-ui);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-ui);
    font-size: var(--fs-meta);
}

.toc-list li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.toc-list a {
    text-decoration: none;
    color: var(--muted);
    display: inline-block;
    padding-left: 0.6rem;
    border-left: 2px solid transparent;
    transition: all var(--transition-fast);
}

.toc-list a:hover {
    color: var(--primary);
    border-left-color: var(--border);
}

.toc-list a.active {
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--secondary);
}

/* Update main content within toc layout */
.toc-layout-container .book-chapter {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Hide TOC on smaller screens */
@media (max-width: 1000px) {
    .toc-layout-container {
        display: block;
        padding: 0;
    }

    .toc-sidebar {
        display: none;
    }

    .toc-layout-container .book-chapter {
        padding: 4rem var(--space-lg);
        margin: 0 auto;
    }
}

/* ---------- Chapter Sections & Tabs ---------- */
.chapter-tab {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.chapter-section,
.chapter-subsection {
    position: relative;
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-2xl);
    border-bottom: 2px solid var(--border);
}

.chapter-section:last-of-type,
.chapter-subsection:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.chapter-section h2,
.chapter-subsection h3 {
    margin-top: 0;
}

.chapter-subsection {
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-xl);
}

/* Evidenz-Boxen für "Was sagt die Forschung?" */
.evidence-section {
    background: var(--paper);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-bottom: none;
    /* override chapter-section default */
}

.evidence-section h2,
.evidence-section h3 {
    color: var(--primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.evidence-section p:last-child,
.evidence-section .card:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .evidence-section {
        padding: 1.5rem;
    }
}

/* ---------- SEO/AEO/GEO Components ---------- */

/* Key Takeaway Box – GEO extraction target */
.key-takeaway {
    background: var(--paper);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.key-takeaway strong:first-child {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-family: var(--font-ui);
    font-size: var(--fs-meta);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* FAQ details/summary – AEO PAA target */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

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

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item summary::before {
    content: "+";
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}

.faq-item[open] summary::before {
    content: "−";
}

.faq-item summary strong {
    font-weight: 600;
    color: var(--ink);
}

.faq-item p {
    margin: 0.75rem 0 0 2rem;
    color: var(--muted);
    max-width: 74ch;
    line-height: 1.7;
}

/* Glossary list */
.glossary-list {
    max-width: 74ch;
}

.glossary-list dt {
    font-weight: 700;
    color: var(--primary);
    margin-top: 1.25rem;
    font-size: 1.05rem;
}

.glossary-list dt:first-child {
    margin-top: 0;
}

.glossary-list dd {
    margin-left: 0;
    margin-top: 0.25rem;
    color: var(--muted);
    line-height: 1.7;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.glossary-list dd:last-child {
    border-bottom: none;
}

/* Topic Summary aside – GEO entity block */
.topic-summary {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.topic-summary dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
    margin: 0;
}

.topic-summary dt {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.topic-summary dd {
    margin: 0;
    color: var(--muted);
}

/* Content freshness indicator */
.content-freshness {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}