/* ============================================================
   SPECULUMX — RADICAL REDESIGN
   CSS Techniques applied:
   01 mix-blend-mode: hard-light   (RGB hero circles)
   02 mix-blend-mode: difference   (logo, subtitle split band)
   03 backdrop-filter              (navbar, hero glass, noir/sepia on cards)
   04 stroke-dashoffset            (wave section divider, SVG draw-on)
   05 stroke                       (SVG draw-on)
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
    /* --bg:       #080807; */
    /* --bg:      #043d0b; */
    background-image: url('/assets/media/Texture_green_013.jpg');

    --surf:     #131311;
    --surf-2:   #1a1a17;
    --line:     rgba(255,255,255,0.07);
    --line-hi:  rgba(255,255,255,0.15);
    /* --text:     #e6e1d8; */
    --text:    white;
    --dim:      rgba(230,225,216,0.55);
    --gold:     #e8c547;
    --red:      #c74b3a;
    --blue:     #4a9abe;
    --green:    #7eb88a;
    --mono:     'IBM Plex Mono', monospace;
    --serif:    'Cormorant Garamond', serif;


    

    /* Compat aliases */
    --color-bg:         var(--bg);
    --color-bg-alt:     var(--surf);
    --color-primary:    var(--text);
    --color-secondary:  var(--gold);
    --color-accent:     var(--gold);
    --color-text:       var(--text);
    --color-text-light: var(--dim);
    --font-primary:     var(--serif);
    --font-secondary:   var(--mono);
    --border-radius:    0px;
    --shadow-light:     0 2px 12px rgba(0,0,0,0.5);
    --shadow-medium:    0 4px 24px rgba(0,0,0,0.7);
    --shadow-heavy:     0 8px 40px rgba(0,0,0,0.9);
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT SYSTEM
   Grid, Utilities, Komponenten-Basis
   ═══════════════════════════════════════════════════════════════ */

/* ── GRID ── */
.container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    background: var(--bg);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
}

.row > * {
    box-sizing: border-box;
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/*
 * Columns — mobile first (full width by default)
 *
 * flex: <grow> <shrink> <basis>
 *   grow:   0 = nicht wachsen
 *   shrink: 0 = nicht schrumpfen
 *   basis:  Breite als Anteil des Eltern-Containers (n/12 * 100)
 *
 * Beispiele:  3/12 = 25%,  4/12 = 33.33%,  8/12 = 66.67%,  10/12 = 83.33%
 */
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
    .col-md-3  { flex: 0 0 25%;      max-width: 25%; }      /*  3/12 */
    .col-md-4  { flex: 0 0 33.3333%; max-width: 33.3333%; } /*  4/12 */
    .col-md-8  { flex: 0 0 66.6667%; max-width: 66.6667%; } /*  8/12 */
    .col-md-9  { flex: 0 0 75%;      max-width: 75%; }      /*  9/12 */
    .col-md-10 { flex: 0 0 83.3333%; max-width: 83.3333%; } /* 10/12 */
}

@media (min-width: 992px) {
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
}

/* ── SPACING UTILITIES ── */
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mt-15 { margin-top: 15rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
/* .my-5 { margin-top: 3rem; margin-bottom: 3rem; } */
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* ── DISPLAY UTILITIES ── */
.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

/* ── TEXT UTILITIES ── */
.text-center { text-align: center; }
.lead { font-size: 1.25rem; font-weight: 300; }
.small { font-size: 10px; }

/* ── BUTTON BASE ── */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
    text-decoration: none;
    background: #be7c15;
    color: black;
}

.btn:hover { text-decoration: none; }
.btn:focus { outline: 0; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; }
.btn-lg { padding: 0.5rem 1.2rem; font-size: 0.875rem; }
.btn-group { display: inline-flex; }
.btn-group > .btn { border-radius: 0; }

/* ── FORM BASE ── */
.form-group { margin-bottom: 1rem; }

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
    background-color: transparent;
    border: 1px solid var(--line-hi);
    border-radius: 0;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.form-control:focus {
    border-color: var(--gold);
    outline: 0;
    box-shadow: none;
}

.form-check { position: relative; display: block; padding-left: 1.25rem; }
.form-check-input { position: absolute; margin-top: 0.3rem; margin-left: -1.25rem; }
.form-check-label { margin-bottom: 0; }
.form-text { display: block; margin-top: 0.25rem; }
.form-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.form-actions .btn {
    min-width: 160px;
    text-align: center;
}

/* ── ALERT BASE ── */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0;
}

.alert-warning {
    /* background: transparent; */
    border-color: var(--gold);
    color: var(--gold);
}

.alert-info {
    /* background: transparent; */
    border-color: var(--blue);
    color: var(--blue);
}

.alert-dismissible {
    position: relative;
    padding-right: 3rem;
    display: flex;
    align-items: center;
}
.alert-dismissible .close {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    padding: 0;
    color: inherit;
    /* background: transparent; */
    border: 0;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.fade { opacity: 0; transition: opacity 0.15s linear; }
.fade.show { opacity: 1; }

/* ── CARD BASE ── */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surf);
    /* border: 1px solid var(--line); */
    border-radius: 0;
}

.card-body {
    flex: 1 1 auto;
    /* background: var(--surf); */
    background: #ec54c2;
    padding: 1rem 1.2rem;
}

.card-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 0.4rem;
}

.card-text:last-child { margin-bottom: 0; }

.card-img-top {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: contrast(1.05) brightness(1);
    transition: filter 0.5s;
    border-radius: 0;
}

.card-footer {
    /* background: var(--surf); */
    background: #320d75;
    border-top: 1px solid var(--line);
    padding: 0.75rem 1.2rem;
    border-radius: 0;
}

/* ── BADGE ── */
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.badge-secondary {
    background: transparent;
    border: 1px solid var(--line-hi);
    color: var(--dim);
}

/* ── LIST GROUP ── */
.list-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: 0;
    margin-top: 0.3rem;
}

.list-group-item {
    position: relative;
    display: contents;
    background: var(--surf);
    border: none;
    border-bottom: 1px solid var(--line);
    color: var(--dim);
    font-family: var(--mono);
    font-size: 10px;
    padding: 0.45rem 0.6rem;
    border-radius: 0;
}

/* ── PAGINATION ── */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item .page-link {
    position: relative;
    display: block;
    background: sandybrown;
    border: 1px solid var(--line-hi);
    /* color: var(--dim); */
    color: black;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    padding: 0.4rem 0.9rem;
    transition: border-color 0.2s, color 0.2s;
    box-shadow: none;
}

.page-item .page-link:hover {
    border-color: var(--gold);
    /* color: var(--gold); */
    color: inherit;
    background: var(--blue);
}

.page-item.active .page-link {
    border-color: var(--gold);
    /* color: var(--gold); */
    color: inherit;
    background: #52d821;
}

.page-item.disabled .page-link {
    opacity: 0.2;
    pointer-events: none;
    border-color: var(--line);
}

/* ── COLLAPSE ── */
.collapse:not(.show) { display: none; }
.collapse.show { display: block; }

