/* ==========================================================================
   Settings
   ========================================================================== */

:root {
    --color-primary: #E879F9;
    --color-primary-dark: #9333EA;
    --blur-nav: 10px;
    --nav-safe-area: 10.5rem;
    --page-max-width: 980px;
}

/* ==========================================================================
   Base
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    color: #fff;
    background: #050505;
    scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.04);
    scrollbar-width: thin;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

body::-webkit-scrollbar-thumb {
    border: 2px solid rgba(5, 5, 5, 0.88);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 6px;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */

body > header {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 95%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2.35rem;
    width: fit-content;
    margin: 0 auto;
    padding: 0.9rem 1.75rem;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(var(--blur-nav));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
}

.logo-image {
    display: block;
    width: auto;
    height: 50px;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.15rem;
    margin: 0;
    margin-left: auto;
    padding: 0;
    list-style: none;
}

.nav-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
    width: 100%;
}

/* ==========================================================================
   Hero And Page Shell
   ========================================================================== */

.hero,
.page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url("../../images/index_background.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.page-projects .hero-background {
    position: fixed;                /* klebt am Viewport, vermeidet Bruch am main-Ende */
    background-image: none;
    background: linear-gradient(135deg, #131722, #0e1119);
}

.page-blog .hero-background {
    position: fixed;                /* klebt am Viewport, vermeidet Bruch am main-Ende */
    background-image: none;
    background: linear-gradient(135deg, #07090f, #11141c 58%, #090b10);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
}

.page-projects .hero-overlay,
.page-blog .hero-overlay {
    position: fixed;                /* analog zum hero-background, fuer durchgehende Optik */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.08));
}

.page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 2rem 5rem;
}

.page-content {
    position: relative;
    z-index: 3;
    width: min(100%, var(--page-max-width));
    min-width: 0;
    animation: fadeInUp 0.8s ease-out;
}

/* ==========================================================================
   Index Page Layouts
   ========================================================================== */

.blog-index .page {
    align-items: flex-start;
    padding-top: 12rem;
}

.blog-index .page-content {
    width: min(100%, 1040px);
}

.projects-index .page {
    align-items: flex-start;
    padding-top: 12rem;
}

.projects-index .page-content {
    width: min(100%, 1040px);
}

.blog-index .page::before,
.projects-index .page::before,
.post-page .page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: var(--nav-safe-area);
    pointer-events: none;
}

