/*
Theme Name: CMS Phinit
Description: IT-Profi Theme inspiriert von phinit.de – Deep Navy, Gold-Akzente, professionelles Editorial-Layout für technische Blogs & Wissensseiten.
Version: 1.0.0
Author: PHINIT.DE / Andreas Hepp
Author URI: https://phinit.de
Tags: it, tech, editorial, blog, dark-mode, responsive, professional
*/

/* ═══════════════════════════════════════════════════════════════════════════
   1. CUSTOM PROPERTIES & DESIGN TOKENS
═══════════════════════════════════════════════════════════════════════════ */
:root {
    /* — Brand Colors — */
    --primary-color:     #1e3a5f;
    --primary-dark:      #0f2240;
    --primary-light:     #2d547a;
    --accent-color:      #e8a838;
    --accent-hover:      #d4922a;
    --accent-teal:       #0d9488;
    --accent-teal-light: #14b8a6;

    /* — Semantic — */
    --bg-primary:     #ffffff;
    --bg-secondary:   #f1f5f9;
    --bg-tertiary:    #e8eef5;
    --bg-dark:        #0a0f1a;
    --bg-dark-2:      #111827;
    --bg-dark-3:      #162030;

    --text-primary:   #1e293b;
    --text-secondary: #334155;
    --text-muted:     #64748b;
    --text-light:     #94a3b8;
    --text-white:     #f8fafc;

    --border-color:   #e2e8f0;
    --border-dark:    #1e2d3d;

    /* — Fluid Typography — */
    --fs-h1: clamp(1.75rem, 4vw, 2.75rem);
    --fs-h2: clamp(1.4rem,  3vw, 2rem);
    --fs-h3: clamp(1.15rem, 2.5vw, 1.5rem);
    --fs-h4: 1.15rem;
    --fs-body: 1rem;
    --fs-sm:  0.875rem;
    --fs-xs:  0.78rem;

    /* — Layout — */
    --container-max:  1200px;
    --sidebar-width:  300px;
    --header-h:       56px;
    --quicklinks-h:   38px;
    --spacing-header-content: 25px;
    --spacing-content-footer: 25px;
    --spacing-sections: 40px;
    --content-gap:    28px;

    /* — UI — */
    --radius-sm:  4px;
    --radius:     8px;
    --radius-lg:  14px;
    --radius-xl:  20px;
    --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
    --shadow:     0 4px 14px rgba(0,0,0,.09);
    --shadow-lg:  0 8px 28px rgba(0,0,0,.14);
    --transition: all 0.25s cubic-bezier(.4,0,.2,1);
    --transition-fast: all 0.15s ease;

    /* — Z-Index Scale — */
    --z-header:  1000;
    --z-mobile:  1100;
    --z-overlay: 1200;
    --z-tooltip: 1300;
}

/* — Dark Mode — */
body.dark-mode {
    --bg-primary:    #1a2332;
    --bg-secondary:  #111827;
    --bg-tertiary:   #1e2d3d;
    --text-primary:  #e2e8f0;
    --text-secondary:#cbd5e1;
    --text-muted:    #94a3b8;
    --border-color:  #2a3a4d;
}
body.dark-mode .article-card,
body.dark-mode .post-card,
body.dark-mode .feed-card,
body.dark-mode .info-card,
body.dark-mode .toc,
body.dark-mode .comment-form-wrap { background: var(--bg-dark-3); border-color: var(--border-dark); }
body.dark-mode .article-card:hover,
body.dark-mode .post-card:hover { background: #1e2d3d; }
body.dark-mode .quicklinks-bar  { background: #0d1420; border-top-color: #1e2d3d; }
body.dark-mode .quicklinks-bar a{ color: #94a3b8; }

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

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

body {
    font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Dark side margins – Vignette-Effekt links/rechts */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(90deg,
        rgba(10,15,26,.08) 0%,
        transparent 8%,
        transparent 92%,
        rgba(10,15,26,.08) 100%
    );
}
.page-wrap, .site-header, .site-footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-teal); }
img { max-width: 100%; display: block; object-fit: cover; }

/* ═══════════════════════════════════════════════════════════════════════════
   3. LAYOUT HELPERS
═══════════════════════════════════════════════════════════════════════════ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.page-wrap {
    padding-top: calc(var(--header-h) + var(--quicklinks-h) + var(--member-bar-h, 0px) + var(--spacing-header-content));
    padding-bottom: var(--spacing-content-footer);
    min-height: calc(100vh - 280px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. READING PROGRESS BAR
═══════════════════════════════════════════════════════════════════════════ */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-color));
    z-index: calc(var(--z-header) + 100);
    transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. STICKY HEADER (2 Ebenen)
═══════════════════════════════════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--z-header);
    background: var(--bg-header1, var(--primary-color));
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.hdr-bar   { width: 100%; display: flex; justify-content: center; }
.hdr-inner { width: 100%; max-width: var(--container-max); padding: 0 20px; display: flex; align-items: center; }
.hdr-util  { height: 36px; justify-content: space-between; }

