/**
 * panda.css — bug fixes for kunstvereine.de (xtheme).
 *
 * Loaded after xtheme/global-styling. Overrides only; no theme file is
 * modified. Each block names the bug from the client list of 30.06.2026.
 */


/* 1. Bildunterschrift: "An" under every gallery image.
 *
 * "An" is the rendered value of the rights-confirmation checkbox
 * (field_nutzungsrechte_2025, "Wir versichern, dass:") on the
 * bildergalerie paragraph — an editorial declaration, not a credit.
 * It has no business on the public page. */

.field--name-field-nutzungsrechte-2025 {
  display: none !important;
}


/* 2. Schwarzer Balken next to the text on "Einfache Seite" nodes.
 *
 * The sidebar column ends after its menu while the text column keeps
 * going; the article is transparent and does not contain its floats, so
 * the black <html> background shows through below the sidebar. Make the
 * article contain its floats and paint it white. flow-root, not
 * overflow:hidden, so the Ansicht/Bearbeiten/Löschen dropdown for
 * logged-in editors is not clipped. Other node types already paint white. */

.node--type-page.node--view-mode-full {
  display: flow-root;
  background-color: #fff;
}


/* 3. Überschriften smaller than the body text.
 *
 * In the main text column paragraphs use the medium size (2rem), but h3
 * falls back to the global small size (1.2rem) — so "Überschrift 3" from
 * the editor renders smaller than the text around it. Headings get the
 * paragraph size and the semibold cut of Foliant so they read as headings,
 * matching what editors see in the backend. .multi-content and
 * #full-news-box use the small size for paragraphs and are left alone. */

#main-col h2,
#main-col h3,
#main-col h4,
#editorial h2,
#editorial h3,
#editorial h4 {
  font-size: 2rem;
  line-height: 2.3rem;
  font-weight: 600;
}

#main-col h3,
#main-col h4,
#editorial h3,
#editorial h4 {
  display: block;
}

.multi-content h2,
.multi-content h3,
.multi-content h4,
#full-news-box h2,
#full-news-box h3,
#full-news-box h4 {
  font-weight: 600;
}


/* 4. Schriftbild: single words or sentences smaller than the rest.
 *
 * Text pasted from Word, Pages or web pages carries inline styles such as
 * <span style="font-size:11pt; font-family:Arial">. Inline elements take
 * the size and face of the surrounding text instead. Block elements
 * (p, li, h*) carrying such styles are cleaned in panda.js, because
 * "inherit" on a block would take the wrapper's size, not the theme's. */

.text-formatted span[style*="font-size"],
.text-formatted span[style*="font-family"],
.text-formatted span[style*="line-height"],
.text-formatted strong[style*="font-size"],
.text-formatted strong[style*="font-family"],
.text-formatted b[style*="font-size"],
.text-formatted b[style*="font-family"],
.text-formatted em[style*="font-size"],
.text-formatted em[style*="font-family"],
.text-formatted i[style*="font-size"],
.text-formatted i[style*="font-family"],
.text-formatted a[style*="font-size"],
.text-formatted a[style*="font-family"],
.text-formatted font {
  font-size: inherit !important;
  font-family: inherit !important;
  line-height: inherit !important;
}
