/* ============================================================
   SOFT THEME — pages
   Home, post lists, archive, most read, reading view,
   comments, about/contact, legal, errors, search.
   ============================================================ */

/* Shared: a quiet tint per card, rotating through the backdrop's tones */
.featured-post-card:nth-child(4n+1), .blog-post-card:nth-of-type(4n+1), .most-read-item:nth-of-type(4n+1), .admin-panel-card:nth-child(4n+1) { --tint: var(--tone-1); }
.featured-post-card:nth-child(4n+2), .blog-post-card:nth-of-type(4n+2), .most-read-item:nth-of-type(4n+2), .admin-panel-card:nth-child(4n+2) { --tint: var(--tone-2); }
.featured-post-card:nth-child(4n+3), .blog-post-card:nth-of-type(4n+3), .most-read-item:nth-of-type(4n+3), .admin-panel-card:nth-child(4n+3) { --tint: var(--tone-3); }
.featured-post-card:nth-child(4n+4), .blog-post-card:nth-of-type(4n+4), .most-read-item:nth-of-type(4n+4), .admin-panel-card:nth-child(4n+4) { --tint: var(--tone-4); }

/* ── Home ── */
.header-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
    grid-template-areas:
        "hero hero"
        "lead lead"
        "feat side";
    gap: 20px;
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.hero-glass-content { grid-area: hero; }
.header-section > .lead-post { grid-area: lead; }
.header-section > .content-area { grid-area: feat; }
.header-section > .sidebar { grid-area: side; align-self: start; }

@media (max-width: 860px) {
    .header-section {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "hero" "lead" "feat" "side";
    }
}

.hero-glass-content {
    position: relative;
    isolation: isolate;
    margin: clamp(0.5rem, 3vw, 2rem) 0 clamp(0.8rem, 2.5vw, 1.8rem);
    padding: clamp(2.2rem, 5.5vw, 4rem) var(--gutter) clamp(2.2rem, 4.5vw, 3rem);
    text-align: center;
}
.hero-glass-content::before {
    content: '';
    position: absolute;
    inset: -6% -3%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 36% 42% at 28% 34%, color-mix(in srgb, var(--bd-glow-2) 30%, transparent), transparent 100%),
        radial-gradient(ellipse 50% 50% at 50% 50%,
            color-mix(in srgb, var(--surface-solid) 94%, transparent) 0%,
            color-mix(in srgb, var(--surface-solid) 80%, transparent) 46%,
            color-mix(in srgb, var(--surface-solid) 36%, transparent) 74%,
            transparent 100%);
    filter: blur(6px);
}
.hero-glass-content .d-flex { flex-wrap: wrap; gap: 0.6rem clamp(0.8rem, 2vw, 1.6rem); margin-bottom: 0; }
.hero-glass-content h1.mt-5 { margin-top: 0; }

.main-title {
    margin: 0;
    font-size: clamp(2.6rem, 8.5vw, 5.4rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.028em;
    background: linear-gradient(120deg, var(--text) 30%, var(--accent-strong) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-wrap: balance;
}
/* The ornaments flanking the title belong to the original theme; the soft look does without them */
.ornament { display: none; }

.hero-diff-band { display: flex; justify-content: center; margin-top: clamp(1.5rem, 3vw, 2.3rem); }
.sub-title {
    margin: 0;
    padding: 0.55rem 1.5rem;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--accent) 13%, var(--surface-solid));
    color: var(--accent-strong);
    font-family: var(--font-ui);
    font-variation-settings: normal;
    font-size: 0.8125rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}
.description {
    max-width: 35rem;
    margin: clamp(1.3rem, 2.5vw, 1.9rem) auto 0;
    color: var(--text-dim);
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-style: italic;
    line-height: 1.7;
    text-wrap: balance;
}
.header-divider {
    width: 64px;
    height: 3px;
    margin: clamp(1.8rem, 3.5vw, 2.6rem) auto 0;
    border: 0;
    border-radius: 3px;
    background: color-mix(in srgb, var(--accent) 50%, transparent);
}

