/* ============================================================
   agiles-projektmanagement.org — Stylesheet
   BOZZ CMS v5 · Visual Minds
   ============================================================ */

/* ── FONTS ─────────────────────────────────────────────────── */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Variable.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-Variable.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
    --apm-primary: #0f766e;
    --apm-primary-light: #14b8a6;
    --apm-primary-dark: #0d5c56;
    --apm-primary-bg: #f0fdfa;
    --apm-accent: #f59e0b;
    --apm-accent-light: #fbbf24;
    --apm-accent-bg: #fffbeb;
    --apm-accent-dark: #d97706;

    --apm-text: #1e293b;
    --apm-text-light: #475569;
    --apm-text-muted: #64748b; /* WCAG AA fix */
    --apm-bg: #ffffff;
    --apm-bg-alt: #f8fafc;
    --apm-bg-dark: #0f172a;
    --apm-border: #e2e8f0;

    --apm-font: 'Inter', system-ui, -apple-system, sans-serif;
    --apm-font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --apm-text-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.875rem);
    --apm-text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.0625rem);
    --apm-text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
    --apm-text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --apm-text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    --apm-text-3xl: clamp(1.8rem, 1.4rem + 2vw, 2.5rem);
    --apm-text-4xl: clamp(2.2rem, 1.6rem + 3vw, 3.25rem);

    --apm-space-xs: 0.25rem;
    --apm-space-sm: 0.5rem;
    --apm-space-md: 1rem;
    --apm-space-lg: 1.5rem;
    --apm-space-xl: 2rem;
    --apm-space-2xl: 3rem;
    --apm-space-3xl: 4rem;
    --apm-space-4xl: 6rem;

    --apm-section-py: clamp(3rem, 2rem + 5vw, 6rem);
    --apm-container: 1140px;
    --apm-radius: 8px;
    --apm-radius-lg: 12px;
    --apm-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --apm-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --apm-transition: 0.2s ease;
    --apm-header-h: 64px;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--apm-font);
    font-size: var(--apm-text-base);
    line-height: 1.7;
    color: var(--apm-text);
    background: var(--apm-bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
.article svg[viewBox] { width: 100%; max-width: 100%; height: auto; }
a { color: var(--apm-primary); text-decoration: none; transition: color var(--apm-transition); }
a:hover { color: var(--apm-primary-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--apm-text); letter-spacing: -0.02em; }
h1 { font-size: var(--apm-text-4xl); }
h2 { font-size: var(--apm-text-2xl); }
h3 { font-size: var(--apm-text-xl); }
h4 { font-size: var(--apm-text-lg); }
:focus-visible {
    outline: 2px solid var(--apm-primary);
    outline-offset: 2px;
    border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
    .btn, .topic-card, .key-facts, .sidebar-nav__link--active { border: 1px solid; }
}

/* ── LAYOUT ────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--apm-container); margin: 0 auto; padding: 0 var(--apm-space-lg); }
.section { padding: var(--apm-section-py) 0; }
.section--alt { background: var(--apm-bg-alt); }
.section__intro { color: var(--apm-text-light); margin-top: var(--apm-space-md); max-width: 680px; font-size: var(--apm-text-lg); }

/* ── SKIP LINK ─────────────────────────────────────────────── */
.skip-link { position: absolute; top: -100%; left: 1rem; z-index: 200; padding: .5rem 1rem; background: var(--apm-primary); color: #fff; border-radius: var(--apm-radius); font-weight: 600; font-size: var(--apm-text-sm); }
.skip-link:focus { top: .5rem; color: #fff; }

/* ── HEADER ────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--apm-border); backdrop-filter: blur(12px); background: rgba(255,255,255,0.95); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--apm-header-h); }

.site-logo { display: flex; align-items: center; gap: var(--apm-space-sm); font-weight: 700; font-size: var(--apm-text-lg); color: var(--apm-text); text-decoration: none; }
.site-logo__emblem { width: 32px; height: 32px; color: var(--apm-primary); flex-shrink: 0; }
.site-logo__emblem svg { width: 100%; height: 100%; }
.site-logo__pm { color: var(--apm-accent); }

/* Nav */
.site-nav { display: flex; align-items: center; gap: var(--apm-space-xl); }
.site-nav__list { display: flex; gap: var(--apm-space-xs); }
.site-nav__item { position: relative; }
.site-nav__link { display: flex; align-items: center; gap: 4px; padding: var(--apm-space-sm) var(--apm-space-md); font-size: var(--apm-text-sm); font-weight: 500; color: var(--apm-text-light); border-radius: var(--apm-radius); transition: all var(--apm-transition); }
.site-nav__link:hover, .site-nav__link.active { color: var(--apm-primary); background: var(--apm-primary-bg); }
.site-nav__chevron { transition: transform var(--apm-transition); }

/* Dropdown */
.site-nav__dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--apm-bg); border: 1px solid var(--apm-border); border-radius: var(--apm-radius-lg); box-shadow: var(--apm-shadow-md); padding: var(--apm-space-sm) 0; z-index: 110; }
.site-nav__item--dropdown:hover .site-nav__dropdown,
.site-nav__item--dropdown:focus-within .site-nav__dropdown { display: block; }
.site-nav__item--dropdown:hover .site-nav__chevron { transform: rotate(180deg); }
.site-nav__dropdown-link { display: block; padding: var(--apm-space-sm) var(--apm-space-lg); font-size: var(--apm-text-sm); font-weight: 500; color: var(--apm-text-light); transition: all var(--apm-transition); }
.site-nav__dropdown-link:hover { background: var(--apm-primary-bg); color: var(--apm-primary); }
.site-nav__dropdown-group { padding: var(--apm-space-xs) 0; }
.site-nav__dropdown-group + .site-nav__dropdown-group { border-top: 1px solid var(--apm-border); }
.site-nav__dropdown-heading { display: block; padding: var(--apm-space-sm) var(--apm-space-lg) var(--apm-space-xs); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--apm-accent-dark); }

