/*
 * WordPress-spezifische Ergänzungen. site.css bleibt identisch zum Entwurf;
 * hier steht nur, was erst durch WordPress nötig wird.
 */

/* Admin-Leiste für angemeldete Redakteure: feste Elemente darunter schieben. */
.admin-bar .site-header { top: 32px; }
.admin-bar .sheet { padding-top: calc(var(--hdr) + 60px); }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .sheet { padding-top: calc(var(--hdr) + 74px); }
  #wpadminbar { position: fixed; }
}

/* Team: optionales Foto statt Initialen. */
.avatar.has-photo { overflow: hidden; padding: 0; background: none; }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Formular-Rückmeldung bei Fehlern. */
.form-status.err { color: #d70015; }
.is-dark .form-status.err, .is-black .form-status.err { color: #ff6961; }

/* Inhalte aus dem Texteditor (Bilder, Ausrichtung, Bildunterschriften). */
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md, 2px); }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose .wp-caption { max-width: 100%; }
.prose .wp-caption-text { font-size: .8125rem; color: var(--muted); margin-top: 6px; }
.prose::after { content: ""; display: block; clear: both; }
@media (max-width: 640px) {
  .prose .alignleft, .prose .alignright { float: none; margin: 1em 0; }
}

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