/* Lead post ("Aktuell"): the newest post, larger than the rest, right below the title */
.lead-post {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background:
        radial-gradient(90% 130% at 0% 0%, color-mix(in srgb, var(--tone-2) 22%, transparent), transparent 62%),
        radial-gradient(70% 120% at 100% 100%, color-mix(in srgb, var(--tone-1) 14%, transparent), transparent 66%),
        var(--surface);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-2);
    transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.lead-post:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.lead-post--image { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); }
.lead-post-image { width: 100%; height: 100%; min-height: 240px; object-fit: cover; filter: saturate(0.85) contrast(0.97); order: 2; }
.lead-post-body { padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.4rem, 4vw, 3rem); }
.lead-post-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    padding: 0.3rem 0.95rem;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--accent) 14%, var(--surface-solid));
    color: var(--accent-strong);
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}
.lead-post-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.lead-post-title { margin: 0 0 0.8rem; font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 450; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.lead-post-link { color: var(--text); }
.lead-post-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* the whole card is the link */
.lead-post-link:hover { color: var(--text); }
.lead-post-excerpt { max-width: 46rem; margin: 0 0 1.2rem; color: var(--text-dim); font-size: 1.12rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lead-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin: 0; color: var(--text-dim); font-family: var(--font-ui); font-size: 0.8125rem; letter-spacing: 0.05em; }
.lead-post-cta { color: var(--accent-strong); font-weight: 500; }
.lead-post-cta span { display: inline-block; transition: transform var(--t-fast) var(--ease); }
.lead-post:hover .lead-post-cta span { transform: translateX(4px); }
@media (max-width: 860px) {
    .lead-post--image { grid-template-columns: minmax(0, 1fr); }
    .lead-post-image { order: 0; min-height: 180px; max-height: 260px; height: auto; }
}

/* Sidebar */
.sidebar {
    padding: 1.5rem 1.4rem 1.6rem;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-1);
}
.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.9rem;
    color: var(--text-dim);
    font-family: var(--font-ui);
    font-variation-settings: normal;
    font-size: 0.8125rem;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.sidebar-title::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tone-2); flex-shrink: 0; }
.sidebar-title:not(:first-child) { margin-top: 1.8rem; }
.sidebar-title:nth-of-type(2)::before { background: var(--tone-3); }
.sidebar-title:nth-of-type(3)::before { background: var(--tone-4); }

.nav-list { margin: 0; padding: 0; list-style: none; }
.nav-list li { margin: 0; }
.nav-list a {
    display: block;
    padding: 0.55rem 0.8rem;
    margin: 0 -0.8rem;
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.35;
    transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.nav-list a:hover { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--text); transform: translateX(3px); }
.nav-list .text-muted { padding: 0.5rem 0; }

.list-group { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.list-group-item { display: contents; }
.list-group-item a {
    display: inline-flex;
    padding: 0.4rem 0.95rem;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--text) 8%, transparent);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    transition: background var(--t-fast) var(--ease), color var(--t-fast);
}
.list-group-item a:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-strong); }
.list-group-item .dropdown-item { font-family: var(--font-ui); font-size: 0.8125rem; }

/* Featured posts */
.header-section > .content-area { min-width: 0; }
.featured-posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }

.featured-post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.4rem 1.3rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--tint, var(--tone-1)) 24%, transparent), transparent 66%),
        var(--surface);
    box-shadow: var(--shadow-1);
    transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base);
}
.featured-post-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--tint, var(--tone-1)) 40%, transparent);
    box-shadow: var(--shadow-2), 0 14px 40px -18px color-mix(in srgb, var(--tint, var(--tone-1)) 60%, transparent);
}
.featured-post-title { margin: 0 0 0.6rem; font-size: 1.28rem; font-style: normal; line-height: 1.25; }
.featured-post-link { color: var(--text); }
.featured-post-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* whole card is the link */
.featured-post-link:hover { color: var(--text); }
.featured-post-excerpt { margin: 0 0 1rem; color: var(--text-dim); font-size: 0.97rem; line-height: 1.6; }
.featured-post-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: auto; position: relative; z-index: 1; }
.featured-post-preview { width: 56px; height: 56px; border-radius: var(--r-md); object-fit: cover; }

