/*
Theme Name: Carsten Weigelt – Atelier
Theme URI: https://carstenweigelt.de
Author: Manus AI
Description: Individuelles, literarisches WordPress-Theme für Carsten Weigelt mit REST-kompatibler Buchdarstellung.
Version: 1.2.8
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: carsten-atelier
*/

:root {
  --paper: #f5f1e9;
  --paper-deep: #e9e1d4;
  --ink: #25242a;
  --muted: #6f6b68;
  --indigo: #27345f;
  --indigo-deep: #18213f;
  --rose: #b86c5d;
  --line: rgba(37, 36, 42, .15);
  --glass: rgba(255, 255, 255, .52);
  --shadow: 0 20px 60px rgba(30, 28, 29, .08);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --measure: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.7; }
a { color: var(--indigo); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--rose); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
.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; }

.site-shell { min-height: 100vh; overflow: hidden; }
.site-header { position: relative; z-index: 5; padding: 1.25rem 4vw; }
.site-header-inner { max-width: var(--measure); margin: 0 auto; display: flex; gap: 2rem; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--glass); color: var(--indigo); font-family: var(--serif); font-size: 1.7rem; }
.brand-logo { width: 3rem; height: 3rem; flex: 0 0 3rem; object-fit: cover; border: 1px solid var(--line); border-radius: 50%; background: var(--glass); padding: .18rem; }
.brand-name { font-family: var(--serif); font-size: 1.1rem; letter-spacing: .01em; }