.blog-index .page::before,
.post-page .page::before {
    background: linear-gradient(180deg, #07090f 0%, rgba(7, 9, 15, 0.96) 58%, rgba(7, 9, 15, 0) 100%);
}

.projects-index .page::before {
    background: linear-gradient(180deg, #131722 0%, rgba(19, 23, 34, 0.96) 58%, rgba(19, 23, 34, 0) 100%);
}

/* ==========================================================================
   About Page
   ========================================================================== */

/* Cremiger Hintergrund (etwas dunkler als die Erstversion) */
.page-about {
    background: #d8cdb3;
}

/* Body-Background matched die Endfarbe des hero-background Gradients,
   damit der Bereich unter <main> (wo der Footer sitzt) nahtlos uebergeht
   ohne sichtbaren dunklen Streifen.
   Zusaetzlich: Sticky-Footer-Layout - main waechst auf Viewport-Hoehe wenn
   Content kurz ist, Footer sitzt natuerlich am Bottom statt ueberschuessigen
   Scroll zu erzeugen. */
.page-blog,
.page-projects {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-blog > main,
.page-projects > main {
    flex: 1 0 auto;             /* fuellt verfuegbaren Raum, drueckt Footer ans Ende */
    min-height: 0;              /* override default .page min-height: 100vh (war fuer hero-bg vor position:fixed) */
    padding-bottom: 1.5rem;     /* Footer hat eigenes padding-top - keine doppelte Luft noetig */
}

.page-blog .site-footer,
.page-projects .site-footer {
    flex-shrink: 0;
    margin-top: 0;              /* margin nicht mehr noetig - flex handhabt Spacing */
}

.page-blog {
    background: #090b10;
}

.page-projects {
    background: #0e1119;
}

/* Warme helle Header-Pille fuer die helle About-Seite. */
.page-about .header-container {
    background-color: rgba(222, 211, 184, 0.78);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 14px 36px rgba(58, 51, 38, 0.12);
    backdrop-filter: blur(18px);
}

.page-about .nav-links a {
    color: rgba(35, 30, 24, 0.82);
}

.page-about .nav-links a:hover,
.page-about .nav-links a.is-active {
    color: #d6573a;
}

.page-about .nav-links a::after {
    background: #d6573a;
}

.page-about .page {
    background: transparent;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

.page-about .hero-background,
.page-about .hero-overlay {
    display: none;
}

.globe-stage {
    position: relative;
    z-index: 3;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8rem 1rem 0;
    box-sizing: border-box;
    overflow: hidden;
}

.globe-title {
    margin: 0 0 0.6rem;
    color: #3a3326;
    font-family: inherit;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
}

.globe-intro {
    margin: 0 0 1.4rem;
    max-width: 560px;
    color: #4a4232;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.55;
    text-align: center;
}

.globe-frame {
    position: relative;
    line-height: 0;
}

.ascii-globe-mask {
    position: absolute;
    inset: 0;
    line-height: 0;
    clip-path: circle(50%);
    -webkit-clip-path: circle(50%);
    pointer-events: none;
}

.ascii-globe {
    display: inline-block;
    margin: 0;
    color: #3a3326;
    background: transparent;
    font-family: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1ch;
    letter-spacing: 0;
    white-space: pre;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    user-select: none;
}

.globe-marker {
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.globe-marker[hidden] {
    display: none;
}

.globe-marker-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d6573a;
    box-shadow: 0 0 0 2px #d8cdb3;
}

.globe-marker-label {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 8px;
    background: #d6573a;
    color: #f4ede0;
    font-family: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 2px;
}

.globe-marker-label::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1px;
    height: 12px;
    background: #d6573a;
    transform: translateX(-50%);
}

@media (max-width: 720px) {
    .globe-title {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    .globe-intro {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    .ascii-globe {
        font-size: 8px;
    }
    .globe-marker,
    .globe-marker-dot {
        width: 8px;
        height: 8px;
    }
    .globe-marker-label {
        font-size: 11px;
        padding: 2px 6px;
        bottom: calc(100% + 10px);
    }
    .globe-marker-label::after {
        height: 8px;
    }
}

/* ==========================================================================
   Page Typography
   ========================================================================== */

.page-title {
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: break-word;
}

.page-copy {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.25rem;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.blog-copy {
    max-width: 760px;
}

.blog-index .page-copy {
    color: rgba(255, 255, 255, 0.88);
}

.section-label {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================================================
   Blog Categories
   ========================================================================== */

.blog-categories {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.75rem;
    margin-top: 3.2rem;
}

.blog-categories::before {
    content: "";
    position: absolute;
    top: 0.2rem;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(255, 255, 255, 0.2) 14%,
        rgba(232, 121, 249, 0.32) 50%,
        rgba(255, 255, 255, 0.16) 86%,
        transparent
    );
    box-shadow: 0 0 18px rgba(232, 121, 249, 0.12);
    transform: translateX(-50%);
}

.blog-category {
    position: relative;
    min-width: 0;
    padding: 0 0.2rem;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

/* ==========================================================================
   Project And Blog Tables
   ========================================================================== */

.project-table {
    width: 100%;
    margin-top: 3.2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.project-row {
    display: grid;
    grid-template-columns: minmax(20rem, 1.7fr) minmax(9rem, 0.8fr) minmax(8rem, 0.7fr) minmax(7rem, 0.6fr);
    align-items: center;
    min-height: 3.1rem;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.project-row > span {
    min-width: 0;
    padding: 0.7rem 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.project-row > span:first-child {
    border-left: 0;
}

.project-row-head {
    min-height: 2.45rem;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.86rem;
    font-weight: 800;
}

.table-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: inherit;
    text-align: left;
}

.table-sort-button:hover,
.table-sort-button:focus-visible {
    color: #fff;
}

.table-sort-button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

.table-sort-indicator {
    position: relative;
    flex: 0 0 auto;
    width: 0.62rem;
    height: 0.62rem;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}

.table-sort-indicator::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);
}

.table-sort-button[aria-sort="descending"] .table-sort-indicator {
    transform: rotate(180deg);
}

.project-row:not(.project-row-head) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, color 0.2s ease;
}

.project-row:not(.project-row-head):hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.blog-index .project-table {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.035);
}

.blog-index .project-row {
    color: rgba(255, 255, 255, 0.88);
}

.blog-index .project-row-head {
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.05);
}

.blog-index .project-row:not(.project-row-head) {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.blog-row {
    grid-template-columns: minmax(22rem, 1.65fr) minmax(8rem, 0.62fr) minmax(5rem, 0.42fr) minmax(6.8rem, 0.5fr) minmax(7rem, 0.55fr);
}

.project-name {
    display: grid;
    grid-template-columns: 1.45rem minmax(0, 1fr);
    column-gap: 0.85rem;
    align-items: center;
}

.project-name strong {
    display: block;
    margin-bottom: 0.18rem;
    font-size: 1rem;
    line-height: 1.2;
}

.project-name small {
    display: block;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.82rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-index .project-name small {
    color: rgba(255, 255, 255, 0.68);
}

.project-icon {
    flex: 0 0 auto;
    position: relative;
    width: 1.35rem;
    height: 1.05rem;
    border: 1px solid rgba(232, 121, 249, 0.72);
    border-radius: 3px;
    background: rgba(232, 121, 249, 0.12);
}

.project-icon::before {
    content: "";
    position: absolute;
    top: 0.18rem;
    left: 0.18rem;
    width: 0.18rem;
    height: 0.18rem;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0.32rem 0 0 rgba(255, 255, 255, 0.62);
}

.project-icon::after {
    content: "";
    position: absolute;
    right: 0.18rem;
    bottom: 0.2rem;
    left: 0.18rem;
    height: 0.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Featured Project Cards
   ========================================================================== */

.project-card-grid {
    display: grid;
    gap: 1rem;
    margin-top: 3.2rem;
}

.project-feature-card {
    display: grid;
    grid-template-columns: minmax(15rem, 0.46fr) minmax(0, 1fr);
    min-height: 16rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.project-feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 121, 249, 0.38);
    background: rgba(255, 255, 255, 0.052);
}

.project-feature-media {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    min-height: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, rgba(8, 10, 16, 0.96), rgba(27, 21, 38, 0.92));
}

.project-feature-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 13.8rem;
    object-fit: cover;
    border-radius: 6px;
}

.project-feature-media img:nth-child(2) {
    transform: translateY(0.8rem);
}

.project-feature-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 1.6rem 1.75rem;
}

.project-feature-body h2 {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    font-weight: 850;
    line-height: 1.08;
}

.project-feature-body p {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.65;
}

.blog-icon {
    width: 1.1rem;
    height: 1.25rem;
    border-radius: 2px;
}

.blog-icon::before {
    top: 0.22rem;
    left: 0.22rem;
    width: 0.5rem;
    height: 0.1rem;
    border-radius: 999px;
    box-shadow:
        0 0.28rem 0 rgba(255, 255, 255, 0.62),
        0 0.56rem 0 rgba(255, 255, 255, 0.42);
}

.blog-icon::after {
    display: none;
}

/* ==========================================================================
   Blog Post Layout
   ========================================================================== */

.post-content {
    width: min(100%, 760px);
    padding-right: 0;
}

.post-page .page {
    align-items: flex-start;
    min-height: 100vh;
    overflow: visible;
    padding-top: 10rem;
}

.post-page .page-title {
    max-width: 760px;
    font-size: 2.8rem;
    line-height: 1.12;
}

.post-intro {
    max-width: 760px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.post-image-button {
    display: block;
    width: 100%;
    margin: 0 0 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.post-image {
    display: block;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

/* ==========================================================================
   Image Lightbox
   ========================================================================== */

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox img {
    max-width: min(92vw, 1200px);
    max-height: 84vh;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.image-lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    cursor: pointer;
    font-size: 1.55rem;
    line-height: 1;
}

.has-lightbox {
    overflow: hidden;
}

/* ==========================================================================
   Article Body
   ========================================================================== */

.post-body {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.85;
}

.post-body p + p {
    margin-top: 1.25rem;
}

.post-section-title {
    margin: 2.4rem 0 0.8rem;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
}

.post-note {
    max-width: 760px;
    margin: 1rem 0 1.8rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(232, 121, 249, 0.55);
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.04rem;
    font-weight: 650;
    line-height: 1.7;
}

.post-list {
    max-width: 760px;
    margin: 0.5rem 0 1.25rem 1.25rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
}

.deploy-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    width: min(100%, 760px);
    margin: 1rem 0 1.8rem;
}

.deploy-flow span {
    position: relative;
    display: grid;
    min-height: 3.25rem;
    place-items: center;
    border: 1px solid rgba(232, 121, 249, 0.28);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
    font-weight: 800;
}

.deploy-flow span:not(:last-child)::before,
.deploy-flow span:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;
    pointer-events: none;
}

.deploy-flow span:not(:last-child)::before {
    right: -1.18rem;
    width: 0.86rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(232, 121, 249, 0.18), rgba(232, 121, 249, 0.9));
    transform: translateY(-50%);
}

.deploy-flow span:not(:last-child)::after {
    right: -1.2rem;
    width: 0.42rem;
    height: 0.42rem;
    border-top: 1px solid rgba(232, 121, 249, 0.9);
    border-right: 1px solid rgba(232, 121, 249, 0.9);
    transform: translateY(-50%) rotate(45deg);
}

.post-list li + li {
    margin-top: 0.25rem;
}

.post-body code {
    color: #fff;
    font: inherit;
    font-weight: 700;
}

/* ==========================================================================
   Code Blocks
   ========================================================================== */

.code-window {
    position: relative;
    width: min(100%, 760px);
    margin: 1rem 0 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(10, 11, 15, 0.84);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.code-window-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 2.25rem;
    padding: 0 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #2b2b2b;
}

.code-window-dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 5rem;
}

.code-window-dots span {
    display: block;
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
}

.code-window-dots span:nth-child(1) {
    background: #ff5f57;
}

.code-window-dots span:nth-child(2) {
    background: #ffbd2e;
}

.code-window-dots span:nth-child(3) {
    background: #28c840;
}

.code-window-title {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85);
}

.post-body pre {
    width: 100%;
    margin: 0;
    padding: 1rem 1.1rem;
    overflow-x: auto;
    scrollbar-color: rgba(255, 255, 255, 0.34) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.post-body pre::-webkit-scrollbar {
    height: 6px;
}

.post-body pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

.post-body pre::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.post-body pre::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 121, 249, 0.55);
}