/* Discoveries */
.container.my-5 { margin-block: 3rem; }
.discovery-card-item { padding: 10px; }
@media (max-width: 767px) { .discovery-card-item { padding: 8px 0; } }
.discovery-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-3); }
.discovery-card:hover .card-img-top { filter: saturate(0.98) contrast(1) brightness(1); transform: scale(1.04); }
.discovery-card .card-title { font-size: 1.12rem; }
.featured-title { margin: 0 0 1rem; text-align: center; font-size: 1.6rem; font-style: italic; }

/* ── Post lists ── */
.posts-header { margin-bottom: 1.4rem; }
.active-tag-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--surface-solid));
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--accent) 11%, var(--surface-solid));
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--text);
}
.active-tag-banner strong { color: var(--accent-strong); font-weight: 500; }
.active-tag-banner .btn { margin-left: auto; }

#tag-search-form label { margin-bottom: 0.5rem; }
.post-filter-input { border-radius: var(--r-pill); padding-inline: 1.4rem; }

.blog-post-card, .most-read-item, .archive-post-item {
    position: relative;
    margin-bottom: 18px;
    padding: 1.5rem 1.7rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background:
        radial-gradient(100% 120% at 0% 0%, color-mix(in srgb, var(--tint, var(--tone-1)) 20%, transparent), transparent 62%),
        var(--surface);
    box-shadow: var(--shadow-1);
    transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base);
}
.blog-post-card:hover, .most-read-item:hover, .archive-post-item:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--tint, var(--tone-1)) 38%, transparent);
    box-shadow: var(--shadow-2), 0 14px 40px -20px color-mix(in srgb, var(--tint, var(--tone-1)) 55%, transparent);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.9rem;
    margin: 0 0 0.7rem;
    color: var(--text-dim);
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
}
.post-date, .post-author, .post-views { font-family: var(--font-ui); font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--text-dim); }
.post-author::before { content: '·'; margin-right: 0.9rem; opacity: 0.6; }

.blog-post-card .post-title, .most-read-content :is(h2, h3) {
    margin: 0;
    font-size: clamp(1.25rem, 2.6vw, 1.65rem);
    font-style: normal;
    font-weight: 500;
    line-height: 1.25;
}
.post-link, .post-link-style { color: var(--text); font-style: inherit; font-weight: inherit; }
.post-link:hover, .post-link-style:hover { color: var(--accent-strong); }
/* The whole card is clickable; tags/buttons inside stay above the stretched link */
.blog-post-card .post-link::after, .most-read-item .post-link-style::after, .archive-post-item .post-link-style::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.blog-post-card .post-tags-container, .blog-post-card .post-footer a, .blog-post-card .post-footer form, .blog-post-card .post-footer button { position: relative; z-index: 1; }

.post-excerpt, .search-snippet {
    margin: 0.7rem 0 0;
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-post-card .post-footer { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.blog-post-card .post-tags-container { margin-top: 0.9rem; }

.no-posts-card {
    padding: 3rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-1);
    text-align: center;
}
.no-posts-card h3 { color: var(--text); font-style: italic; }

/* Most read */
.most-read-item { display: block; }
.most-read-content { min-width: 0; }
.most-read-content p:not(.post-excerpt) { margin: 0.5rem 0 0; font-family: var(--font-ui); font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--text-dim); }
.rank { display: none; }

/* Archive */
.archive-years { margin: 0 0 1rem; }
.archive-year-heading {
    display: block;
    margin: 2rem 0 1rem;
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--text-dim);
    font-family: var(--font-ui);
    font-variation-settings: normal;
    font-size: 0.8125rem;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    box-shadow: var(--shadow-1);
}
.archive-post-item {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    grid-template-areas: "date title" ". excerpt";
    column-gap: 1.6rem;
    padding: 1.2rem 1.6rem;
}
.archive-post-item h3 { grid-area: title; margin: 0; font-size: 1.25rem; font-style: normal; align-self: baseline; }
.archive-post-item .post-meta { grid-area: date; margin: 0; align-self: baseline; }
.archive-post-item .post-excerpt { grid-area: excerpt; margin-top: 0.4rem; }
@media (max-width: 576px) {
    .archive-post-item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "date" "title" "excerpt"; row-gap: 0.3rem; }
}

