/* --- DESIGN SYSTEM (CSS Variables) --- */
:root {
    /* Farben */
    --col-bg: #F9F8F6;
    --col-surface: #FFFFFF;
    --col-primary: #1E3A4C;
    --col-accent: #D97757;
    --col-success: #2A9D8F;
    --col-text: #2D3748;
    --col-text-muted: #5A6B7D;
    --col-bg-alt: #F1F5F9;
    --col-border: #E2E8F0;

    /* Abstände & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --radius: 8px;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-card: 0 2px 4px rgba(0,0,0,0.04);
}

/* --- RESET & BASIC --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
/* scroll-behavior handled by JS for speed control */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--col-bg);
    color: var(--col-text);
    line-height: 1.7;
}

/* Zurück-Link zur Hauptseite (Floating Pill) */
.back-to-main {
    position: fixed;
    top: 0.75rem;
    left: 1rem;
    z-index: 900;
    display: inline-block;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--col-text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s, color 0.2s;
}
.back-to-main:hover {
    color: var(--col-primary);
}
.back-to-main.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Skip Link für Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--col-primary);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
    top: 0;
}

h1, h2, h3, h4 { color: var(--col-primary); font-weight: 700; line-height: 1.3; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--col-border); }
h3 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.25rem; max-width: 75ch; }

/* --- HEADER HERO --- */
header {
    background: var(--col-primary);
    color: white;
    padding: 4rem 0 2rem 0;
    border-bottom: 4px solid var(--col-accent);
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}
.brand-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--col-accent);
    margin-bottom: 0.5rem;
    display: block;
}
h1 {
    color: white;
    font-size: clamp(1.75rem, 5vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.lead {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: #CBD5E0;
    font-weight: 300;
}

/* --- ACTION BAR --- */
.action-bar {
    background: var(--col-surface);
    border-bottom: 1px solid var(--col-border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-soft);
}
.action-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}
.action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Suchfeld */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
}
.search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 2px solid var(--col-border);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.search-input:focus {
    outline: none;
    border-color: var(--col-accent);
    box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.15);
}
.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--col-text-muted);
    pointer-events: none;
}

/* Quick Cards */
.quick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}
.q-card {
    background: #F8FAFC;
    border: 1px solid var(--col-border);
    border-radius: var(--radius);
    padding: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}
.q-card:hover {
    background: var(--col-primary);
    border-color: var(--col-primary);
    transform: translateY(-2px);
}
.q-card:hover * { color: white !important; }
.q-card:focus {
    outline: 2px solid var(--col-accent);
    outline-offset: 2px;
}

/* Action bar heading */
.action-title {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--col-primary);
}
.action-subtitle {
    font-size: 0.8rem;
    color: var(--col-text-muted);
    font-family: 'Inter', sans-serif;
}