/* ── DROPDOWN ── */
.dropdown-toggle { cursor: pointer; }
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: '';
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* ── CLOSE BUTTON ── */
.close {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
    opacity: 0.5;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.close:hover { opacity: 0.75; }

/* ── MISC UTILITIES ── */
.bg-transparent { 
    /* background: transparent;  */
    background: #100b30;
}

/* ═══════════════════════════════════════════════════════════════ */

/* ── RESET (Bootstrap-Ersatz) ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ── GLOBAL ── */
html {
    background-color: var(--bg);
    overflow-x: hidden;
}

body {
    /* background-color: var(--bg); */
    color: var(--text);
    font-family: var(--mono);
    /* font-size: 12px; */
    /* line-height: 1.55; */
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

p {
    font-size: 16px;
    line-height: 1.45;
}

main {
    background: var(--bg);
    padding: 0;
    flex: 1;
}

/* ── UTILITIES ── */
.hidden { display: none !important; }
.ornament-flip-y { transform: scaleY(-1); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--text);
    font-weight: 300;
    font-style: italic;
}

p, li, label, button, input, textarea {
    font-family: var(--mono);
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover { color: var(--text); }

/* ── NAVBAR — Mobile first ── */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9002;
    /* background: #050504; */
    background: #d4d431;
    /* TECHNIQUE 03: backdrop-filter on navbar */
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--line);
}

.navbar-container {
    /* Mobile: compact */
    width: 100%;
    height: fit-content;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* TECHNIQUE 02: Logo with mix-blend-mode: difference
   Reads on any background — inverts underlying colour */
.logo {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.01em;
    color: white;
    mix-blend-mode: difference;
    margin-left: 0;
    line-height: 1;
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0 0 0 auto;
    display: flex;
    align-items: center;
}

/* Unified style for all nav items — links and buttons identical */
.navbar .menu-items li a,
.navbar .menu-items li .nav-link-button {
    display: inline-block;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    /* color: var(--dim); */
    color: rgb(31, 12, 48);
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    text-decoration: none;
}

.navbar .menu-items li a:hover,
.navbar .menu-items li .nav-link-button:hover {
    color: var(--gold);
    background: transparent;
}

.navbar a:hover,
.navbar a:focus { color: var(--gold); }

/* Hamburger — hidden on desktop */
.navbar input[type="checkbox"],
.navbar .hamburger-lines {
    display: none;
}

.menu-home { display: none; }

/* Mobile: hamburger + slide-in menu */
@media (max-width: 768px) {
    .navbar input[type="checkbox"],
    .navbar .hamburger-lines {
        display: block;
    }

    .navbar-container input[type="checkbox"] {
        position: relative;
        height: 40px;
        width: 25px;
        top: 14px;
        left: 1rem;
        z-index: 1000;
        opacity: 0;
        cursor: pointer;
    }

    .navbar-container .hamburger-lines {
        height: 20px;
        width: 25px;
        position: absolute;
        top: 16px;
        left: 1rem;
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

    .navbar-container .hamburger-lines .line {
        height: 2px;
        width: 100%;
        /* background: var(--dim); */
        background: black;
        transition: transform 0.3s ease;
    }

    .navbar-container .hamburger-lines .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
    }
    .navbar-container .hamburger-lines .line2 {
        transition: transform 0.2s ease-in-out;
    }
    .navbar-container .hamburger-lines .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
    }

    .logo { display: none; }

    .navbar .menu-items {
        position: absolute;
        top: 47px;
        left: 0;
        width: 280px;
        min-width: 280px;
        background: #050504;
        border-right: 1px solid var(--line-hi);
        border-bottom: 1px solid var(--line-hi);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* padding: 1rem 0; */
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 998;
        list-style: none;
        margin: 0;
        /* box-shadow: 4px 0 20px rgba(0,0,0,0.6); */
    }

    .navbar .menu-items li a,
    .navbar .menu-items li .nav-link-button {
        font-size: 10px;
        letter-spacing: 0.15em;
        color: var(--text);
        padding: 0.6rem 1.5rem;
    }

    .menu-items li {
        border-bottom: 1px solid var(--line);
        padding: 0;
        margin-left: 0;
        width: 100%;
    }

    .menu-items li:last-child { border-bottom: none; }

    .navbar .menu-items .menu-home { display: list-item; }

    .navbar-container input[type="checkbox"]:checked ~ .menu-items {
        transform: translateX(0);
    }
    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
        transform: rotate(45deg);
    }
    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
        transform: scaleY(0);
    }
    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
        transform: rotate(-45deg);
    }
}

/* Desktop: normal horizontal nav */
@media (min-width: 768px) {
    .navbar-container {
        padding: 0 2rem;
    }
    .logo {
        font-size: 1.6rem;
    }
    .menu-items li {
        margin-left: 0.8rem;
    }
}

@media (min-width: 992px) {
    .menu-items li {
        margin-left: 1.5rem;
    }
}

/* ── HERO SECTION — Mobile first ── */
.header-section {
    /* position: relative; */
    /* min-height: 55vh; */
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: max-content max-content max-content;
    /* align-items: center; */
    /* justify-content: center; */
    overflow: hidden;
    padding: 0;
    background: var(--bg);
}

@media (max-width: 576px) {
    .header-section {
        grid-template-columns: 1fr;
    } 
}


/* Override the existing warm gradient overlay */
.header-section::before {
    background: linear-gradient(
        180deg,
        rgba(8,8,7,0.55) 0%,
        rgba(8,8,7,0.3) 50%,
        rgba(8,8,7,0.65) 100%
    );
    z-index: 1;
}

/* TECHNIQUE 03: Glass panel with backdrop-filter — Mobile first */
.hero-glass-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    height: -webkit-fill-available;
    /* z-index: 9001; */
    text-align: center;
    /* Mobile: compact padding */
    padding: 2rem 1.5rem;
    /* backdrop-filter: blur(8px) brightness(0.55) contrast(1.1); */
    /* -webkit-backdrop-filter: blur(8px) brightness(0.55) contrast(1.1); */
    /* background: rgba(20,20,18,0.3); */
    background: rgba(175, 23, 23, 0.8);
    border: 1px solid var(--line-hi);
    /* width: 100%; */
    /* margin: 2.5rem auto; */
}

/* Tablet+ */
@media (min-width: 576px) {
    .hero-glass-content {
        padding: 2.5rem 3rem;
        /* width: 85%; */
    };  
}

/* Desktop */
@media (min-width: 992px) {
    .hero-glass-content {
        padding: 3.5rem 5rem;
        /* max-width: 860px; */
        /* width: 80%; */
    }
}

.main-title {
    font-family: var(--serif);
    /* Mobile */
    font-size: clamp(2rem, 8vw, 5.5rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 0.92;
    color: var(--text);
    margin-top: 0;
    margin-bottom: 0;
    text-shadow: none;
    width: auto;
    animation: none;
}

/* TECHNIQUE 02: Difference band — subtitle on split white/black strip */
.hero-diff-band {
    background: linear-gradient(90deg, rgba(255,255,255,0.85) 50%, rgba(0,0,0,0.75) 50%);
    /* Mobile: span full padded width */
    margin: 1.2rem -1.5rem 0;
    padding: 0.55rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 576px) {
    .hero-diff-band {
        margin: 1.5rem -3rem 0;
        padding: 0.6rem 3rem;
    }
}

@media (min-width: 992px) {
    .hero-diff-band {
        margin: 1.5rem -5rem 0;
        padding: 0.6rem 5rem;
    }
}

.sub-title {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: white;
    mix-blend-mode: difference;
    font-style: normal;
    margin: 0;
    text-shadow: none;
    animation: none;
}

.description {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dim);
    letter-spacing: 0.04em;
    margin-top: 1.2rem;
    line-height: 1.75;
    text-shadow: none;
    animation: none;
    /* Mobile: no max-width restriction */
}