/* Nav Toggle (Mobile) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--apm-space-sm); color: var(--apm-text); }

/* ── MOBILE NAV ────────────────────────────────────────────── */
.mobile-nav { position: fixed; top: 0; right: -100%; width: min(320px, 85vw); height: 100vh; background: var(--apm-bg); z-index: 300; overflow-y: auto; transition: right 0.3s ease; box-shadow: -4px 0 20px rgba(0,0,0,0.1); }
.mobile-nav.is-open { right: 0; }
.mobile-nav__header { display: flex; justify-content: flex-end; padding: var(--apm-space-md); }
.mobile-nav__close { background: none; border: none; cursor: pointer; padding: var(--apm-space-sm); color: var(--apm-text); }
.mobile-nav__body { padding: 0 var(--apm-space-lg) var(--apm-space-xl); }
.mobile-nav__link { display: block; padding: var(--apm-space-sm) 0; font-size: var(--apm-text-base); font-weight: 500; color: var(--apm-text-light); border-bottom: 1px solid var(--apm-border); }
.mobile-nav__link--top { font-weight: 600; color: var(--apm-text); }
.mobile-nav__toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: var(--apm-space-sm) 0; font-size: var(--apm-text-base); font-weight: 600; color: var(--apm-text); background: none; border: none; border-bottom: 1px solid var(--apm-border); cursor: pointer; font-family: inherit; }
.mobile-nav__children { padding-left: var(--apm-space-md); }
.mobile-nav__children .mobile-nav__link { font-size: var(--apm-text-sm); font-weight: 400; }
.mobile-nav__overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 290; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.mobile-nav__overlay.is-open { opacity: 1; pointer-events: auto; }

/* ── BREADCRUMBS ───────────────────────────────────────────── */
.breadcrumbs { padding: var(--apm-space-md) 0; font-size: var(--apm-text-sm); color: var(--apm-text-muted); border-bottom: 1px solid var(--apm-border); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: var(--apm-space-xs); }
.breadcrumbs__item { display: flex; align-items: center; gap: var(--apm-space-xs); }
.breadcrumbs__item:not(:last-child)::after { content: '\203A'; color: var(--apm-border); }
.breadcrumbs__item a { color: var(--apm-text-muted); }
.breadcrumbs__item a:hover { color: var(--apm-primary); }
.breadcrumbs__item [aria-current] { color: var(--apm-text-light); }

