/* Gestaltung, Teil 4: Inhalt (Beitragstext und seine Bausteine, Kommentare, Formular, Vergrößerung). */

.type-post, .type-page, .comments-area { max-width: 100%; margin: 0 0 2em; padding: 0; }
.entry-content { font-size: var(--font-size-entry); overflow-wrap: break-word; }
.entry-content p { margin: 1em 0 1.5em; }
.entry-content > p:first-child { margin-top: 0.5em; }
.entry-content > :last-child { margin-bottom: 0; }
.single-image { margin: 0 0 1em; }
.single-image img { display: block; }
/* Wie auf der alten Seite: Schlagwörter und Beitragsnavigation (Fußbereich) sind nur für Vorlesegeräte da, nicht sichtbar.
   Wer sie sichtbar haben will, entfernt diese eine Regel. */
.entry-footer { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; white-space: nowrap; }
.entry-tags { margin: 1.5em 0 1.5em; font-size: 0.8125rem; }
.entry-tags ul { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.entry-tags a, .entry-tags a:visited { display: block; padding: 0.2em 0.5em; background: var(--color-text); color: #fff; text-decoration: none; text-transform: uppercase; }
.entry-tags a:hover { background: var(--color-accent); }
.post-navigation { margin: 1em 0 2em; padding: 0.6em 0 0; border-top: 1px solid var(--color-line); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 1em; }
.post-navigation a { text-decoration: none; }
.post-navigation .nav-previous a::before { margin-right: 3px; content: '\00AB'; }
.post-navigation .nav-next { margin-left: auto; text-align: right; }
.post-navigation .nav-next a::after { margin-left: 4px; content: '\00BB'; }

/* ---- Bausteine ---- */
.block-paragraph { }
.text-primary { color: var(--color-accent); }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.has-text-align-left { text-align: left; }

.block-image { margin: 1em 0; }
.block-image img { display: block; }
.block-image.align-center { margin-bottom: 0; text-align: center; }
.block-image.align-center img { margin: 0 auto; }
.block-image.align-left { float: left; margin-right: 1.5em; }
.block-image.align-right { float: right; margin-left: 1.5em; }
.block-image figcaption, .block-gallery figcaption, .block-embed figcaption { margin: 0.3em 0 1em; color: #555; font-size: 0.875rem; text-align: center; }
.block-image a, .block-gallery a { display: block; }

.block-gallery { margin: 1em 0; }
.block-gallery > ul { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 0; padding: 0; list-style: none; }
.block-gallery > ul > li { flex: 1 1 calc((100% - 0.5em * (var(--cols) - 1)) / var(--cols)); max-width: calc((100% - 0.5em * (var(--cols) - 1)) / var(--cols)); margin: 0; }
/* Wie WordPress: Bilder einer Zeile werden auf gleiche Höhe zugeschnitten. */
.block-gallery > ul > li { display: flex; }
.block-gallery figure { display: flex; flex: 1; flex-direction: column; min-width: 0; margin: 0; }
.block-gallery figure > a { display: flex; flex: 1; flex-direction: column; }
.block-gallery img { display: block; flex: 1 1 auto; width: 100%; height: auto; min-height: 0; object-fit: cover; }

.block-list { }
.block-table { margin: 1em 0; overflow-x: auto; }
.block-table table { width: 100%; margin: 0 0 1.5em; table-layout: auto; }
.block-table th, .block-table td { padding: 0.5em; border: 1px solid var(--color-text); }
.block-table th { font-weight: 700; }
.block-table caption { padding: 0.5em 0; color: #555; font-size: 0.875rem; }

.block-buttons { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 1em 0; }
.block-buttons.align-center { justify-content: center; }
.block-buttons.align-right { justify-content: flex-end; }
.button {
  display: inline-block; padding: 0.667em 1.333em; border: 2px solid var(--color-accent); border-radius: 9999px;
  background: transparent; color: var(--color-accent); font: 400 1em/1.75 var(--font-body); text-align: center; text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.button:hover, .button:focus { border-color: var(--color-text); color: var(--color-text); }
.button-fill { background: var(--color-accent); color: #fff; }
.button-fill:hover, .button-fill:focus { background: var(--color-text); color: #fff; }

.block-columns { display: flex; flex-wrap: wrap; gap: 2em; margin: 0 0 1.5em; }
.block-columns > .column { flex: 1 1 0; min-width: 0; }
@media (max-width: 40em) { .block-columns > .column { flex-basis: 100%; } }

.block-separator { width: 100px; max-width: 100%; height: 2px; margin: 0 auto 1.5em; border: 0; background: var(--color-border); }
.block-preformatted { }
.block-files { margin: 0 0 1.5em 1.5em; }
.block-video video, .block-audio audio { display: block; width: 100%; }
.block-video, .block-audio { margin: 0 0 1.5em; }

/* Eingebettetes Video: erst nach Klick wird beim Anbieter geladen (kein Datenversand vorab). */
.block-embed { margin: 1em 0; }
.embed-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #1c1c1c; }
.block-embed.ratio-4-3 .embed-frame { aspect-ratio: 4 / 3; }
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-consent { box-sizing: border-box; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75em; padding: 1em; color: #fff; text-align: center; font-size: 0.875rem; line-height: 1.5; }
.embed-consent p { max-width: 36em; margin: 0; }
/* Der Hinweis darf länger sein als das 16:9-Feld: das Feld wächst dann mit. */
.embed-consent a { color: #fff; }
.embed-consent button { padding: 0.6em 1.2em; }
.js .embed-consent .embed-nojs { display: none; }
.embed-consent .embed-js { display: none; }
.js .embed-consent .embed-js { display: block; }

/* ---- Kommentare (nur Anzeige, neue Kommentare gibt es nicht) ---- */
.comments-title { margin: 0 0 1em; padding: 0.95em 0 0; text-transform: uppercase; font: 700 0.9375rem/1.4 var(--font-head); }
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-list .comment { margin: 0 0 1.5em; padding: 1.5em 0 0; border-top: 1px solid #eee; overflow-wrap: break-word; }
.comment-list .children { margin: 1.5em 0 0 1.5em; padding: 0; list-style: none; }
.comment-author { font-weight: 700; }
.comment-metadata { margin-top: 0.3em; color: var(--color-meta); font-size: 0.875rem; }
.comment-content { padding: 0.2em 0 0; }
.comment-content p { margin: 0 0 1em; }

/* ---- Kontaktformular (Veranstaltungsanfrage) ---- */
.contact-form p { margin: 1em 0 1.5em; }
.contact-form label { display: block; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { display: block; width: 100%; margin-top: 0.2em; padding: 5px 10px; font-size: 1rem; }
.contact-form textarea { height: 12em; resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { margin: 1em 0 0; padding: 0.4em 1em; border: 2px solid #ffb900; font-size: 0.875rem; line-height: 1.5; }
.form-notice.is-success { border-color: #46b450; }
.form-notice.is-error { border-color: #dc3232; }
.form-notice.is-info { border-color: var(--color-border); color: #555; }
.field-error { display: block; margin-top: 0.2em; color: #dc3232; font-size: 0.875rem; }

/* ---- Vergrößerung (Lightbox) ---- */
.lightbox { max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: rgba(15, 15, 15, 0.94); color: #fff; }
.lightbox::backdrop { background: rgba(15, 15, 15, 0.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; max-width: 92vw; max-height: 94vh; margin: 0; }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { margin-top: 0.6em; font-size: 0.875rem; text-align: center; }
.lightbox button { position: absolute; padding: 0; background: rgba(255, 255, 255, 0.12); line-height: 0; }
.lightbox button:hover, .lightbox button:focus { background: var(--color-accent); }
.lightbox svg { display: block; width: 28px; height: 28px; margin: 8px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Kleine Bildschirme: Beitragstext in 16 px (muss nach der Grundregel oben stehen). */
@media (max-width: 30em) { .entry-content { font-size: 1rem; } }
