/* Blog-Zusatzstile für werklyn-4.1. Nutzt die Tokens aus style.min.css (--ground, --ink, --rot ...).
   Handgeschrieben, kein Tailwind-Build nötig. Lesespalte ca. 68 Zeichen, großzügiger Zeilenabstand. */

.beitrag-kopf { max-width: 46rem; margin: 0 auto; gap: 0; }
.beitrag-kopf .einstieg-titel { max-width: 22ch; }
.beitrag-meta { margin: clamp(0.75rem, 1.5vw, 1.1rem) 0 0; font-family: var(--font-label); font-weight: 500; font-size: 1.25rem; line-height: 1.3; color: var(--label); display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem; }
/* Im Kopfband liegt der Text auf einem Verlauf: volle Tinte, damit der Kontrast überall trägt */
.beitrag-kopf .beitrag-meta { color: var(--ink); }
.beitrag-meta > span + span::before { content: "·"; margin-right: 0.5rem; }

.beitrag { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 7vw, 5.5rem); }
.beitrag-spalte { max-width: 46rem; margin: 0 auto; }
.beitrag-titelbild { margin: 0 0 clamp(1.75rem, 4vw, 2.75rem); }
.beitrag-titelbild img { width: 100%; height: auto; border-radius: 3px; }

.text { font-size: clamp(1.125rem, 1.2vw + 0.9rem, 1.25rem); line-height: 1.75; }
.text > * { max-width: 68ch; }
.text p, .text ul, .text ol, .text blockquote, .text pre, .text figure { margin: 0 0 1.25em; }
.text h2, .text h3, .text h4 { font-family: var(--font-label); font-weight: 600; line-height: 1.12; margin: 2em 0 0.55em; scroll-margin-top: 6rem; text-wrap: balance; }
.text h2 { font-size: clamp(2rem, 3.2vw, 2.5rem); margin-top: 2.75em; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.text h3 { font-size: clamp(1.375rem, 1.8vw, 1.5rem); margin-top: 1.75em; }
.text h4 { font-size: 1.375rem; }
.text > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.text ul, .text ol { padding-left: 1.4em; }
.text ul { list-style: disc; }
.text ol { list-style: decimal; }
.text li { margin-bottom: 0.4em; }
.text li::marker { color: var(--label); }
.text li a { display: inline-flex; align-items: center; min-height: 44px; }
.text a { text-decoration: underline; text-decoration-color: var(--rot-text); text-decoration-thickness: 2px; text-underline-offset: 0.18em; overflow-wrap: anywhere; }
.text a:hover { text-decoration-color: currentColor; }
.text blockquote { padding: 0.1em 0 0.1em 1.1em; border-left: 3px solid var(--schraube); color: var(--ink); }
.text blockquote p:last-child { margin-bottom: 0; }
.text hr { border: 0; border-top: 1px solid var(--rule); margin: 2.25em 0; max-width: 68ch; }
.text code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.9em; background: var(--tafel); padding: 0.1em 0.35em; border-radius: 3px; }
.text pre { background: var(--ground-deep); border: 1px solid var(--rule); border-radius: 3px; padding: 1rem 1.1rem; overflow-x: auto; max-width: 100%; line-height: 1.5; font-size: 0.95rem; }
.text pre code { background: none; padding: 0; font-size: inherit; }
.text figure { width: fit-content; max-width: 100%; padding: 0.5rem; background: var(--tafel); border-radius: 3px; box-shadow: var(--shadow), inset 0 1px 0 var(--tafel-edge); }
.text figure img { display: block; max-width: 100%; height: auto; border-radius: 2px; }
.text figcaption { padding: 0.55rem 0.25rem 0.2rem; color: var(--label); font-family: var(--font-label); font-weight: 500; font-size: 1.125rem; line-height: 1.3; }

.inhalt { max-width: 68ch; margin: 0 0 2.25rem; background: var(--tafel); border-radius: 3px; padding: 1rem 1.25rem; box-shadow: var(--shadow), inset 0 1px 0 var(--tafel-edge); }
.inhalt-titel { font-family: var(--font-label); font-weight: 600; font-size: 1.375rem; line-height: 1.1; margin: 0 0 0.5rem; }
.inhalt ol { margin: 0; padding-left: 1.3em; }
.inhalt li { margin: 0; }
.inhalt a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: 0.18em; }
.inhalt ol ol { padding-left: 1.2em; }

.beitrag-fuss { max-width: 68ch; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: clamp(1.25rem, 3vw, 2rem); background: var(--tafel); border-radius: 3px; box-shadow: var(--shadow), inset 0 1px 0 var(--tafel-edge); }
.beitrag-fuss p { margin: 0 0 1.25rem; font-size: 1.125rem; }
.beitrag-knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.beitrag-knoepfe .btn-rot, .beitrag-knoepfe .btn-rahmen { padding: 0.5rem 1.25rem; font-size: 1.375rem; white-space: normal; text-align: center; max-width: 100%; }
@media (max-width: 30em) { .beitrag-knoepfe > a { flex: 1 1 100%; } }
.beitrag-gewerk { margin: 0 0 1rem; }
.beitrag-gewerk a { color: var(--ink); text-decoration-color: var(--rot-text); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }

/* Übersicht: einfache Liste, keine Kacheln */
.liste { max-width: 46rem; margin: 0 auto; padding: 0 var(--gutter); }
.liste-leer { color: var(--label); font-size: 1.125rem; }
.beitraege { list-style: none; margin: 0; padding: 0; }
.beitraege > li { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.beitraege > li:last-child { border-bottom: 1px solid var(--rule); }
.beitraege h2 { font-family: var(--font-label); font-weight: 600; font-size: clamp(1.625rem, 2.4vw, 2rem); line-height: 1.12; margin: 0.15rem 0 0.4rem; text-wrap: balance; }
.beitraege h2 a { color: var(--ink); text-decoration: none; display: inline-block; min-height: 44px; }
.beitraege h2 a:hover { text-decoration: underline; text-decoration-color: var(--rot-text); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.beitraege p { margin: 0; max-width: 68ch; font-size: 1.125rem; line-height: 1.6; }
.beitraege .beitrag-meta { margin: 0; font-size: 1.125rem; }

.seiten { max-width: 46rem; margin: 2rem auto 0; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.seiten a, .seiten span { font-family: var(--font-label); font-weight: 600; font-size: 1.375rem; }
.seiten .btn-rahmen { padding: 0 1.25rem; }
.seiten-stand { color: var(--label); margin-inline: auto; }

.krumen { max-width: 46rem; margin: 0 auto 1.75rem; }
.krumen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.5rem; font-family: var(--font-label); font-weight: 500; font-size: 1.125rem; color: var(--label); }
.krumen li + li::before { content: "/"; margin-right: 0.5rem; }
.krumen a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 0.18em; }
.krumen [aria-current] { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 19.99em) { .text h2, .text h3, .text h4, .beitraege h2 { hyphens: auto; } }
@media (prefers-reduced-motion: reduce) { .text, .beitrag, .beitraege * { scroll-behavior: auto; animation: none !important; transition: none !important; } }
@media print { .krumen, .inhalt, .beitrag-fuss { display: none; } .text { font-size: 12pt; } }