/* ── HERO ──────────────────────────────────────────────────── */
.hero { padding: var(--apm-space-4xl) 0 var(--apm-space-3xl); background: linear-gradient(135deg, var(--apm-bg) 0%, var(--apm-primary-bg) 100%); }
.hero__content { max-width: 720px; }
.hero__badge { display: inline-flex; align-items: center; gap: var(--apm-space-sm); padding: var(--apm-space-xs) var(--apm-space-md); background: white; border: 1px solid var(--apm-border); border-radius: 999px; font-size: var(--apm-text-sm); font-weight: 500; color: var(--apm-primary); margin-bottom: var(--apm-space-xl); }
.hero__badge::before { content: ''; width: 8px; height: 8px; background: var(--apm-accent); border-radius: 50%; }
.hero h1 { margin-bottom: var(--apm-space-lg); }
.hero h1 span { display: block; font-size: var(--apm-text-xl); font-weight: 500; color: var(--apm-text-light); margin-top: var(--apm-space-sm); }
.hero__intro { font-size: var(--apm-text-lg); color: var(--apm-text-light); line-height: 1.8; margin-bottom: var(--apm-space-md); }
.hero__definition { font-size: var(--apm-text-base); color: var(--apm-text-light); }

/* Page Hero (Unterseiten) */
.page-hero { padding: var(--apm-space-2xl) 0; background: var(--apm-bg-alt); border-bottom: 1px solid var(--apm-border); }
.page-hero h1 { font-size: var(--apm-text-3xl); margin-bottom: var(--apm-space-md); }
.page-hero__sub { display: block; font-size: 0.55em; font-weight: 400; color: var(--apm-accent); margin-top: var(--apm-space-xs); letter-spacing: 0; }
.page-hero__definition { color: var(--apm-text-light); margin-top: var(--apm-space-sm); font-size: var(--apm-text-lg); max-width: 720px; }
.page-hero { position: relative; padding-bottom: var(--apm-space-3xl); }
.page-hero__updated { position: absolute; right: var(--apm-space-lg); bottom: var(--apm-space-lg); font-size: var(--apm-text-sm); color: var(--apm-text-muted); }

/* ── CONTENT LAYOUT ────────────────────────────────────────── */
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: var(--apm-space-3xl); padding: var(--apm-section-py) 0; }
.content-layout--wide { grid-template-columns: 1fr; max-width: 860px; }
.content-layout--narrow { grid-template-columns: 1fr; max-width: 780px; }

/* ── ARTICLE ───────────────────────────────────────────────── */
.article { min-width: 0; } /* Grid-Kind: erlaubt Schrumpfen unter Content-Breite */
.article h2 { margin-top: var(--apm-space-2xl); margin-bottom: var(--apm-space-md); padding-bottom: var(--apm-space-sm); border-bottom: 2px solid var(--apm-accent-bg); }
.article h2::before { content: ''; display: inline-block; width: 4px; height: 1em; background: var(--apm-accent); border-radius: 2px; margin-right: var(--apm-space-sm); vertical-align: middle; }
.article h3 { margin-top: var(--apm-space-xl); margin-bottom: var(--apm-space-sm); }
.article p { margin-bottom: var(--apm-space-md); color: var(--apm-text-light); }
.article ul, .article ol { margin-bottom: var(--apm-space-md); padding-left: var(--apm-space-lg); }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: var(--apm-space-sm); color: var(--apm-text-light); }
.article li::marker { color: var(--apm-accent); }
.article strong { color: var(--apm-text); font-weight: 600; }
.article__definition { font-size: var(--apm-text-lg); color: var(--apm-text-light); }

/* Term Links (Glossar-Verlinkung im Fliesstext) */
.term-link { color: var(--apm-text-light); text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--apm-primary-light); text-underline-offset: 3px; }
.term-link:hover { color: var(--apm-primary); text-decoration-style: solid; }

/* Image with Credit */
/* SVG Illustration (inline visual) */
.article__illustration { margin: var(--apm-space-2xl) 0; text-align: center; padding: var(--apm-space-xl) var(--apm-space-lg); background: var(--apm-bg-alt); border-radius: var(--apm-radius-lg); border: 1px solid var(--apm-border); overflow: hidden; }
.article__illustration img, .article__illustration svg { max-width: 100%; height: auto; margin: 0 auto; }
.article__illustration figcaption { margin-top: var(--apm-space-md); font-size: var(--apm-text-sm); color: var(--apm-text-muted); }