.post-body pre code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.7;
    white-space: pre;
}

.copy-code-button {
    min-width: 5rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(0, 0, 0, 0.38);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.copy-code-button:hover,
.copy-code-button:focus-visible {
    border-color: rgba(232, 121, 249, 0.55);
    color: #fff;
    background: rgba(147, 51, 234, 0.45);
}

/* ==========================================================================
   Navigation Links
   ========================================================================== */

.back-link {
    display: inline-block;
    margin-bottom: 1.35rem;
    padding: 0.42rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.back-link:hover {
    border-color: rgba(232, 121, 249, 0.45);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Entry Cards
   ========================================================================== */

.entry-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 0;
    list-style: none;
}

.entry-list-wide {
    margin-top: 3.2rem;
}

.entry-item,
.entry-link {
    display: block;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    text-decoration: none;
}

.entry-card {
    display: block;
    min-height: 9.25rem;
    padding: 1.05rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.entry-card:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 121, 249, 0.38);
    background: rgba(255, 255, 255, 0.055);
}

.entry-card:hover .entry-title {
    color: var(--color-primary);
}

.entry-card-disabled {
    opacity: 0.55;
}

.entry-card-disabled:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
}

.entry-card-disabled:hover .entry-title {
    color: #fff;
}

.entry-type {
    display: block;
    margin-bottom: 1.05rem;
    color: rgba(232, 121, 249, 0.86);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.entry-link:hover .entry-title {
    color: var(--color-primary);
}

.entry-title {
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    transition: color 0.3s ease;
}

.entry-meta {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Manga Vault
   ========================================================================== */

.manga-vault-page .page {
    align-items: flex-start;
    overflow: visible;
    padding-top: 10rem;
}

.manga-vault-content {
    width: min(100%, 1180px);
}

.manga-vault-content .post-intro {
    max-width: 820px;
}

.manga-ranking {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2.4rem;
}

.manga-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.manga-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.35rem;
    padding: 0.62rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.manga-cover-button {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    cursor: zoom-in;
}

.manga-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manga-cover-button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.manga-rank {
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.8px;
}

.manga-card-body {
    padding: 0.95rem;
}

.manga-type {
    color: rgba(232, 121, 249, 0.9);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 1.3px;
    line-height: 1;
    text-transform: uppercase;
}

.manga-card h2 {
    min-height: 0;
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.22;
}

/* ==========================================================================
   Raspberry Pi 5 Project
   ========================================================================== */

.raspberrypi5-page .page {
    align-items: flex-start;
    overflow: visible;
    padding-top: 10rem;
}

.raspberrypi5-content {
    width: min(100%, 1040px);
}

.raspberrypi5-content .post-intro {
    max-width: 860px;
    margin-bottom: 1.45rem;
}

.raspberrypi5-section {
    width: min(100%, 860px);
    margin-top: 2.4rem;
}

.raspberrypi5-section h2 {
    margin: 0 0 0.8rem;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 850;
    line-height: 1.2;
}

.raspberrypi5-section p,
.raspberrypi5-list {
    color: rgba(255, 255, 255, 0.74);
    font-size: 1rem;
    line-height: 1.75;
}

.raspberrypi5-section p + p {
    margin-top: 0.9rem;
}

.raspberrypi5-terminal-head {
    display: block;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.38);
}

.raspberrypi5-terminal-mark {
    font-weight: 700;
}

.raspberrypi5-terminal-mark.is-ok {
    color: #5ee0a3;
}

.raspberrypi5-terminal-mark.is-next {
    color: #ffc46b;
}

.raspberrypi5-terminal-key {
    color: rgba(232, 121, 249, 0.92);
}

.raspberrypi5-terminal-sep {
    color: rgba(255, 255, 255, 0.34);
}

.raspberrypi5-terminal-value {
    color: #fff;
}

.raspberrypi5-topology-card {
    width: min(100%, 860px);
    padding: 1.75rem 1.45rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 12px;
    background: rgba(10, 11, 15, 0.84);
}

.raspberrypi5-topology {
    display: block;
    width: 100%;
}

.raspberrypi5-topology-node {
    fill: rgba(26, 22, 38, 0.88);
    stroke: rgba(232, 121, 249, 0.44);
    stroke-width: 1;
}

.raspberrypi5-topology-line {
    stroke: rgba(232, 121, 249, 0.82);
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
}

.raspberrypi5-topology-connector,
.raspberrypi5-topology-meta,
.raspberrypi5-topology-kicker {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.raspberrypi5-topology-connector {
    fill: rgba(255, 255, 255, 0.52);
    font-size: 11px;
    text-anchor: middle;
}

.raspberrypi5-topology-kicker {
    fill: rgba(232, 121, 249, 0.95);
    font-size: 10px;
    letter-spacing: 2px;
    text-anchor: middle;
}

.raspberrypi5-topology-title {
    fill: #fff;
    font-size: 15px;
    font-weight: 700;
    text-anchor: middle;
}

.raspberrypi5-topology-subtitle {
    fill: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    text-anchor: middle;
}

.raspberrypi5-topology-meta {
    fill: rgba(255, 255, 255, 0.34);
    font-size: 11px;
    text-anchor: middle;
}

.raspberrypi5-topology-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.raspberrypi5-topology-notes div {
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.085);
}

.raspberrypi5-topology-notes span {
    display: block;
    margin-bottom: 0.55rem;
    color: rgba(232, 121, 249, 0.92);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.raspberrypi5-topology-notes p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.94rem;
    line-height: 1.62;
}

.raspberrypi5-topology-notes code {
    color: #fff;
}

.raspberrypi5-list {
    margin: 0;
    padding-left: 1.15rem;
}

.raspberrypi5-list code {
    color: #fff;
}

.raspberrypi5-link-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    margin-top: 1.2rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.042);
    text-decoration: none;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.raspberrypi5-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 121, 249, 0.38);
    background: rgba(255, 255, 255, 0.06);
}