/* ── Reading view ──
   The text column (--measure) depends on the layout chosen in the editor (models/postModel.js POST_LAYOUTS):
   standard = the classic column; wide = a wider page and column; magazine = a wider page around a classic
   column, whose margins take hanging images, quotes and notes (content.css). The article is a size
   container, so content.css can let elements reach beyond the column into the page (cqi units). */
#blogpost-content { --measure: var(--reading-max); }
#blogpost-content.post-layout-wide { --measure: 48rem; }
#blogpost-content.post-layout-magazine { --measure: 40rem; }
#post-article { container: post / inline-size; }

#blogpost-content {
    padding: clamp(1.4rem, 5vw, 3.2rem) clamp(1.2rem, 5vw, 3.4rem);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-2);
}
.post-header { max-width: var(--measure, var(--reading-max)); margin: 0 auto 1.8rem; }
#blogpost-content .post-title { margin: 0 0 0.9rem; font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 450; line-height: 1.12; letter-spacing: -0.02em; }
.post-meta-info { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; color: var(--text-dim); font-family: var(--font-ui); font-size: 0.8125rem; letter-spacing: 0.05em; }
.post-meta-info .post-date, .post-meta-info .post-updated, .post-reading-time { font-family: var(--font-ui); font-size: 0.8125rem; font-style: normal; color: var(--text-dim); letter-spacing: 0.05em; }
.post-meta-info .post-updated { color: var(--accent); }

.post-content {
    max-width: var(--measure, var(--reading-max));
    margin: 0 auto 2rem;
    font-size: 1.14rem;
    line-height: 1.82;
    display: flow-root; /* contains floated images */
    overflow-wrap: break-word;
}
.post-content > :first-child { margin-top: 0; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 { margin: 2.2em 0 0.6em; line-height: 1.25; }
.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.65rem; }
.post-content h3 { font-size: 1.35rem; }
.post-content a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.post-content a:hover { text-decoration-color: currentColor; }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content li { margin-bottom: 0.35em; }
.post-content li::marker { color: var(--accent); }
.post-content hr { margin: 2.6rem 0; }

.post-content img, .blogpost-content img, .preview-box img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.6rem auto;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-2);
}

.post-content blockquote {
    margin: 1.8rem 0;
    padding: 1.1rem 1.5rem;
    border-radius: var(--r-lg);
    border-left: 4px solid color-mix(in srgb, var(--tone-2) 70%, transparent);
    background: color-mix(in srgb, var(--tone-2) 10%, var(--surface-sunken));
    color: var(--text-dim);
    font-style: italic;
}
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content blockquote footer, .post-content blockquote cite { font-family: var(--font-ui); font-size: 0.875rem; font-style: normal; color: var(--text-dim); }

.post-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.8rem 0; font-size: 0.98rem; }
.post-content th, .post-content td { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line-strong); text-align: left; }
.post-content th { color: var(--text); font-family: var(--font-ui); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.05em; background: color-mix(in srgb, var(--text) 5%, transparent); }

/* Code */
.post-content code, .preview-box code {
    padding: 0.12em 0.5em;
    border-radius: var(--r-xs);
    background: color-mix(in srgb, var(--text) 10%, transparent);
    color: var(--tone-2);
    font-family: var(--font-ui);
    font-size: 0.84em;
}
.post-content pre, .post-content pre[class*="language-"], .preview-box pre {
    margin: 1.8rem 0;
    padding: 1.2rem 1.4rem;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface-sunken);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.86rem;
    line-height: 1.7;
    tab-size: 4;
    -webkit-overflow-scrolling: touch;
}
.post-content pre code, .preview-box pre code { padding: 0; background: none; color: inherit; font-size: inherit; white-space: pre; word-break: normal; }