/* Utility-Bar (Bar 1): Nur auf Beitragsseiten sichtbar */
/* ── Member-Bar (Bar 1, nur für eingeloggte User) ──────────────────────── */
.member-bar {
    background: var(--bg-header1, var(--primary-color));
    min-height: var(--member-bar-h, 36px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.hdr-member {
    height: var(--member-bar-h, 36px);
    justify-content: space-between; gap: 12px;
}
.member-bar__greeting {
    font-size: .78rem; color: rgba(255,255,255,.7);
    white-space: nowrap; flex-shrink: 0;
}
.member-bar__greeting strong { color: rgba(255,255,255,.95); font-weight: 600; }
.member-bar__nav {
    display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center;
    overflow-x: auto; scrollbar-width: none;
}
.member-bar__nav::-webkit-scrollbar { display: none; }
.member-bar__link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; font-size: .76rem; color: var(--text-nav-member, rgba(255,255,255,.72));
    border-radius: var(--radius-sm); white-space: nowrap;
    transition: var(--transition-fast); text-decoration: none;
}
.member-bar__link:hover { background: rgba(255,255,255,.1); color: #fff; }
.member-bar__icon { font-size: .82rem; line-height: 1; }
.member-bar__actions {
    display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.member-bar__logout { color: rgba(239,68,68,.8); }
.member-bar__logout:hover { background: rgba(239,68,68,.15); color: #ef4444; }

/* Header-Tools (rechts in Bar 2 – Suche, Dark Mode, Account, Burger) */
.hdr-bar-main .hdr-inner { justify-content: space-between; }
.hdr-tools {
    display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto;
}
.hdr-tools .util-link {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    color: rgba(255,255,255,.75); font-size: 1rem; transition: var(--transition-fast);
    background: transparent; border: none; cursor: pointer; text-decoration: none;
}
.hdr-tools .util-link:hover { background: rgba(255,255,255,.1); color: #fff; }

.site-logo {
    display: flex; align-items: center; gap: 10px;
    color: #fff; font-size: 1.35rem; font-weight: 800;
    letter-spacing: -0.5px; text-decoration: none;
}
.site-logo .logo-icon {
    width: 34px; height: 34px;
    background: var(--logo-accent, var(--accent-teal)); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 900; color: #fff; flex-shrink: 0;
}
.site-logo .logo-text { color: #fff; }
.site-logo .logo-accent { color: var(--logo-accent, var(--accent-teal-light)); }
.site-logo .logo-suffix { color: var(--logo-suffix-color, var(--accent-color)); font-weight: 900; }
.site-logo img { height: auto; max-height: 36px; object-fit: contain; }
.site-logo .logo-text-beside {
    font-size: 1.2rem; font-weight: 800; letter-spacing: -0.5px;
    color: var(--accent-teal-light); white-space: nowrap;
}

.hdr-search {
    display: flex; align-items: center;
    background: rgba(0,0,0,.25); border-radius: var(--radius-sm);
    overflow: hidden; transition: var(--transition); flex: 0 0 auto;
}
.hdr-search input {
    background: transparent; border: none; padding: 6px 12px;
    color: #fff; font-size: var(--fs-sm); width: 170px; outline: none;
    transition: width 0.3s ease;
}
.hdr-search input::placeholder { color: rgba(255,255,255,.5); }
.hdr-search input:focus         { width: 220px; }
.hdr-search button {
    background: transparent; border: none; padding: 6px 10px;
    color: rgba(255,255,255,.75); cursor: pointer; font-size: .9rem;
    transition: var(--transition-fast);
}
.hdr-search button:hover { color: #fff; }

/* Hauptnavigation */
.hdr-bar-main { display: flex; background: var(--bg-header2, var(--primary-dark)); border-top: 1px solid rgba(255,255,255,.06); min-height: var(--header-h); }
.main-nav { display: flex; align-items: center; height: 100%; flex: 1; margin-left: 28px; }
.main-nav a {
    display: flex; align-items: center; height: 100%; padding: 0 16px;
    color: var(--text-nav, rgba(255,255,255,.82)); font-size: var(--fs-sm); font-weight: var(--fw-nav, 500);
    white-space: nowrap; position: relative; transition: var(--transition-fast);
}
.main-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
    height: 2px; background: var(--accent-teal); transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { left: 0; right: 0; }

/* Dropdown */
.main-nav .has-dropdown { position: relative; }
.main-nav .dropdown {
    position: absolute; top: 100%; left: 0;
    background: var(--primary-color); min-width: 200px;
    border-top: 2px solid var(--accent-teal);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: var(--transition); z-index: 10;
}
.main-nav .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
.main-nav .dropdown a {
    display: block; height: auto; padding: 9px 16px;
    font-size: var(--fs-sm); border-bottom: 1px solid rgba(255,255,255,.05);
}
.main-nav .dropdown a::after { display: none; }

/* Quicklinks */
.quicklinks-bar {
    background: var(--bg-header3, #dee4ec); border-top: 1px solid #c8d0dc;
    height: var(--quicklinks-h); display: flex; justify-content: center; align-items: center;
}

.hdr-sub { height: var(--quicklinks-h); align-items: center; }
.sub-nav  { display: flex; gap: 0; height: 100%; }
.sub-nav a {
    display: flex; align-items: center; height: 100%; padding: 0 12px;
    color: var(--text-nav-quicklinks, var(--text-secondary)); font-size: var(--fs-xs); font-weight: 500;
    border-right: 1px solid rgba(0,0,0,.06); transition: var(--transition-fast);
}
.sub-nav a:hover    { background: rgba(0,0,0,.04); color: var(--primary-color); }
.sub-nav a:first-child { padding-left: 0; }

/* Burger */
.burger-btn {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; width: 36px; height: 36px; cursor: pointer;
    background: rgba(255,255,255,.08); border: none;
    border-radius: var(--radius-sm); padding: 8px 7px; margin-left: 8px;
}
.burger-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--primary-dark); border-top: 2px solid var(--accent-teal);
    box-shadow: var(--shadow-lg); z-index: var(--z-mobile);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block; padding: 13px 20px;
    color: rgba(255,255,255,.85); font-size: var(--fs-sm);
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.mobile-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.mobile-menu .mob-search { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.05); }
.mobile-menu .mob-search input {
    width: 100%; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-sm); padding: 8px 12px; color: #fff;
    font-size: var(--fs-sm); outline: none;
}

.site-header.scrolled { box-shadow: 0 3px 20px rgba(0,0,0,.4); }

/* ═══════════════════════════════════════════════════════════════════════════
   6. BUTTONS
═══════════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: var(--radius-sm);
    font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
    border: 2px solid transparent; transition: var(--transition-fast);
    white-space: nowrap; text-decoration: none; line-height: 1.4;
}
.btn-primary   { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-accent    { background: var(--accent-color); color: #1a1a1a; border-color: var(--accent-color); }
.btn-accent:hover  { background: var(--accent-hover); border-color: var(--accent-hover); color: #1a1a1a; }
.btn-outline   { background: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: #fff; }
.btn-ghost     { background: transparent; color: var(--text-muted); border-color: var(--border-color); }
.btn-ghost:hover   { border-color: var(--accent-teal); color: var(--accent-teal); }
.btn-sm { padding: 5px 12px; font-size: var(--fs-xs); }
.btn-lg { padding: 12px 28px; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   7. BADGES
═══════════════════════════════════════════════════════════════════════════ */
.badge {
    display: inline-block; padding: 2px 9px; border-radius: 20px;
    font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
    letter-spacing: .4px; line-height: 1.7;
}
.badge-primary { background: var(--primary-color); color: #fff; }
.badge-accent  { background: var(--accent-color);  color: #1a1a1a; }
.badge-teal    { background: var(--accent-teal);   color: #fff; }
.badge-success { background: #16a34a; color: #fff; }
.badge-danger  { background: #dc2626; color: #fff; }
.badge-neutral { background: #e2e8f0; color: #475569; }
.badge-dark    { background: #1e293b; color: #94a3b8; }

/* ═══════════════════════════════════════════════════════════════════════════
   8. FEATURED / HORIZONTAL ARTICLE CARD
═══════════════════════════════════════════════════════════════════════════ */
.article-list { display: flex; flex-direction: column; gap: 0; }

.article-card {
    display: flex; background: var(--bg-primary); align-items: flex-start;
    border-bottom: 1px solid var(--border-color); transition: var(--transition);
    padding: 10px;
    gap: 14px;
}
.article-card:last-child  { border-bottom: none; }
.article-card:hover       { background: var(--bg-secondary); }
.article-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.article-card:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
.article-card:only-child  { border-radius: var(--radius); }

.article-thumb { flex: 0 0 215px; width: 215px; height: 161px; overflow: hidden; position: relative; flex-shrink: 0; border-radius: 6px; }
.article-thumb img { width: 215px; height: 161px; object-fit: cover; object-position: center; border-radius: 6px; transition: transform 0.4s ease, opacity 0.3s ease; }
.article-thumb-placeholder { width: 215px; height: 161px; }
.article-card:hover .article-thumb img { transform: scale(1.04); opacity: .9; }
.article-thumb-placeholder {
    width: 100%; height: 100%; min-height: 120px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--border-color) 100%);
    display: flex; align-items: center; justify-content: center;
}
.article-thumb-placeholder span { font-size: 2.2rem; opacity: .45; }

.thumb-badge {
    position: absolute; top: 7px; right: 7px; z-index: 2;
    width: fit-content; width: -moz-fit-content;
    font-size: 10px; font-weight: 700; padding: 3px 9px;
    border-radius: 4px; text-transform: uppercase; letter-spacing: .5px;
    white-space: nowrap;
}
.badge-teal {
    background: rgba(20, 120, 110, 0.72);
    color: #fff;
    backdrop-filter: blur(2px);
}
.thumb-badge.badge-teal {
    background: var(--accent-teal) !important;
    color: #fff !important;
    box-shadow: 0 1px 5px rgba(0,0,0,.3);
}

.article-body {
    flex: 1; padding: 4px 6px 4px 0; display: flex;
    flex-direction: column; gap: 6px;
}
.article-body h4 {
    font-size: 1rem; font-weight: 700; color: var(--text-primary);
    line-height: 1.4; transition: color 0.2s;
}
.article-card:hover .article-body h4 { color: var(--accent-teal); }
.article-body p {
    font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55;
}
.article-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: var(--fs-xs); color: var(--text-light);
    margin-top: auto; padding-top: 6px;
}
.article-meta .cat  { color: var(--accent-teal); font-weight: 600; margin-right: 4px; }
.article-meta .read { opacity: .8; }
.article-meta .read::before { content: '·'; margin-right: 5px; opacity: .5; }
.article-meta__more {
    margin-left: auto; white-space: nowrap;
    color: var(--accent-teal); font-weight: 600;
    text-decoration: none; transition: color .15s;
    font-size: var(--fs-xs);
}
.article-meta__more:hover { color: var(--accent-teal-light); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   9. GRID POST CARDS (vertikal, 3-spaltig)
═══════════════════════════════════════════════════════════════════════════ */
.posts-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.post-card {
    background: var(--bg-primary); border-radius: var(--radius);
    border: 1px solid var(--border-color); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--transition);
    display: flex; flex-direction: column; min-height: 395px;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card-thumb { overflow: hidden; height: 160px; background: var(--bg-tertiary); position: relative; display: block; flex-shrink: 0; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.4s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.06); }
.post-card-badge {
    position: absolute; top: 8px; left: 8px;
    background: var(--accent-teal); color: #fff;
    font-size: .68rem; font-weight: 600; padding: 2px 8px;
    border-radius: var(--radius-sm); letter-spacing: 0.3px;
    text-transform: uppercase; z-index: 2; line-height: 1.5;
}
.post-card-body {
    padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; min-height: 140px;
}
.post-card-title {
    font-size: .92rem; font-weight: 700; line-height: 1.4;
    color: var(--text-primary); transition: color 0.2s;
}
.post-card:hover .post-card-title { color: var(--accent-teal); }
.post-card-excerpt {
    font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.posts-grid--cols-3 .post-card-excerpt { -webkit-line-clamp: 2; line-clamp: 2; }
.posts-grid--cols-4 .post-card-excerpt { -webkit-line-clamp: 1; line-clamp: 1; }
.post-card-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: var(--fs-xs); color: var(--text-light);
    padding-top: 8px; border-top: 1px solid var(--border-color); margin-top: auto;
}
.post-card-meta__left { display: flex; align-items: center; gap: 6px; }
.post-card-meta .cat { color: var(--accent-teal); font-weight: 600; }
.post-card-meta__more {
    white-space: nowrap; color: var(--accent-teal); font-weight: 600;
    text-decoration: none; font-size: var(--fs-xs); transition: color .15s;
    flex-shrink: 0; margin-left: 8px;
}
.post-card-meta__more:hover { color: var(--accent-teal-light); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   10. INFO-CARDS (2-spaltig)
═══════════════════════════════════════════════════════════════════════════ */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card {
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-teal);
    border-radius: var(--radius); padding: 22px 24px;
    box-shadow: var(--shadow-sm); transition: var(--transition);
    display: flex; flex-direction: column;
}
.info-card:hover { box-shadow: var(--shadow); }
.info-card--gold { border-top-color: var(--accent-color); }
.info-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.info-card p  { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; flex: 1; }
.info-card-cta {
    display: block; width: 100%; text-align: center; margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. SECTION HEADERS
═══════════════════════════════════════════════════════════════════════════ */
.section-label {
    display: flex; align-items: center; flex: 1; gap: 8px;
    font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; color: var(--primary-color);
    background: var(--bg-primary); border-left: 3px solid var(--accent-teal);
    padding: 6px 14px 6px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 0;
}
.section-label.gold { border-left-color: var(--accent-color); }
.section-label--dark {
    background: var(--primary-color); color: #fff;
    border-left: none; border-radius: var(--radius-sm);
    padding: 6px 16px;
}
.section-header {
    display: flex; align-items: stretch; justify-content: space-between; margin-bottom: 14px;
}
.section-header > a {
    display: flex; align-items: center;
    padding: 0 0 0 14px; white-space: nowrap;
}
.section-header a { font-size: var(--fs-xs); color: var(--accent-teal); font-weight: 600; transition: var(--transition-fast); }
.section-header a:hover { color: var(--accent-teal-light); }
.content-section { margin-bottom: var(--spacing-sections, 40px); }

/* ═══════════════════════════════════════════════════════════════════════════
   11c. HOMEPAGE ARTIKEL-LISTE + SIDEBAR
═══════════════════════════════════════════════════════════════════════════ */
.homepage-list-with-sidebar {
    display: flex; gap: 18px; align-items: flex-start;
}
.homepage-list-main { flex: 1; min-width: 0; }
.homepage-list-sidebar {
    flex: 0 0 var(--hp-sidebar-w, 270px);
    width: var(--hp-sidebar-w, 270px);
    min-width: 0;
    align-self: stretch;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
/* MOBILE: Sidebar komplett ausblenden – nicht stapeln */
@media (max-width: 768px) {
    .homepage-list-sidebar { display: none !important; }
}

/* Legacy: freier HTML-Inhalt-Block */
.homepage-sidebar-body { padding: 13px 15px; font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.6; }
.homepage-sidebar-body p  { margin: 0 0 8px; }
.homepage-sidebar-body ul { padding-left: 18px; margin: 0 0 8px; }
.homepage-sidebar-body a  { color: var(--accent-teal); text-decoration: none; }
.homepage-sidebar-body a:hover { text-decoration: underline; }

/* ── Sidebar Widgets – Basis ─────────────────────────────────────────── */
.sb-widget {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
}
.sb-widget:last-child { border-bottom: none; }
.sb-widget-title {
    font-size: 10px; font-weight: 700; letter-spacing: .9px;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 0px;
}
/* Projekte- und Social-Widget: Titel volle Breite mit leicht dunklerem Hintergrund */
.sb-widget--projects > .sb-widget-title,
.sb-widget--projects-top > .sb-widget-title,
.sb-widget--social > .sb-widget-title {
    margin: -12px -14px 12px;
    padding: 10px 14px 8px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

/* ── Identity Widget (Logo oben) ─────────────────────────────────────── */
.sb-identity {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 16px 14px 13px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(160deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-decoration: none;
}
.sb-identity:hover { text-decoration: none; background: var(--bg-secondary); }
.sb-identity-logo { max-height: 42px; max-width: 130px; width: auto; object-fit: contain; margin-bottom: 5px; }
.sb-identity-tagline { font-size: 11px; color: var(--text-muted); line-height: 1.4; margin: 0; }
.sb-identity:hover .sb-identity-tagline { color: var(--accent-teal); }

/* ── Projekt-Widget – Editorial Card (wie Featured Posts) ───────────── */
/* Grid: Wenn 2 Projekte → nebeneinander; 1 Projekt → volle Breite */
.sb-project-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.sb-project-cards-grid > .sb-project-card:only-child {
    grid-column: 1 / -1;
}

.sb-project-card {
    position: relative;
    display: block;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    background-color: #111;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center 38%;
    border: 1px solid var(--border-color);
    transition: transform .35s cubic-bezier(.25,.46,.45,.94), box-shadow .25s ease;
}
.sb-project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 16px rgba(0,0,0,.22);
    text-decoration: none;
}
/* Verlaufs-Overlay */
.sb-project-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,.12) 38%,
        rgba(0,0,0,.78) 100%
    );
    z-index: 1;
}
/* Placeholder-Hintergrund wenn kein Logo */
.sb-project-placeholder-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--accent-teal) 0%, #181a6d 100%);
}
/* Initialen-Letter im Placeholder via CSS attr() */
.sb-project-placeholder-bg::after {
    content: attr(data-initials);
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 900; color: rgba(255,255,255,.25);
    letter-spacing: -1px;
}
/* Text-Band unten */
.sb-project-body {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 6px 8px 7px;
    z-index: 2;
}
.sb-project-name {
    display: block; font-size: 11.5px; font-weight: 700;
    color: #fff; line-height: 1.25;
    text-shadow: 0 1px 5px rgba(0,0,0,.6);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-project-desc {
    display: block; font-size: 9.5px; color: rgba(255,255,255,.68);
    margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Status-Widget ───────────────────────────────────────────────────── */
.sb-status-list { list-style: none; margin: 0; padding: 0; }
.sb-status-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 5px 0; gap: 7px;
    border-bottom: 1px solid var(--border-color);
}
.sb-status-list li:last-child .sb-status-row { border-bottom: none; padding-bottom: 0; }
.sb-status-service {
    display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0;
    font-size: 12px; color: var(--text-secondary);
    text-decoration: none; transition: color .15s;
}
.sb-status-service:hover { color: var(--accent-teal); text-decoration: none; }
.sb-status-icon {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 5px;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: var(--text-secondary); font-family: monospace;
}
.sb-status-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-status-dot {
    flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
}
.sb-status-dot--ok   { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); animation: sb-pulse 2.5s ease-in-out infinite; }
.sb-status-dot--warn { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.sb-status-dot--err  { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.2); }
@keyframes sb-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
    50%       { box-shadow: 0 0 0 5px rgba(34,197,94,.38); }
}

/* ── Download-Widget ─────────────────────────────────────────────────── */
.sb-download-list { list-style: none; padding: 0; margin: 0; }
.sb-download-list li { border-bottom: 1px dashed var(--border-color); }
.sb-download-list li:last-child { border-bottom: none; }
.sb-download-list a {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--accent-teal);
    padding: 5px 0; text-decoration: none; transition: color .15s;
}
.sb-download-list a:hover { color: var(--accent-teal-light); }

/* ── Social-Widget (Icon-Grid) ───────────────────────────────────────── */
.sb-social-links { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-social-link {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 7px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
    flex-shrink: 0;
}
.sb-social-link:hover { transform: translateY(-2px); text-decoration: none; color: #fff; }
.sb-social-link svg { display: block; pointer-events: none; }
.sb-social-link--linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.sb-social-link--github:hover   { background: #24292f; border-color: #24292f; }
.sb-social-link--twitter:hover  { background: #000;    border-color: #000; }
.sb-social-link--mastodon:hover { background: #563acc; border-color: #563acc; }
.sb-social-link--youtube:hover  { background: #ff0000; border-color: #ff0000; }
.sb-social-link--xing:hover     { background: #006567; border-color: #006567; }
.sb-social-link--rss:hover      { background: #f95c2b; border-color: #f95c2b; }
body.dark-mode .sb-social-link { background: var(--bg-tertiary); }
body.dark-mode .sb-social-link--github:hover { background: #f0f6fc; border-color: #f0f6fc; color: #24292f; }

/* ── Notice-Widget (Ankündigung / Wartung) ───────────────────────────── */
.sb-notice-body {
    background: linear-gradient(130deg, #fffbeb, #fef3c7);
    border-left: 3px solid #f59e0b;
    padding: 9px 11px; border-radius: 0 5px 5px 0;
}
.sb-notice-body p { font-size: 11px; color: #78350f; line-height: 1.5; margin: 0 0 5px; }
.sb-notice-body p:last-child { margin-bottom: 0; }
.sb-notice-link {
    display: inline-block; font-size: 11px; font-weight: 600;
    color: var(--accent-teal); text-decoration: none; margin-top: 5px;
}
.sb-notice-link:hover { text-decoration: underline; }

/* ── Sidebar: Featured Posts – Kompakt-Vorschau (Standard-Widget) ────────── */
.sb-featured-post {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: inherit;
    padding: 9px 14px; border-bottom: 1px solid var(--border-color);
    transition: background .12s;
}
.sb-featured-post:last-child { border-bottom: none; }
.sb-featured-post:hover { background: var(--bg-secondary); text-decoration: none; }
.sb-featured-post:hover .sb-featured-title { color: var(--accent-teal); }
.sb-featured-thumb {
    width: 56px; height: 42px; object-fit: cover;
    border-radius: 5px; flex-shrink: 0;
}
.sb-featured-thumb--placeholder {
    width: 56px; height: 42px; border-radius: 5px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-teal-dark, #0d9488) 100%);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800; letter-spacing: -.5px;
}
.sb-featured-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sb-featured-title {
    font-size: 12px; font-weight: 600; color: var(--text-primary);
    line-height: 1.35; transition: color .12s;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.sb-featured-meta { font-size: 10px; color: var(--text-muted, #94a3b8); }

/* ── Featured-Posts: Vollhöhen-Modus (--feat) – Editorial Cards ──────────── */
.homepage-list-sidebar--feat {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Featured-Widget nimmt die gesamte verfügbare Höhe */
.homepage-list-sidebar--feat .sb-widget--featured {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 0;
    border-bottom: none;
    overflow: hidden;
}

/* Label oben */
.homepage-list-sidebar--feat .sb-widget--featured > .sb-widget-title {
    padding: 10px 14px 8px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-primary);
}

/* Jede Kachel = 1/n der verfügbaren Höhe */
.homepage-list-sidebar--feat .sb-featured-post {
    flex: 1;
    position: relative;
    display: block;          /* nicht mehr flex */
    padding: 0;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    min-height: 0;
    overflow: hidden;
    background: #111;        /* Fallback wenn kein Bild */
    transition: none;
}
.homepage-list-sidebar--feat .sb-featured-post:last-child { border-bottom: none; }

/* Hover: leichtes Aufhellen + Zoom */
.homepage-list-sidebar--feat .sb-featured-post:hover .sb-featured-thumb {
    transform: scale(1.04);
    filter: brightness(1.05);
}
.homepage-list-sidebar--feat .sb-featured-post:hover .sb-featured-title {
    color: #fff;
    text-shadow: 0 0 8px rgba(56,189,166,.6);
}

/* Bild: füllt gesamte Kachel */
.homepage-list-sidebar--feat .sb-featured-thumb {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: unset;
    transition: transform .45s cubic-bezier(.25,.46,.45,.94), filter .3s ease;
}

/* Placeholder: ebenfalls full-bleed */
.homepage-list-sidebar--feat .sb-featured-thumb--placeholder {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    aspect-ratio: unset; border-radius: 0; flex-shrink: unset;
    font-size: 36px; font-weight: 800;
    background: linear-gradient(135deg, var(--accent-teal) 0%, #0d4f4a 100%);
    transition: filter .3s ease;
}

/* Verlaufs-Overlay: dunkler Gradient von unten für Lesbarkeit */
.homepage-list-sidebar--feat .sb-featured-body {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    gap: 0;
    min-height: unset;
    background: transparent;
    /* Transparenter Spacer damit der Hover-Bereich die volle Kachel deckt */
}

/* Gradient-Schicht über dem Bild */
.homepage-list-sidebar--feat .sb-featured-body::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(0,0,0,.18) 55%,
        rgba(0,0,0,.72) 100%
    );
    pointer-events: none;
}

/* Text-Block unten */
.homepage-list-sidebar--feat .sb-featured-body-inner {
    position: relative;   /* über ::before */
    padding: 10px 12px 11px;
}

/* Kategorie-Badge oben-links (absolut positioniert) */
.homepage-list-sidebar--feat .sb-featured-cat {
    display: inline-block;
    position: absolute; top: 8px; left: 10px;
    font-size: 9px; font-weight: 700; letter-spacing: .6px;
    text-transform: uppercase;
    background: var(--accent-teal);
    color: #fff;
    padding: 2px 7px; border-radius: 30px;
    line-height: 1.6;
    pointer-events: none;
    z-index: 2;
}

.homepage-list-sidebar--feat .sb-featured-title {
    font-size: 12.5px; font-weight: 700;
    color: #fff; line-height: 1.35;
    -webkit-line-clamp: 3; line-clamp: 3;
    text-shadow: 0 1px 4px rgba(0,0,0,.55);
    margin: 0;
}
.homepage-list-sidebar--feat .sb-featured-meta {
    font-size: 10px; color: rgba(255,255,255,.65);
    margin-top: 3px;
}

/* Social bleibt unten, schrumpft nicht */
.homepage-list-sidebar--feat .sb-widget--social {
    flex-shrink: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

/* ── Featured + Projekt-Widget oben (--feat-proj) ─────────────────────────── */
/*
 * Projekt-Widget sitzt als fixierter Block ganz oben,
 * das Featured-Widget (2 Artikel) füllt den Rest.
 */
.homepage-list-sidebar--feat-proj .sb-widget--projects-top {
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 12px;
}
/* Kompakt-Modus: Cards etwas flacher */
.homepage-list-sidebar--feat-proj .sb-widget--projects-top .sb-project-card {
    height: 74px;
}
.homepage-list-sidebar--feat-proj .sb-widget--projects-top .sb-project-name {
    font-size: 11px;
}
.homepage-list-sidebar--feat-proj .sb-widget--projects-top .sb-project-desc {
    font-size: 9px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   11b. BLOG ARCHIVE BAR (Suchfeld + Startseiten-Link)
═══════════════════════════════════════════════════════════════════════════ */
.blog-archive-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.blog-archive-back {
    font-size: var(--fs-sm); color: var(--accent-teal); font-weight: 600;
    text-decoration: none; white-space: nowrap;
    display: flex; align-items: center; gap: 4px;
    padding: 6px 0; transition: color .15s;
}
.blog-archive-back:hover { color: var(--accent-teal-light); text-decoration: underline; }
.blog-search-form {
    display: flex; align-items: center; gap: 0;
    border: 1px solid var(--border-color); border-radius: 20px;
    overflow: hidden; background: var(--bg-primary);
    transition: border-color .2s, box-shadow .2s;
}
.blog-search-form:focus-within {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(56, 189, 166, .15);
}
.blog-search-form input[type="search"] {
    border: none; outline: none; padding: 6px 14px;
    font-size: var(--fs-sm); background: transparent; color: var(--text-primary);
    width: min(260px, 55vw); min-width: 140px;
}
.blog-search-form button {
    border: none; background: transparent; padding: 6px 12px;
    cursor: pointer; font-size: .95rem; color: var(--text-muted);
    transition: color .15s; line-height: 1;
}
.blog-search-form button:hover { color: var(--accent-teal); }
.blog-search-hint {
    font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 12px;
}
.blog-search-hint a { color: var(--text-light); margin-left: 4px; text-decoration: none; }
.blog-search-hint a:hover { color: var(--accent-teal); }

/* ═══════════════════════════════════════════════════════════════════════════
   12. RSS / FEED CARDS
═══════════════════════════════════════════════════════════════════════════ */
.feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feed-card {
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.feed-card h4 {
    background: var(--primary-color); color: #fff; padding: 8px 12px;
    margin: -16px -18px 12px; border-radius: var(--radius) var(--radius) 0 0;
    font-size: var(--fs-sm); font-weight: 700;
}
.feed-card--flat {
    padding: 0; border: none; box-shadow: none; background: transparent;
}
.feed-dual-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.feed-dual-col {
    min-width: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-teal);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
}
.feed-dual-col:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feed-dual-col:nth-child(2) { border-top-color: var(--accent-color); }
.feed-dual-col .section-header { margin-bottom: 10px; }
body.dark-mode .feed-dual-col { background: var(--bg-dark-2); border-color: var(--border-dark); }
.feed-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.feed-list li { border-bottom: 1px solid var(--border-color); padding: 8px 0; }
.feed-list li:last-child { border-bottom: none; padding-bottom: 0; }
.feed-list a { font-size: var(--fs-sm); color: var(--text-secondary); display: block; line-height: 1.35; transition: color 0.15s; }
.feed-list a:hover { color: var(--accent-teal); }
.feed-list .meta { font-size: var(--fs-xs); color: var(--text-light); margin-top: 2px; }
.feed-list--inline li {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.feed-list--inline .meta {
    flex-shrink: 0; margin-top: 0; white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   13. MAIN LAYOUT (Content + Sidebar)
═══════════════════════════════════════════════════════════════════════════ */
.content-layout {
    display: grid; grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--content-gap, 28px); align-items: start;
}
.content-layout.sidebar-left { grid-template-columns: var(--sidebar-width) 1fr; }
.content-layout.sidebar-left .sidebar { order: -1; }
.content-layout.sidebar-none { grid-template-columns: 1fr; }
.main-column { min-width: 0; }
.sidebar {
    position: sticky;
    top: calc(var(--header-h) + var(--quicklinks-h) + var(--member-bar-h, 0px) + 18px);
    display: flex; flex-direction: column; gap: 16px;
}
.post-container { padding-top: var(--spacing-header-content, 25px); padding-bottom: var(--spacing-content-footer, 25px); }

/* ═══════════════════════════════════════════════════════════════════════════
   14. TOC (Table of Contents)
═══════════════════════════════════════════════════════════════════════════ */
.toc {
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-teal); border-radius: var(--radius);
    padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.toc-title {
    font-size: var(--fs-sm); font-weight: 700; color: var(--text-primary);
    margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-list li a {
    display: block; padding: 4px 6px; font-size: var(--fs-xs);
    color: var(--text-muted); border-radius: 3px; transition: var(--transition-fast);
}
.toc-list li a:hover,
.toc-list li a.active { color: var(--accent-teal); background: rgba(13,148,136,.07); }
.toc-list .toc-h3  { padding-left: 16px; }

/* ═══════════════════════════════════════════════════════════════════════════
   15. SOCIAL ICONS (Sidebar-Widget)
═══════════════════════════════════════════════════════════════════════════ */
.social-widget {
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-sm);
}
.social-widget-title { font-size: var(--fs-sm); font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.social-icons { display: flex; gap: 8px; }
.social-icons a {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; background: var(--bg-secondary);
    border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    color: var(--text-muted); font-size: .9rem; font-weight: 700;
    transition: var(--transition-fast); text-decoration: none;
}
.social-icons a:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.social-icons a.li:hover  { background: #0077b5; border-color: #0077b5; }
.social-icons a.gh:hover  { background: #181717; border-color: #181717; }
.social-icons a.rss:hover { background: #f26522; border-color: #f26522; }

/* ═══════════════════════════════════════════════════════════════════════════
   16. SINGLE POST LAYOUT
═══════════════════════════════════════════════════════════════════════════ */
.post-header {
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.post-hero-img { width: 100%; max-height: 300px; object-fit: cover; }
.post-header-body { padding: 20px 24px 16px; }
.post-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.post-title { font-size: var(--fs-h1); font-weight: 800; line-height: 1.25; color: var(--text-primary); margin-bottom: 12px; }
.post-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
    font-size: var(--fs-xs); color: var(--text-muted);
    border-top: 1px solid var(--border-color); padding-top: 12px;
}
.post-meta strong { color: var(--text-primary); }

.post-body {
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow-sm);
    font-size: 1.01rem; line-height: 1.8; color: var(--text-secondary);
}
.post-body h2, .post-body h3, .post-body h4 {
    color: var(--text-primary); font-weight: 700; margin: 2em 0 .7em; line-height: 1.3;
    scroll-margin-top: calc(var(--header-h) + var(--quicklinks-h) + var(--member-bar-h, 0px) + 18px);
}
.post-body h2 { font-size: var(--fs-h2); border-bottom: 2px solid var(--border-color); padding-bottom: .4em; }
.post-body h3 { font-size: var(--fs-h3); }
.post-body h4 { font-size: var(--fs-h4); }
.post-body p   { margin-bottom: 1.2em; }
.post-body ul, .post-body ol { margin: 1em 0 1.2em 1.5em; }
.post-body li  { margin-bottom: .4em; }
.post-body strong { font-weight: 700; color: var(--text-primary); }
.post-body a   { color: var(--accent-teal); text-decoration: underline; text-decoration-color: transparent; }
.post-body a:hover { text-decoration-color: currentColor; }
.post-body blockquote {
    border-left: 4px solid var(--accent-teal); margin: 1.5em 0;
    padding: 12px 20px; background: #f0fafa;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary); font-style: italic;
}
.post-body code {
    font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
    font-size: .88em; background: #f1f5f9; padding: 2px 6px;
    border-radius: 3px; color: #c7254e;
}
.post-body pre {
    background: var(--bg-dark-2); color: #e2e8f0; padding: 18px 22px;
    border-radius: var(--radius); overflow-x: auto; font-size: .88em;
    line-height: 1.6; margin: 1.5em 0;
}
.post-body pre code { background: transparent; color: inherit; padding: 0; }
.post-body img     { border-radius: var(--radius-sm); margin: 1.5em 0; }
.post-body table   { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: var(--fs-sm); }
.post-body th, .post-body td { padding: 10px 14px; border: 1px solid var(--border-color); text-align: left; }
.post-body th  { background: var(--bg-secondary); font-weight: 700; }

/* Share */
.post-share {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 14px 0; border-top: 1px solid var(--border-color); margin-top: 24px;
    font-size: var(--fs-sm); color: var(--text-muted);
}
.share-btn {
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px;
    border-radius: 20px; font-size: var(--fs-xs); font-weight: 600; cursor: pointer;
    border: 1px solid var(--border-color); background: var(--bg-secondary);
    color: var(--text-muted); transition: var(--transition-fast);
}
.share-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.share-btn.fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn.tw:hover { background: #1da1f2; color: #fff; border-color: #1da1f2; }
.share-btn.li:hover { background: #0077b5; color: #fff; border-color: #0077b5; }
.share-btn.em:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* ═══════════════════════════════════════════════════════════════════════════
   17. POST NAVIGATION (Zurück/Weiter)
═══════════════════════════════════════════════════════════════════════════ */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; margin-bottom: 28px; }
.post-nav a {
    display: flex; flex-direction: column; gap: 4px;
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 14px 18px;
    transition: var(--transition); box-shadow: var(--shadow-sm);
}
.post-nav a:hover { border-color: var(--accent-teal); }
.post-nav .direction { font-size: var(--fs-xs); color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.post-nav .nav-title { font-size: var(--fs-sm); font-weight: 700; color: var(--text-primary); }
.post-nav .next { text-align: right; }

/* ═══════════════════════════════════════════════════════════════════════════
   18. KOMMENTARE
═══════════════════════════════════════════════════════════════════════════ */
.comments-section {
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.comments-title {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 20px;
    padding-bottom: 12px; border-bottom: 2px solid var(--border-color); color: var(--text-primary);
}
.comment-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border-color); }
.comment-item:last-of-type { border-bottom: none; }
.comment-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary-color); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.comment-body-wrap { flex: 1; }
.comment-author-line { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-author { font-weight: 700; font-size: var(--fs-sm); }
.comment-date   { font-size: var(--fs-xs); color: var(--text-light); }
.comment-text   { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.6; }

.comment-form-wrap {
    background: var(--bg-secondary); border-radius: var(--radius);
    padding: 20px; margin-top: 20px; border: 1px solid var(--border-color);
}
.comment-form-wrap h4 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: var(--text-primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.form-control {
    padding: 9px 12px; border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); font-size: var(--fs-sm);
    color: var(--text-primary); background: var(--bg-primary);
    transition: border-color 0.2s; outline: none; width: 100%;
}
.form-control:focus { border-color: var(--accent-teal); box-shadow: 0 0 0 3px rgba(13,148,136,.1); }
textarea.form-control { resize: vertical; min-height: 110px; margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════════════════
   19. PAGINATION
═══════════════════════════════════════════════════════════════════════════ */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 4px; margin: 28px 0 0; flex-wrap: wrap;
}
.page-link {
    display: flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 10px;
    border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    font-size: var(--fs-sm); color: var(--text-muted);
    background: var(--bg-primary); transition: var(--transition-fast); font-weight: 500;
}
.page-link:hover   { border-color: var(--accent-teal); color: var(--accent-teal); background: #f0fafa; }
.page-link.active  { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.page-link.dots    { border: none; background: transparent; cursor: default; color: var(--text-light); }

/* ═══════════════════════════════════════════════════════════════════════════
   20. FOOTER
═══════════════════════════════════════════════════════════════════════════ */
.site-footer { background: var(--footer-bg, var(--bg-dark)); color: rgba(255,255,255,.7); margin-top: 48px; }
.footer-main-wrap { border-bottom: 1px solid var(--footer-border, rgba(255,255,255,.06)); }
.footer-main {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 40px; padding: 44px 0 36px;
}
.footer-brand .logo { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 10px; display: inline-block; }
.footer-brand .logo span { color: var(--accent-teal-light); }
.footer-brand p { font-size: var(--fs-sm); line-height: 1.6; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.footer-nav h4 { font-size: var(--fs-sm); font-weight: 700; color: rgba(255,255,255,.9); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-nav ul a { font-size: var(--fs-sm); color: rgba(255,255,255,.55); transition: var(--transition-fast); }
.footer-nav ul a:hover { color: var(--accent-teal-light); }
.footer-bottom {
    background: var(--footer-bottom-bg, rgba(0,0,0,.15));
    border-top: 1px solid var(--footer-border, rgba(255,255,255,.06));
}
.footer-bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; font-size: var(--fs-xs); color: rgba(255,255,255,.35); gap: 12px;
}
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,.35); transition: var(--transition-fast); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.75); }

/* Network Bar */
.network-bar {
    background: rgba(255,255,255,.03);
    border-top: 1px solid var(--footer-border, rgba(255,255,255,.06));
    padding: 10px 0;
}
.network-bar .container {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.network-bar a {
    font-size: var(--fs-xs); color: rgba(255,255,255,.5);
    transition: var(--transition-fast); white-space: nowrap;
}
.network-bar a:hover { color: var(--accent-teal-light); }

/* ═══════════════════════════════════════════════════════════════════════════
   21. CONSENT BANNER
═══════════════════════════════════════════════════════════════════════════ */
#consent-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg-dark); border-top: 2px solid var(--accent-teal);
    color: rgba(255,255,255,.85); padding: 14px 20px;
    z-index: var(--z-overlay); display: flex; align-items: center;
    gap: 16px; flex-wrap: wrap; font-size: var(--fs-sm);
    box-shadow: 0 -4px 24px rgba(0,0,0,.3);
}
#consent-banner p { flex: 1; min-width: 220px; margin: 0; }
#consent-banner .consent-btns { display: flex; gap: 8px; }

/* ═══════════════════════════════════════════════════════════════════════════
   22. CSS ANIMATIONS
═══════════════════════════════════════════════════════════════════════════ */
@keyframes anim-fade-up  { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes anim-fade-in  { from { opacity: 0; } to { opacity: 1; } }

[data-anim] { opacity: 0; transform: translateY(22px); transition: opacity 0.55s cubic-bezier(.4,0,.2,1), transform 0.55s cubic-bezier(.4,0,.2,1); }
[data-anim].is-visible   { opacity: 1; transform: none; }
[data-anim][data-anim-delay="1"] { transition-delay: .1s; }
[data-anim][data-anim-delay="2"] { transition-delay: .2s; }
[data-anim][data-anim-delay="3"] { transition-delay: .3s; }
[data-anim][data-anim-delay="4"] { transition-delay: .4s; }

/* ═══════════════════════════════════════════════════════════════════════════
   23. PAGE CONTENT
═══════════════════════════════════════════════════════════════════════════ */
.page-header-block {
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 28px 32px; margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.page-header-block h1 { font-size: var(--fs-h1); font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.page-header-block .breadcrumbs {
    font-size: var(--fs-xs); color: var(--text-light); display: flex; gap: 6px; align-items: center;
}
.page-header-block .breadcrumbs a { color: var(--accent-teal); }
.page-content {
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow-sm);
    font-size: 1.01rem; line-height: 1.8; color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   24. UTILITY
═══════════════════════════════════════════════════════════════════════════ */
.text-muted  { color: var(--text-muted) !important; }
.text-teal   { color: var(--accent-teal) !important; }
.text-accent { color: var(--accent-color) !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; top: -60px; left: 0; background: var(--primary-color); color: #fff; padding: 8px 16px; border-radius: 0 0 var(--radius) 0; z-index: 9999; transition: top 0.2s; }
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   25. RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    :root { --sidebar-width: 260px; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-main .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .hdr-search, .main-nav, .quicklinks-bar { display: none; }
    .member-bar__nav { display: none; }
    .member-bar__greeting { font-size: .72rem; }
    .burger-btn { display: flex; }
    :root { --header-h: 52px; --quicklinks-h: 0px; }
    .page-wrap { padding-top: var(--header-h); }
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; order: -1; }
    .posts-grid, .info-grid, .feed-grid { grid-template-columns: 1fr; }
    .article-thumb { flex: 0 0 120px; min-height: 90px; }
    .article-body p { display: none; }
    .post-body { padding: 18px 16px; }
    .form-row, .post-nav { grid-template-columns: 1fr; }
    .post-title { font-size: clamp(1.3rem, 5vw, 1.9rem); }
    .footer-main { grid-template-columns: 1fr; gap: 20px; padding: 28px 0 20px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .post-body, .post-header-body, .comments-section { padding: 14px 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   26. TEMPLATE: post-wide (Vollbreite Artikel ohne Sidebar)
═══════════════════════════════════════════════════════════════════════════ */

.article-layout--wide {
    max-width: 860px;
    margin: 0 auto;
}

/* Inline-TOC (<details>) */
.toc-inline {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-teal);
    border-radius: var(--radius);
    margin-bottom: 28px;
    overflow: hidden;
}
.toc-inline__toggle {
    padding: 14px 18px;
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}
.toc-inline__toggle::-webkit-details-marker { display: none; }
.toc-inline__toggle::after {
    content: '▼';
    margin-left: auto;
    font-size: .7rem;
    transition: transform .2s;
}
details[open] .toc-inline__toggle::after { transform: rotate(180deg); }
.toc-inline__body {
    border-top: 1px solid var(--border-color);
    padding: 14px 18px 16px;
}
.toc-inline__body ul { list-style: none; padding: 0; margin: 0; columns: 2; gap: 0 24px; }
.toc-inline__body li { padding: 3px 0; font-size: var(--fs-sm); }
.toc-inline__body li.toc-h3 { padding-left: 14px; }
.toc-inline__body a { color: var(--accent-teal); text-decoration: none; }
.toc-inline__body a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .toc-inline__body ul { columns: 1; }
    .article-layout--wide { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   27. TEMPLATE: post-tech (Tech-Karte)
═══════════════════════════════════════════════════════════════════════════ */

.tech-card {
    background: var(--bg-dark-2);
    border: 1px solid var(--border-dark);
    border-left: 4px solid var(--accent-teal);
    border-radius: var(--radius);
    margin-bottom: 28px;
    overflow: hidden;
    color: var(--text-white);
}
body:not(.dark-mode) .tech-card {
    background: #0f2d43;
    border-left-color: var(--accent-teal);
}
.tech-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.18);
}
.tech-card__icon { font-size: 1.2rem; }
.tech-card__title {
    font-weight: 700;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent-teal-light);
    flex: 1;
}
.tech-card__diff { margin-left: auto; }
.tech-card__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
}
.tech-card__item {
    padding: 12px 20px;
    border-right: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.tech-card__item dt {
    font-size: var(--fs-xs);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}
.tech-card__item dd {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
}
.tech-card__prereqs {
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: var(--fs-sm);
}
.tech-card__prereqs strong { color: var(--accent-color); }
.tech-card__prereqs ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tech-card__prereqs ul li {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: var(--fs-xs);
    color: #cbd5e1;
}

/* Schwierigkeits-Badges */
.badge--green  { background: #d1fae5; color: #065f46; }
.badge--yellow { background: #fef3c7; color: #92400e; }
.badge--orange { background: #ffedd5; color: #9a3412; }
.badge--red    { background: #fee2e2; color: #991b1b; }

/* Inline code (kurze Code-Schnipsel) */
.inline-code {
    font-family: 'Fira Mono', 'Cascadia Code', Consolas, monospace;
    font-size: .875em;
    background: rgba(255,255,255,.1);
    border-radius: 3px;
    padding: 1px 5px;
    color: var(--accent-teal-light);
}

.tech-sidebar-info .toc-list { gap: 8px; }

@media (max-width: 600px) {
    .tech-card__grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   28. TEMPLATE: page-wide (Vollbreite Seite ohne Sidebar)
═══════════════════════════════════════════════════════════════════════════ */

.page-header-block--wide,
.page-content--wide {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.page-last-updated {
    font-size: var(--fs-xs);
    color: var(--text-light);
    margin-top: 6px;
}

/* Typografische Anpassungen für reine Lese-Seiten */
.page-content--wide {
    font-size: 1.05rem;
    line-height: 1.85;
}
.page-content--wide h2 { margin-top: 2.5rem; }
.page-content--wide h3 { margin-top: 2rem; }

/* Volle Container-Breite (keine max-width-Beschränkung) */
.page-content--full { width: 100%; }
.page-content--full h2 { margin-top: 2.5rem; }
.page-content--full h3 { margin-top: 2rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   29. TEMPLATE: page-landing (Landing Page)
═══════════════════════════════════════════════════════════════════════════ */

/* Hero */
.landing-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    padding: 80px 0 72px;
    position: relative;
    overflow: hidden;
}
.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.landing-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.landing-hero__inner:not(:has(.landing-hero__media)) {
    grid-template-columns: 1fr;
    max-width: 760px;
    text-align: center;
}
.landing-hero__media { border-radius: var(--radius-lg); overflow: hidden; }
.landing-hero__img { width: 100%; height: auto; display: block; }
.landing-hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 16px;
}
.landing-hero__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.8);
    line-height: 1.65;
    margin-bottom: 28px;
}
.landing-hero__ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.landing-hero__inner:not(:has(.landing-hero__media)) .landing-hero__ctas {
    justify-content: center;
}

/* Landing-Page Buttons */
.btn--landing-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: .75rem 1.75rem;
    background: var(--accent-color);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    border: 2px solid var(--accent-color);
    transition: var(--transition-fast);
    cursor: pointer;
}
.btn--landing-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}
.btn--landing-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: .75rem 1.75rem;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    border: 2px solid rgba(255,255,255,.4);
    transition: var(--transition-fast);
    cursor: pointer;
}
.btn--landing-outline:hover {
    border-color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.08);
}

/* Feature Cards */
.landing-features {
    padding: 64px 0;
    background: var(--bg-secondary);
}
.landing-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.landing-feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px 24px 24px;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}
.landing-feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--accent-teal);
}
.landing-feature-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1;
}
.landing-feature-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.landing-feature-card__text {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 14px;
}
.landing-feature-card__link {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--accent-teal);
    text-decoration: none;
    margin-top: auto;
}
.landing-feature-card__link:hover { text-decoration: underline; }

/* Free Content-Block */
.landing-content { padding: 56px 0; }

/* CTA-Banner */
.landing-cta {
    background: var(--primary-color);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}
.landing-cta__inner { max-width: 640px; margin: 0 auto; }
.landing-cta__title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}
.landing-cta__text {
    font-size: 1.05rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 28px;
    line-height: 1.65;
}

/* Dark-Mode Anpassungen */
body.dark-mode .landing-features { background: var(--bg-dark-3); }
body.dark-mode .landing-feature-card {
    background: var(--bg-dark-2);
    border-color: var(--border-dark);
}
body.dark-mode .landing-feature-card__title { color: var(--text-white); }
body.dark-mode .page-content--wide  { color: var(--text-white); }

/* Responsive Landing */
@media (max-width: 768px) {
    .landing-hero { padding: 52px 0 44px; }
    .landing-hero__inner { grid-template-columns: 1fr; }
    .landing-hero__media { display: none; }
    .landing-hero__ctas { justify-content: center; }
    .landing-features { padding: 40px 0; }
    .landing-cta { padding: 44px 0; }
}

/* ══════════════════════════════════════════════════════════════════
   STARTSEITE: HOMEPAGE-KOMPONENTEN
══════════════════════════════════════════════════════════════════ */

/* ── Repo-Card ─────────────────────────────────────────────────── */
.repo-card {
    display: flex; align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--primary-light);
    box-shadow: var(--shadow-md);
    margin-bottom: 4px;
}
.repo-card-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    background: rgba(255,255,255,.12); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.repo-card-body { flex: 1; min-width: 180px; }
.repo-card-body h3 {
    color: #fff; font-size: 1.05rem; font-weight: 700;
    margin: 0 0 4px;
}
.repo-card-body p {
    color: rgba(255,255,255,.78); font-size: var(--fs-sm); margin: 0; line-height: 1.5;
}
.repo-card-actions {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.repo-badge {
    background: var(--accent-color); color: #0a0f1a;
    font-size: .78rem; font-weight: 800; letter-spacing: .04em;
    padding: .4rem .9rem; border-radius: 20px;
    white-space: nowrap;
}
.repo-card .btn-accent {
    border-color: var(--accent-color);
    font-weight: 700; white-space: nowrap;
}
.repo-card .btn-accent:hover {
    border-color: var(--accent-hover); background: var(--accent-hover);
}
body.dark-mode .repo-card { border-color: var(--border-dark); }

/* ── Artikel-Liste (horizontal cards) ─────────────────────────── */
.article-list {
    display: flex; flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.article-card {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    transition: background .15s;
}
.article-card:last-child { border-bottom: none; }
.article-card:hover { background: var(--bg-secondary); }
.article-thumb {
    position: relative; flex-shrink: 0;
    border-radius: calc(var(--radius) - 2px);
    overflow: hidden; background: var(--bg-tertiary);
}
.article-thumb img { display: block; object-fit: cover; }
.thumb-badge {
    position: absolute; top: 6px; left: 6px;
    font-size: .65rem; font-weight: 700; padding: 2px 7px;
    border-radius: 4px; letter-spacing: .03em;
}
.badge-teal { background: var(--accent-teal); color: #fff; }
.article-body { flex: 1; min-width: 0; }
.article-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 4px;
}
.article-meta .cat {
    color: var(--accent-teal); font-weight: 600;
}
.article-meta .read {
    background: var(--bg-tertiary); padding: 1px 6px; border-radius: 4px;
}
.article-body h4 {
    font-size: .95rem; font-weight: 700; margin: 0 0 4px;
    color: var(--text-primary); line-height: 1.4;
}
.article-body h4 a { color: inherit; text-decoration: none; }
.article-body h4 a:hover { color: var(--accent-teal); }
.article-body p {
    font-size: var(--fs-xs); color: var(--text-secondary);
    margin: 0; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Info-Grid (Kategorie-Cards) ───────────────────────────────── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.info-card {
    padding: 20px 22px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-teal);
    border-radius: var(--radius);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
    display: flex; flex-direction: column;
}
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.info-card--gold { border-top-color: var(--accent-color); }
.info-card--repo {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-top-color: var(--accent-color);
    border-color: var(--primary-light);
}
.info-card--repo h3 { color: #fff; }
.info-card--repo p  { color: rgba(255,255,255,.78); }
.info-card--repo:hover { box-shadow: var(--shadow-lg); }
.info-card-repo-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.14); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; margin-bottom: 12px; flex-shrink: 0;
}
.info-card--repo .btn-accent { font-weight: 700; margin-top: auto; align-self: flex-start; }
.info-card h3 {
    font-size: 1rem; font-weight: 700; margin: 0 0 8px;
    color: var(--text-primary);
}
.info-card p {
    font-size: var(--fs-sm); color: var(--text-secondary);
    margin: 0 0 14px; line-height: 1.6; flex: 1;
}

/* ── posts-grid Spalten-Modifikatoren ──────────────────────────── */
.posts-grid--cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.posts-grid--cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.posts-grid--cols-4 { grid-template-columns: repeat(4, 1fr) !important; }

/* Dark-Mode Anpassungen für Homepage-Komponenten */
body.dark-mode .article-card { background: var(--bg-dark-2); border-color: var(--border-dark); }
body.dark-mode .article-card:hover { background: var(--bg-dark-3); }
body.dark-mode .article-list { border-color: var(--border-dark); }
body.dark-mode .article-thumb { border-color: var(--border-dark); }
body.dark-mode .info-card { background: var(--bg-dark-2); border-color: var(--border-dark); }
body.dark-mode .info-card h3 { color: var(--text-white); }
body.dark-mode .info-card--repo { background: linear-gradient(135deg, #1a3154 0%, #0d1e35 100%); border-color: #2a4a72; }
body.dark-mode .info-card--repo h3 { color: #fff; }

/* Responsive Homepage */
@media (max-width: 768px) {
    .info-grid, .info-grid--cols-3 { grid-template-columns: 1fr; }
    .feed-grid, .feed-dual-grid { grid-template-columns: 1fr; }
    .article-card { flex-direction: column; }
    .article-thumb { width: 100% !important; }
    .article-thumb img { width: 100% !important; height: auto !important; max-height: 160px; object-fit: cover; }
    .posts-grid--cols-2,
    .posts-grid--cols-3,
    .posts-grid--cols-4 { grid-template-columns: 1fr !important; }
    .repo-card { flex-direction: column; text-align: center; }
    .repo-card-actions { justify-content: center; flex-wrap: wrap; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .posts-grid--cols-3 { grid-template-columns: repeat(2, 1fr) !important; }
    .posts-grid--cols-4 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ══════════════════════════════════════════════════════════════════
   Auth Pages  (login.php, register.php)
   ══════════════════════════════════════════════════════════════════ */
.auth-wrapper {
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px;
    background: var(--bg-secondary);
}
.auth-card {
    width: 100%; max-width: 440px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.auth-header {
    text-align: center; padding: 32px 32px 0;
}
.auth-logo-link { text-decoration: none; }
.auth-site-name {
    font-family: var(--font-brand); font-size: 1.4rem; font-weight: 800;
    color: var(--text-primary); letter-spacing: -.02em;
}
.auth-site-name .logo-accent { color: var(--accent-blue, var(--accent-color)); }
.auth-subtitle {
    margin: 6px 0 0; font-size: .92rem; color: var(--text-muted);
}
.auth-form { padding: 24px 32px 32px; }
.auth-alert {
    padding: 12px 16px; border-radius: var(--radius-sm, 6px);
    font-size: .88rem; margin-bottom: 18px;
}
.auth-alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.auth-alert--success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
body.dark-mode .auth-alert--error { background: #451a20; border-color: #7f1d1d; color: #fca5a5; }
body.dark-mode .auth-alert--success { background: #14332b; border-color: #166534; color: #86efac; }
.auth-form-group { margin-bottom: 18px; }
.auth-label {
    display: block; font-size: .82rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
}
.auth-input {
    width: 100%; padding: 10px 14px;
    border: 2px solid var(--border-color); border-radius: var(--radius-sm, 6px);
    font-size: .92rem; color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color .2s, box-shadow .2s;
}
.auth-input:focus {
    outline: none; border-color: var(--accent-blue, var(--primary-color));
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
body.dark-mode .auth-input {
    background: var(--bg-dark-2); border-color: var(--border-dark);
    color: var(--text-white);
}
.auth-form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.auth-remember {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; font-size: .85rem;
}
.auth-checkbox-label {
    display: flex; align-items: center; gap: 6px;
    cursor: pointer; color: var(--text-secondary);
}
.auth-forgot-link { color: var(--accent-blue, var(--primary-color)); text-decoration: none; font-size: .85rem; }
.auth-forgot-link:hover { text-decoration: underline; }
.auth-submit {
    width: 100%; padding: 12px; border: none; border-radius: var(--radius-sm, 6px);
    background: var(--accent-blue, var(--primary-color)); color: #fff;
    font-size: .95rem; font-weight: 700; cursor: pointer;
    transition: background .2s, transform .15s;
}
.auth-submit:hover { background: var(--accent-blue2, var(--primary-dark)); transform: translateY(-1px); }
.auth-footer {
    text-align: center; padding: 16px 32px 28px;
    font-size: .85rem; color: var(--text-muted);
}
.auth-footer a { color: var(--accent-blue, var(--primary-color)); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.auth-helper { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
body.dark-mode .auth-card { background: var(--bg-dark-2); border-color: var(--border-dark); }
body.dark-mode .auth-site-name { color: var(--text-white); }
@media (max-width: 480px) {
    .auth-form, .auth-header { padding-left: 20px; padding-right: 20px; }
    .auth-form-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   Blog Listing  (blog.php)
   ══════════════════════════════════════════════════════════════════ */
.blog-page-header {
    margin-bottom: 28px;
}
.blog-page-header h1 {
    font-size: 1.6rem; font-weight: 800; margin: 0 0 4px;
    font-family: var(--font-brand); color: var(--text-primary);
}
.blog-page-header p {
    font-size: .92rem; color: var(--text-muted); margin: 0;
}
.blog-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 28px 0; margin-top: 12px;
}
.blog-pagination a,
.blog-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid var(--border-color); border-radius: var(--radius-sm, 6px);
    font-size: .85rem; font-weight: 600; text-decoration: none;
    color: var(--text-secondary); background: var(--bg-primary);
    transition: var(--transition-fast);
}
.blog-pagination a:hover { background: var(--accent-blue, var(--primary-color)); color: #fff; border-color: transparent; }
.blog-pagination .current {
    background: var(--accent-blue, var(--primary-color)); color: #fff;
    border-color: transparent; pointer-events: none;
}
.blog-pagination__info {
    font-size: .82rem; color: var(--text-muted); text-align: center; margin-top: 6px;
}
body.dark-mode .blog-pagination a,
body.dark-mode .blog-pagination span {
    background: var(--bg-dark-2); border-color: var(--border-dark); color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════════
   Search Results  (search.php)
   ══════════════════════════════════════════════════════════════════ */
.search-form-section {
    padding: 32px 0 24px;
}
.search-inline-form {
    display: flex; gap: 10px; flex-wrap: wrap;
    max-width: 720px;
}
.search-input-wrap {
    flex: 1 1 280px; position: relative;
}
.search-input-wrap input {
    width: 100%; padding: 10px 14px 10px 38px;
    border: 2px solid var(--border-color); border-radius: var(--radius-sm, 6px);
    font-size: .92rem; background: var(--bg-primary); color: var(--text-primary);
    transition: border-color .2s;
}
.search-input-wrap input:focus {
    outline: none; border-color: var(--accent-blue, var(--primary-color));
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.search-input-wrap::before {
    content: "🔍"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    font-size: .85rem; pointer-events: none;
}
.search-type-select {
    flex: 0 0 160px; padding: 10px 12px;
    border: 2px solid var(--border-color); border-radius: var(--radius-sm, 6px);
    font-size: .88rem; background: var(--bg-primary); color: var(--text-primary);
}
.search-btn {
    padding: 10px 22px; border: none; border-radius: var(--radius-sm, 6px);
    background: var(--accent-blue, var(--primary-color)); color: #fff;
    font-weight: 700; cursor: pointer; transition: background .2s;
}
.search-btn:hover { background: var(--accent-blue2, var(--primary-dark)); }
.search-results { margin-top: 20px; }
.search-result-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color); border-radius: var(--radius);
    margin-bottom: 10px;
    transition: box-shadow .2s, border-color .2s;
}
.search-result-item:hover { border-color: var(--accent-blue, var(--primary-color)); box-shadow: var(--shadow-md); }
.search-result-type {
    flex-shrink: 0;
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    padding: 4px 10px; border-radius: 4px;
    background: var(--bg-tertiary); color: var(--text-muted);
    white-space: nowrap;
}
.search-result-type--post   { background: #dbeafe; color: #1e40af; }
.search-result-type--page   { background: #f3e8ff; color: #6b21a8; }
.search-result-type--event  { background: #fef3c7; color: #92400e; }
.search-result-body { flex: 1; min-width: 0; }
.search-result-title {
    font-size: 1.02rem; font-weight: 700; margin: 0 0 4px;
    color: var(--text-primary);
}
.search-result-title a { color: inherit; text-decoration: none; }
.search-result-title a:hover { color: var(--accent-blue, var(--primary-color)); }
.search-result-excerpt {
    font-size: .85rem; color: var(--text-secondary); margin: 0 0 6px;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.search-result-date { font-size: .78rem; color: var(--text-muted); }
.search-count {
    font-size: .88rem; color: var(--text-muted); margin-bottom: 16px;
}
body.dark-mode .search-result-item { background: var(--bg-dark-2); border-color: var(--border-dark); }
body.dark-mode .search-input-wrap input,
body.dark-mode .search-type-select { background: var(--bg-dark-2); border-color: var(--border-dark); color: var(--text-white); }
@media (max-width: 600px) {
    .search-inline-form { flex-direction: column; }
    .search-type-select { flex: 1; }
    .search-result-item { flex-direction: column; gap: 8px; }
}

/* ══════════════════════════════════════════════════════════════════
   Error Pages  (404.php, error.php)
   ══════════════════════════════════════════════════════════════════ */
.error-hero {
    text-align: center; padding: 80px 20px 60px;
}
.error-code {
    font-family: var(--font-brand); font-size: 5rem; font-weight: 900;
    line-height: 1; margin: 0 0 8px;
    background: linear-gradient(135deg, var(--accent-blue, var(--primary-color)), var(--accent-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.error-title {
    font-family: var(--font-brand); font-size: 1.5rem; font-weight: 700;
    color: var(--text-primary); margin: 0 0 12px;
}
.error-desc {
    font-size: .95rem; color: var(--text-muted); max-width: 480px;
    margin: 0 auto 28px; line-height: 1.6;
}
.error-actions {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.error-actions a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; border-radius: var(--radius-sm, 6px);
    font-size: .9rem; font-weight: 600; text-decoration: none;
    transition: var(--transition-fast);
}
.error-actions .btn-primary {
    background: var(--accent-blue, var(--primary-color)); color: #fff;
}
.error-actions .btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.error-actions .btn-ghost {
    border: 2px solid var(--border-color); color: var(--text-secondary);
    background: transparent;
}
.error-actions .btn-ghost:hover { border-color: var(--accent-blue, var(--primary-color)); color: var(--accent-blue, var(--primary-color)); }

.error-suggestions {
    max-width: 700px; margin: 0 auto; padding: 0 20px 60px;
}
.error-suggestions h3 {
    font-size: 1.05rem; font-weight: 700; margin: 0 0 16px;
    color: var(--text-primary); text-align: center;
}
.error-suggestions .posts-grid { margin: 0; }

@media (max-width: 480px) {
    .error-code { font-size: 3.5rem; }
    .error-actions { flex-direction: column; align-items: center; }
}

/* ══════════════════════════════════════════════════════════════════
   Empty State (shared)
   ══════════════════════════════════════════════════════════════════ */
.empty-state {
    text-align: center; padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state__icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state__title {
    font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin: 0 0 6px;
}
.empty-state__text { font-size: .88rem; margin: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   MEMBER AREA
═══════════════════════════════════════════════════════════════════════════ */
.member-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 48px;
    align-items: start;
}

/* Sidebar */
.member-sidebar {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: calc(var(--header-h) + var(--quicklinks-h) + var(--member-bar-h, 0px) + 20px);
}
.member-sidebar-user {
    display: flex; align-items: center; gap: 12px;
    padding: 20px; border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
}
.member-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.15); display: flex;
    align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.member-user-info { min-width: 0; }
.member-user-info strong { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-user-info span { font-size: .75rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.member-nav { padding: .5rem 0; }
.member-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: .6rem 1.2rem; font-size: .875rem;
    color: var(--text-secondary); text-decoration: none;
    border-left: 3px solid transparent; transition: var(--transition-fast);
}
.member-nav-link:hover { background: var(--bg-secondary); color: var(--primary-color); }
.member-nav-link.active {
    background: rgba(30,58,95,.06); color: var(--primary-color);
    border-left-color: var(--primary-color); font-weight: 600;
}
.member-nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.member-nav-footer { border-top: 1px solid var(--border-color); padding: .5rem 0; }
.member-nav-logout { color: var(--text-light); }
.member-nav-logout:hover { color: #dc2626; }

/* Main Content */
.member-main { min-width: 0; }
.member-page-title { margin-bottom: 24px; }
.member-page-title h1 { font-size: var(--fs-h2); font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.member-page-title p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

.member-welcome {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff; padding: 28px 32px; border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.member-welcome h1 { font-size: 1.4rem; color: #fff; margin-bottom: 6px; }
.member-welcome p { opacity: .85; font-size: .9rem; margin: 0; }

/* Stat Cards */
.member-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px; margin-bottom: 24px;
}
.member-stats--compact { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.member-stat-card {
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 20px; text-align: center;
}
.member-stat-icon { font-size: 1.5rem; margin-bottom: 6px; }
.member-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--primary-color); }
.member-stat-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* Cards */
.member-card {
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 24px; margin-bottom: 0;
}
.member-card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color);
}
.member-card-header h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.member-card-link { font-size: .8rem; color: var(--accent-teal); font-weight: 500; }
.member-card-link:hover { text-decoration: underline; }

/* Grids */
.member-grid-2 {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px; margin-bottom: 24px;
}

/* Activity List */
.member-activity-list { list-style: none; padding: 0; margin: 0; }
.member-activity-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border-color);
    font-size: .875rem;
}
.member-activity-list li:last-child { border: 0; }
.member-activity-list a { color: var(--text-primary); font-weight: 500; }
.member-activity-list a:hover { color: var(--accent-teal); }
.member-activity-date { font-size: .75rem; color: var(--text-light); flex-shrink: 0; margin-left: 12px; }

/* Quicklinks Grid */
.member-quicklinks { margin-bottom: 24px; }
.member-quicklinks h3 { font-size: 1rem; margin-bottom: 12px; }
.member-quicklinks-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px;
}
.member-quicklink-card {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 16px; background: var(--bg-primary);
    border: 1px solid var(--border-color); border-radius: var(--radius);
    font-size: .875rem; font-weight: 500; color: var(--text-secondary);
    transition: var(--transition-fast);
}
.member-quicklink-card:hover {
    border-color: var(--primary-color); color: var(--primary-color);
    transform: translateY(-1px); box-shadow: var(--shadow-sm);
}

/* Admin CTA in Sidebar */
.member-admin-cta {
    padding: 0 16px 12px; border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
}
.member-admin-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 8px 12px;
    background: var(--primary-color); color: #fff; border-radius: var(--radius);
    font-size: .8rem; font-weight: 600; text-decoration: none;
    transition: var(--transition-fast);
}
.member-admin-btn:hover { background: var(--primary-dark); }

/* Admin-Analysen Card */
.member-admin-analytics { border-left: 3px solid var(--primary-color); }
.member-stats--admin { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.member-stat-card--admin { border-color: var(--primary-light, #eff6ff); }
.member-stat-badge {
    margin-top: 4px; font-size: .7rem; font-weight: 600; color: #065f46;
    background: #d1fae5; padding: 2px 8px; border-radius: 99px;
    display: inline-block;
}
.member-stat-badge--warn {
    color: #92400e; background: #fef3c7;
}

/* Empty State */
.member-empty { padding: 24px; text-align: center; color: var(--text-muted); }
.member-empty-state {
    text-align: center; padding: 48px 24px;
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.member-empty-state p { margin: 4px 0; color: var(--text-muted); font-size: .9rem; }
.member-empty-state strong { color: var(--text-primary); }

/* Alerts */
.member-alert {
    padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px;
    font-size: .875rem; font-weight: 500;
}
.member-alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.member-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Form */
.member-form-group { margin-bottom: 16px; }
.member-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.member-label {
    display: block; font-size: .82rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 4px;
}
.member-label .req { color: #ef4444; }
.member-input {
    width: 100%; padding: 10px 12px; border: 2px solid var(--border-color);
    border-radius: var(--radius-sm); font-size: .875rem; color: var(--text-primary);
    background: var(--bg-primary); transition: var(--transition-fast);
}
.member-input:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 3px rgba(30,58,95,.1); }
.member-textarea { resize: vertical; min-height: 100px; }
.member-form-info { padding-top: 12px; border-top: 1px solid var(--border-color); font-size: .82rem; color: var(--text-muted); }
.member-form-info p { margin: 4px 0; }
.member-actions { margin-top: 4px; margin-bottom: 24px; }

/* Filter Tabs */
.member-filter-tabs {
    display: flex; gap: 4px; margin-bottom: 20px;
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 4px; overflow-x: auto;
}
.member-filter-tab {
    padding: 8px 16px; border-radius: var(--radius-sm); font-size: .82rem;
    font-weight: 500; color: var(--text-muted); white-space: nowrap;
    transition: var(--transition-fast);
}
.member-filter-tab:hover { background: var(--bg-secondary); color: var(--text-primary); }
.member-filter-tab.active { background: var(--primary-color); color: #fff; }

/* Favorites Grid */
.member-fav-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px; margin-bottom: 24px;
}
.member-fav-card {
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius); overflow: hidden; transition: var(--transition);
}
.member-fav-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.member-fav-img { height: 140px; overflow: hidden; }
.member-fav-img img { width: 100%; height: 100%; object-fit: cover; }
.member-fav-body { padding: 16px; }
.member-fav-badge {
    display: inline-block; font-size: .7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
    background: rgba(30,58,95,.08); color: var(--primary-color);
    padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
}
.member-fav-body h3 { font-size: .95rem; margin: 0 0 6px; }
.member-fav-body h3 a { color: var(--text-primary); }
.member-fav-body h3 a:hover { color: var(--accent-teal); }
.member-fav-body p { font-size: .82rem; color: var(--text-muted); margin: 0 0 10px; line-height: 1.5; }
.member-fav-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .75rem; color: var(--text-light); padding-top: 8px;
    border-top: 1px solid var(--border-color);
}
.member-fav-remove { display: inline; }
.member-fav-remove-btn {
    background: none; border: none; color: var(--text-light);
    cursor: pointer; font-size: .85rem; padding: 2px 6px; border-radius: 4px;
}
.member-fav-remove-btn:hover { background: #fee2e2; color: #dc2626; }

/* Comments List */
.member-comments-list { margin-bottom: 24px; }
.member-comment-item {
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px;
}
.member-comment-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 10px; flex-wrap: wrap; gap: 8px;
}
.member-comment-post-link { font-weight: 600; font-size: .9rem; color: var(--text-primary); }
.member-comment-post-link:hover { color: var(--accent-teal); }
.member-comment-meta { display: flex; gap: 12px; align-items: center; }
.member-comment-status { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.member-comment-status--approved { background: #d1fae5; color: #065f46; }
.member-comment-status--pending  { background: #fef3c7; color: #92400e; }
.member-comment-date { font-size: .75rem; color: var(--text-light); }
.member-comment-body { font-size: .875rem; line-height: 1.6; color: var(--text-secondary); }
.member-comment-more { color: var(--text-light); }

/* Newsletter / Feed Cards */
.member-newsletter-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px; margin-bottom: 24px;
}
.member-newsletter-card { padding: 20px; }
.member-newsletter-card--active { border-color: var(--accent-teal); background: rgba(13,148,136,.03); }
.member-newsletter-desc { font-size: .82rem; color: var(--text-muted); margin: 0 0 12px; line-height: 1.5; }
.member-newsletter-action {
    display: flex; align-items: center; gap: 8px;
    padding-top: 12px; border-top: 1px solid var(--border-color);
}
.member-newsletter-status { font-size: .78rem; color: var(--accent-teal); font-weight: 500; margin-left: auto; }
.member-feed-url { font-size: .75rem; margin: 0 0 8px; }
.member-feed-url a { color: var(--text-light); }
.member-feed-url a:hover { color: var(--accent-teal); }

/* Forum Thread List */
.member-forum-list { margin-bottom: 24px; }
.member-forum-thread {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; background: var(--bg-primary);
    border: 1px solid var(--border-color); border-radius: var(--radius);
    margin-bottom: 8px; transition: var(--transition-fast);
}
.member-forum-thread:hover { border-color: var(--primary-color); box-shadow: var(--shadow-sm); }
.member-forum-thread-main { min-width: 0; flex: 1; }
.member-forum-thread-main h3 { font-size: .9rem; margin: 0 0 4px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-forum-thread-meta { display: flex; gap: 12px; font-size: .75rem; color: var(--text-light); }
.member-forum-thread-replies {
    text-align: center; flex-shrink: 0; margin-left: 16px;
}
.member-forum-reply-count {
    display: block; font-size: 1.2rem; font-weight: 800; color: var(--primary-color);
}
.member-forum-reply-label { display: block; font-size: .65rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .04em; }

/* Pagination */
.member-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin: 24px 0; font-size: .875rem; color: var(--text-muted);
}

/* Dark Mode overrides */
body.dark-mode .member-bar { background: var(--bg-dark-3); border-bottom-color: var(--border-dark); }
body.dark-mode .member-bar__link:hover { background: rgba(255,255,255,.08); }
body.dark-mode .member-sidebar { background: var(--bg-dark-3); border-color: var(--border-dark); }
body.dark-mode .member-card,
body.dark-mode .member-stat-card,
body.dark-mode .member-fav-card,
body.dark-mode .member-comment-item,
body.dark-mode .member-forum-thread,
body.dark-mode .member-quicklink-card,
body.dark-mode .member-filter-tabs,
body.dark-mode .member-empty-state { background: var(--bg-dark-3); border-color: var(--border-dark); }
body.dark-mode .member-input { background: var(--bg-dark-2); border-color: var(--border-dark); color: var(--text-primary); }

/* Responsive */
@media (max-width: 768px) {
    .member-container { grid-template-columns: 1fr; }
    .member-sidebar { position: static; }
    .member-grid-2 { grid-template-columns: 1fr; }
    .member-form-row { grid-template-columns: 1fr; }
    .member-fav-grid { grid-template-columns: 1fr; }
    .member-newsletter-grid { grid-template-columns: 1fr; }
    .member-comment-header { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════════
   2026 BEST PRACTICES
   ══════════════════════════════════════════════════════════════════ */

/* — Reduced Motion: Respect user accessibility preference — */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .post-hero-img { animation: none !important; }
    [data-anim] { opacity: 1 !important; transform: none !important; }
    .scroll-progress { display: none !important; }
    .back-to-top { transition: none !important; }
}

/* — Prefers Color Scheme (auto dark mode fallback) — */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode) {
        --bg-primary:    #1a2332;
        --bg-secondary:  #111827;
        --bg-tertiary:   #1e2d3d;
        --text-primary:  #f1f5f9;
        --text-secondary:#cbd5e1;
        --text-muted:    #94a3b8;
        --border-color:  #334155;
    }
}

/* — Focus-Visible: Modern keyboard focus indicators — */
:focus-visible {
    outline: 2px solid var(--accent-color, #e8a838);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-color, #e8a838);
    outline-offset: 2px;
}

/* — High Contrast: Better readability for forced-colors mode — */
@media (forced-colors: active) {
    .btn, .badge, .status-badge, .share-btn {
        border: 1px solid ButtonText;
    }
    .post-hero-img { border: 1px solid CanvasText; }
}

/* — Smooth Scroll (only when no motion preference) — */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* — Container Query readiness — */
.content-layout { container-type: inline-size; }
@container (max-width: 700px) {
    .content-layout { grid-template-columns: 1fr !important; }
    .sidebar { display: none; }
}

/* — Modern selection styling — */
::selection {
    background: var(--accent-color, #e8a838);
    color: var(--bg-dark, #0a0f1a);
}

/* — Print styles — */
@media print {
    .site-header, .site-footer, .sidebar, .scroll-progress,
    .back-to-top, .post-share, .post-nav, .comments-section,
    .consent-banner, .cookie-banner { display: none !important; }
    .page-wrap { padding: 0 !important; margin: 0 !important; }
    .content-layout { grid-template-columns: 1fr !important; gap: 0 !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}

/* ═══════════════════════════════════════════════════════════════
   NEUE KOMPONENTEN – 2026-03-04
   Breadcrumb · Reading-Time-Badge · Code-Copy-Button · Notif-Badge
   ═══════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.breadcrumb-nav {
    background: var(--bg-secondary, #f1f5f9);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    padding: .45rem 0;
    font-size: .78rem;
    color: var(--text-muted, #94a3b8);
    /* Direkt unter dem Fixed-Header – spacing-header-content aufheben */
    margin-top: calc(-1 * var(--spacing-header-content, 25px));
    margin-bottom: var(--spacing-header-content, 25px);
}
.breadcrumb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb a  { color: var(--text-secondary, #64748b); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--primary-light, #2563eb); text-decoration: underline; }
.breadcrumb .sep     { padding: 0 .3rem; color: var(--text-muted, #94a3b8); user-select: none; }
.breadcrumb .current { color: var(--text-muted, #94a3b8); }
body.dark-mode .breadcrumb-nav {
    background: var(--bg-dark, #0a0f1a);
    border-color: rgba(255,255,255,.07);
}
body.dark-mode .breadcrumb a  { color: #94a3b8; }
body.dark-mode .breadcrumb a:hover { color: var(--accent-teal-light, #5eead4); }

/* ── Reading-Time Badge ─────────────────────────────────────────── */
.reading-time-badge {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    background: rgba(13,148,136,.12);
    color: var(--accent-teal, #0d9488);
    border: 1px solid rgba(13,148,136,.25);
    border-radius: 20px;
    padding: .15rem .6rem;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}
body.dark-mode .reading-time-badge {
    background: rgba(13,148,136,.18);
    border-color: rgba(13,148,136,.35);
    color: #5eead4;
}

/* ── Seiten: Aktualisierungs-Pill (Ende des Contents) ───────────── */
.page-updated-pill-wrap {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
}
.page-updated-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--bg-secondary, #f1f5f9);
    color: var(--text-muted, #64748b);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    padding: .25rem .75rem;
    font-size: .78rem;
    font-weight: 500;
    white-space: nowrap;
}
body.dark-mode .page-updated-pill {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.1);
    color: #94a3b8;
}

/* ── Code-Block Copy Button ─────────────────────────────────────── */
pre { position: relative; }
.code-copy-btn {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 4px;
    color: rgba(255,255,255,.65);
    cursor: pointer;
    font-size: .72rem;
    line-height: 1;
    padding: .28rem .42rem;
    transition: background .15s, color .15s, border-color .15s;
    z-index: 10;
    opacity: 0;
    transition: opacity .2s ease, background .15s;
}
pre:hover .code-copy-btn { opacity: 1; }
.code-copy-btn:hover { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); }
.code-copy-btn:focus-visible { opacity: 1; outline: 2px solid var(--accent-teal, #0d9488); outline-offset: 2px; }
.code-copy-btn.copied { background: rgba(13,148,136,.35); border-color: #0d9488; color: #fff; opacity: 1; }

/* ── Notification Badge ─────────────────────────────────────────── */
.notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    font-size: .6rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 3px;
    vertical-align: middle;
    animation: notif-pulse 2s ease-in-out infinite;
}
@keyframes notif-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .7; }
}

/* ── RSS SVG Icon ───────────────────────────────────────────────── */
.rss-svg-icon {
    vertical-align: middle;
    display: inline-block;
    color: var(--accent-color, #e8a838);
    transition: color .15s;
}
.member-bar__link:hover .rss-svg-icon { color: #fff; }

/* ── og_default_image Customizer-Feld (Hinweis für theme.json) ─── */