.article__image { margin: var(--apm-space-xl) 0; border-radius: var(--apm-radius-lg); overflow: hidden; }
.article__image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article__image-credit { padding: var(--apm-space-sm) var(--apm-space-md); font-size: 0.75rem; color: var(--apm-text-muted); background: var(--apm-bg-alt); }

/* ── KEY FACTS BOX ─────────────────────────────────────────── */
.key-facts { background: var(--apm-primary-bg); border: 1px solid rgba(15,118,110,0.15); border-radius: var(--apm-radius-lg); padding: var(--apm-space-lg); margin-bottom: var(--apm-space-2xl); }
.article .key-facts__title,
.key-facts .key-facts__title { font-size: var(--apm-text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--apm-accent-dark); margin: 0 0 var(--apm-space-md) 0; padding: 0; border: none; }
.article .key-facts__title::before,
.key-facts .key-facts__title::before { display: none; }
.key-facts__list { display: grid; grid-template-columns: auto 1fr; gap: var(--apm-space-sm) var(--apm-space-lg); }
.key-facts__list dt { font-weight: 600; color: var(--apm-text); font-size: var(--apm-text-sm); }
.key-facts__list dd { color: var(--apm-text-light); font-size: var(--apm-text-sm); }

/* ── TOC ───────────────────────────────────────────────────── */
.toc { background: var(--apm-bg-alt); border: 1px solid var(--apm-border); border-radius: var(--apm-radius-lg); padding: var(--apm-space-lg); margin-bottom: var(--apm-space-2xl); }
.toc__title { font-size: var(--apm-text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--apm-text-muted); margin-bottom: var(--apm-space-md); }
.toc ol { list-style: none; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: var(--apm-space-sm); }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--apm-font-mono); font-size: var(--apm-text-sm); font-weight: 500; color: var(--apm-accent-dark); margin-right: var(--apm-space-sm); }
.toc a { font-size: var(--apm-text-sm); font-weight: 500; color: var(--apm-text-light); }
.toc a:hover { color: var(--apm-primary); }

/* ── AD SLOTS ──────────────────────────────────────────────── */
.ad-slot { background: var(--apm-bg-alt); border: 1px dashed var(--apm-border); border-radius: var(--apm-radius); display: flex; align-items: center; justify-content: center; color: var(--apm-text-muted); font-size: var(--apm-text-sm); margin: var(--apm-space-xl) 0; overflow: hidden; }
.ad-slot--responsive { height: 120px; }
.ad-slot--sidebar { height: 250px; }
.ad-slot--leaderboard { height: 90px; }
.ad-slot--mid { height: 120px; margin: var(--apm-space-2xl) 0; }

