/* ==========================================================================
   Anpassungen von Ulfs Design an WordPress-Inhalte (Gutenberg)
   ========================================================================== */

/* Adminleiste: klebende Navigation darunter */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 0; } }

/* Bilder im Fließtext */
.prose img { height: auto; border-radius: var(--radius); }
.prose figure { margin: 1.8rem 0; }
.prose figure figcaption,
.prose .wp-element-caption { font: .8rem/1.4 var(--sans); color: var(--muted); margin-top: .5rem; }
.prose .wp-block-image.aligncenter img,
.prose .aligncenter { margin-inline: auto; }

/* Gutenberg-Tabellen bekommen per Filter die Klasse .table-wrap */
.prose figure.table-wrap { margin: 1.6rem 0; }
.prose .table-wrap table { margin: 0; }
.prose .wp-block-table thead { border-bottom: 0; }
.prose .wp-block-table td, .prose .wp-block-table th { border-left: 0; border-right: 0; border-bottom: 0; }

/* Zitate und Trennlinien */
.prose blockquote { margin: 2rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 4px solid var(--accent); font-style: italic; color: var(--ink-2); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4rem 0; }

/* Keine Initiale, wenn der Text nicht mit einem Absatz beginnt */
.prose > p:first-of-type:not(:first-child)::first-letter { float: none; font: inherit; color: inherit; margin: 0; }

/* Teaserbild als Ersatzgrafik */
.teaser__media img.is-fallback { object-fit: cover; }

/* Seiten (Impressum o. Ä.) ohne Seitenleiste */
.page-body { max-width: 70ch; padding-block: 1rem 2rem; }
.page-body .prose { max-width: none; }

/* Suche */
.search-head { padding-block: 1.6rem 1.4rem; border-bottom: 1px solid var(--rule); margin-bottom: 1rem; }
.search-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.02em; }
.search-head p { color: var(--muted); margin: .4rem 0 0; }
.search-head form { display: flex; gap: .6rem; margin-top: 1rem; max-width: 34rem; }
.search-head input[type="search"] { flex: 1; font: 1rem var(--sans); padding: .7rem .9rem; border: 1px solid #b9ae9c; border-radius: var(--radius); background: var(--white); }

.pager .dots { border: 0; background: none; }

/* Danke-Meldung bekommt den Fokus (Screenreader), aber keinen roten Rahmen */
.form-success:focus { outline: none; }

/* Ressortkopf auf dem Handy untereinander */
@media (max-width: 640px) {
  .cat-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cat-head .ressort__icon { width: 56px; height: 56px; padding: 12px; }
  .pager { flex-wrap: wrap; }
}