/* Muted syntax colours (Prism token classes), tuned for the light code box */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #85735f; font-style: italic; }
.token.punctuation { color: #7a6753; }
.token.property, .token.tag, .token.constant, .token.symbol, .token.deleted { color: #a8452a; }
.token.boolean, .token.number { color: #8f5f00; }
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #4a6b27; }
.token.operator, .token.entity, .token.url { color: #7a5c38; }
.token.atrule, .token.attr-value, .token.keyword { color: #75487f; }
.token.function, .token.class-name { color: #2a6489; }
.token.regex, .token.important, .token.variable { color: #96560a; }
.token.important, .token.bold { font-weight: 600; }
.token.italic { font-style: italic; }

#blogpost-content .post-footer { max-width: var(--measure, var(--reading-max)); margin: 0 auto; padding-top: 1.4rem; border-top: 1px solid var(--line); }
#blogpost-content .post-footer .post-tags-container { gap: 0.6rem 0.8rem; }

/* Magazine layout: a centred title page with a flourish below it */
.post-layout-magazine .post-header { text-align: center; }
.post-layout-magazine #post-article .post-title { font-size: clamp(2.1rem, 6vw, 3.4rem); font-style: italic; text-wrap: balance; }
.post-layout-magazine .post-meta-info { justify-content: center; }
.post-layout-magazine .post-header::after {
    content: '';
    display: block;
    width: min(15rem, 70%);
    height: 1.6rem;
    margin: 1.6rem auto 0;
    background: color-mix(in srgb, var(--accent) 70%, transparent);
    -webkit-mask: url('/assets/ornaments/flourish-pair.svg') center / contain no-repeat;
    mask: url('/assets/ornaments/flourish-pair.svg') center / contain no-repeat;
}

/* ── Hyphenation ──
   Running text is hyphenated by the browser, in the language of its element (<html lang="de">, English posts
   and teasers carry lang="en"). Only words of 6+ letters are split, never before 3 or after 3 letters.
   Headings are only hyphenated on narrow screens, where a long German compound would not fit at all.
   The post text itself is handled in content.css. */
.post-excerpt, .search-snippet, .featured-post-excerpt, .lead-post-excerpt, .card-text, .comment-text,
.about-text, .about-list, .container.my-5 .col-lg-8 :is(p, li) {
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
}
@media (max-width: 600px) {
    .blog-post-card .post-title, .most-read-content :is(h2, h3), .archive-post-item h3, .featured-post-title,
    .lead-post-title, .card-title, #post-article .post-title {
        -webkit-hyphens: auto;
        hyphens: auto;
        hyphenate-limit-chars: 10 4 4;
    }
}

/* ── Comments ── */
.comments-section { max-width: max(var(--reading-max), var(--measure, var(--reading-max))); margin: 3rem auto 0; clear: both; }
.comments-divider hr { margin: 0 0 2rem; }
.comments-title { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.6rem; font-size: 1.5rem; font-style: italic; }

.comment-form-container, .comments-list-container { margin-bottom: 2.4rem; }
.comment-form-container {
    padding: 1.6rem 1.7rem;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background:
        radial-gradient(90% 100% at 0% 0%, color-mix(in srgb, var(--tone-3) 16%, transparent), transparent 66%),
        var(--surface);
}
.comment-form-container :is(h3, h4), .comments-list-container :is(h3, h4) {
    margin: 0 0 1.2rem;
    color: var(--text-dim);
    font-family: var(--font-ui);
    font-variation-settings: normal;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.char-counter { font-family: var(--font-ui); font-size: 0.8125rem; color: var(--text-faint); }

.comment-item {
    position: relative;
    margin-bottom: 14px;
    padding: 1.1rem 1.4rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    border-top-left-radius: var(--r-xs);
    background: var(--surface-2);
    transition: border-color var(--t-base);
}
.comment-item:hover { border-color: var(--line-strong); }
.comment-header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin-bottom: 0.6rem; }
.comment-username { color: var(--text); font-family: var(--font-ui); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em; }
.comment-time { color: var(--text-faint); font-family: var(--font-ui); font-size: 0.8125rem; letter-spacing: 0.04em; }
.comment-text { color: var(--text); font-size: 1rem; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.comment-delete-btn { margin-left: auto; padding: 0.3rem 0.7rem; opacity: 0.6; }
.comment-delete-btn:hover { opacity: 1; }
.no-comments p { margin: 0; padding: 1rem 0; text-align: center; color: var(--text-dim); }

/* ── About & contact ── */
.about-page-content .content-area,
.container.my-5 .col-lg-8 {
    padding: clamp(1.4rem, 5vw, 2.8rem);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: color-mix(in srgb, var(--surface-solid) 86%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-2);
}
.about-content { max-width: 760px; margin: 0 auto; }
.about-title { margin-bottom: 1.2rem; font-size: clamp(1.8rem, 4vw, 2.5rem); font-style: italic; }
.about-intro-row { display: flex; align-items: flex-start; gap: 2rem; }
.about-intro-text { flex: 1; min-width: 0; }
@media (max-width: 768px) { .about-intro-row { flex-direction: column-reverse; align-items: center; } }
.about-subtitle {
    margin: 2.4rem 0 0.9rem;
    color: var(--text-dim);
    font-family: var(--font-ui);
    font-variation-settings: normal;
    font-size: 0.8125rem;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.about-intro-row .about-subtitle { margin-top: 0; }
.about-text { color: var(--text); line-height: 1.75; }
.about-list { padding-left: 1.3rem; line-height: 1.7; }
.about-list li { margin-bottom: 0.5rem; }
.about-list li::marker { color: var(--accent); }
.about-quote {
    margin: 2.2rem 0;
    padding: 1.4rem 1.8rem;
    border-radius: var(--r-lg);
    border-left: 4px solid color-mix(in srgb, var(--tone-4) 70%, transparent);
    background: color-mix(in srgb, var(--tone-4) 10%, var(--surface-sunken));
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.7;
}
.about-quote .blockquote-footer { margin-top: 0.9rem; color: var(--text-dim); font-family: var(--font-ui); font-size: 0.8125rem; font-style: normal; letter-spacing: 0.05em; }
.author-box { margin: 0; flex-shrink: 0; }
.author-img {
    width: 150px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 46% 54% 50% 50% / 38% 38% 62% 62%;
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-2);
    filter: saturate(0.8) sepia(0.12);
}
.author-name { margin: 0.8rem 0 0; color: var(--text-dim); font-family: var(--font-ui); font-variation-settings: normal; font-size: 0.875rem; font-weight: 400; letter-spacing: 0.2em; }
.contact-section { margin-top: 2.4rem; }
#contact-message { min-height: 7rem; max-height: 220px; }
#my-form-status { font-family: var(--font-ui); font-size: 0.875rem; color: var(--text-dim); }

/* Legal pages: plain text inside the soft panel */
.container.my-5 .col-lg-8 h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.container.my-5 .col-lg-8 section { margin-bottom: 2rem; }
.container.my-5 .col-lg-8 h2 { margin-top: 0.4rem; }
.container.my-5 .col-lg-8 p, .container.my-5 .col-lg-8 li { line-height: 1.75; }

/* ── Error pages ── */
.error-page-container { padding: 3rem 0; }
.error-alert {
    padding: 2.6rem 2rem;
    border-radius: var(--r-xl);
    text-align: center;
    box-shadow: var(--shadow-2);
    animation: fadeInUp 0.5s var(--ease);
}
.error-icon { margin-bottom: 0.8rem; font-size: 3rem; line-height: 1; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 1rem; }

/* ── Search page ── */
.search-header {
    margin-bottom: 1.8rem;
    padding: 1.4rem 1.6rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-1);
}
.search-title { margin-bottom: 1rem; font-size: clamp(1.8rem, 4vw, 2.5rem); font-style: italic; }
.search-page-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-page-input { flex: 1 1 260px; width: auto; padding: 0.95rem 1.4rem; border-radius: var(--r-pill); font-size: 1.1rem; font-style: italic; }
.search-summary { margin: 1rem 0 0; color: var(--text-dim); font-family: var(--font-ui); font-size: 0.875rem; letter-spacing: 0.02em; }
.search-summary strong { color: var(--text); font-weight: 500; }
.search-result .search-snippet { -webkit-line-clamp: 4; }
.search-empty .post-tags-container { justify-content: center; }
.search-empty-label { margin: 1.4rem 0 0.8rem; font-family: var(--font-ui); font-size: 0.875rem; color: var(--text-dim); }