/* ── TABELLEN (Tool-Vergleiche) ───────────────────────────── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--apm-space-xl) 0; border: 1px solid var(--apm-border); border-radius: var(--apm-radius-lg); position: relative; }
.table-responsive__hint { display: none; text-align: center; font-size: var(--apm-text-sm); color: var(--apm-text-muted); padding: var(--apm-space-sm) 0; background: var(--apm-bg-alt); border-bottom: 1px solid var(--apm-border); }
.table-responsive__hint svg { vertical-align: middle; margin: 0 var(--apm-space-xs); }
@media (max-width: 768px) {
    .table-responsive__hint { display: block; }
}
@keyframes swipe-hint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}
.table-responsive__hint .swipe-arrow { display: inline-block; animation: swipe-hint 1.5s ease-in-out infinite; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: var(--apm-text-sm); }
.comparison-table th, .comparison-table td { padding: var(--apm-space-sm) var(--apm-space-md); text-align: left; border-bottom: 1px solid var(--apm-border); }
.comparison-table th { background: var(--apm-bg-alt); font-weight: 600; color: var(--apm-text); position: sticky; top: 0; }
.comparison-table td:first-child { font-weight: 500; }

/* ── SIDEBAR ───────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: var(--apm-space-xl); }
.sidebar-nav { background: var(--apm-bg); border: 1px solid var(--apm-border); border-radius: var(--apm-radius-lg); overflow: hidden; }
.sidebar-nav__title { font-size: var(--apm-text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--apm-text-muted); padding: var(--apm-space-lg) var(--apm-space-lg) var(--apm-space-sm); }
.sidebar-nav__link { display: block; padding: var(--apm-space-sm) var(--apm-space-lg); font-size: var(--apm-text-sm); font-weight: 500; color: var(--apm-text-light); border-left: 3px solid transparent; transition: all var(--apm-transition); }
.sidebar-nav__link:hover { background: var(--apm-primary-bg); color: var(--apm-primary); border-left-color: var(--apm-primary); }
.sidebar-nav__link--active { background: var(--apm-accent-bg); color: var(--apm-accent-dark); border-left-color: var(--apm-accent); font-weight: 600; }
.sidebar-nav__link--sub { padding-left: calc(var(--apm-space-lg) + var(--apm-space-md)); font-weight: 400; }
.sidebar-nav__link--open { color: var(--apm-primary); font-weight: 600; }
.sidebar-nav__toggle { float: right; font-size: 0.85em; color: var(--apm-text-muted); line-height: 1; }
.sidebar-nav__children { border-left: 2px solid var(--apm-accent-bg); margin-left: var(--apm-space-lg); }
.sidebar-nav__children .sidebar-nav__link--sub { padding-left: var(--apm-space-lg); font-size: 0.85rem; }

/* Book Card */
.book-card { background: var(--apm-bg); border: 1px solid var(--apm-border); border-radius: var(--apm-radius-lg); padding: var(--apm-space-lg); }
.book-card__label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--apm-accent); margin-bottom: var(--apm-space-sm); }
.book-card__title { font-size: var(--apm-text-sm); font-weight: 600; margin-bottom: var(--apm-space-xs); }
.book-card__author { font-size: var(--apm-text-sm); color: var(--apm-text-muted); margin-bottom: var(--apm-space-md); }
.book-card__link { display: inline-flex; align-items: center; gap: var(--apm-space-xs); font-size: var(--apm-text-sm); font-weight: 600; color: var(--apm-accent); }
.book-card__link:hover { color: #d97706; }

/* ── TOPIC CARDS ───────────────────────────────────────────── */
.topics__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--apm-space-lg); margin-top: var(--apm-space-xl); }
.topics__grid--compact { margin-top: var(--apm-space-lg); margin-bottom: var(--apm-space-xl); }
.topics__grid--compact .topic-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hub-cards__intro { color: var(--apm-text-muted); font-size: var(--apm-text-sm); margin-top: var(--apm-space-2xl); margin-bottom: 0; }
.hub-cards__bridge { color: var(--apm-text-light); font-size: var(--apm-text-base); margin-top: var(--apm-space-2xl); margin-bottom: 0; padding-left: var(--apm-space-md); border-left: 3px solid var(--apm-accent); }