@media (min-width: 576px) {
    .description {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

.header-divider {
    border: none;
    border-top: 1px solid var(--line-hi);
    margin: 1.5rem auto 0;
    width: 50px;
}

/* Ornaments — gold tint */
.ornament {
    opacity: 0.35;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(15deg) brightness(0.9);
    /* Mobile: smaller */
    width: 28px;
    height: auto;
}

@media (min-width: 768px) {
    .ornament { width: 36px; }
}

/* TECHNIQUE 04: stroke-dashoffset wave divider (draws on page load) */

/* ── MAIN CONTENT LAYOUT ── */

/* ── SIDEBAR — Mobile first ── */
.col-md-3 {
    padding-left: 0;
    padding-right: 0;
}

.sidebar {
    /* background: var(--surf); */
    background: #7f61ff;
    /* color: rgb(11, 218, 33); */
    color: black;
    height: -webkit-fill-available;
    /* Mobile: horizontal strip */
    /* padding: 1.5rem 1.2rem; */
    border-bottom: 1px solid var(--line);
}

.sidebar:hover {
    background: #08c9e2;
    /* color: #000; */
}

@media (min-width: 768px) {
    .sidebar {
        /* padding: 2.5rem 1.8rem; */
        border-bottom: none;
        border-right: 1px solid var(--line);
        /* min-height: 100%; */
    }
}

.sidebar-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    font-style: initial;
    background: #7eb88a;
    /* color: var(--dim); */
    color: black;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--line);
    /* padding-bottom: 0.4rem; */
    margin-bottom: 0;
    margin-top: 0;
    /* text-transform: none; */
}

.sidebar-title:first-child { margin-top: 0; }

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* font-size: larger; */
}

.nav-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--line);
    /* font-size: 10px; */
    letter-spacing: 0.04em;
}

.nav-list li:hover {
    background: #58e616b6;
}

.nav-list a {
    /* color: var(--dim); */
    color: inherit;
    font-family: var(--mono);
    /* font-size: 10px; */
    transition: color 0.2s;
}

/* .nav-list a:hover { 
    color: var(--gold); 
    color: inherit; 
 } */

.text-muted, .text-muted.small {
    color: var(--dim);
    font-family: var(--mono);
    font-size: 10px;
}

/* Bootstrap dropdown button */
.btn-secondary,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.active {
    /* background: transparent; */
    background: #222354d9;
    border: 1px solid var(--line-hi);
    color: var(--dim);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 0;
    padding: 0.45rem 1rem;
    box-shadow: none;
    transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.list-group-item a { 
    /* color: var(--dim); */
    color: #050505;
     font-size: 14px; 
}
.list-group-item a:hover { color: var(--gold); }

/* ── CONTENT AREA — Mobile first ── */
.col-md-9 { padding-left: 0; padding-right: 0; }

.content-area {
    /* padding: 2rem 1rem 2rem; */
    background: var(--bg);
    display: flex;
    flex-direction: column;
    /* max-width: 895px; */
}

/* .col-md-9 .content-area {
    max-width: 100%;
} */

/* Read-post page: dark background for content area */
#blogpost-content {
    background: #000;
    border-radius: 2px;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 9001;
}

.post-reading-time {
    font-size: 12px;
}

#blogpost-content .comment-form-container {
    background: #0d0d0d;
}

@media (min-width: 768px) {
    /* .content-area { padding: 2.5rem 2rem 2rem; } */
    #blogpost-content { padding: 2.5rem 2rem; }
}

/* Section titles */
.featured-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    padding-bottom: 0.7rem;
    border-bottom: none;
    text-transform: none;
    text-align: center;
}

@media (min-width: 768px) {
    .featured-title { font-size: 1.7rem; }
}

/* ── POST CONTENT TYPOGRAPHY ── */
.post-content {
    font-family: var(--serif);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 30px;
}

.post-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 2rem 0;
}

.post-content blockquote {
    quotes: "\201E" "\201C" "\201A" "\2018";
    border-left: 4px solid var(--gold);
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--dim);
    background: var(--surf);
}

.post-content blockquote p { margin-bottom: 0.5em; }

.post-content blockquote footer {
    margin-top: 0.8em;
    font-style: normal;
    font-size: 0.9em;
    color: var(--text);
}

.post-content blockquote cite {
    font-weight: 600;
    color: var(--gold);
}

.post-content pre,
.post-content pre[class*="language-"] {
    background: #272822;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.post-content code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.15em 0.4em;
    color: var(--gold);
}

.post-content pre code {
    font-family: var(--mono);
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre;
    word-break: normal;
    word-wrap: normal;
    background: none;
    padding: 0;
    color: #f8f8f2;
}

.preview-post-content img,
.blogpost-content img,
.post-content img,
.blogpost-content-img {
    max-width: 100%;
    height: auto;
    margin: 10px auto;
    display: block;
}


.preview-box img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    display: block;
}

/* ── FEATURED POST CARDS — Mobile first ── */
.featured-posts-grid {
    display: grid;
    height: -webkit-fill-available;
    /* Mobile: single column */
    /* grid-template-columns: 1fr;
    grid-template-rows: 33% 33% 34%; */
    /* gap: 20px; */
    /* background: transparent; */
    /* border-radius: 0; */
}

/* @media (min-width: 768px) {
    .featured-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
} */

.featured-post-card {
    /* background: var(--surf); */
    background: #1e00ec;
    /* padding: 1.2rem 1.5rem; */
    position: relative;
    overflow: hidden;
    transition: background 0s, border 0s;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    /* min-height: 160px; */
    min-height: fit-content;
}

/* TECHNIQUE 03: backdrop-filter sepia on card hover */
.featured-post-card::before {
    content: '';
    position: absolute;
    inset: 0;
    /* backdrop-filter: sepia(0) brightness(1); */
    /* -webkit-backdrop-filter: sepia(0) brightness(1); */
    /* transition: backdrop-filter 0.45s, -webkit-backdrop-filter 0.45s; */
    pointer-events: none;
    z-index: 0;
}

.featured-post-card:hover {
    /* background: #050505; */
    background: #ec560de0;
    border: 1px solid rgba(232, 197, 71, 0.45);
    /* transform: scale(1.02); */
    z-index: 9001;
}

.featured-post-card:hover::before {
    backdrop-filter: sepia(0.5) brightness(1.05);
    -webkit-backdrop-filter: sepia(0.5) brightness(1.05);
}

/* Gold border reveal on hover (stroke-dashoffset spirit in pure CSS) */
.featured-post-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--gold);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 1;
}

.featured-post-card:hover::after { opacity: 0; }

.featured-post-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    font-style: initial;
    line-height: 1.3;
    margin-bottom: 0.7rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .featured-post-title { font-size: 1.25rem; }
}

.featured-post-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    /* font-style: inherit; */
}

.featured-post-link:hover { color: var(--gold); }

.featured-post-excerpt {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--dim);
    line-height: 1.75;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.featured-post-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.8rem;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

/* TECHNIQUE 01: mix-blend-mode on preview thumbnail */
.featured-post-preview {
    width: 56px;
    height: 56px;
    object-fit: cover;
    opacity: 0.65;
    mix-blend-mode: luminosity;
    order: 2;
    margin-left: auto;
    filter: contrast(1.15);
    flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn-outline-primary,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    /* background: #be7c15; */
    border: 1px solid var(--line-hi);
    /* color: var(--dim); */
    /* color: black; */
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border-radius: 0;
    padding: 0.4rem 1rem;
    box-shadow: none;
    transition: border-color 0.2s, color 0.2s;
}

.btn-outline-primary:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(0, 0, 0, 0.4);
}

/* Alle weiteren Button-Varianten — einheitliches dunkles Design */
.btn-secondary-theme,
.btn-secondary-theme:focus,
.btn-secondary-theme:active,
.btn-outline-secondary,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-danger,
.btn-outline-danger:focus,
.btn-outline-danger:active,
.btn-outline-success,
.btn-outline-success:focus,
.btn-outline-success:active,
.btn-outline-warning,
.btn-outline-warning:focus,
.btn-outline-warning:active,
.btn-outline-info,
.btn-outline-info:focus,
.btn-outline-info:active,
.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-danger,
.btn-success,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark {
    /* background: transparent; */
    border: 1px solid var(--line-hi);
    /* color: var(--dim); */
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border-radius: 0;
    padding: 0.4rem 1rem;
    box-shadow: none;
    transition: border-color 0.2s, color 0.2s;
}