/* Action Bar collapse on scroll */
.expand-toggle {
    display: none;
    background: var(--col-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.expand-toggle:hover { background: var(--col-primary-dark, #152d3b); }

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--col-primary);
    color: white;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 99;
    box-shadow: var(--shadow-soft);
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--col-primary-dark, #152d3b); }

.action-bar.collapsed { padding: 0.5rem 0; }
.action-bar.collapsed .quick-cards { display: none; }
.action-bar.collapsed .action-header-text { display: none; }
.action-bar.collapsed .action-header { margin-bottom: 0; }
.action-bar.collapsed .expand-toggle { display: inline-block; }

.q-icon { font-size: 1.1rem; margin-bottom: 0.35rem; }
.q-title { font-weight: 700; font-size: 0.85rem; color: var(--col-text); }
.q-desc { font-size: 0.7rem; color: var(--col-text-muted); margin-top: 0.2rem; }

.q-card.highlight { background: var(--col-accent); border-color: var(--col-accent); }
.q-card.highlight .q-title, .q-card.highlight .q-desc, .q-card.highlight .q-icon { color: white; }

/* TOC Overview — Chapter Rows + Pill Tags */
.toc-overview {
    margin: 1.25rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.toc-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--col-border);
}
.toc-row:last-child { border-bottom: none; }
.toc-chapter {
    flex-shrink: 0;
    min-width: 180px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--col-text);
    text-decoration: none;
}
.toc-chapter:hover { color: var(--col-primary); }
.toc-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--col-accent);
    margin-right: 0.35rem;
}
.toc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.toc-pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    color: var(--col-primary);
    background: var(--col-bg-alt);
    border: 1px solid var(--col-border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.toc-pill:hover {
    background: var(--col-primary);
    color: white;
    border-color: var(--col-primary);
}
.toc-pill-accent {
    background: #FBEEE8;
    color: var(--col-accent);
    border-color: var(--col-accent);
    font-weight: 600;
}
.toc-pill-accent:hover {
    background: var(--col-primary);
    color: white;
    border-color: var(--col-primary);
}
.toc-guide-label {
    color: var(--col-text-muted);
    font-weight: 600;
    font-size: 0.8rem;
}
.toc-row-guides { border-bottom: none; padding-top: 0.5rem; }

/* --- MAIN LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 var(--spacing-sm);
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
}

/* TOC Overview spans full width */
#quick-start { grid-column: 1 / -1; }

/* Sidebar */
aside {
    position: sticky;
    top: var(--scroll-offset, 250px);
    height: fit-content;
    max-height: calc(100vh - var(--scroll-offset, 250px) - 20px);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
aside.visible {
    opacity: 1;
    pointer-events: auto;
}
.nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--col-text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.nav-list { list-style: none; border-left: 2px solid var(--col-border); }
.nav-list li { margin-bottom: 0; }
.nav-link {
    display: block;
    padding: 0.4rem 0 0.4rem 1rem;
    color: var(--col-text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
    border-left: 2px solid transparent;
    margin-left: -2px;
}
.nav-link:hover { color: var(--col-primary); }
.nav-link:focus { outline: 2px solid var(--col-accent); outline-offset: 2px; }
.nav-link.active { color: var(--col-primary); font-weight: 700; border-left-color: var(--col-accent); }
.nav-link.nav-sub { padding-left: 1.5rem; font-size: 0.75rem; }
.nav-sub-list { list-style: none; display: none; padding: 0; margin: 0; }
.nav-sub-list.expanded { display: block; }

/* Sections */
main { min-width: 0; }
section {
    margin-bottom: 4rem;
}
[id] {
    scroll-margin-top: var(--scroll-offset, 250px);
}

/* Content Components */
.content-card {
    background: var(--col-surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--col-border);
    margin: 1.5rem 0;
}

/* Definition Box */
.definition-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--col-border);
    border-left: 4px solid var(--col-primary);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}
.definition-box h4 {
    color: var(--col-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.definition-box p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}
/* Base source citation style (works everywhere) */
.source {
    font-size: 0.8rem;
    color: var(--col-text-muted);
    font-style: italic;
    margin-top: 0.25rem;
    margin-bottom: 1.25rem;
}
/* After a paragraph: pull source closer to the text it belongs to */
p + .source {
    margin-top: -0.75rem;
}
/* Inside closed boxes: no bottom margin (box provides boundary) */
.definition-box .source,
.content-card .source {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
}
/* Inside accordions: keep bottom margin, text continues after source */
.accordion-content .source {
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
}
.accordion-content p + .source {
    margin-top: -0.75rem;
}
.source.source-note { font-size: 0.75rem; margin-top: 0.25rem; }

/* Resource List */
.resource-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.resource-list li {
    padding: 0.75rem 1rem;
    background: var(--col-surface);
    border: 1px solid var(--col-border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.resource-list a {
    color: var(--col-primary);
    text-decoration: none;
    font-size: 0.9rem;
}
.resource-list a:hover { text-decoration: underline; }
.resource-icon {
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--col-primary);
    color: #fff;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    letter-spacing: 0.02em;
    display: inline-block;
    min-width: 2.5rem;
    text-align: center;
    flex-shrink: 0;
    white-space: nowrap;
    margin-top: 0.2rem;
}

/* EPIC Grid */
.epic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.epic-item {
    background: var(--col-surface);
    padding: 1.25rem;
    border-radius: var(--radius);
    border-top: 4px solid var(--col-primary);
    box-shadow: var(--shadow-card);
}
.epic-letter {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--col-accent);
    opacity: 0.85;
    margin-bottom: 0.35rem;
    display: block;
}
.epic-item strong { display: block; margin-bottom: 0.35rem; }
.epic-item p { font-size: 0.85rem; margin: 0; }

/* Prompting Formula */
.formula-list { list-style: none; margin-top: 1.25rem; }
.formula-step {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}
.step-num {
    background: var(--col-primary);
    color: white;
    min-width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.step-content strong { display: block; color: var(--col-primary); margin-bottom: 0.2rem; }
.step-content { font-size: 0.9rem; }
/* step-constraint removed — all steps use same color */

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.ex-box {
    padding: 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}
.ex-bad { background: #FFF5F5; border: 1px solid #FC8181; }
.ex-good { background: #F0FDF9; border: 1px solid var(--col-success); }
.tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}
.tag-bad { background: #FC8181; color: white; }
.tag-good { background: var(--col-success); color: white; }

/* Checklist */
.checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    background: var(--col-surface);
    border-radius: var(--radius);
    border: 1px solid var(--col-border);
    overflow: hidden;
}
.checklist li {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--col-border);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.9rem;
}
.checklist li:last-child { border-bottom: none; }
.check-icon { color: var(--col-success); font-size: 1rem; flex-shrink: 0; }
.vibe-check-box {
    font-size: 1.3rem;
    cursor: pointer;
    user-select: none;
    color: var(--col-accent);
    transition: color 0.15s;
}
.vibe-check-box.checked { color: var(--col-success); }

/* Tätigkeitsfeld-Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.activity-card {
    background: var(--col-surface);
    border: 1px solid var(--col-border);
    border-radius: var(--radius);
    padding: 1rem;
}
.activity-card h4 {
    font-size: 0.85rem;
    color: var(--col-primary);
    margin-bottom: 0.5rem;
    margin-top: 0;
}
.activity-card ul {
    font-size: 0.8rem;
    padding-left: 1rem;
    margin: 0;
    color: var(--col-text-muted);
}
.activity-card li { margin-bottom: 0.25rem; }

/* Accordion */
.accordion {
    border: 1px solid var(--col-border);
    border-radius: var(--radius);
    margin: 1rem 0;
    overflow: hidden;
}
.accordion-header {
    background: var(--col-surface);
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    width: 100%;
    text-align: left;
}
.accordion-header:hover { background: #f8fafc; }
.accordion-header:focus { outline: 2px solid var(--col-accent); outline-offset: -2px; }
.accordion-icon { transition: transform 0.2s; }
.accordion.open .accordion-icon { transform: rotate(180deg); }
.accordion-content {
    display: none;
    padding: 1rem 1.25rem;
    background: #fafbfc;
    border-top: 1px solid var(--col-border);
    font-size: 0.9rem;
}
.accordion.open .accordion-content { display: block; }

/* Argument Cards (Pro-Contra Section) */
.argument-card {
    background: var(--col-surface);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--col-border);
    border-left: 4px solid var(--col-border);
    margin-bottom: 1rem;
}
.argument-card.pro { border-left-color: var(--col-success); }
.argument-card.contra { border-left-color: #E53E3E; }
.argument-card .argument-claim {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--col-text);
}

.argument-card .accordion {
    margin: 0.75rem 0 0 0;
    border: 1px solid var(--col-border);
}
.argument-card .accordion-header {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
}
.argument-card .accordion-content {
    font-size: 0.85rem;
}
.argument-fazit {
    font-size: 0.85rem;
    color: var(--col-text-muted);
    margin: 0.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--col-accent);
}
/* .argument-card .source — now covered by base .source rule */

/* Example Walkthrough Steps (Gaming Flyer) */
.example-walkthrough { margin-top: 1.5rem; }
.example-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}
.example-step .step-num {
    background: var(--col-primary);
    color: white;
    min-width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.example-step .step-body {
    flex: 1;
}
.example-step .step-body h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: var(--col-primary);
}
.prompt-box {
    background: #f1f5f9;
    border-left: 3px solid var(--col-primary);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 0.5rem 0;
}
.teaching-moment {
    background: #fffbeb;
    border-left: 3px solid var(--col-accent);
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 0.5rem 0;
    color: var(--col-text);
}
.teaching-moment::before {
    content: "💡 ";
}
.free-vs-pro-box {
    background: var(--col-surface);
    border: 1px solid var(--col-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 1.5rem;
}
.free-vs-pro-box h4 {
    margin: 0 0 0.75rem 0;
    color: var(--col-primary);
}
/* Responsive figures */
figure { margin: 0; }
figure img { max-width: 100%; height: auto; border-radius: var(--radius); }

.free-vs-pro-box img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 0.75rem 0;
}

/* Learning Cards (7 Lessons Learned) */
.learning-card {
    background: var(--col-surface);
    border: 1px solid var(--col-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.learning-card .learning-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.learning-card .learning-num {
    background: var(--col-primary);
    color: white;
    min-width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.learning-card .learning-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--col-primary);
}
.learning-card p { font-size: 0.9rem; }
.learning-card .learning-example {
    font-size: 0.82rem;
    color: var(--col-text-muted);
    font-style: italic;
    margin-top: 0.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--col-border);
}
.learning-card .learning-link {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.learning-card .learning-link a {
    color: var(--col-primary);
    text-decoration: underline;
}
.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 0.75rem 0;
}
.compact-table th {
    background: var(--col-primary);
    color: white;
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-weight: 600;
}
.compact-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--col-border);
}
.compact-table tr:nth-child(even) td {
    background: #f8fafc;
}