/* Hub: Kompakte Link-Liste für restliche Spokes */
.hub-links { display: flex; flex-direction: column; gap: 1px; background: var(--apm-border); border-radius: var(--apm-radius-lg); overflow: hidden; margin-top: var(--apm-space-lg); }
.hub-links__item { display: flex; align-items: center; gap: var(--apm-space-md); padding: var(--apm-space-md) var(--apm-space-lg); background: var(--apm-bg); text-decoration: none; transition: background var(--apm-transition); }
.hub-links__item:hover { background: var(--apm-primary-bg); }
.hub-links__title { font-weight: 600; font-size: var(--apm-text-sm); color: var(--apm-text); white-space: nowrap; }
.hub-links__desc { font-size: var(--apm-text-sm); color: var(--apm-text-muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-links__arrow { color: var(--apm-accent); font-weight: 600; flex-shrink: 0; }
@media (max-width: 600px) {
    .hub-links__desc { display: none; }
}
.topic-card { background: var(--apm-bg); border: 1px solid var(--apm-border); border-radius: var(--apm-radius-lg); padding: var(--apm-space-xl); transition: all 0.3s ease; text-decoration: none; display: flex; flex-direction: column; }
.topic-card:hover { border-color: var(--apm-accent-light); box-shadow: 0 4px 16px rgba(245,158,11,0.12); transform: translateY(-2px); }
.topic-card__icon { width: 44px; height: 44px; background: var(--apm-primary-bg); border-radius: var(--apm-radius); display: flex; align-items: center; justify-content: center; margin-bottom: var(--apm-space-md); color: var(--apm-primary); }
.topic-card__icon svg { width: 22px; height: 22px; }
.topic-card__title { font-size: var(--apm-text-base); font-weight: 600; color: var(--apm-text); margin-bottom: var(--apm-space-sm); }
.topic-card__desc { font-size: var(--apm-text-sm); color: var(--apm-text-muted); line-height: 1.6; }
.topic-card__arrow { display: inline-flex; align-items: center; gap: var(--apm-space-xs); font-size: var(--apm-text-sm); font-weight: 600; color: var(--apm-accent-dark); margin-top: auto; padding-top: var(--apm-space-md); text-align: right; margin-left: auto; }

/* ── SCRUM FLOW ────────────────────────────────────────────── */
.scrum-flow__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--apm-space-lg); position: relative; margin-top: var(--apm-space-xl); }
.scrum-flow__steps::before { content: ''; position: absolute; top: 36px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--apm-accent-bg), var(--apm-accent-light), var(--apm-accent-bg)); }
.flow-step { text-align: center; position: relative; z-index: 1; }
.flow-step__number { width: 72px; height: 72px; border-radius: 50%; background: white; border: 2.5px solid var(--apm-accent); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--apm-space-md); font-family: var(--apm-font-mono); font-weight: 700; font-size: var(--apm-text-xl); color: var(--apm-accent-dark); box-shadow: 0 2px 8px rgba(245,158,11,0.15); }
.flow-step__title { font-weight: 600; margin-bottom: var(--apm-space-xs); }
.flow-step__desc { font-size: var(--apm-text-sm); color: var(--apm-text-muted); }
.scrum-highlight__cta { text-align: center; margin-top: var(--apm-space-2xl); }

/* ── CTA ───────────────────────────────────────────────────── */
.cta-section { background: var(--apm-bg-dark); padding: var(--apm-space-3xl) 0; text-align: center; }
.cta-section h2 { color: white; margin-bottom: var(--apm-space-md); }
.cta-section p { color: var(--apm-text-muted); margin-bottom: var(--apm-space-xl); max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-box { background: var(--apm-primary-bg); border-radius: var(--apm-radius-lg); padding: var(--apm-space-2xl); text-align: center; }
.cta-box h2 { margin-bottom: var(--apm-space-md); }

/* Homepage: Intro-Grid */
.home-intro__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--apm-space-xl); margin-top: var(--apm-space-xl); }
.home-intro__item h3 { font-size: var(--apm-text-base); color: var(--apm-primary); margin-bottom: var(--apm-space-sm); }
.home-intro__item h3 a { color: var(--apm-primary); text-decoration: none; }
.home-intro__item h3 a:hover { color: var(--apm-accent); }
.home-intro__item p { font-size: var(--apm-text-sm); color: var(--apm-text-light); }

/* Homepage: Einstiegspfade */
.home-paths { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--apm-space-lg); margin-top: var(--apm-space-xl); }
.home-path { background: var(--apm-bg); border: 1px solid var(--apm-border); border-radius: var(--apm-radius-lg); padding: var(--apm-space-lg); text-decoration: none; display: flex; flex-direction: column; position: relative; transition: all 0.3s ease; }
.home-path:hover { border-color: var(--apm-accent-light); box-shadow: 0 4px 16px rgba(245,158,11,0.12); transform: translateY(-2px); }
.home-path__label { font-size: var(--apm-text-sm); font-weight: 600; color: var(--apm-accent); margin-bottom: var(--apm-space-sm); }
.home-path p { font-size: var(--apm-text-sm); color: var(--apm-text-light); margin: 0; flex: 1; }
.home-path__arrow { position: absolute; bottom: var(--apm-space-md); right: var(--apm-space-lg); font-size: 1.2rem; font-weight: 700; color: var(--apm-accent); opacity: 0.5; transition: opacity 0.3s ease; }
.home-path:hover .home-path__arrow { opacity: 1; }
.cta-box p { color: var(--apm-text-light); margin-bottom: var(--apm-space-xl); max-width: 500px; margin: 0 auto var(--apm-space-xl); }