.btn-secondary-theme:hover,
.btn-outline-secondary:hover,
.btn-outline-danger:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-primary:hover,
.btn-danger:hover,
.btn-success:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-light:hover,
.btn-dark:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(0, 0, 0, 0.4);
}

/* Pagination — etwas größere Schrift für ‹ › Pfeile */
#cards-prev,
#cards-next {
    font-size: 11px;
    padding: 0.3rem 0.8rem;
}

#cards-prev:hover,
#cards-next:hover {
    border-color: var(--gold);
    color: var(--gold);
}

#cards-page-info {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--dim);
    letter-spacing: 0.1em;
}

/* ── DISCOVERY CARDS SECTION — Mobile first ── */
.container.my-5 {
    background: var(--bg);
    max-width: 100%;
    border-top: none;
    /* Mobile: smaller spacing */
    padding-top: 0;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .container.my-5 {
        padding-top: 0;
        padding-bottom: 3rem;
    }
}

.container.my-5 .featured-title { padding-left: 0.5rem; }

.card-img-wrap {
    position: relative;
    overflow: hidden;
}

/* TECHNIQUE 03: sepia/noir on discovery card images */
@media (min-width: 768px) {
    .card-img-top { height: 240px; }
    .card-body { padding: 1.2rem 1.4rem; }
    .card-footer { padding: 0.8rem 1.4rem; }
}

.discovery-card:hover .card-img-top {
    filter: contrast(1.40) brightness(1.10);
}

.discovery-card-item {
    padding: 1rem;
}

@media (max-width: 767px) {
    .discovery-card-item {
        padding: 0.5rem 0;
    }
}

.discovery-card {
    /* background: var(--surf); */
    /* background: #8f11d6; */
    /* border: 1px solid var(--line); */
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0s, box-shadow 0s;
}

.discovery-card:hover {
    /* border-color: var(--line-hi); */
    /* background: rgba(0, 0, 0, 0.35); */
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 9001;
}

.card-text {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--dim);
    line-height: 1.65;
}

@media (max-width: 767px) {
    #discoveries-grid { 
        /* gap: 1rem; */
    }
}

/* ── FOOTER ── */
.site-footer {
    /* background: var(--surf); */
    background: url('/assets/media/Texture_red_yellow_040.gif');
    border-top: 1px solid var(--line);
    margin-top: 0;
    color: #000;
    /* padding: 1.8rem 0; */
}

/* @media (min-width: 768px) {
    .site-footer { padding: 2rem 0; }
} */

.footer-title {
    display: block;
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    /* color: var(--text); */
    color: inherit;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.footer-text {
    font-family: var(--mono);
    font-size: 9px;
    /* color: var(--dim); */
    color: inherit;
    letter-spacing: 0.1em;
}

.footer-links {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    /* color: var(--dim); */
}

.footer-links a { 
    /* color: var(--dim);  */
    color: mediumblue;
    transition: color 0.2s; 
}
.footer-links a:hover { color: var(--gold); }

.footer-admin-link { display: none; }
.footer-admin-link button {
    background: none;
    border: none;
    color: var(--dim);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
    font-family: var(--mono);
}
.footer-admin-link button:hover { color: var(--gold); }

/* ── FLOATING MENU SYSTEM ── */
.floating-menu {
    position: fixed;
    bottom: 30px;
    right: 2rem;
    z-index: 9002;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.menu-toggle {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surf-2);
    border: 1px solid var(--line-hi);
    cursor: pointer;
    transition: border-color 0.2s;
    order: 2;
}

.menu-toggle:hover,
.menu-toggle:focus {
    border-color: var(--gold);
    outline: none;
}

.menu-toggle.active {
    border-color: var(--red);
}

.menu-toggle img {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    pointer-events: none;
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    order: 1;
}

.menu-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-option {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line-hi);
    background: var(--surf-2);
    color: var(--dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-family: var(--mono);
    transition: border-color 0.2s, color 0.2s;
    position: relative;
}

.menu-option:hover,
.menu-option:focus {
    border-color: var(--gold);
    color: var(--gold);
    outline: none;
}

.menu-toggle:active,
.menu-option:active {
    opacity: 0.7;
}

.admin-btn { font-size: 20px; }
.scroll-top-btn { font-size: 18px; font-weight: bold; }

.menu-option[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surf-2);
    border: 1px solid var(--line-hi);
    color: var(--text);
    padding: 4px 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 9003;
    font-family: var(--mono);
}

/* ── ADMIN LOGIN MODAL ── */
#admin-login-modal.modal {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(8,8,7,0.85);
    backdrop-filter: blur(6px) brightness(0.6);
    -webkit-backdrop-filter: blur(6px) brightness(0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

#admin-login-modal .modal-content {
    background: var(--surf);
    border: 1px solid var(--line-hi);
    border-radius: 0;
    box-shadow: var(--shadow-heavy);
    width: 92%;
    max-width: 420px;
    /* Kein max-height / overflow-clip — Inhalt soll immer vollständig sichtbar sein */
    max-height: none;
    overflow: visible;
    padding: 0;
    position: relative;
    animation: none;
}

#admin-login-modal .modal-header {
    border-bottom: 1px solid var(--line);
    background: transparent;
    /* Negatives Margin aus main.css zurücksetzen */
    margin: 0;
    padding: 1.2rem 1.8rem;
    border-radius: 0;
}

#admin-login-modal .modal-header h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}

#admin-login-modal .modal-body {
    padding: 1.8rem;
}

#admin-login-modal label {
    display: block;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 0.4rem;
    margin-top: 1rem;
}

#admin-login-modal label:first-child { margin-top: 0; }

#admin-login-modal input[type="text"],
#admin-login-modal input[type="password"] {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line-hi);
    border-radius: 0;
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    padding: 0.55rem 0.8rem;
    box-shadow: none;
    outline: none;
    transition: border-color 0.2s;
    /* -webkit-text-fill-color: var(--text); */
}

#admin-login-modal input[type="text"]:focus,
#admin-login-modal input[type="password"]:focus {
    border-color: var(--gold);
    box-shadow: none;
}

/* Autofill colour override */
#admin-login-modal input:-webkit-autofill,
#admin-login-modal input:-webkit-autofill:hover,
#admin-login-modal input:-webkit-autofill:focus,
#admin-login-modal input:autofill,
#admin-login-modal input:autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
    box-shadow: 0 0 0 1000px var(--bg) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    caret-color: var(--text) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

#admin-login-modal .modal-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

#admin-login-cancel,
#admin-login-submit {
    background: transparent;
    border: 1px solid var(--line-hi);
    color: var(--dim);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border-radius: 0;
    padding: 0.45rem 1.2rem;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.2s, color 0.2s;
}

#admin-login-cancel:hover,
#admin-login-submit:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: transparent;
}

#admin-login-error {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--red);
    letter-spacing: 0.05em;
    margin-top: 0.8rem;
    display: none;
}

/* Body defaults are set in GLOBAL section above — no theme override needed */

/* ── ADMIN PANEL & CONTROLS ── */
.admin-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-panel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 20px;
    background: var(--surf);
    border: 2px solid var(--gold);
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s, border-color 0.2s;
}

.admin-panel-card:hover {
    background: var(--gold);
    color: var(--bg);
    text-decoration: none;
}

.admin-panel-icon { font-size: 2rem; }

.admin-panel-label {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}