/* Footer */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem var(--spacing-sm);
    padding-left: 220px;
    color: var(--col-text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--col-border);
    background: var(--col-surface);
}
footer a { color: var(--col-primary); }

/* Footer logo bar */
.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.footer-logo-square {
    height: 48px;
    border-radius: 6px;
}
.footer-logo-dhc {
    height: 56px;
}

@media (max-width: 768px) {
    footer { padding-left: var(--spacing-sm); }
    .footer-logos { gap: 1.25rem; }
    .footer-logo { height: 36px; }
    .footer-logo-dhc { height: 42px; }
    .footer-logo-square { height: 36px; }
}

/* --- CONTEXTUAL RULES --- */

/* Links → primary color throughout main content */
section a,
.content-card a,
.teaching-moment a,
.learning-card a { color: var(--col-primary); }

/* Lists in main content → consistent indent (special lists override with padding: 0) */
section ul,
section ol,
.content-card ul,
.content-card ol,
.argument-card ul { padding-left: 1.5rem; }

/* Semantic color classes */
.vibe-pass, .dsgvo-green { color: var(--col-success); }
.vibe-warn, .dsgvo-yellow { color: #9A7300; }
.vibe-fail, .dsgvo-red { color: #E53E3E; }

/* Tool table vendor labels */
.tool-vendor { font-size: 0.75rem; }

/* Closing paragraph before footer */
.closing-text {
    margin-top: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
}

/* --- UTILITIES --- */
.hidden { display: none !important; }
.text-muted { color: var(--col-text-muted); }
.text-primary { color: var(--col-primary); }
.nowrap { white-space: nowrap; }

/* Font size utilities */
.text-xs  { font-size: 0.8rem; }
.text-sm  { font-size: 0.85rem; }
.text-base { font-size: 0.9rem; }

/* Text style utilities */
.text-center { text-align: center; }
.text-italic { font-style: italic; }

/* Search Highlight */
.search-highlight {
    background-color: #FEFCBF;
    color: var(--col-text);
    padding: 0.1em 0.2em;
    border-radius: 2px;
    box-shadow: 0 0 0 1px #ECC94B;
}
/* Content Card Border Variants */
.content-card.card-primary { border-left: 4px solid var(--col-primary); }
.content-card.card-accent { border-left: 4px solid var(--col-accent); }
.content-card.card-danger { border-left: 4px solid #E53E3E; }
.content-card.card-muted { border-left: 4px solid var(--col-text-muted); }

/* Card heading colors inherit from border variant */
.content-card.card-primary > h3,
.content-card.card-primary > h4 { color: var(--col-primary); margin-top: 0; }
.content-card.card-accent > h4 { color: var(--col-accent); margin-top: 0; }
.content-card.card-danger > h4 { color: #E53E3E; margin-top: 0; }
.content-card.card-muted > h4 { color: var(--col-text-muted); margin-top: 0; }

/* Separator in bad-example boxes */
.ex-bad hr {
    border: 0;
    border-top: 1px solid #feb2b2;
    margin: 1rem 0;
}

/* Free-vs-Pro image comparison layout */
.flyer-comparison {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.flyer-comparison-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}
.flyer-comparison-item img {
    max-width: 100%;
    border-radius: var(--radius);
    border: 2px solid var(--col-border);
}
.flyer-comparison-item.free img { border-color: #E53E3E; }
.flyer-comparison-item.pro img { border-color: var(--col-success); }
.flyer-comparison-item p {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}
.flyer-comparison-item.free p { color: #E53E3E; }
.flyer-comparison-item.pro p { color: var(--col-success); }

/* Risk Cards (Kap 2.5 — Risiken, visuell abgegrenzt von Pro/Contra) */
.argument-card.risk { border-left-color: var(--col-accent); }
.argument-card.risk .check-icon { color: var(--col-accent); }

/* Nav Separator */
.nav-separator {
    padding: 0.5rem 0 0.2rem 1rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--col-text-muted);
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Spacing Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-1h { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1h { margin-top: 0.75rem; }
.bg-light { background: #f8fafc; }
.fw-normal { font-weight: normal; }
.footer-meta { margin-top: 1rem; font-size: 0.8rem; }
.footer-cite {
    margin-top: 0.75rem;
    font-size: 0.7rem;
    line-height: 1.4;
    opacity: 0.75;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 0.5rem;
    user-select: all;
    cursor: text;
}

/* Bibliography */
.bibliography {
    list-style: none;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.6;
}
.bibliography li {
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--col-border);
}
.bibliography li:last-child { border-bottom: none; }
.bibliography a { color: var(--col-primary); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .container { grid-template-columns: 200px 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; margin-top: 2rem; }
    aside { display: none; }
    .comparison-grid { grid-template-columns: 1fr; }
    .action-bar { position: static; }
    .action-bar.collapsed { padding: 1.5rem 0; }
    .action-bar.collapsed .quick-cards { display: grid; }
    .action-bar.collapsed .action-header-text { display: block; }
    .action-bar.collapsed .action-header { margin-bottom: 1rem; }
    .expand-toggle { display: none !important; }
    .quick-cards { grid-template-columns: repeat(2, 1fr); }
    .toc-row { flex-direction: column; gap: 0.25rem; }
    .toc-chapter { min-width: auto; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    [id] { scroll-margin-top: 20px; }
}

@media (max-width: 480px) {
    .quick-cards { grid-template-columns: 1fr; }
    .epic-grid { grid-template-columns: 1fr; }
    .activity-grid { grid-template-columns: 1fr; }
    header { padding: 2rem 0 1.5rem 0; }
}

/* --- PRINT --- */
@media print {
    .action-bar, aside, footer, .skip-link, .back-to-main { display: none; }
    .container { display: block; margin: 0; }
    body { background: white; color: black; font-size: 11pt; }
    header { padding: 1.5rem 0; background: white; color: black; border-bottom: 2px solid black; }
    h1, h2, h3, h4 { color: black; }
    .lead { color: #333; }
    .content-card, .epic-item, .definition-box {
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
    }

    a { text-decoration: none; color: black; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
    section { page-break-before: auto; margin-bottom: 2rem; }
    h2 { page-break-after: avoid; }
}