/* ── NEXT ARTICLES ─────────────────────────────────────────── */
.next-articles { margin-top: var(--apm-space-3xl); padding-top: var(--apm-space-2xl); border-top: 1px solid var(--apm-border); }
.next-articles__title { font-size: var(--apm-text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--apm-accent-dark); margin-bottom: var(--apm-space-sm); }
.next-articles__bridge { font-size: var(--apm-text-base); color: var(--apm-text-light); margin-bottom: var(--apm-space-lg); }
.next-articles__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--apm-space-md); }
.next-article-card { display: block; padding: var(--apm-space-lg); background: var(--apm-bg-alt); border: 1px solid var(--apm-border); border-radius: var(--apm-radius-lg); transition: all 0.3s ease; }
.next-article-card:hover { border-color: var(--apm-accent-light); box-shadow: 0 2px 8px rgba(245,158,11,0.1); }
.next-article-card__label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--apm-text-muted); }
.next-article-card__title { font-weight: 600; color: var(--apm-text); margin-top: var(--apm-space-xs); }

/* ── GLOSSARY ──────────────────────────────────────────────── */
.glossary__letter { margin-top: var(--apm-space-2xl); margin-bottom: var(--apm-space-md); font-size: var(--apm-text-2xl); color: var(--apm-accent-dark); border-bottom: 2px solid var(--apm-accent-bg); padding-bottom: var(--apm-space-sm); }
.glossary__entry { padding: var(--apm-space-md) 0; border-bottom: 1px solid var(--apm-border); display: flex; align-items: flex-end; flex-wrap: wrap; gap: var(--apm-space-sm) var(--apm-space-lg); }
.glossary__term { font-size: var(--apm-text-lg); margin-bottom: var(--apm-space-xs); }
.glossary__definition { color: var(--apm-text-light); font-size: var(--apm-text-sm); flex: 1; min-width: 200px; }
.glossary__more { font-size: var(--apm-text-sm); font-weight: 600; margin-left: auto; white-space: nowrap; text-align: right; flex-shrink: 0; align-self: flex-end; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: var(--apm-space-sm); padding: 0.75rem 1.5rem; font-family: var(--apm-font); font-size: var(--apm-text-sm); font-weight: 600; border-radius: var(--apm-radius); border: none; cursor: pointer; transition: all var(--apm-transition); text-decoration: none; }
.btn--primary { background: var(--apm-primary); color: white; }
.btn--primary:hover { background: var(--apm-primary-dark); color: white; }
.btn--ghost { background: transparent; color: var(--apm-primary); border: 1px solid var(--apm-border); }
.btn--ghost:hover { border-color: var(--apm-primary); background: var(--apm-primary-bg); }

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer { background: var(--apm-bg-dark); color: #94a3b8; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--apm-space-3xl); padding: var(--apm-space-3xl) 0; }
.site-footer__logo { display: block; color: white; font-size: var(--apm-text-lg); font-weight: 700; margin-bottom: var(--apm-space-md); }
.site-footer__brand p { font-size: var(--apm-text-sm); line-height: 1.7; margin-bottom: var(--apm-space-sm); }
.site-footer__operator { font-size: var(--apm-text-sm); color: #64748b; }
.site-footer__operator a { color: var(--apm-primary-light); }
.site-footer h4 { color: white; font-size: var(--apm-text-sm); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--apm-space-lg); }
.site-footer__nav a { display: block; font-size: var(--apm-text-sm); color: #94a3b8; padding: var(--apm-space-xs) 0; transition: color var(--apm-transition); }
.site-footer__nav a:hover { color: white; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: var(--apm-space-lg) 0; display: flex; justify-content: space-between; align-items: center; font-size: var(--apm-text-sm); flex-wrap: wrap; gap: var(--apm-space-md); }
.site-footer__legal { display: flex; gap: var(--apm-space-lg); align-items: center; }
.site-footer__legal a { color: #94a3b8; }
.site-footer__legal a:hover { color: white; }
.site-footer__cookie-settings { background: none; border: none; color: #94a3b8; font-size: var(--apm-text-sm); cursor: pointer; font-family: var(--apm-font); padding: 0; }
.site-footer__cookie-settings:hover { color: white; }

/* ── COOKIE CONSENT ────────────────────────────────────────── */
.cookie-consent { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--apm-bg-dark); box-shadow: 0 -4px 20px rgba(0,0,0,0.15); transform: translateY(100%); transition: transform 0.3s ease; }
.cookie-consent.is-visible { transform: translateY(0); }
.cookie-consent__inner { max-width: var(--apm-container); margin: 0 auto; padding: var(--apm-space-lg); display: flex; align-items: center; justify-content: center; gap: var(--apm-space-xl); flex-wrap: wrap; }
.cookie-consent__text { color: #cbd5e1; font-size: var(--apm-text-sm); flex: 1; min-width: 280px; }
.cookie-consent__text a { color: var(--apm-primary-light); text-decoration: underline; }
.cookie-consent__actions { display: flex; gap: var(--apm-space-md); flex-shrink: 0; }

/* ── SCROLL TOP ────────────────────────────────────────────── */
.scroll-top { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; width: 44px; height: 44px; background: var(--apm-bg); border: 1px solid var(--apm-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--apm-text-light); box-shadow: var(--apm-shadow-md); transition: all var(--apm-transition); opacity: 0; pointer-events: none; }
.scroll-top[hidden] { display: none; }
.scroll-top.is-visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { color: var(--apm-accent-dark); border-color: var(--apm-accent); background: var(--apm-accent-bg); }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { order: 1; } /* NACH dem Artikel */
    .scrum-flow__steps { grid-template-columns: repeat(2, 1fr); }
    .scrum-flow__steps::before { display: none; }
}
@media (max-width: 1024px) {
    /* Fix #4: Sidebar Touch-Targets */
    .sidebar-nav__link {
        padding: var(--apm-space-md) var(--apm-space-lg);
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}
@media (max-width: 768px) {
    .site-nav__list { display: none; }
    .nav-toggle { display: block; }
    .hero { padding: var(--apm-space-2xl) 0; }
    .site-footer__grid { grid-template-columns: 1fr; gap: var(--apm-space-xl); }
    .site-footer__bottom { flex-direction: column; text-align: center; }
    .topics__grid { grid-template-columns: 1fr; }
    .scrum-flow__steps { grid-template-columns: 1fr; }
    .next-articles__grid { grid-template-columns: 1fr; }
    .cookie-consent__inner { flex-direction: column; text-align: center; }

    /* Fix #4: Mobile-Nav Touch-Targets */
    .mobile-nav__link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .mobile-nav__toggle {
        min-height: 44px;
    }

    /* Fix #5: Hero Updated-Datum statisch statt absolut */
    .page-hero__updated {
        position: static;
        display: block;
        margin-top: var(--apm-space-md);
    }
    .page-hero {
        padding-bottom: var(--apm-space-2xl);
    }

    /* Fix #6: Cookie-Banner Buttons stacken */
    .cookie-consent__actions {
        flex-direction: column;
        width: 100%;
        gap: var(--apm-space-sm);
    }
    .cookie-consent__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Fix #8: Glossar Touch-Targets */
    .glossary__entry {
        flex-direction: column;
        gap: var(--apm-space-sm);
        padding: var(--apm-space-lg) 0;
    }
    .glossary__more {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        margin-left: 0;
    }

    /* Fix #11: Footer-Nav Touch-Targets */
    .site-footer__nav a {
        padding: var(--apm-space-sm) 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Fix #9: Desktop-Dropdown touch-fähig */
.site-nav__item--dropdown.is-dropdown-open .site-nav__dropdown {
    display: block;
}

/* Fix #10: Key-Facts einspaltisch auf schmalen Viewports */
@media (max-width: 480px) {
    .key-facts__list {
        grid-template-columns: 1fr;
    }
    .key-facts__list dt {
        margin-top: var(--apm-space-sm);
        color: var(--apm-accent-dark);
    }
    .key-facts__list dd {
        padding-bottom: var(--apm-space-sm);
        border-bottom: 1px solid rgba(15,118,110,0.1);
    }
}

/* Fix #12: Breadcrumbs Trunkierung auf schmalen Viewports */
@media (max-width: 480px) {
    .breadcrumbs__item:last-child span {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }
}

/* Fix #13: Hub-Links Spacing nach desc-hide */
@media (max-width: 600px) {
    .hub-links__item {
        justify-content: space-between;
    }
}