body.carsten-lightbox-open { overflow: hidden; }
.carsten-lightbox { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 5vh 5vw; background: rgba(20, 24, 38, .88); }
.carsten-lightbox-stage { width: min(100%, 96rem); height: 100%; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem; place-items: center; gap: clamp(.5rem, 2vw, 2rem); }
.carsten-lightbox-image { display: block; grid-column: 2; width: auto; height: auto; max-width: min(82vw, 90rem); max-height: 86vh; object-fit: contain; margin: 0; border: 1px solid rgba(255,255,255,.28); border-radius: .35rem; box-shadow: 0 24px 80px rgba(0,0,0,.42); }
.carsten-lightbox-prev, .carsten-lightbox-next { z-index: 2; width: 3rem; height: 3rem; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; background: rgba(0,0,0,.35); font-size: 2.2rem; line-height: 1; cursor: pointer; }
.carsten-lightbox-prev { grid-column: 1; }
.carsten-lightbox-next { grid-column: 3; }
.carsten-lightbox-prev:hover, .carsten-lightbox-next:hover { color: #fff; background: var(--rose); border-color: var(--rose); }
.carsten-lightbox-prev:disabled, .carsten-lightbox-next:disabled { opacity: .35; cursor: default; }
.carsten-lightbox-counter { position: absolute; bottom: 1.15rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .8rem; letter-spacing: .08em; }
.carsten-lightbox-close { position: absolute; top: 1rem; right: 1.25rem; z-index: 2; width: 2.5rem; height: 2.5rem; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; background: rgba(0,0,0,.35); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.carsten-lightbox-close:hover { color: #fff; background: var(--rose); border-color: var(--rose); }
@media (max-width: 700px) { .carsten-lightbox-stage { grid-template-columns: 2.5rem minmax(0,1fr) 2.5rem; gap: .25rem; } .carsten-lightbox-prev, .carsten-lightbox-next { width: 2.25rem; height: 2.25rem; font-size: 1.7rem; } .carsten-lightbox-image { max-width: 80vw; max-height: 82vh; } }

.menu-toggle { display: none; min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: .55rem .8rem; color: var(--ink); cursor: pointer; }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--ink); text-decoration: none; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.primary-nav a:hover, .current-menu-item > a { color: var(--rose); }

.container { width: min(calc(100% - 3rem), var(--measure)); margin-inline: auto; }
.hero { position: relative; overflow: hidden; padding: clamp(5rem, 12vw, 10rem) 0 6rem; background: radial-gradient(circle at 78% 16%, rgba(39,52,95,.13), transparent 28rem), linear-gradient(135deg, var(--paper) 0%, #f9f6f0 48%, var(--paper-deep) 100%); }
.hero::after { content: ''; position: absolute; width: 25rem; height: 25rem; right: -10rem; bottom: -14rem; border: 1px solid rgba(39,52,95,.16); border-radius: 50%; }
.eyebrow { color: var(--rose); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(3rem, 9vw, 9rem); align-items: end; }
.hero h1 { max-width: 12ch; margin: .8rem 0 1.2rem; font: 400 clamp(3.5rem, 9vw, 8.7rem)/.9 var(--serif); letter-spacing: -.055em; }
.hero-lede { max-width: 38rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.hero-visual { display: grid; gap: 1.2rem; justify-self: end; width: min(100%, 28rem); }
.hero-portrait { margin: 0; padding: .5rem; border: 1px solid var(--line); border-radius: 1.5rem; background: rgba(255, 255, 255, .36); box-shadow: var(--shadow); }
.hero-portrait-image { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 1.1rem; }
.hero-note { padding: 1.4rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--glass); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.hero-note p { margin: 0; font: italic 1.45rem/1.35 var(--serif); }
.hero-note cite { display: block; margin-top: 1rem; color: var(--muted); font-size: .8rem; font-style: normal; }

.section { padding: 5rem 0; }
.section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-heading h2 { margin: .35rem 0 0; font: 400 clamp(2.2rem, 4vw, 4.2rem)/1 var(--serif); letter-spacing: -.04em; }
.section-heading p { max-width: 32rem; color: var(--muted); margin: 0; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { height: 100%; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--glass); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 28px 70px rgba(30,28,29,.13); }
.card h3 { margin: .5rem 0 .65rem; font: 400 1.7rem/1.1 var(--serif); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card p { color: var(--muted); margin: 0; }
.card-meta { color: var(--rose); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.card-media { aspect-ratio: 4 / 3; margin: -1.5rem -1.5rem 1.2rem; overflow: hidden; border-radius: 1rem 1rem 0 0; background: var(--paper-deep); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.feature-band { padding: clamp(2rem, 5vw, 4rem); border-radius: 1.5rem; color: #fff; background: var(--indigo); box-shadow: var(--shadow); }
.feature-band .eyebrow { color: #e9b0a5; }
.feature-band h2 { max-width: 13ch; margin: .6rem 0 1rem; font: 400 clamp(2.5rem, 6vw, 5.5rem)/.95 var(--serif); }
.feature-band p { max-width: 38rem; color: rgba(255,255,255,.78); }
.feature-band a { color: #fff; }
.button { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .8rem 1.1rem; border: 1px solid currentColor; border-radius: 999px; color: inherit; text-decoration: none; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.button:hover { color: #fff; background: var(--rose); border-color: var(--rose); }

.archive-header { padding: 5rem 0 2.5rem; background: var(--paper-deep); }
.archive-header h1, .page-header h1 { max-width: 14ch; margin: .5rem 0 0; font: 400 clamp(3rem, 7vw, 6.5rem)/.92 var(--serif); letter-spacing: -.05em; }
.page-header { padding: 5rem 0 3rem; }
.page-header .intro { max-width: 42rem; color: var(--muted); font-size: 1.15rem; }

.entry { padding: 2rem 0 6rem; }
.entry-inner { max-width: 48rem; margin: 0 auto; }
.entry-title { margin: 0 0 1.4rem; font: 400 clamp(3rem, 8vw, 7rem)/.92 var(--serif); letter-spacing: -.055em; }
.entry-meta { color: var(--rose); font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }
.entry-content { margin-top: 3rem; font-family: var(--serif); font-size: 1.2rem; }
.entry-content h2, .entry-content h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
.entry-content p { margin: 0 0 1.4em; }
.entry-content blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 3px solid var(--rose); color: var(--indigo); font-size: 1.5rem; font-style: italic; }
.entry-content img { margin: 2rem auto; border-radius: .75rem; }
.entry-content a { color: var(--indigo); }

.book-layout { display: grid; grid-template-columns: .65fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.book-cover { padding: 1.2rem; border: 1px solid var(--line); background: var(--paper-deep); box-shadow: var(--shadow); transform: rotate(-1.2deg); }
.book-cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.book-layout h2 { margin-top: 0; font: 400 clamp(2.6rem, 6vw, 5.5rem)/.94 var(--serif); letter-spacing: -.05em; }

.site-footer { margin-top: 4rem; padding: 3rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; }
.footer-nav ul { display: flex; gap: 1rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer-nav a { color: var(--muted); }

@media (max-width: 760px) {
  .site-header { padding: 1rem 1.25rem; }
  .site-header-inner { align-items: flex-start; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; width: 100%; padding-top: 1rem; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: .3rem; }
  .primary-nav a { display: flex; align-items: center; min-height: 2.75rem; padding: .35rem .1rem; }
  .site-header-inner { flex-wrap: wrap; }
  .hero-grid, .book-layout { grid-template-columns: 1fr; }
  .hero-visual { justify-self: start; width: min(100%, 26rem); }
  .content-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .section-heading, .footer-grid { display: block; }
  .section-heading p { margin-top: 1rem; }
  .footer-nav { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Atelier-Bildblock: vorhandene Arbeit prominent, responsiv und sauber verlinkt */
.atelier-feature{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:clamp(1.5rem,4vw,4rem);align-items:center;padding:clamp(1rem,3vw,2rem)}
.atelier-feature-image{display:block;overflow:hidden;border-radius:1.5rem;background:var(--paper-deep)}
.atelier-feature-image img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
.atelier-feature-copy{padding:clamp(.5rem,2vw,1.5rem)}
.atelier-feature-copy h3{margin:.4rem 0 .8rem}
.atelier-feature-copy .text-link{display:inline-block;margin-top:.6rem;font-weight:700}
@media (max-width:760px){.atelier-feature{grid-template-columns:1fr}.atelier-feature-copy{padding:.75rem .25rem .25rem}}

/* Zwei kleine, gleich hohe Bildkarten im Bereich „Ein Mensch, viele Räume“ */
.expression-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.expression-card{display:flex;flex-direction:column;min-width:0}
.expression-card .expression-image{height:clamp(150px,18vw,220px);aspect-ratio:auto;margin:-1.5rem -1.5rem 1.1rem;background:var(--paper-deep);}
.expression-card .expression-image img{width:100%;height:100%;object-fit:contain;padding:.5rem}
.expression-card p{line-height:1.55;margin-bottom:1rem}
.expression-card .text-link{margin-top:auto;display:inline-block;font-weight:700}
@media (max-width:760px){.expression-grid{grid-template-columns:1fr}.expression-card .expression-image{height:190px}}

/* Kleine Vorschau für „Neues Bild“ in den aktuellen Beiträgen */
.post-card-image .small-post-image{height:132px;aspect-ratio:auto;margin:-1.5rem -1.5rem 1rem;background:var(--paper-deep);}
.post-card-image .small-post-image img{width:100%;height:100%;object-fit:contain;padding:.35rem;}
.post-card-image p{line-height:1.55;}

/* Kontaktseite: ruhige, klare Formularsprache im Atelier-Stil */
.contact-header{padding-bottom:3.5rem;background:linear-gradient(135deg,var(--paper) 0%,#fbf8f2 54%,var(--paper-deep) 100%)}
.contact-section{padding-top:3.5rem}
.contact-layout{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:clamp(2rem,7vw,7rem);align-items:start}
.contact-intro{padding-top:.35rem}
.contact-note{display:flex;align-items:flex-start;gap:1rem;max-width:24rem;margin-bottom:2.5rem;padding:1.25rem 1.35rem;border-left:3px solid var(--rose);background:rgba(255,255,255,.36);color:var(--indigo)}
.contact-note p{margin:0;font:italic 1.45rem/1.3 var(--serif)}
.contact-note-mark{color:var(--rose);font-size:1.4rem;line-height:1}
.contact-page-content{margin-top:0;font-size:1.05rem}
.contact-form-wrap{padding:clamp(1.35rem,3vw,2.25rem);border:1px solid var(--line);border-radius:1.25rem;background:rgba(255,255,255,.5);box-shadow:var(--shadow);backdrop-filter:blur(12px)}
.contact-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem 1rem}
.form-field{display:flex;flex-direction:column;gap:.45rem}
.form-field-wide{grid-column:1/-1}
.form-field label{color:var(--ink);font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.form-field label span{color:var(--rose)}
.form-field input,.form-field textarea{width:100%;border:1px solid rgba(37,36,42,.24);border-radius:.45rem;padding:.8rem .9rem;color:var(--ink);background:rgba(255,255,255,.72);font:inherit;line-height:1.45;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.form-field textarea{min-height:10rem;resize:vertical}
.form-field input:focus,.form-field textarea:focus{border-color:var(--indigo);outline:0;background:#fff;box-shadow:0 0 0 3px rgba(39,52,95,.12)}
.contact-submit{justify-self:start;margin-top:.25rem;border:0;cursor:pointer;background:var(--indigo);color:#fff}
.contact-submit:hover{background:var(--rose);color:#fff}
.form-hint{grid-column:1/-1;margin:0;color:var(--muted);font-size:.78rem}
.form-notice{margin-bottom:1.25rem;padding:.9rem 1rem;border-radius:.5rem;font-size:.95rem}
.form-notice-success{border:1px solid rgba(46,105,74,.25);background:rgba(215,237,222,.7);color:#245a3b}
.form-notice-error{border:1px solid rgba(151,67,60,.25);background:rgba(249,225,219,.75);color:#7e322f}
.contact-honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
@media (max-width:760px){.contact-layout{grid-template-columns:1fr;gap:2.5rem}.contact-form{grid-template-columns:1fr}.form-field-wide{grid-column:auto}.form-hint{grid-column:auto}.contact-submit{width:100%;justify-content:center}.contact-note{margin-bottom:1.75rem}}

/* Erfolgsansicht nach dem Kontaktformular-Versand */
.contact-confirmation{min-height:22rem;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:clamp(1rem,3vw,2rem)}
.confirmation-mark{display:grid;place-items:center;width:3.4rem;height:3.4rem;margin-bottom:1.25rem;border-radius:50%;background:var(--indigo);color:#fff;font-size:1.65rem;line-height:1}
.contact-confirmation h2{max-width:12ch;margin:.55rem 0 .85rem;font:400 clamp(2.25rem,5vw,4.1rem)/.98 var(--serif);letter-spacing:-.04em}
.contact-confirmation p{max-width:34rem;margin:0;color:var(--muted);font-size:1.05rem}
.confirmation-actions{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap;margin-top:1.75rem}
.confirmation-link{font-size:.88rem;font-weight:700;color:var(--indigo)}
.confirmation-link:hover{color:var(--rose)}

/* Erweiterte Malerei-Galerie aus der WordPress-Mediathek */
.paintings-section{padding-top:1rem}
.existing-gallery-section{padding-bottom:2rem}
.painting-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem}
.painting-card{min-width:0;margin:0;padding:.65rem .65rem .85rem;border:1px solid var(--line);border-radius:.85rem;background:rgba(255,255,255,.48);box-shadow:0 12px 35px rgba(30,28,29,.06);transition:transform .2s ease,box-shadow .2s ease}
.painting-card:hover{transform:translateY(-3px);box-shadow:0 20px 45px rgba(30,28,29,.12)}
.painting-link{display:block;overflow:hidden;aspect-ratio:4/3;border-radius:.5rem;background:var(--paper-deep);cursor:zoom-in}
.painting-link img{width:100%;height:100%;object-fit:contain;padding:.35rem;transition:transform .35s ease}
.painting-card:hover .painting-link img{transform:scale(1.035)}
.painting-card figcaption{padding:.7rem .15rem .05rem;color:var(--ink);font-family:var(--serif);font-size:1rem;line-height:1.2}
@media (max-width:980px){.painting-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.painting-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.painting-card{padding:.45rem .45rem .7rem}.painting-card figcaption{font-size:.9rem}}

/* Kompaktes Klagelieder-Cover in „Neu im Atelier – Aktuelle Texte“ */
.book-teaser-card .book-teaser-media{height:126px;aspect-ratio:auto;margin:-1.5rem -1.5rem 1rem;background:var(--paper-deep);display:flex;align-items:center;justify-content:center;overflow:hidden}
.book-teaser-card .book-teaser-media img{width:auto;height:100%;max-width:100%;object-fit:contain;padding:.35rem}
@media (max-width:760px){.book-teaser-card .book-teaser-media{height:112px}}

/* Klagelieder-Karte im Archiv „Literarische Texte“ */
.book-literary-card .book-literary-cover{height:190px;aspect-ratio:auto;margin:-1.5rem -1.5rem 1rem;background:var(--paper-deep);display:flex;align-items:center;justify-content:center;overflow:hidden}
.book-literary-card .book-literary-cover img{width:auto;height:100%;max-width:100%;object-fit:contain;padding:.45rem}
@media (max-width:760px){.book-literary-card .book-literary-cover{height:180px}}

/* Verkleinertes Buchcover in der Einzelansicht */
.book-single-featured{max-width:320px;margin:0 auto 2.5rem;padding:1rem;border:1px solid var(--line);background:var(--paper-deep);box-shadow:var(--shadow);transform:rotate(-.8deg)}
.book-single-featured img{width:100%;height:auto;display:block}
.book-single-entry .entry-content{margin-top:1.5rem}
@media (max-width:760px){.book-single-featured{max-width:260px}}

/* Explizites kleines Cover für Buchprojekt-Einzelansichten */
.book-project-cover{width:min(100%,320px);margin:0 auto 2.25rem;padding:1rem;border:1px solid var(--line);background:var(--paper-deep);box-shadow:var(--shadow);transform:rotate(-.8deg)}
.book-project-cover img{display:block;width:100%;height:auto}
.book-project-entry .entry-content{margin-top:1.25rem}
@media (max-width:760px){.book-project-cover{width:min(100%,260px)}}
.footer-note{margin:.35rem 0 0;color:var(--muted);font-size:.9em}


/* Vita: eigenständige, ruhige Biografie-Komposition */
.vita-page { background: var(--paper); }
.vita-hero { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 7vw, 6rem); background: radial-gradient(circle at 82% 32%, rgba(39, 52, 95, .12), transparent 30rem), linear-gradient(135deg, var(--paper) 0%, #f9f6f0 50%, var(--paper-deep) 100%); }
.vita-hero::after { content: ''; position: absolute; right: -11rem; bottom: -15rem; width: 27rem; height: 27rem; border: 1px solid rgba(39, 52, 95, .15); border-radius: 50%; pointer-events: none; }
.vita-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .8fr); gap: clamp(2.5rem, 8vw, 8rem); align-items: center; }
.vita-heading h1 { max-width: 10ch; margin: .7rem 0 1.15rem; color: var(--ink); font: 400 clamp(3.7rem, 8.5vw, 8rem) / .9 var(--serif); letter-spacing: -.055em; }
.vita-intro { max-width: 30rem; margin: 0; color: var(--muted); font-family: var(--sans); font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.7; }
.vita-portrait-frame { justify-self: end; width: min(100%, 31rem); margin: 0; padding: .55rem; border: 1px solid var(--line); border-radius: 1.5rem; background: rgba(255, 255, 255, .38); box-shadow: var(--shadow); }
.vita-portrait-image { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 1.1rem; filter: sepia(.08) contrast(.98); }
.vita-copy-section { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(5rem, 10vw, 9rem); }
.vita-copy-wrap { width: min(calc(100% - 3rem), 62rem); margin-inline: auto; }
.vita-copy { max-width: 48rem; margin: 0 auto; color: var(--muted); font-family: var(--sans); font-size: clamp(1.04rem, 1.35vw, 1.18rem); line-height: 1.95; }
.vita-copy .vita-portrait { display: none; }
.vita-copy p { margin: 0; text-align: justify; text-justify: inter-word; hyphens: auto; }
.vita-copy p + p { margin-top: 1.45em; }
.vita-copy br { display: block; content: ''; margin-top: 1.35em; }
@media (max-width: 760px) {
  .vita-hero { padding-top: 3.5rem; }
  .vita-hero-grid { grid-template-columns: 1fr; }
  .vita-portrait-frame { justify-self: start; width: min(100%, 34rem); }
  .vita-copy-wrap { width: min(calc(100% - 2.5rem), 62rem); }
  .vita-copy p { text-align: left; hyphens: manual; }
}


/* Buchprojekt „Scheitern, aber schön“: Typografie im Vita-Stil */
.book-project-entry .entry-meta,
.book-project-entry .book-project-subtitle,
.book-project-entry .entry-content,
.book-project-entry .book-project-sample { max-width: 48rem; margin-inline: auto; }
.book-project-entry .book-project-subtitle { margin-top: 1.15rem; margin-bottom: 0; color: var(--muted); font-family: var(--sans); font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.7; }
.book-project-entry .entry-content { margin-top: 1.8rem; color: var(--muted); font-family: var(--sans); font-size: clamp(1.04rem, 1.35vw, 1.18rem); line-height: 1.95; }
.book-project-entry .entry-content p { margin: 0; text-align: justify; text-justify: inter-word; hyphens: auto; }
.book-project-entry .entry-content p + p { margin-top: 1.45em; }
.book-project-entry .entry-content > img { display: block; margin: 0 auto 2.25rem; border-radius: 1rem; box-shadow: var(--shadow); }
.book-project-entry .entry-content > p:first-child:empty { display: none; }
.book-project-entry .book-project-sample { margin-top: 2.25rem; }
@media (max-width: 760px) {
  .book-project-entry .entry-content p { text-align: left; hyphens: manual; }
}

/* Startseite: bewusst reduzierte Auswahl aktueller Texte */
.current-texts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 56rem; }
.current-text-card { display: flex; min-width: 0; flex-direction: column; }
.current-text-card .text-link { margin-top: auto; padding-top: 1rem; font-weight: 700; }
@media (max-width: 760px) { .current-texts-grid { grid-template-columns: 1fr; } }