.raspberrypi5-link-meta {
    width: fit-content;
    margin-bottom: 0.72rem;
    color: rgba(232, 121, 249, 0.86);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

.raspberrypi5-link-content {
    display: block;
    min-width: 0;
}

.raspberrypi5-link-copy {
    min-width: 0;
}

.raspberrypi5-link-card strong {
    display: block;
    margin-bottom: 0.45rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 850;
    line-height: 1.25;
}

.raspberrypi5-link-summary {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.98rem;
    line-height: 1.6;
}

.raspberrypi5-link-action {
    display: inline-flex;
    min-height: 2.35rem;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(232, 121, 249, 0.32);
    border-radius: 999px;
    color: #fff;
    background: rgba(232, 121, 249, 0.09);
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

.raspberrypi5-content .code-window {
    width: min(100%, 860px);
    margin: 1rem 0 1.45rem;
}

.raspberrypi5-content .code-window pre {
    width: 100%;
    margin: 0;
    padding: 1rem 1.1rem;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.raspberrypi5-content .code-window pre code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.7;
    white-space: pre;
}

.raspberrypi5-content .code-window:has(.raspberrypi5-security-code) .code-window-titlebar {
    height: 2.45rem;
}

.raspberrypi5-security-code {
    padding: 1.05rem 1.2rem 1.15rem;
}

.raspberrypi5-security-code code {
    font-size: 0.95rem;
    line-height: 1.75;
}

.raspberrypi5-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    width: min(100%, 860px);
    margin-top: 2.4rem;
}

.raspberrypi5-gallery-lead {
    margin-top: 1.2rem;
    margin-bottom: 2.5rem;
}

.raspberrypi5-gallery-button {
    display: block;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    cursor: zoom-in;
}

.raspberrypi5-gallery-button img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.raspberrypi5-gallery-button:hover img {
    transform: scale(1.025);
}

.raspberrypi5-gallery-lead img {
    aspect-ratio: 1 / 1;
}

.raspberrypi5-setup-image-button {
    width: min(100%, 860px);
    margin-top: 1rem;
}

.raspberrypi5-setup-image-button img {
    aspect-ratio: auto;
}

.raspberrypi5-roadmap {
    position: relative;
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.raspberrypi5-roadmap::before {
    content: "";
    position: absolute;
    top: 3.7rem;
    bottom: 3.7rem;
    left: 2.45rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(232, 121, 249, 0.56), rgba(232, 121, 249, 0.1));
}

.raspberrypi5-roadmap li {
    position: relative;
    display: grid;
    grid-template-columns: 4.2rem minmax(0, 1fr);
    gap: 1.3rem;
    align-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.raspberrypi5-roadmap-number {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    margin: 1.15rem 0 1.15rem 1.18rem;
    place-items: center;
    border: 1px solid rgba(232, 121, 249, 0.34);
    border-radius: 50%;
    color: #fff;
    background: #23162c;
    font-size: 0.82rem;
    font-weight: 900;
    z-index: 1;
}

.raspberrypi5-roadmap-body {
    display: grid;
    gap: 0.72rem;
    min-width: 0;
    padding: 1.2rem 1.35rem 1.2rem 0.05rem;
}

.raspberrypi5-roadmap p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1rem;
    line-height: 1.65;
}

.raspberrypi5-roadmap-state {
    width: fit-content;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.66);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
}

.raspberrypi5-roadmap code {
    color: #fff;
}

/* ==========================================================================
   Responsive Layout
   ========================================================================== */