#admin-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#admin-controls form,
#admin-controls a.btn {
    margin: 4px;
}

.admin-delete-btn {
    background: transparent;
    color: var(--dim);
    border: 1px solid var(--line-hi);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    min-width: 180px;
    text-align: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-delete-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(0, 0, 0, 0.4);
}

.admin-delete-btn:active {
    opacity: 0.8;
}

/* ── ADMIN STATS DASHBOARD ── */
.stats-meta {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--dim);
    margin-bottom: 1.5rem;
}

/* KPI cards */
.stats-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stats-kpi-card {
    background: var(--surf);
    border: 1px solid var(--line);
    border-left: 3px solid var(--line-hi);
    border-radius: 6px;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stats-kpi--green  { border-left-color: var(--green); }
.stats-kpi--red    { border-left-color: var(--red); }
.stats-kpi--blue   { border-left-color: var(--blue); }
.stats-kpi--gold   { border-left-color: var(--gold); }

.stats-kpi--green .stats-kpi-value  { color: var(--green); }
.stats-kpi--red   .stats-kpi-value  { color: var(--red); }
.stats-kpi--blue  .stats-kpi-value  { color: var(--blue); }
.stats-kpi--gold  .stats-kpi-value  { color: var(--gold); }

.stats-kpi-value {
    font-family: var(--mono);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
}

.stats-kpi-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--dim);
    margin-top: 0.4rem;
    letter-spacing: 0.03em;
}

/* Section tables */
.stats-section {
    margin-bottom: 2.5rem;
}

.stats-section-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.4rem;
}

.stats-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 0.82rem;
}

.stats-table thead {
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 1;
}

.stats-table th {
    padding: 0.5rem 0.7rem;
    text-align: right;
    white-space: nowrap;
    border-bottom: 2px solid var(--line-hi);
    color: var(--dim);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.stats-table td {
    padding: 0.45rem 0.7rem;
    text-align: right;
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
}

.stats-th-label,
.stats-td-label {
    text-align: left;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Inline percent bar */
.stats-td-bar {
    position: relative;
    min-width: 80px;
    padding-right: 0.7rem;
}

.stats-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(74, 154, 190, 0.15);
    border-radius: 2px;
    pointer-events: none;
}

.stats-bar-label {
    position: relative;
    z-index: 1;
}

/* Latency / status semantic colors */
.stats-good { color: var(--green); }
.stats-info { color: var(--blue); }
.stats-warn { color: var(--gold); }
.stats-bad  { color: var(--red); }

/* Status code dot */
.stats-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
    background: var(--dim);
}

.stats-status-dot.stats-good { background: var(--green); }
.stats-status-dot.stats-info { background: var(--blue); }
.stats-status-dot.stats-warn { background: var(--gold); }
.stats-status-dot.stats-bad  { background: var(--red); }

.stats-truncated {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--dim);
    margin-top: 0.4rem;
}

/* ── FEEDBACK / NOTIFICATION SYSTEM ── */
#comment-feedback {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    max-width: 420px;
    width: calc(100vw - 40px);
}

#comment-feedback .alert {
    background-color: black;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    max-width: 420px;
    width: calc(100vw - 40px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification {
    position: relative;
    pointer-events: auto;
    padding: 14px 20px;
    min-width: 260px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.alert-success {
    background-color: rgba(126, 184, 138, 0.80);
    color: var(--green);
    border: 1px solid rgba(126, 184, 138, 0.3);
}

.notification.alert-danger {
    background-color: rgba(199, 75, 58, 0.80);
    color: var(--red);
    border: 1px solid rgba(199, 75, 58, 0.3);
}

.notification.alert-info {
    background-color: rgba(74, 154, 190, 0.80);
    color: var(--blue);
    border: 1px solid rgba(74, 154, 190, 0.3);
}

.notification.alert-warning {
    background-color: rgba(232, 197, 71, 0.80);
    color: var(--gold);
    border: 1px solid rgba(232, 197, 71, 0.3);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(100%); opacity: 0; }
}

/* ── ERROR / NOT-FOUND PAGES ── */
.error-page-container {
    padding: 40px 20px;
    text-align: center;
}

.error-alert {
    padding: 36px 32px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    animation: fadeInUp 0.5s ease-out;
}

.error-icon {
    font-size: 3.5rem;
    margin-bottom: 14px;
    line-height: 1;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.alert-heading {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: inherit;
}

/* ── COMPONENT REFINEMENTS ── */
.collapse { background: transparent; }
.dropdown-menu {
    background: var(--surf);
    border: 1px solid var(--line-hi);
    border-radius: 0;
}
.text-muted { color: var(--dim); }
/* .card.discovery-card { border: 1px solid var(--line); } */

/* ═══════════════════════════════════════════════════════════════
   BLOG POST PAGES  — listCurrentPosts / mostRead / archiv
   ═══════════════════════════════════════════════════════════════

   Konzept: Asymmetrische Redaktion.
   Auf Desktop schweben Datum + Autor absolut rechts außerhalb des
   Flusses. Der Titel spannt die volle Breite. Kein Box-Modell.
   Nur Typographie, Leerraum und eine Goldlinie die wächst.
   ─────────────────────────────────────────────────────────────── */

/* ── TAG FILTER FORM ── */
.posts-header {
    margin-bottom: 0;
    /* padding-bottom: 2rem; */
}

.active-tag-banner {
    display: block;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

/* Suchleiste bricht aus dem Content-Padding heraus → volle Spaltenbreite */
#tag-search-form {
    margin-left: -1rem;
    margin-right: -1rem;
    background: cadetblue;
    color: black;
}

@media (min-width: 768px) {
    #tag-search-form {
        margin-left: -2rem;
        margin-right: -2rem;
    }
}

.post-filter-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-hi);
    border-radius: 0;
    /* color: var(--text); */
    font-family: var(--serif);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.01em;
    padding: 0.9rem 1rem;
    box-shadow: none;
    outline: none;
    width: 100%;
    transition: border-bottom-color 0.25s;
}

.post-filter-input:focus {
    background: transparent;
    border-bottom-color: var(--gold);
    box-shadow: none;
}

.post-filter-input::placeholder {
    color: black;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* ── BLOG POST LIST ── */
#blogPostsList { 
    padding: 0; 
}

.blog-post-card {
    position: relative;
    /* padding: 2.2rem 2rem; */
    border: 1px solid rgba(162, 127, 77, 0.15);
    /* margin-bottom: 1.5rem; */
    background: var(--surf);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: border-color 0.3s;
}

.blog-post-card:nth-of-type(3n) { 
    background: rgba(3, 182, 0, 0.85); 
}

.blog-post-card:nth-of-type(3n+1) { 
    background: rgba(158, 0, 3, 0.85); 
}

.blog-post-card:nth-of-type(3n+2) { 
    background: rgba(11, 9, 138, 0.85); 
}
.blog-post-card:hover {
    border-color: var(--line-hi);
    /* background: rgba(0, 0, 0, 0.35); */
    /* z-index: 9001; */
}

/* Darkroom wash on hover — whole row gets a subtle sepia+dim */
.blog-post-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: backdrop-filter 0.55s ease, -webkit-backdrop-filter 0.55s ease;
}

.blog-post-card:hover::before {
    backdrop-filter: brightness(0.86) sepia(0.2) contrast(1.06);
    -webkit-backdrop-filter: brightness(0.86) sepia(0.2) contrast(1.06);
}

/* Post meta — mobile: inline row */
.post-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--mono);
    font-size: 8px;
    color: var(--dim);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0 0 0.9rem 0;
    position: relative;
    z-index: 1;
}

