/*
Theme Name: Ziebke Journal Privat
Theme URI: https://ziebke.net/
Author: Patrick Ziebke
Description: Ein reduziertes persönliches WordPress-Theme mit fotografischem Kopfbereich und vollständig dargestellten Beiträgen.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ziebke-journal
License: GNU General Public License v2 or later
*/

:root {
    --ink: #171714;
    --ink-soft: #555149;
    --night: #11120f;
    --paper: #f3efe7;
    --paper-light: #faf8f3;
    --sand: #c8bba8;
    --line: rgba(23, 23, 20, 0.18);
    --line-dark: rgba(250, 248, 243, 0.26);
    --serif: Georgia, "Times New Roman", Times, serif;
    --sans: Arial, Helvetica, sans-serif;
    --content-width: 1180px;
    --reading-width: 790px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover, a:focus-visible { text-decoration-color: var(--sand); }
img { max-width: 100%; height: auto; }

/* Die Beitragsübersicht bleibt textorientiert. Eingebettete Bilder werden dort ausgeblendet. */
.post-thumbnail, .wp-post-image, .entry-list img { display: none !important; }

.screen-reader-text {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
    position: fixed; z-index: 100000; top: 1rem; left: 1rem; width: auto; height: auto;
    padding: .75rem 1rem; clip: auto; background: var(--paper-light); color: var(--ink);
}

/* Kopfbereich */
.site-header { position: relative; overflow: hidden; background: var(--night); color: var(--paper-light); }
.site-header--image {
    min-height: clamp(620px, 77vh, 820px);
    background-color: var(--night);
    background-image:
        linear-gradient(90deg, rgba(8,9,7,.86) 0%, rgba(8,9,7,.70) 34%, rgba(8,9,7,.34) 68%, rgba(8,9,7,.52) 100%),
        linear-gradient(0deg, rgba(8,9,7,.50) 0%, rgba(8,9,7,.08) 48%, rgba(8,9,7,.35) 100%),
        var(--header-image);
    background-position: center, center, center 54%;
    background-repeat: no-repeat;
    background-size: cover;
}
.header-bar, .hero-inner, .site-main, .footer-inner {
    width: min(calc(100% - 64px), var(--content-width));
    margin-inline: auto;
}
.header-bar {
    position: relative; z-index: 2; min-height: 96px; display: flex; align-items: center;
    justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line-dark);
}
.site-brand {
    color: var(--paper-light); font-size: .83rem; font-weight: 700; letter-spacing: .19em;
    text-decoration: none; text-transform: uppercase;
}
.site-brand:hover { text-decoration: none; opacity: .82; }
.primary-menu { margin: 0; padding: 0; display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.primary-menu a { color: var(--paper-light); font-family: var(--serif); font-size: 1rem; text-decoration: none; }
.primary-menu a:hover, .primary-menu a:focus-visible { color: var(--sand); }
.hero {
    position: relative; z-index: 2; display: flex; align-items: center;
    min-height: calc(clamp(620px, 77vh, 820px) - 96px);
    padding: clamp(3.5rem, 7vw, 7rem) 0;
}
.hero-kicker {
    margin: 0 0 1.1rem; color: #e1d5c3; font-size: .84rem; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase;
}
.hero-title {
    max-width: 950px; margin: 0; color: var(--paper-light); font-family: var(--serif);
    font-size: clamp(4.6rem, 10vw, 9.4rem); font-weight: 400; letter-spacing: -.055em; line-height: .87;
    text-shadow: 0 2px 24px rgba(0,0,0,.20);
}
.hero-text {
    max-width: 760px; margin: 2rem 0 0; color: rgba(250,248,243,.86);
    font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.65;
}

/* Beitragsstrom */
.site-main { padding: clamp(4rem, 8vw, 7rem) 0; }
.list-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; margin-bottom: 2rem; }
.list-heading h1, .list-heading h2 {
    margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 400; letter-spacing: -.035em; line-height: 1;
}
.list-heading p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.entry-list { border-top: 1px solid var(--line); }
.entry-row {
    display: grid; grid-template-columns: minmax(105px,150px) minmax(0,1fr);
    gap: clamp(1.5rem,5vw,5rem); padding: clamp(2.8rem,6vw,5.4rem) 0;
    border-bottom: 1px solid var(--line);
}
.entry-date {
    padding-top: .35rem; color: var(--ink-soft); font-size: .78rem; font-weight: 700;
    letter-spacing: .13em; line-height: 1.5; text-transform: uppercase;
}
.entry-category { display: block; margin-top: .65rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.entry-category a { text-decoration: none; }
.entry-title {
    max-width: 930px; margin: 0; font-family: var(--serif); font-size: clamp(2.45rem,5.3vw,5rem);
    font-weight: 400; letter-spacing: -.05em; line-height: .99;
}
.entry-title a { text-decoration: none; }
.entry-title a:hover, .entry-title a:focus-visible { color: var(--ink-soft); }
.entry-full-content {
    max-width: var(--reading-width); margin-top: 2rem; font-family: var(--serif);
    font-size: clamp(1.08rem,2vw,1.24rem); color: var(--ink);
}
.entry-full-content > :first-child { margin-top: 0; }
.entry-full-content > :last-child { margin-bottom: 0; }
.entry-full-content p, .entry-full-content ul, .entry-full-content ol, .entry-full-content blockquote { margin: 0 0 1.4em; }
.entry-full-content h2, .entry-full-content h3, .entry-full-content h4 {
    margin: 2.5em 0 .7em; font-weight: 400; letter-spacing: -.025em; line-height: 1.15;
}
.entry-full-content h2 { font-size: 2.15rem; }
.entry-full-content h3 { font-size: 1.65rem; }
.entry-full-content blockquote {
    margin-left: 0; padding-left: 1.35rem; border-left: 2px solid var(--sand); color: var(--ink-soft);
}
.entry-footer {
    max-width: var(--reading-width); margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid var(--line);
    color: var(--ink-soft); font-size: .82rem;
}

/* Einzelbeiträge und Seiten */
.content-layout {
    display: grid; grid-template-columns: minmax(100px,150px) minmax(0,var(--reading-width));
    gap: clamp(2rem,6vw,6rem); justify-content: start;
}
.article-meta {
    color: var(--ink-soft); font-size: .78rem; font-weight: 700; letter-spacing: .12em;
    line-height: 1.65; text-transform: uppercase;
}
.article-header { margin-bottom: 3.2rem; }
.article-title {
    margin: 0; font-family: var(--serif); font-size: clamp(3rem,8vw,6.6rem);
    font-weight: 400; letter-spacing: -.055em; line-height: .94;
}
.article-content { font-family: var(--serif); font-size: clamp(1.1rem,2vw,1.28rem); }
.article-content > * { max-width: var(--reading-width); }
.article-content h2, .article-content h3, .article-content h4 {
    margin: 2.8em 0 .7em; font-weight: 400; letter-spacing: -.025em; line-height: 1.15;
}
.article-content h2 { font-size: 2.25rem; }
.article-content h3 { font-size: 1.7rem; }
.article-content p, .article-content ul, .article-content ol, .article-content blockquote { margin-top: 0; margin-bottom: 1.45em; }
.article-content blockquote { margin-left: 0; padding-left: 1.4rem; border-left: 2px solid var(--sand); color: var(--ink-soft); font-size: 1.15em; }
.article-content code, .article-content pre { font-family: Consolas, Monaco, monospace; font-size: .88em; }
.article-content pre { overflow-x: auto; padding: 1.2rem; background: var(--paper-light); }
.article-content table { width: 100%; border-collapse: collapse; }
.article-content th, .article-content td { padding: .65rem; border-bottom: 1px solid var(--line); text-align: left; }
.post-taxonomy { margin-top: 3.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-family: var(--sans); font-size: .85rem; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.post-navigation a { font-family: var(--serif); font-size: 1.3rem; text-decoration: none; }
.nav-next { text-align: right; }

/* Archive und Suche behalten kompakte Textauszüge. */
.entry-summary { max-width: 760px; margin-top: 1.4rem; color: var(--ink-soft); font-size: 1rem; }
.entry-summary p { margin: 0; }
.read-more { display: inline-block; margin-top: 1.4rem; padding-bottom: .08rem; border-bottom: 1px solid var(--ink); font-size: .88rem; font-weight: 700; text-decoration: none; }
.read-more:hover, .read-more:focus-visible { border-color: var(--sand); }

.pagination, .posts-navigation, .comments-area { margin-top: 3rem; }
.nav-links { display: flex; justify-content: space-between; gap: 2rem; }
.page-numbers { margin-right: .8rem; }
.comments-area { max-width: var(--reading-width); margin-left: calc(150px + clamp(2rem,6vw,6rem)); padding-top: 2rem; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.comment-list { padding-left: 0; list-style: none; }
.comment-body { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
input, textarea, select { width: 100%; padding: .8rem; border: 1px solid var(--line); border-radius: 0; background: var(--paper-light); color: var(--ink); font: inherit; }
button, input[type="submit"] { width: auto; padding: .75rem 1rem; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); cursor: pointer; font-weight: 700; }
button:hover, input[type="submit"]:hover { background: var(--ink); color: var(--paper-light); }

.site-footer { background: var(--night); color: var(--paper-light); }
.footer-inner { min-height: 150px; padding: 2.8rem 0; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line-dark); }
.footer-name { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.footer-links { display: flex; gap: 1.5rem; font-family: var(--serif); font-size: .95rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--sand); }

@media (max-width: 760px) {
    body { font-size: 17px; }
    .header-bar, .hero-inner, .site-main, .footer-inner { width: min(calc(100% - 36px),var(--content-width)); }
    .site-header--image { min-height: 650px; background-position: center, center, 60% center; }
    .header-bar { min-height: 78px; }
    .primary-menu { gap: 1rem; }
    .primary-menu li:not(:last-child) { display: none; }
    .hero { min-height: 572px; padding: 3.5rem 0 4rem; align-items: flex-end; }
    .hero-title { font-size: clamp(4rem,21vw,6.2rem); }
    .hero-text { font-size: 1.05rem; }
    .list-heading { display: block; }
    .list-heading p { margin-top: .75rem; }
    .entry-row, .content-layout { grid-template-columns: 1fr; gap: 1.1rem; }
    .entry-date { padding-top: 0; }
    .entry-category { display: inline; margin: 0 0 0 .5rem; }
    .entry-title { font-size: clamp(2.65rem,13vw,4.4rem); }
    .entry-full-content { margin-top: 1.5rem; }
    .article-title { font-size: clamp(3.1rem,15vw,5rem); }
    .comments-area { margin-left: 0; }
    .post-navigation { grid-template-columns: 1fr; }
    .nav-next { text-align: left; }
    .footer-inner { align-items: flex-start; flex-direction: column; min-height: auto; }
    .footer-links { flex-wrap: wrap; }
}