@media (min-width: 721px) and (max-height: 900px) {
    .globe-stage {
        padding-top: clamp(4.5rem, 7vh, 5.75rem);
        padding-bottom: 1rem;
    }

    .globe-title {
        margin-bottom: 0.45rem;
        font-size: clamp(1.55rem, 2.4vh, 1.85rem);
    }

    .globe-intro {
        margin-bottom: 0.95rem;
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .ascii-globe {
        font-size: min(10px, 1.15vh);
    }
}

@media (max-width: 980px) {
    :root {
        --nav-safe-area: 8.6rem;
    }

    header {
        top: 0.85rem;
        width: calc(100% - 1.5rem);
    }

    .header-container {
        width: fit-content;
        max-width: 42rem;
        justify-content: center;
        gap: 1.35rem;
        padding: 0.7rem 1rem;
    }

    .logo-image {
        height: 42px;
    }

    .nav-links {
        gap: clamp(0.85rem, 3vw, 1.6rem);
        margin-left: 0;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .page,
    .post-page .page,
    .manga-vault-page .page {
        padding: 9rem 1.5rem 4rem;
    }

    .blog-index .page,
    .projects-index .page {
        padding-top: 10rem;
    }

    .page-title {
        font-size: clamp(2.25rem, 8vw, 3rem);
    }

    .page-copy,
    .post-intro {
        font-size: 1.12rem;
    }

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

    .blog-categories::before {
        display: none;
    }

    .project-table {
        border: 0;
        background: transparent;
    }

    .project-row-head,
    .project-row.project-row-head {
        display: none !important;
    }

    .project-row,
    .blog-row {
        display: block;
        min-height: 0;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.035);
    }

    .project-row:not(.project-row-head) {
        margin-top: 0.8rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .project-row > span {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.68rem 0.9rem;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.92rem;
        line-height: 1.4;
    }

    .blog-row:not(.project-row-head) {
        padding: 1.05rem;
    }

    .blog-index .blog-row:not(.project-row-head) {
        border-color: rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.05);
    }

    .blog-row > .project-name {
        display: block;
        grid-template-columns: none;
        padding: 0;
    }

    .blog-row .project-text {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .blog-row .blog-icon {
        display: none;
    }

    .blog-row .project-name strong {
        margin-bottom: 0.32rem;
        font-size: 1.08rem;
        line-height: 1.22;
        overflow-wrap: normal;
    }

    .blog-row .project-name small {
        display: block;
        overflow: visible;
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .blog-row > span:nth-child(n + 2) {
        display: inline-block;
        margin-top: 0.85rem;
        padding: 0;
        border-top: 0;
        color: rgba(255, 255, 255, 0.66);
        font-size: 0.78rem;
        line-height: 1.45;
        overflow-wrap: normal;
    }

    .blog-row > span:nth-child(n + 2)::before {
        color: rgba(255, 255, 255, 0.52);
        font-weight: 850;
    }

    .blog-row > span:nth-child(2) {
        margin-right: 0.8rem;
    }

    .blog-row > span:nth-child(3),
    .blog-row > span:nth-child(4) {
        display: none;
    }

    .blog-row > span:nth-child(2)::before {
        content: "Thema: ";
    }

    .blog-row > span:nth-child(5)::before {
        content: "Aktualisiert: ";
    }

    .project-row > span:first-child {
        border-top: 0;
    }

    .project-row > .project-name {
        display: grid;
        grid-template-columns: 1.35rem minmax(0, 1fr);
        justify-content: start;
        padding: 0.9rem;
        color: #fff;
    }

    .project-text {
        min-width: 0;
    }

    .project-name strong {
        overflow-wrap: anywhere;
    }

    .project-name small {
        white-space: normal;
    }

    .blog-row > .project-name {
        display: block;
        grid-template-columns: none;
        padding: 0;
    }

    .blog-row .project-name strong {
        overflow-wrap: normal;
    }

    .project-feature-card {
        grid-template-columns: 1fr;
    }

    .project-feature-media {
        min-height: 17rem;
    }

    .project-feature-body {
        padding: 1.35rem;
    }

}

@media (max-width: 720px) {
    :root {
        --nav-safe-area: 7.8rem;
    }

    .page,
    .post-page .page,
    .manga-vault-page .page {
        padding: 8.3rem 1.1rem 3.5rem;
    }

    .blog-index .page,
    .projects-index .page {
        padding-top: 9.2rem;
    }

    .page-title {
        margin-bottom: 1rem;
        line-height: 1.08;
    }

    .page-copy,
    .post-intro {
        font-size: 1.02rem;
        line-height: 1.65;
    }

    .post-page .page-title {
        font-size: clamp(2rem, 9vw, 2.45rem);
    }

    .post-body {
        font-size: 1rem;
        line-height: 1.78;
    }

    .post-section-title {
        margin-top: 2rem;
        font-size: 1.28rem;
    }

    .post-note {
        padding-left: 0.85rem;
        font-size: 0.98rem;
    }

    .post-list {
        margin-left: 1.05rem;
    }

    .code-window {
        margin: 0.85rem 0 1.35rem;
    }

    .code-window-titlebar {
        height: 2.1rem;
        padding: 0 0.55rem;
    }

    .code-window-dots {
        width: 3.7rem;
        gap: 0.32rem;
    }

    .code-window-dots span {
        width: 0.58rem;
        height: 0.58rem;
    }

    .code-window-title {
        max-width: 44%;
        overflow: hidden;
        font-size: 0.72rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .copy-code-button {
        min-width: 4.2rem;
        padding: 0.32rem 0.48rem;
        font-size: 0.72rem;
    }

    .post-body pre {
        padding: 0.85rem;
    }

    .post-body pre code {
        font-size: 0.84rem;
        line-height: 1.65;
    }

    .image-lightbox {
        padding: 1rem;
    }

    .image-lightbox img {
        max-width: 94vw;
        max-height: 78vh;
    }

    .image-lightbox-close {
        top: 0.85rem;
        right: 0.85rem;
    }

    .page-about .page {
        padding: 0;
        height: 100svh;
        min-height: 100svh;
        overflow: hidden;
    }

    .globe-stage {
        min-height: 0;
        height: 100svh;
        padding: 7rem 0.75rem 6rem;         /* balanced breathing: ~gleich viel Raum zur Nav-Pille oben und zum Footer unten */
    }

    .globe-frame {
        transform: scale(1);
        transform-origin: top center;
    }

    .project-feature-media {
        min-height: 14rem;
        padding: 0.65rem;
    }

    .project-feature-media img {
        min-height: 12rem;
    }

    .project-feature-body h2 {
        font-size: 1.65rem;
    }

    .project-feature-body p {
        font-size: 0.95rem;
    }

    .manga-ranking {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }

    .raspberrypi5-gallery {
        grid-template-columns: 1fr;
    }

    .raspberrypi5-gallery-lead {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .page-blog .raspberrypi5-gallery-lead img {
        aspect-ratio: 1 / 1;
    }

    .raspberrypi5-topology-card {
        padding: 1.25rem 1rem 1.1rem;
    }

    .raspberrypi5-topology {
        min-width: 42rem;
    }

    .raspberrypi5-topology-card {
        overflow-x: auto;
    }

    .raspberrypi5-topology-notes {
        width: 42rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .manga-card-body {
        padding: 0.8rem;
    }

    .manga-card h2 {
        font-size: 0.98rem;
    }

}

@media (max-width: 620px) {
    .header-container {
        justify-content: center;
        gap: 1.05rem;
        padding: 0.6rem 1.15rem;
    }

    .logo-image {
        height: 40px;
    }

    .nav-links {
        gap: 1.05rem;
    }

    .nav-links a {
        font-size: 0.98rem;
    }

    .page-copy br,
    .post-intro br {
        display: none;
    }

    .projects-index .page-content {
        text-align: center;
    }

    .projects-index .page-title {
        font-size: clamp(2rem, 9vw, 2.5rem);
        white-space: nowrap;
    }

    .projects-index .page-copy {
        max-width: 23rem;
        margin-right: auto;
        margin-left: auto;
    }

    .projects-index .project-feature-body {
        align-items: flex-start;
        text-align: left;
    }

    .manga-vault-page .page-title {
        font-size: clamp(2.1rem, 10vw, 2.45rem);
    }

    .manga-vault-page .post-intro {
        max-width: none;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .manga-vault-page .manga-ranking {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .manga-vault-page .manga-card-topline {
        min-height: 2rem;
        padding: 0.5rem 0.58rem;
    }

    .manga-vault-page .manga-rank {
        font-size: 0.9rem;
    }

    .manga-vault-page .manga-type {
        font-size: 0.62rem;
        letter-spacing: 1px;
    }

    .manga-vault-page .manga-card-body {
        padding: 0.68rem;
    }

    .manga-vault-page .manga-card h2 {
        font-size: 0.86rem;
    }

    .project-feature-media {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: 12.5rem;
    }

    .project-feature-media img {
        min-height: 11rem;
    }

    .raspberrypi5-section {
        margin-top: 2rem;
    }
}

@media (max-width: 460px) {
    :root {
        --nav-safe-area: 7rem;
    }

    header {
        top: 0.55rem;
        width: calc(100% - 0.75rem);
    }

    .header-container {
        justify-content: center;
        gap: 0.9rem;
        padding: 0.58rem 1rem;
    }

    .logo-image {
        height: 38px;
    }

    .nav-links {
        gap: 0.9rem;
    }

    .nav-links a {
        font-size: 0.94rem;
    }

    .nav-links a::after {
        bottom: -4px;
        height: 1px;
    }

    .hero .hero-background {
        background-position: 48% center;
    }

    .page,
    .post-page .page,
    .manga-vault-page .page {
        padding: 7.3rem 0.85rem 3rem;
    }

    .blog-index .page,
    .projects-index .page {
        padding-top: 8rem;
    }

    .page-title {
        font-size: clamp(2rem, 11vw, 2.45rem);
    }

    .page-copy br,
    .post-intro br,
    .globe-intro br {
        display: none;
    }

    .project-table,
    .project-card-grid,
    .entry-list-wide {
        margin-top: 2.2rem;
    }

    .project-row > span {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
        overflow-wrap: anywhere;
    }

    .project-row > .project-name {
        grid-template-columns: 1.2rem minmax(0, 1fr);
    }

    .project-feature-card {
        min-height: 0;
    }

    .project-feature-media {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: 12.5rem;
    }

    .project-feature-media img {
        min-height: 11rem;
    }

    .project-feature-body {
        padding: 1.1rem;
    }

    .project-feature-body h2 {
        font-size: 1.45rem;
    }

    .manga-ranking {
        grid-template-columns: 1fr;
    }

    .raspberrypi5-link-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .raspberrypi5-link-action {
        width: fit-content;
    }

    .raspberrypi5-roadmap li {
        grid-template-columns: 3.3rem minmax(0, 1fr);
        gap: 0.7rem;
    }

    .raspberrypi5-roadmap-number {
        width: 2.25rem;
        height: 2.25rem;
        margin: 0.95rem 0 0.95rem 0.72rem;
    }

    .raspberrypi5-roadmap::before {
        bottom: 7rem;
        left: calc(0.72rem + 1.125rem);
    }

    .raspberrypi5-roadmap-body {
        padding: 1rem 0.95rem 1rem 0;
    }

    .globe-title {
        font-size: 1.42rem;
    }

    .globe-intro {
        max-width: 23.5rem;
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .ascii-globe {
        font-size: min(6.4px, 1.63vw);
    }

    .globe-frame {
        transform: scale(1);
    }

    .globe-marker-label {
        max-width: none;
        padding: 2px 5px;
        font-size: 9px;
        white-space: nowrap;
        text-align: center;
    }
}

@media (max-width: 380px) {
    header {
        width: calc(100% - 0.5rem);
    }

    .header-container {
        gap: 0.45rem;
        padding: 0.5rem 0.6rem;
    }

    .logo-image {
        height: 30px;
    }

    .nav-links {
        gap: 0.52rem;
    }

    .nav-links a {
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   Motion
   ========================================================================== */

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    /* Exception: wave-bars are decorative, subtle, and use only small scale
       transforms — not motion-sickness-inducing. Keep them animating. */
    .wave-bars span {
        animation-duration: 1.4s !important;
        animation-iteration-count: infinite !important;
    }
}

/* ==========================================================================
   Landing Page (page-home) — Cinematic Editorial
   Defaults from design: accent #7aa2f7, vignette (intensity 0.2),
   blur 0, glass-strip description.
   ========================================================================== */

.page-home {
    --landing-accent: #7aa2f7;
    --landing-fg: #f4f1ea;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.page-home main { display: block; }

.page-home .hero.landing-hero {
    display: block;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: var(--landing-fg);
}

/* Vignette overlay (intensity 0.2 → dim+0.25 = 0.45 stop) */
.page-home .hero-overlay {
    background:
        radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(6, 8, 16, 0.45) 100%);
}

/* Bottom fade so footer dock stays legible */
.landing-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    z-index: 2;
    background: linear-gradient(to top, rgba(6, 8, 16, 0.55), transparent);
    pointer-events: none;
}

.landing-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
    width: min(100%, 1220px);
    margin: 0 auto;
    padding: 9.5rem 2.5rem 9rem;
    align-items: start;
}

/* ---- Left column: intro ---- */

.landing-intro {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 6px 12px 6px 10px;
    background: rgba(12, 14, 24, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    color: var(--landing-fg);
    text-shadow: none;
}

.status-sep {
    opacity: 0.4;
    font-weight: 500;
    margin: 0 0.15em;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

.landing-headline {
    margin-top: 1.25rem;
    display: block;
}

.landing-headline-kicker,
.landing-headline-name {
    display: block;
    font-family: "Caveat", "Permanent Marker", cursive;
    letter-spacing: -0.01em;
    line-height: 0.95;
}

.landing-headline-kicker {
    font-size: clamp(3.5rem, 6.5vw, 5.75rem);
    font-weight: 600;
    color: rgba(244, 241, 234, 0.9);
    line-height: 0.9;
    margin-bottom: -1rem;
    transform: translateX(4px);
}

.landing-headline-name {
    font-size: clamp(5.5rem, 10vw, 8.75rem);
    font-weight: 700;
    color: var(--landing-accent);
}

.landing-headline-tail {
    display: block;
    max-width: 18ch;
    font-family: "Caveat", "Permanent Marker", cursive;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: rgba(244, 241, 234, 0.88);
    margin-top: 0.8rem;
    text-wrap: balance;
}

.landing-headline-tail .nowrap { white-space: nowrap; }

/* Description — glass-strip */
.landing-desc {
    max-width: 520px;
    margin: 1.4rem 0 0;
    padding: 14px 18px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--landing-fg);
    background: rgba(8, 10, 18, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-shadow: none;
}

.landing-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-top: 2rem;
    text-shadow: none;
}

.cta {
    padding: 0.8125rem 1.375rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-primary {
    background: var(--landing-accent);
    color: #0a0e1c;
    box-shadow: 0 8px 24px rgba(122, 162, 247, 0.25);
}

.cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(122, 162, 247, 0.4);
}

.cta-ghost {
    background: rgba(12, 14, 24, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--landing-fg);
    font-weight: 600;
}

.cta-ghost:hover {
    background: rgba(12, 14, 24, 0.75);
}

/* ---- Right column: featured + latest ---- */

.landing-side { padding-top: 0.5rem; }

.side-label {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(244, 241, 234, 0.78);
    margin-bottom: 0.7rem;
    padding: 3px 11px;
    background: rgba(8, 10, 18, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 999px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.side-label-spaced { margin-top: 1.4rem; }

.feature-card {
    background: rgba(12, 14, 24, 0.6);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.feature-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card-link:hover {
    transform: translateY(-2px);
    border-color: rgba(122, 162, 247, 0.4);
}

.feature-card-link:hover .feature-open { text-decoration: underline; }

.feature-card-media {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #1b1f3a 0%, #3a2247 50%, #6b2f4a 100%);
}

/* Cover-grid variant — three preview images like on projects.html */
.feature-card-media-covers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    gap: 0.45rem;
    padding: 0.85rem;
    background: linear-gradient(135deg, rgba(8, 10, 16, 0.96), rgba(27, 21, 38, 0.92));
}

.feature-card-meta {
    justify-content: flex-end;
    gap: 0.85rem;
}

.feature-card-media-covers > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.feature-card-tag {
    position: absolute;
    left: 18px;
    top: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.7);
}

.feature-card-foot {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.feature-card-title {
    font-family: 'Instrument Serif', serif;
    font-size: 2.125rem;
    line-height: 1;
    color: #fff;
}

.feature-card-body {
    padding: 18px 20px;
}

.feature-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
}

.feature-card-heading {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.01em;
}

.feature-card-body p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(244, 241, 234, 0.78);
}

.feature-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.875rem;
}

.feature-tags {
    display: flex;
    gap: 0.375rem;
}

.feature-tags span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(244, 241, 234, 0.75);
}

.feature-open {
    color: var(--landing-accent);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.feature-open:hover { text-decoration: underline; }

/* Wave bars */
.wave-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 18px;
}

.wave-bars span {
    width: 3px;
    background: var(--landing-accent);
    border-radius: 2px;
    opacity: 0.9;
    animation: wb 1.4s ease-in-out infinite;
}

.wave-bars span:nth-child(1) { height: 6px;  animation-delay: 0s; }
.wave-bars span:nth-child(2) { height: 10px; animation-delay: 0.12s; }
.wave-bars span:nth-child(3) { height: 14px; animation-delay: 0.24s; }
.wave-bars span:nth-child(4) { height: 6px;  animation-delay: 0.36s; }
.wave-bars span:nth-child(5) { height: 10px; animation-delay: 0.48s; }
.wave-bars span:nth-child(6) { height: 14px; animation-delay: 0.6s; }
.wave-bars span:nth-child(7) { height: 6px;  animation-delay: 0.72s; }

@keyframes wb {
    0%, 100% { transform: scaleY(0.4); }
    50%      { transform: scaleY(1.6); }
}

/* Latest post mini-card — mirrors the featured project body layout */
.latest-post {
    display: block;
    padding: 18px 20px;
    text-decoration: none;
    background: rgba(12, 14, 24, 0.6);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: var(--landing-fg);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.latest-post:hover {
    transform: translateY(-2px);
    border-color: rgba(122, 162, 247, 0.4);
    background: rgba(12, 14, 24, 0.75);
}

.latest-post-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
}

.latest-post-title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.01em;
}

.latest-post-meta {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(244, 241, 234, 0.78);
}

/* ---- Footer dock ---- */
.landing-footer-dock {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2.25rem;
    z-index: 4;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: rgba(244, 241, 234, 0.78);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.footer-links {
    display: flex;
    gap: 1.125rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover { color: var(--landing-accent); }

.footer-brand {
    display: flex;
    gap: 0.875rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
}

.footer-sep {
    opacity: 0.4;
    font-weight: 500;
}

/* Generic site footer — used on Blog, Projects (and any future non-landing page).
   Unlike .landing-footer-dock (position: absolute inside the hero), this sits
   in normal flow at the bottom of the page after <main>. Re-uses .footer-links,
   .footer-brand, .footer-sep for inner element styling. */
.site-footer {
    position: relative;
    z-index: 3;
    margin-top: 4rem;
    padding: 1.75rem 2.5rem max(2.5rem, calc(env(safe-area-inset-bottom, 0px) + 1.5rem));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: rgba(244, 241, 234, 0.78);
}

@media (max-width: 980px) {
    .site-footer {
        justify-content: center;
        gap: 0.875rem;
        row-gap: 0.75rem;
        padding: 1.5rem 1.5rem max(2.5rem, calc(env(safe-area-inset-bottom, 0px) + 1.5rem));
    }
}

/* About-Variante: hell, absolut am Viewport-Bottom positioniert damit
   die no-scroll Globe-Seite den Footer trotzdem zeigt. Farben passen zum
   warmen About-Theme (dunkler Text auf beige, oranger Hover-Accent). */
.page-about .site-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: 0;
    z-index: 4;
    color: rgba(35, 30, 24, 0.62);
}

.page-about .site-footer .footer-links a,
.page-about .site-footer .footer-brand {
    color: rgba(35, 30, 24, 0.85);
}

.page-about .site-footer .footer-links a:hover {
    color: #d6573a;     /* warm orange, gleicher Accent wie nav-link hover */
}

.page-about .site-footer .footer-sep {
    opacity: 0.4;
    color: rgba(35, 30, 24, 0.85);
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
    .landing-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 8.5rem 1.5rem 8rem;
    }

    .landing-headline-kicker {
        margin-bottom: -0.6rem;
        transform: none;
    }

    /* Mobile-only: center the intro column content (pill + headline) */
    .landing-intro {
        text-align: center;
    }

    .landing-headline-tail {
        margin-left: auto;
        margin-right: auto;
    }

    /* Mobile-only: footer as a single centered group "github | newwaves.dev | Tag 140 / 365" */
    .landing-footer-dock {
        position: relative;
        z-index: 3;
        margin-top: 1rem;
        padding: 0 1.5rem;
        padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom, 0px) + 1.5rem));
        justify-content: center;
        gap: 0.875rem;
        flex-wrap: wrap;
        row-gap: 0.75rem;
    }

    .footer-brand::before {
        content: "|";
        opacity: 0.4;
        font-weight: 500;
    }

    /* Higher specificity overrides the desktop rule on .page-home .hero.landing-hero */
    .page-home .hero.landing-hero {
        min-height: auto;
        overflow: visible;
    }

    /* Shorten the bottom gradient on mobile so it doesn't sit on top of the footer */
    .landing-hero::after {
        height: 18% !important;
    }
}

@media (max-width: 620px) {
    .landing-grid {
        padding: 7.5rem 1.1rem 5rem;
    }

    .landing-desc { font-size: 0.95rem; }

    .feature-card-media { height: 200px; }
    .feature-card-title { font-size: 1.7rem; }

    .cta { padding: 0.75rem 1.2rem; font-size: 0.9rem; }

    /* On narrow viewports, drop the redundant "building newwaves.dev" segment
       so the status pill fits on a single line. */
    .status-mid,
    .status-sep-1 {
        display: none;
    }
}

/* ==========================================================================
   Responsive Article Components
   ========================================================================== */

@media (max-width: 620px) {
    .deploy-flow {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .deploy-flow span:not(:last-child)::before,
    .deploy-flow span:not(:last-child)::after {
        right: auto;
        top: auto;
        left: 50%;
    }

    .deploy-flow span:not(:last-child)::before {
        bottom: -1.18rem;
        width: 1px;
        height: 0.86rem;
        background: linear-gradient(180deg, rgba(232, 121, 249, 0.18), rgba(232, 121, 249, 0.9));
        transform: translateX(-50%);
    }

    .deploy-flow span:not(:last-child)::after {
        bottom: -1.2rem;
        transform: translateX(-50%) rotate(135deg);
    }
}

/* ==========================================================================
   Blog Overview · G layout (Doku & Journal split) + M2 mobile (tabs)
   Append this block to assets/css/style.css — uses the existing
   --color-primary tokens, rgba(255,255,255,…) borders, hover patterns.
   ========================================================================== */

/* ---- Layout grid (desktop) ---- */
.blog-split {
    display: grid;
    grid-template-columns: 1fr 1fr;     /* symmetrisch: gleiche Card-Breiten */
    gap: 2.4rem;
    margin-top: 3.2rem;
}

.blog-column {
    min-width: 0;
}

.blog-column-header {
    display: flex;
    align-items: center;       /* single row: title + count pill */
    gap: 0.85rem;
    margin-bottom: 1.2rem;
}

.blog-column-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}


/* Column glyphs — inline SVG line icons (book-open / pen-line, polished) */
.blog-column-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
}

.blog-column-glyph svg {
    width: 100%;
    height: 100%;
    stroke-width: 2.25;
}

.blog-column-glyph-doku {
    color: #5fb8e8;
}

.blog-column-glyph-journal {
    color: #d6a55a;
}

/* Count pill — content-sized chip with "N Beiträge" / "1 Beitrag" */
.blog-column-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.65rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.blog-column-doku .blog-column-count {
    background: rgba(95, 184, 232, 0.14);
    border: 1px solid rgba(95, 184, 232, 0.38);
    color: #7fc7ed;
}

.blog-column-journal .blog-column-count {
    background: rgba(214, 165, 90, 0.14);
    border: 1px solid rgba(214, 165, 90, 0.4);
    color: #e2b577;
}

/* ---- Doku side: topic-grouped card lists ---- */
.doku-group + .doku-group {
    margin-top: 1.7rem;     /* clear visual gap between topic groups */
}

/* Topic section divider — text centered between two hairline rules */
.doku-group-label {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 1rem;
    color: #8fcfee;             /* slightly brighter Doku blue for prominence */
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.doku-group-label::before,
.doku-group-label::after {
    content: "";
    flex: 1 1 auto;
    height: 1.5px;
    border-radius: 1px;
    background: rgba(95, 184, 232, 0.3);
}

.doku-cards {
    display: grid;
    gap: 0.7rem;
}

.doku-item {
    display: block;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.doku-item:hover {
    transform: translateY(-2px);
    border-color: rgba(95, 184, 232, 0.55);    /* Doku blue, stronger on hover */
    background: rgba(255, 255, 255, 0.055);
}

.doku-item:hover .doku-item-title {
    color: #7fc7ed;                            /* Doku blue title on hover */
}

.doku-item:hover .doku-item-desc {
    color: rgba(255, 255, 255, 0.78);
}

.doku-item-meta {
    margin-bottom: 0.4rem;
}

.doku-item-date {
    color: rgba(255, 255, 255, 0.5);
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.doku-item-title {
    display: block;
    margin: 0 0 0.3rem;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.28;
    transition: color 0.3s ease;
}

.doku-item-desc {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

/* ---- Journal side: month groups + post cards ---- */
.journal-month + .journal-month {
    margin-top: 1.6rem;
}

.journal-month-label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Month name + a dot marker that starts the timeline */
.journal-month-label > span:first-child {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.journal-month-label > span:first-child::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(214, 165, 90, 0.95);
    box-shadow: 0 0 0 3px rgba(214, 165, 90, 0.18);
    animation: journal-dot-pulse 2.8s ease-in-out infinite;
}

@keyframes journal-dot-pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(214, 165, 90, 0.18);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(214, 165, 90, 0.05);
        transform: scale(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .journal-month-label > span:first-child::after {
        animation: none;
    }
}

/* The timeline line itself — solid gold from start dot to count chip */
.journal-month-label::after {
    content: "";
    flex: 1 1 auto;
    height: 2px;
    border-radius: 1px;
    background: rgba(214, 165, 90, 0.5);
}

/* Count chip — pushed to the right of the timeline via order */
.journal-month-count {
    flex: 0 0 auto;
    order: 1;                 /* render AFTER the ::after line */
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(214, 165, 90, 0.12);
    border: 1px solid rgba(214, 165, 90, 0.32);
    color: #e2b577;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;     /* override uppercase from .journal-month-label */
    cursor: help;             /* hints at the title-tooltip */
}

.journal-cards {
    display: grid;
    gap: 0.7rem;
}

.journal-card {
    display: block;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.journal-card:hover {
    transform: translateY(-2px);
    border-color: rgba(214, 165, 90, 0.55);    /* Journal gold, stronger on hover */
    background: rgba(255, 255, 255, 0.055);
}

.journal-card:hover .journal-card-title {
    color: #e2b577;                            /* Journal gold title on hover */
}

.journal-card-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.journal-card-title {
    margin: 0 0 0.3rem;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.28;
    transition: color 0.3s ease;
}

.journal-card-desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ---- Mobile segmented control ---- */
.blog-tabs {
    display: none;                  /* hidden on desktop */
    margin-top: 2.2rem;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    gap: 4px;
}

/* Row 1 of the tab — Icon + Title + Count inline */
.blog-tab-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Row 2 of the tab — small Meta caption ("nach Thema" / "chronologisch") */
.blog-tab-meta {
    color: rgba(255, 255, 255, 0.4);
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.blog-tab.is-active .blog-tab-meta {
    color: rgba(255, 255, 255, 0.62);
}

.blog-tab {
    flex: 1 1 0;
    display: inline-flex;
    flex-direction: column;     /* two rows: glyph+title+count above, meta below */
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.blog-tab.is-active {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.blog-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.2rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* Mobile tab counts color-matched to the column they represent
   — mirrors the desktop column-count pill colors */
[data-blog-tab="doku"] .blog-tab-count {
    background: rgba(95, 184, 232, 0.14);
    border-color: rgba(95, 184, 232, 0.38);
    color: #7fc7ed;
}

[data-blog-tab="journal"] .blog-tab-count {
    background: rgba(214, 165, 90, 0.14);
    border-color: rgba(214, 165, 90, 0.4);
    color: #e2b577;
}

.blog-tab-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
}

.blog-tab-glyph svg {
    width: 100%;
    height: 100%;
    stroke-width: 2.25;
}

.blog-tab-glyph-doku {
    color: #5fb8e8;
}

.blog-tab-glyph-journal {
    color: #d6a55a;
}

.blog-tab:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Responsive: stack to single column + activate tabs below 980px
   This works WITH your existing @media (max-width: 980px) block.
   ========================================================================== */
@media (max-width: 980px) {
    .blog-tabs {
        display: flex;
    }

    .blog-split {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 1.6rem;
    }

    /* Show only the active column on mobile */
    .blog-split .blog-column[role="tabpanel"][aria-hidden="true"] {
        display: none;
    }

    .blog-column-header {
        display: none;              /* tab label already says it */
    }

    .doku-item,
    .journal-card {
        padding: 0.95rem 1.05rem;
    }

    .journal-month + .journal-month {
        margin-top: 1.4rem;
    }
}

@media (max-width: 720px) {
    .blog-tab {
        font-size: 0.88rem;
        padding: 0.55rem 0.6rem;
    }

    .journal-card-title {
        font-size: 1.02rem;
    }

    .doku-item-title {
        font-size: 1.02rem;
    }
}