.post-date, .post-author {
    font-family: var(--mono);
    font-size: 8px;
    color: var(--dim);
    letter-spacing: 0.18em;
}

.post-updated {
    font-style: italic;
    color: var(--gold);
    font-size: 0.85rem;
    margin-top: 0.2rem;
    display: inline-block;
}

/* Desktop: meta floats absolute right, stacked vertically */
@media (min-width: 768px) {
    /* .blog-post-card { 
        padding: 3.2rem 0; 
    } */

    .post-meta {
        position: absolute;
        top: 3.2rem;
        right: 0;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25rem;
        margin: 0;
        text-align: right;
    }

    .post-meta .post-date::after {
        display: none;
    }
}

/* Title — full width headline */
.post-title {
    font-family: var(--serif);
    font-size: clamp(1rem, 2.5vw, 1.7rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.15;
    margin: 0;
    padding: 0;
    color: var(--text);
    letter-spacing: -0.015em;
    text-transform: none;
    position: relative;
    z-index: 1;
}

/* On desktop: right-pad to not collide with absolute meta */
@media (min-width: 768px) {
    .post-title { padding-right: 11rem; }
}

/* Short gold rule — grows on hover */
.post-title::after {
    content: '';
    display: block;
    width: 1.8rem;
    height: 1px;
    background: var(--gold);
    margin-top: 1rem;
    opacity: 0.55;
    transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post-card:hover .post-title::after {
    width: 5rem;
}

.post-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    font-size: inherit;
}

.post-link:hover { color: var(--gold); }

/* post-link-style: in Archiv/MostRead — erbt von h3, kein eigenes Upscaling */
.post-link-style {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    font-family: inherit;
}

.post-link-style:hover { color: var(--gold); }

/* Excerpt — hidden, reveals on hover */
.post-excerpt {
    font-family: var(--mono);
    font-size: 11px;
    /* color: var(--dim); */
    color: rgb(92, 255, 0);
    line-height: 1.72;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
    transition:
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease,
        margin-top 0.35s ease;
}

.blog-post-card:hover .post-excerpt {
    max-height: 8rem;
    opacity: 1;
    margin-top: 1.1rem;
}

/* On desktop: excerpt indented to match title baseline */
@media (min-width: 768px) {
    .blog-post-card:hover .post-excerpt {
        padding-right: 11rem;
    }
}

.post-footer {
    font-family: var(--serif);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--dim);
    letter-spacing: 0;
    margin-top: 0.8rem;
}

/* No-posts placeholder */
.no-posts-card {
    padding: 4rem 0;
    background: transparent;
    border: none;
    text-align: left;
}

.no-posts-card h3 {
    font-family: var(--serif);
    font-weight: 300;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--dim);
}

.no-posts-card p {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 0.08em;
}

/* Tags & post views */
a.tag {
    background: var(--surf-2);
    color: var(--dim);
    padding: 4px 12px;
    font-size: 0.85rem;
    font-family: var(--mono);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
    margin: 0 6px 6px 0;
    border: 1px solid var(--line);
    display: inline-block;
}

a.tag:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.post-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.post-views {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--dim);
    letter-spacing: 0.1em;
}

/* ── MOST READ ── */
#mostReadPosts {
    padding: 0;
}

.most-read-item {
    display: block;
    padding: 2.2rem 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(232, 197, 71, 0.15);
    border-left: none;
    position: relative;
    border-radius: 0;
    /* background: var(--surf); */
    /* background-image: none; */
    box-shadow: none;
    transform: none;
    transition: border-color 0.3s;
    background-color: #320870;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

.most-read-item:first-child {
    margin-top: 1rem;
}

.most-read-item:hover {
    border-color: var(--line-hi);
    /* background: #050505; */
    z-index: 9001;
}

/* Rank ausblenden */
.rank {
    display: none;
}

.most-read-content {
    min-width: 0;
}

.most-read-content h3 {
    font-family: var(--serif);
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.15;
    margin: 0 0 0.45rem 0;
    letter-spacing: -0.01em;
}

/* Gold rule on h3 — same grow-on-hover as post-title */
.most-read-content h3::after {
    content: '';
    display: block;
    width: 1.2rem;
    height: 1px;
    background: var(--gold);
    margin-top: 0.6rem;
    opacity: 0.45;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.most-read-item:hover .most-read-content h3::after {
    width: 3.5rem;
}

.most-read-content p {
    font-family: var(--mono);
    font-size: 8px;
    /* color: var(--dim); */
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 0.4rem 0;
}

/* Most-read excerpt always visible — ID specificity overrides base .post-excerpt */
#mostReadPosts .post-excerpt {
    max-height: none;
    opacity: 1;
    overflow: visible;
    display: block;
    margin-top: 0.5rem;
    font-family: var(--mono);
    font-size: 10px;
    /* color: var(--dim); */
    line-height: 1.7;
    padding-right: 0;
}

/* Loading: minimal pulse bar */
.loading-spinner {
    padding: 3rem 0;
}

.spinner {
    display: block;
    width: 2.5rem;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
    margin-bottom: 1.2rem;
    animation: pulseBar 1.4s ease-in-out infinite;
}

@keyframes pulseBar {
    0%, 100% { width: 2.5rem; opacity: 0.5; }
    50%       { width: 0.5rem; opacity: 0.15; }
}

.loading-spinner p {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--dim);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0;
}

/* ── ARCHIV ── */
.archive-years {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    padding-bottom: 1.5rem;
    margin-bottom: 0;
    margin-top: 1rem;
    border-bottom: 1px solid var(--line);
}

.archive-years label {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    /* color: var(--dim); */
    margin: 0 0.4rem 0 0;
}

.archive-years .btn-group { flex-wrap: wrap; gap: 2px; }

/* Year heading — dünner Separator-Label */
.archive-year-heading {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    /* color: var(--dim); */
    color: rgb(0, 255, 171);
    /* opacity: 0.45; */
    border-top: 1px solid var(--line);
    /* padding-top: 2rem; */
    padding-bottom: 1.2rem;
    margin: 0;
}

/* Archive entries: date left, title right — named grid-areas fix DOM order */
.archive-post-item {
    display: grid;
    grid-template-columns: 7rem 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "date  title"
        ".     excerpt";
    column-gap: 2.5rem;
    row-gap: 0;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
    border-radius: 0;
    /* background: var(--surf); */
    /* background-image: none; */
    box-shadow: none;
    border-left: none;
    background-color: #562D00;
    background-image: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='%239C92AC' fill-opacity='0.4'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.archive-post-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    background: var(--gold);
    width: 0;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.archive-post-item:hover {
    /* background: rgba(0, 0, 0, 0.35); */
    z-index: 9001;
}

.archive-post-item:hover::after {
    width: 100%;
}

/* DOM order: h3 first → assign to title area */
.archive-post-item h3 {
    grid-area: title;
    font-family: var(--serif);
    font-size: clamp(0.9rem, 2vw, 1.35rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.01em;
    align-self: baseline;
}

/* DOM order: p.post-meta second → assign to date area */
.archive-post-item .post-meta {
    grid-area: date;
    font-family: var(--mono);
    font-size: 14px;
    color: rgb(1, 242, 5);
    letter-spacing: 0.1em;
    text-transform: none;
    margin: 0;
    padding: 0;
    /* Override desktop absolute from blog-post-card context */
    position: static;
    flex-direction: row;
    align-items: baseline;
    text-align: left;
    align-self: baseline;
}

/* Excerpt in right column, below title */
.archive-post-item .post-excerpt {
    grid-area: excerpt;
    font-family: var(--mono);
    font-size: 12px;
    /* color: var(--dim); */
    color: rgb(92, 255, 0);
    line-height: 1.68;
    margin-top: 0.4rem;
    max-height: none;
    overflow: visible;
    opacity: 1;
    padding-right: 0;
}

/* Mobile: archive stacked */
@media (max-width: 576px) {
    .archive-post-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "date"
            "title"
            "excerpt";
        gap: 0.3rem;
        padding-left: 0;
    }
}

/* ── PAGINATION — Bootstrap override ── */
.pagination-nav {
    margin-top: 0rem;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
}

/* Navigation row (used on multiple pages for button groups) */
.navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 1rem auto;
    /* padding: 0.5rem 1rem; */
    /* padding-bottom: 5rem; */
}

.navigation .btn {
    /* min-width: 180px; */
    text-align: center;
}

.navigation form {
    display: contents;
}

@media (max-width: 768px) {
    .navigation {
        flex-direction: column;
        /* align-items: stretch; */
        max-width: 280px;
        /* margin: 0 auto; */
    }

    .navigation .btn {
        width: 50%;
        /* min-width: 0; */
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
        gap: 8px;
    }

    .form-actions .btn {
        width: auto;
        min-width: 160px;
    }
}

/* ── ECKIGE BUTTONS — alle Bootstrap-Varianten ── */
.btn,
.btn:focus,
.btn:active,
.btn-primary,
.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-info,
.btn-sm,
.btn-lg,
.btn-block,
.dropdown-toggle,
.dropdown-toggle::after {
    border-radius: 0;
}

.input-group-text,
.form-control,
.custom-select,
.custom-file-label,
.modal-content,
.modal-header,
.modal-footer,
.alert,
.badge,
.toast,
.popover,
.tooltip-inner {
    border-radius: 0;
}

@media (max-width: 768px) {
    .btn-icon { font-size: 1.1rem; }
}

/* ── COMMENTS ── */
.comments-section {
    margin-top: 3rem;
    padding-top: 0;
}

.comments-divider hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 0 0 2.5rem 0;
}

.comments-title {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text);
    letter-spacing: -0.01em;
    margin: 0 0 2rem 0;
    text-transform: none;
}

.comments-title .badge {
    font-family: var(--mono);
    font-size: 8px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.15em;
    background: transparent;
    border: 1px solid var(--line-hi);
    color: var(--dim);
    vertical-align: middle;
    padding: 0.25em 0.55em;
    margin-left: 0.5rem;
}

/* Alert messages */
.alert-success,
.alert-danger {
    background: transparent;
    border: 1px solid;
    border-radius: 0;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    border-color: var(--green);
    color: var(--green);
}

.alert-danger {
    border-color: var(--red);
    color: var(--red);
}

/* Comment form container — offen, goldene linke Linie */
.comment-form-container {
    background: transparent;
    border: none;
    border-radius: 2px;
    border-left: 2px solid var(--gold);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin-bottom: 3rem;
    position: relative;
}

/* Faded gold shimmer oben links */
.comment-form-container::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: 2.5rem;
    background: var(--gold);
    opacity: 0.5;
    filter: blur(4px);
    pointer-events: none;
}

.comment-form-container h4,
.comments-list-container h4 {
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.55;
    margin: 0 0 1.8rem 0;
}

.comment-form .form-group {
    margin-bottom: 1.4rem;
}

.comment-form label {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 0.35rem;
    display: block;
}

/* Bottom-border only — passend zur Suchleiste */
.comment-form .form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-hi);
    border-radius: 0;
    color: var(--text);
    font-family: var(--mono);
    font-size: 11px;
    padding: 0.5rem 0;
    box-shadow: none;
    outline: none;
    transition: border-bottom-color 0.25s;
    -webkit-text-fill-color: var(--text);
}

.comment-form .form-control:focus {
    border-bottom-color: var(--gold);
    box-shadow: none;
    background: transparent;
}

.comment-form .form-control::placeholder {
    color: var(--dim);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.comment-form textarea.form-control {
    resize: vertical;
    min-height: 6rem;
}

.comment-form .form-text {
    font-family: var(--mono);
    font-size: 8px;
    color: var(--dim);
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
}

.char-counter {
    font-family: var(--mono);
    font-size: 8px;
    color: var(--dim);
    letter-spacing: 0.1em;
}

.text-danger {
    color: var(--red);
}

/* Honeypot hidden field */
.hp-field {
    display: none;
}

/* Comments list */
.comments-list-container {
    margin-top: 0;
}

/* Kommentar-Eintrag: linke Timeline-Linie, Einrückung */
.comment-item {
    padding: 1.4rem 0 1.4rem 2rem;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    position: relative;
}

.comment-item:last-child {
    border-bottom: 1px solid var(--line);
}

/* Vertikale Akzentlinie links — wird beim Hover gold */
.comment-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.4rem;
    bottom: 1.4rem;
    width: 1px;
    background: var(--line-hi);
    transition: background 0.35s ease;
}

.comment-item:hover::before {
    background: var(--gold);
}

.comment-header {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 1.2rem;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
}

.comment-username {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
}

/* Zeit — nicht am rechten Rand, bleibt in Flussposition */
.comment-time {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.1em;
    color: var(--dim);
    /* explizit kein margin-left: auto */
}

.comment-text {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text);
    line-height: 1.65;
    letter-spacing: 0.02em;
}

.comment-delete-btn {
    font-size: 10px;
    padding: 0.15rem 0.5rem;
    border-radius: 0;
    border-color: var(--red);
    color: var(--red);
    opacity: 0.4;
    transition: opacity 0.2s;
    margin-left: auto;
}

.comment-delete-btn:hover {
    opacity: 1;
    border-color: var(--red);
    color: var(--red);
}

.no-comments p {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 0.08em;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════════ */

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-intro-row {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin: 0;
}

@media (max-width: 768px) {
    .about-intro-row {
        flex-direction: column;
        align-items: center;
    }
}

.about-intro-row .about-subtitle {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.about-intro-text {
    flex: 1;
}

.about-title {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text);
    text-align: left;
    text-shadow: none;
    margin-bottom: 1.5rem;
}

.about-subtitle {
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--dim);
    margin: 2.5rem 0 1rem 0;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
}

.about-text {
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 1rem;
}

.about-list {
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.about-list li {
    margin-bottom: 0.4rem;
}

/* CSS-generierte Anführungszeichen deaktivieren — werden direkt im HTML gesetzt */
.about-quote::before,
.about-quote::after {
    content: none;
    display: none;
}

.about-quote {
    font-family: var(--serif);
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 300;
    text-align: left;
    margin: 2.5rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    background: transparent;
    border-radius: 0;
    border: none;
    color: var(--dim);
    line-height: 1.6;
}

.about-quote .blockquote-footer {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
    margin-top: 1rem;
    opacity: 0.7;
}

.author-box {
    margin: 1.5rem 0;
    padding: 1rem 0;
}

.author-img {
    width: 140px;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 0;
    border: 1px solid var(--line-hi);
    box-shadow: none;
    filter: grayscale(0.4) sepia(0.15);
}

.author-name {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 0;
}

/* Kontakt-Formular — gleiche Sprache wie comment-form */
.contact-section {
    margin-top: 2.5rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

#contact-message {
    max-height: 200px;
    resize: vertical;
}

.about-page-content .content-area {
    background: #000;
    border-radius: 2px;
    position: relative;
    z-index: 9001;
    padding: 2rem 1.5rem 2rem;
}

/* Editor/Create page buttons — uniform width */
.create-form-section .btn {
    min-width: 180px;
    text-align: center;
}

/* ── CREATE POST PAGE ── */
.create-page-container {
    max-width: clamp(900px, 90vw, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 320px) {
    .create-page-container {
        padding: 0 8px;
    }
    .create-form-section .btn {
        min-width: 0;
        width: 100%;
        font-size: 7px;
        padding: 0.35rem 0.5rem;
    }
    .create-form-section {
        padding: 15px;
    }
    .form-label {
        font-size: 0.9rem;
    }
    .create-input {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
}

.create-form-section {
    background: var(--surf);
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid var(--line);
}

.create-form {
    max-width: 100%;
    margin: 0 auto;
}

.form-label {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.create-input {
    font-family: var(--mono);
    font-size: 1rem;
    border: 1px solid var(--line-hi);
    padding: 12px 15px;
    transition: border-color 0.2s;
    background-color: var(--bg);
    color: var(--text);
    width: 100%;
    box-sizing: border-box;
}

.create-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(232, 197, 71, 0.1);
    background-color: var(--surf);
    outline: none;
}

/* Force left alignment for the create page */
#admin-required.content-area,
#create-content.content-area { text-align: left; }

.create-page-container .content-area {
    max-width: 100%;
}

.form-preview {
    display: none;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--surf);
    border: 1px solid var(--line);
}

.form-preview.preview-visible { display: block; }

.preview-title {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.preview-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.preview-box {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 25px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    font-family: var(--serif);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    position: relative;
}

.preview-box:hover {
    border-color: var(--gold);
}

.preview-placeholder {
    text-align: center;
    color: var(--dim);
    font-style: italic;
    padding: 60px 20px;
    opacity: 0.7;
    margin: 0;
    font-size: 1rem;
}

.preview-box h1,
.preview-box h2,
.preview-box h3,
.preview-box h4,
.preview-box h5,
.preview-box h6 {
    font-family: var(--serif);
    color: var(--text);
    font-weight: 600;
    margin: 25px 0 15px 0;
    line-height: 1.3;
}

.preview-box h1 { font-size: 2.2rem; }
.preview-box h2 { font-size: 1.8rem; }
.preview-box h3 { font-size: 1.5rem; }
.preview-box h4 { font-size: 1.3rem; }
.preview-box h5 { font-size: 1.1rem; }
.preview-box h6 { font-size: 1rem; }
.preview-box p {
    margin-bottom: 18px;
    line-height: 1.7;
    text-align: justify;
}

/* Editor toolbar */
#create-content .editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    background: var(--surf);
    border: 1px solid var(--line);
    padding: 8px 10px;
}

#create-content .editor-toolbar .toolbar-group {
    margin: 0;
    padding: 4px 8px;
}

#create-content .editor-toolbar select[name="category_id"] {
    font-family: var(--mono);
    font-size: 0.82rem;
    padding: 5px 10px;
    height: auto;
    line-height: 1.4;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: auto;
    max-width: 100%;
    box-sizing: border-box;
}

#create-content .editor-toolbar select[name="category_id"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(232, 197, 71, 0.18);
}

#create-content .editor-container { margin-top: 8px; }

#create-content .editor-container textarea,
#create-content .textarea-fallback {
    display: block;
    width: 100%;
    min-height: 400px;
    resize: vertical;
    border: 1px solid var(--line-hi);
    padding: 12px;
    font-family: var(--mono);
    font-size: 1rem;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
}

/* Suggested tags */
#create-content .suggested-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

#create-content .suggested-tags .suggested-label {
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 2px;
    white-space: nowrap;
}

#create-content .tag-suggestion {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 1px solid var(--gold);
    background: transparent;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold);
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease,
                box-shadow 0.2s ease;
    user-select: none;
}

#create-content .tag-suggestion::before {
    content: '+';
    font-size: 0.95em;
    font-weight: 700;
    line-height: 1;
    opacity: 0.75;
}

#create-content .tag-suggestion:hover {
    background: var(--gold);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(232, 197, 71, 0.25);
}

#create-content .tag-suggestion:hover::before { opacity: 1; }
#create-content .tag-suggestion:active {
    transform: translateY(0);
    box-shadow: none;
}

#create-content .tag-suggestion.added {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg);
    pointer-events: none;
}

#create-content .tag-suggestion.added::before { content: '\2713'; }

/* Neutralize heavy global transitions for form controls */
#create-content input,
#create-content textarea,
#create-content .tox * { transition: none !important; }

/* ── TINYMCE / EDITOR STYLES ── */
.tox .tox-editor-container { border-radius: 0; }
.tox .tox-toolbar {
    background: var(--surf);
    border-bottom: 1px solid var(--line);
    padding: 8px;
}
.tox .tox-toolbar__overflow { background: var(--surf); }
.tox .tox-edit-area__iframe {
    background: var(--bg);
    border: 1px solid var(--line);
}

.toolbar-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
    margin-bottom: 5px;
    padding: 5px 10px;
    background: var(--surf);
    border: 1px solid var(--line);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.toolbar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dim);
    margin-right: 8px;
    white-space: nowrap;
}

.ai-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: 1px solid #5a6fd8;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ai-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.ai-btn:disabled {
    background: var(--surf-2);
    color: var(--dim);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ── MODAL SYSTEM (Alert, AI, API-Key) ── */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px) saturate(140%);
    -webkit-backdrop-filter: blur(4px) saturate(140%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease-out;
}

.modal-container {
    max-width: 640px;
    width: min(92%, 640px);
    padding: 24px 26px 22px;
    background: var(--surf);
    color: var(--text);
    border: 1px solid var(--line-hi);
    box-shadow:
        0 2px 4px -1px rgba(0,0,0,0.25),
        0 8px 24px -2px rgba(0,0,0,0.35),
        0 0 0 1px rgba(255,255,255,0.04) inset;
    line-height: 1.45;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.modal-container h4,
.modal-container h3,
.modal-container h2 {
    margin: 0 0 14px;
    font-weight: 600;
    letter-spacing: 0.25px;
    color: inherit;
}

.modal-container pre.modal-content {
    background: rgba(255,255,255,0.05);
    padding: 14px 16px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.4;
    color: inherit;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.modal-container .modal-content {
    white-space: pre-wrap;
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: inherit;
}

.modal-container .modal-footer {
    margin-top: 20px;
    text-align: right;
}

.modal-button {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: filter 0.2s;
}

.modal-button:hover {
    filter: brightness(0.85);
}

.modal-button.secondary {
    background: var(--surf-2, #3d4653);
}

/* Scrollbars inside modal (WebKit) */
.modal-container pre.modal-content::-webkit-scrollbar { height: 8px; }
.modal-container pre.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-container pre.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
}

/* AI Summary Modal */
.ai-summary-modal-container {
    max-width: 500px;
    padding: 20px;
    background: var(--surf);
    border: 1px solid var(--line-hi);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.ai-summary-modal-header {
    color: var(--text);
    margin-bottom: 15px;
}

.ai-summary-modal-content {
    line-height: 1.6;
    color: var(--dim);
}

.ai-summary-modal-footer {
    margin-top: 20px;
    text-align: right;
}

.ai-summary-modal-button-primary {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: filter 0.2s;
}

.ai-summary-modal-button-primary:hover {
    filter: brightness(0.85);
}

.ai-summary-modal-button-secondary {
    background: var(--surf-2, #596273);
    color: #fff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: filter 0.2s;
}

.ai-summary-modal-button-secondary:hover {
    filter: brightness(0.85);
}

/* Confirm Modal (admin delete confirmation) */
.confirm-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 99999;
}

.confirm-modal .modal-content {
    max-width: 520px;
    width: min(92%, 520px);
    padding: 18px 20px;
    background: var(--surf);
    color: var(--text);
    border: 1px solid var(--line-hi);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.confirm-modal .modal-body p {
    margin: 0 0 6px 0;
    font-size: 15px;
}

.confirm-modal .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

/* ── ABOUT PAGE SVG BACKGROUND ── */

