/*****************************************************************************************************
* Editing Module: Block CSS
*
* Used for the frontend and the block editor. The block rules are scoped to
* ':is(#editor, .editor-styles-wrapper, .bub-editor-content)', which matches the entry
* content on the frontend ('bub-editor-content', see editing-setup.php) and the editor
* canvas, with or without iframe. '#editor' is the editor root outside an iframe and
* keeps the ID-level specificity these rules had before, since ':is()' takes the
* specificity of its most specific selector.
******************************************************************************************************/

/*
Core Blocks: Common
---------------------------------------------------------------------------------------------------- */

/* Core Blocks: Colors
--------------------------------------------- */

/* General Color Styles */

mark[style*="background-color"]:not([style*="background-color:rgba(0, 0, 0, 0)"]) {
  font-size: 0.95em;
  padding: 0.1em 0.2em;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

/* bub Default Colors */

.has-black-background-color {
  background-color: #151515;
}
.has-black-color {
  color: #151515;
}

.has-grey-dark-background-color {
  background-color: #777;
}
.has-grey-dark-color {
  color: #777;
}

.has-grey-middle-background-color {
  background-color: #aaa;
}
.has-grey-middle-color {
  color: #aaa;
}

.has-grey-light-background-color {
  background-color: #eee;
}
.has-grey-light-color {
  color: #eee;
}

.has-white-background-color {
  background-color: #fff;
}
.has-white-color {
  color: #fff;
}


/* Core Blocks: Font Sizes
--------------------------------------------- */

/* Note: The same values as the presets in 'editing-config.php', which WordPress
   outputs as preset classes of their own. */

.has-bub-small-font-size {
  font-size: 0.85em;
}

.has-bub-medium-font-size {
  font-size: 1em;
}

.has-bub-large-font-size {
  font-size: 1.25em;
}

.has-bub-xlarge-font-size {
  font-size: 1.5em;
}


/*
Core Blocks: Specific
---------------------------------------------------------------------------------------------------- */

/* Audio
--------------------------------------------- */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-audio {
  background: #ddd;
  padding: 7px;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-audio audio {
  display: block;
}


/* Blockquote
--------------------------------------------- */

/* A quote in italics behind a thin line in the green, its source in small
   capitals below (design batch 2, 2026-10-19: the black bar read as a
   heading's mark). */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-quote {
  border-left: 3px solid var(--theme1-background-lt1);
  font-style: italic;
  margin: 1.75em 0 1.75em;
  padding: 0.1em 0 0.1em 1.25em;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-quote.has-text-align-right {
  border-left: none;
  border-right: 0.25em solid;
  padding: 0 1em 0 0;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-quote.has-text-align-center {
  border: none;
  padding: 0;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-quote.is-style-plain {
  border: none;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-quote.is-style-large p {
  font-size: 1.2em;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-quote cite {
  color: var(--body-color-acc);
  display: block;
  font-family: var(--caps-font-family);
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.08em;
  margin-top: 0.6em;
  text-transform: uppercase;
}


/* Button
--------------------------------------------- */

/* The site's button family (design decision 4): green with white text,
   uppercase and square. On hover a filled button turns one step darker, as
   the title page's buttons (user, 2026-10-21; before, a dark line inset at
   the top); buttons with a color an editor picks, outline buttons and those
   in a dark group keep the line. Outline buttons take the green for text and
   border. A color an editor picks wins. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-buttons {
  margin: 1.3em 0;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-button {
  font-size: 0.85em;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-button__link {
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--caps-font-family);
  letter-spacing: 0.02em;
  padding: 0.75em 1.2em 0.65em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 200ms, box-shadow 200ms;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-button__link:hover {
  box-shadow: inset 0 3px var(--theme1-background-def);
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) {
  background: var(--theme1-background-lt1);
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):hover {
  background: var(--brand1-color-lt1);
  box-shadow: none;
}

/* Keep the white text of filled buttons against the link hover color in 'text.css'.
   Outline buttons and buttons with a text color keep their own color. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color),
:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color):hover {
  color: var(--theme1-color-lt1);
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: currentColor;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):hover {
  color: var(--theme1-background-lt1);
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .wp-block-button.is-style-outline .wp-block-button__link:hover {
  box-shadow: inset 0 3px currentColor;
}


/* Details
--------------------------------------------- */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-details {
  margin-bottom: 0.75em;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-details summary {
  display: list-item;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-details summary br {
  display: none;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-details p {
  margin: 0.7em 0 0;
}


/* File
--------------------------------------------- */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-file {
  font-size: 1em;
  margin: 1.3em 0;
}

/* Link and button in a row that wraps: where the button drops below the
   link, it starts on the left edge with a gap above it (user, 2026-10-21;
   WordPress indents it by 0.75em and sets it right under the link). Front
   end only, since the editor wraps the two in an element of its own
   (.wp-block-file__content-wrapper). An embedded PDF takes a row of its own. */

.bub-editor-content .wp-block-file {
  align-items: baseline;
  column-gap: 0.75em;
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.625rem;
}

.bub-editor-content .wp-block-file.aligncenter {
  justify-content: center;
}

.bub-editor-content .wp-block-file.alignright {
  justify-content: flex-end;
}

.bub-editor-content .wp-block-file__embed {
  flex: 0 0 100%;
}

.bub-editor-content .wp-block-file * + .wp-block-file__button {
  margin-left: 0;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .wp-block-file a[id^="wp-block-file--media"] {
  font-size: 1em;
}

/* The download button in the site's button family (Button above), in place
   of WordPress's dark pill, one step darker on hover. A color an editor picks
   wins and keeps the dark line on hover. WordPress lowers the button's
   opacity to 0.85 on hover, at once, which made the button flash lighter
   before it darkened. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-file__button {
  border-radius: 0;
  font-family: var(--caps-font-family);
  font-size: 0.8em;
  letter-spacing: 0.02em;
  padding: 0.75em 1.2em 0.65em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 200ms, box-shadow 200ms;
  vertical-align: 0.1em;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .wp-block-file__button:not(.has-background) {
  background: var(--theme1-background-lt1);
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-file__button:hover {
  box-shadow: inset 0 3px var(--theme1-background-def);
  opacity: 1;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .wp-block-file__button:not(.has-background):hover {
  background: var(--brand1-color-lt1);
  box-shadow: none;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .wp-block-file__button:not(.has-text-color),
:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .wp-block-file__button:not(.has-text-color):hover {
  color: var(--theme1-color-lt1);
}

/* HTML
--------------------------------------------- */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-html textarea {
  display: block;
}


/* Image
--------------------------------------------- */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-image figcaption {
  font-size: 0.9em;
  margin-top: 0.2em;
}


/* Preformatted (Code, Verse)
--------------------------------------------- */

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  :is(.wp-block-preformatted, .wp-block-code, .wp-block-verse) {
  font-family: monospace, serif;
}


/* Pullquote
--------------------------------------------- */

/* A sentence taken out of the text, in the slogan font between two thin
   rules, left as the text (design batch 2, 2026-10-19: centered and large,
   it read as a heading). No hyphens, not even bub Text's soft ones. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-pullquote {
  border-bottom: 1px solid var(--body-background-dk2);
  border-top: 1px solid var(--body-background-dk2);
  margin: 2em 0;
  padding: 1.1em 0;
  text-align: left;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-pullquote blockquote {
  margin: 0;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-pullquote p {
  color: var(--brand1-color-def);
  font: var(--spot-font-def);
  font-size: 1.6rem;
  font-weight: 500;
  -webkit-hyphens: none;
  hyphens: none;
  line-height: 1.3;
  margin: 0;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-pullquote cite {
  color: var(--body-color-acc);
  display: block;
  font-family: var(--caps-font-family);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-top: 0.6em;
  text-transform: uppercase;
}


/* Separator
--------------------------------------------- */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-separator {
  background-color: #ccc;
  border: none;
  height: 1px;
  margin: 1em 0 0.85em;
}

/* A section break in a text without blocks, such as between the scenes of a
   reading sample: a short line in the middle with room around it, where the
   browser would draw its default line (2026-10-19). */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) hr:not(.wp-block-separator) {
  background-color: var(--body-background-dk2);
  border: none;
  height: 1px;
  margin: 2em auto;
  width: 3rem;
}


/* Video
--------------------------------------------- */

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .wp-block-embed.is-type-video .wp-block-embed__wrapper {
  line-height: 0;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-embed.is-type-video iframe {
  margin: 0;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-embed.is-type-video figcaption {
  font-size: 0.9em;
  margin: 0.2em 0 0;
}


/*
Patterns: bub Layouts
---------------------------------------------------------------------------------------------------- */

/* The look of the theme's block patterns (includes/editing-patterns.php), by
   the classes in their markup: 'bube-group-*' on a pattern's group,
   'bube-block-*' on a block with a role of its own. The patterns set the
   spacing of their blocks themselves, in place of the block gap of
   'theme.json'. */


/* Patterns: Common
--------------------------------------------- */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) :is(.bube-group-statement,
  .bube-group-dark, .bube-group-light, .bube-group-panel, .bube-group-contacts,
  .bube-block-band) {
  margin-bottom: 2rem;
  margin-top: 0;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) :is(.bube-group-statement,
  .bube-group-dark, .bube-group-light, .bube-group-panel, .bube-group-contacts,
  .bube-block-band):last-child {
  margin-bottom: 0;
}

/* An Infopanel after a paragraph keeps the space the panels keep between
   each other, so its label does not cling to the text above, as under
   Verlag's "Zusendungen" (user, 2026-10-22: 12px there, 32px between the
   panels). After a heading it starts close, as before. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) p + .bube-group-panel {
  margin-top: 2rem;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  :is(.bube-group-statement, .bube-group-dark, .bube-group-light) > * {
  margin-bottom: 0.9rem;
  margin-top: 0;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  :is(.bube-group-statement, .bube-group-dark) > .wp-block-buttons {
  margin-top: 1.3rem;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  :is(.bube-group-statement, .bube-group-dark, .bube-group-light) > :last-child {
  margin-bottom: 0;
}

/* Label and statement: a small line in capitals, at 600 as the roles of the
   title pages' sections (user, 2026-10-21; 400 before), and a single sentence
   in the slogan font, which the site keeps for large statements
   (decision 2). A label that heads something, a list or a column, is a
   heading block with this class (user, 2026-10-22: no paragraphs as
   headings); it keeps the label's look and takes its line height from its
   surroundings, not from the headings. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-block-label {
  color: var(--brand1-color-def);
  font-family: var(--caps-font-family);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: inherit;
  text-transform: uppercase;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  :is(.bube-group-statement, .bube-group-dark) > .bube-block-label {
  margin-bottom: 0.5rem;
}

/* No hyphens in the statement, not even bub Text's soft hyphens, which split
   words such as "Belletristik" at large sizes. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-block-statement {
  color: var(--brand1-color-def);
  font: var(--spot-font-def);
  font-size: 2rem;
  font-weight: 500;
  -webkit-hyphens: none;
  hyphens: none;
  line-height: 1.25;
  max-width: 47.5rem;
}

@media screen and (max-width: 600px) {

  :is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-block-statement {
    font-size: 1.5rem;
  }
}

/* Link box and small print: a paragraph with the class 'bube-block-link'
   holds a link to a page of the site as the small tinted box in capitals of
   the contact cards, such as Presse's "Zum Programm"; one with the class
   'bube-block-note' is small grey print, such as Presse's note on using the
   images (2026-10-22). */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-block-link a {
  background: var(--body-background-sh1);
  color: var(--brand1-color-def);
  display: inline-block;
  font-family: var(--caps-font-family);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 0.45em 0.8em 0.4em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-block-link a:hover {
  background: var(--body-background-sh2);
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-block-note {
  color: var(--body-color-acc);
  font-size: 0.875rem;
  line-height: 1.5;
}


/* Pattern: Dunkle Box
--------------------------------------------- */

/* The dark green box for an address, a contact or a call to action. Its main
   button is the darker brown (decision 4), outline buttons are white. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-dark {
  background: var(--theme1-background-def);
  color: var(--theme1-color-def);
  padding: 1.6rem 1.75rem 1.5rem;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-dark .bube-block-label {
  color: var(--theme1-color-acc);
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-dark .bube-block-statement {
  color: var(--theme1-color-lt1);
  font-size: 1.9rem;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-dark a:not(.wp-block-button__link) {
  color: var(--theme1-color-lt1);
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-dark a:not(.wp-block-button__link):hover {
  color: var(--theme1-color-acc);
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-dark
  .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) {
  background: var(--brand3-background-dk1);
}

/* The hover band darker than the button, as on the light pages; the dark
   green of those would merge with the box. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-dark
  .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  box-shadow: inset 0 3px rgba(0,0,0,0.28);
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-dark
  .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-dark
  .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):hover {
  color: var(--theme1-color-lt1);
}

@media screen and (max-width: 600px) {

  :is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-dark {
    padding: 1.2rem 1.25rem;
  }

  :is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-dark .bube-block-statement {
    font-size: 1.5rem;
  }
}


/* Group: Helle Box
--------------------------------------------- */

/* A box in the small tint, the light counterpart of the dark box, such as
   Kontakt's address and its newsletter box (2026-10-22; the dark box was too
   heavy there). A bub Kontakt card first in it is the page's anchor: its
   address larger and in the text color instead of the cards' grey. Further
   cards, such as Vertrieb's head of sales, stay as the cards elsewhere,
   1.5rem apart. The text size is the text banners' (banners-general.css),
   so the newsletter box looks the same here and on events. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-light {
  background: var(--body-background-sh1);
  font-size: 0.9375rem;
  line-height: 1.5;
  padding: 1.5rem 1.6rem 1.4rem;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-light > .bub-contact:not(:last-child) {
  margin-bottom: 1.5rem;
}

/* The first card: the card itself on the site, in the editor the block's
   wrapper around it. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-light > .bub-contact:first-child p.bub-contact__address,
:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-light > :first-child .bub-contact p.bub-contact__address {
  color: var(--body-color-def);
  font-size: 1.25rem;
  line-height: 1.4;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-light > .bub-contact:first-child ul.bub-contact__lines,
:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-light > :first-child .bub-contact ul.bub-contact__lines {
  margin-top: 0.6rem;
}

/* A card's link here is the address's map, Kontakt's "Google Maps": one
   more of the card's icon lines, with a location pin, instead of the small
   tinted box that leads to the site's own pages elsewhere (2026-10-22). Its
   text starts where the lines' text does: the pin as wide as their icons,
   its margin their 0.5em gap at the icon's 0.85em. A link of another kind
   in this box would get the pin too. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-light .bub-contact p.bub-contact__more {
  margin: 0;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-light .bub-contact .bub-contact__more a {
  background: none;
  color: inherit;
  display: inline;
  font-family: inherit;
  font-size: 1em;
  letter-spacing: 0;
  line-height: inherit;
  padding: 0;
  text-decoration: none;
  text-transform: none;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-light .bub-contact .bub-contact__more a::before {
  color: var(--theme1-background-lt1);
  content: '\f3c5'; /* location-dot */
  display: inline-block;
  font: var(--fa-font-regular);
  font-size: 0.85em;
  margin-right: 0.59em;
  text-align: center;
  width: 1.2em;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-light .bub-contact .bub-contact__more a:hover {
  background: none;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}


/* Pattern: Infopanel
--------------------------------------------- */

/* Plain rows on the page's ground (Kontakt, 2026-10-22; a hairline under
   each row since 2026-10-20, stripes before). A row that starts with a bold
   label sets it as a column of its own, in the small green capitals of the
   other labels, such as the cards' roles. The rows run in two columns where
   the panel is wide enough. 0.6rem between the rows and none after the
   last, so the next section follows at the sections' 35px (user,
   2026-10-22; 1.1rem after every row before). */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-panel {
  column-gap: 2.5rem;
  columns: 22rem 2;
  font-size: 1rem;
  line-height: 1.5;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-panel > * {
  break-inside: avoid;
  margin: 0;
  padding: 0 0 0.6rem;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-panel > :last-child {
  padding-bottom: 0;
}

/* The label floats into the row's left padding, so the value starts at the
   same place on every line: the label 10rem wide, the value 0.75rem after
   it. The label starts 0.28rem down, so its capitals stand on the value's
   line. It breaks at spaces only: bub Text's soft hyphens split words in the
   capitals. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-panel > p:has(> strong:first-child) {
  display: flow-root;
  padding-left: 10.75rem;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-panel > p > strong:first-child {
  color: var(--brand1-color-def);
  float: left;
  font-family: var(--caps-font-family);
  font-size: 0.75rem;
  font-weight: 600;
  -webkit-hyphens: none;
  hyphens: none;
  letter-spacing: 0.1em;
  margin-left: -10.75rem;
  padding-top: 0.28rem;
  text-transform: uppercase;
  width: 10rem;
}

/* A panel that opens with a label heading a list, such as the submission
   rules on Verlag: the label an h3 in the green small capitals of a
   subheading, the list a list block whose items stand close together, each
   after a dash (2026-10-22; before, paragraphs with the dash added). */

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-panel:has(> .bube-block-label) > * {
  padding: 0.2em 0;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-panel > .bube-block-label {
  font-weight: 600;
  letter-spacing: 0.12em;
  padding-bottom: 0.5rem;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-panel:has(> .bube-block-label) > ul {
  list-style: none;
  padding: 0;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-panel:has(> .bube-block-label) > ul > li {
  margin: 0;
  padding: 0.2em 0 0.2em 1.25em;
  position: relative;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-panel:has(> .bube-block-label) > ul > li::before {
  color: var(--brand1-color-def);
  content: '\2013'; /* en dash */
  left: 0;
  position: absolute;
}

/* Links as the links beside a section's label, such as "Alle Vorschauen":
   in the text color with a chevron (2026-10-22; a 1px line in a tint close
   to the page before, which did not read as a link). An e-mail address goes
   without the chevron and without a line, as in the contact cards. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-panel a {
  color: var(--body-color-def);
  text-decoration: none;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-panel a:hover {
  color: var(--body-color-acc);
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .bube-group-panel a:not([href^="mailto:"])::after {
  content: '\f054'; /* chevron-right */
  font: var(--fa-font-regular);
  font-size: 0.75em;
  margin-left: 0.4em;
}

/* On phones a narrower label column, hyphenated where a word does not fit,
   so that a value such as an IBAN keeps one line. */

@media screen and (max-width: 600px) {

  :is(#editor, .editor-styles-wrapper, .bub-editor-content)
    .bube-group-panel > p:has(> strong:first-child) {
    padding-left: 8.25rem;
  }

  :is(#editor, .editor-styles-wrapper, .bub-editor-content)
    .bube-group-panel > p > strong:first-child {
    -webkit-hyphens: auto;
    hyphens: auto;
    margin-left: -8.25rem;
    width: 7.5rem;
  }
}


/* Pattern: Bildband
--------------------------------------------- */

/* An image across the full width, scaled, not cut, with its caption as the
   credit in the lower right corner. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-image.bube-block-band {
  position: relative;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .wp-block-image.bube-block-band img {
  display: block;
  height: auto;
  width: 100%;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content)
  .wp-block-image.bube-block-band figcaption {
  background: rgba(255,255,255,0.85);
  bottom: 0.6rem;
  color: var(--body-color-def);
  font-size: 0.72rem;
  line-height: 1.3;
  margin: 0;
  max-width: calc(100% - 1.2rem);
  padding: 0.25em 0.55em;
  position: absolute;
  right: 0.6rem;
}

/* On phones the credit goes below the band, where over it it covered much
   of the image. */

@media screen and (max-width: 600px) {

  :is(#editor, .editor-styles-wrapper, .bub-editor-content)
    .wp-block-image.bube-block-band figcaption {
    background: none;
    max-width: none;
    padding: 0.35em 0 0;
    position: static;
    text-align: right;
  }
}


/* Pattern: Kontaktkarten
--------------------------------------------- */

/* The contacts of the bub Kontakt block (blocks module) in columns of the
   same width: two beside the program column of the text pages, three over
   the full width. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-contacts {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-contacts > * {
  margin: 0;
}


/* Picture Tiles
--------------------------------------------- */

/* Tiles that link to an archive or a page (front page Sparten, 2026-10-19):
   a group of tiles, each a group with an image block and a paragraph with
   one link, the tile's label. The image is scaled to the tile's width, not
   cut, clear, with the label below it in the serif and a
   chevron, as a title under its cover (user, 2026-10-22; before, white
   capitals on the image under a green gradient, which dulled it). Its
   caption is the credit in the upper right corner. The label's link covers
   the whole tile. Two tiles in a row, on phones as well. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-tiles {
  display: grid;
  gap: 1.1rem 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

/* Four in a row with the modifier '--four', for tiles over the full width,
   such as the Sparten on Verlag; two below the menu breakpoint. */

@media screen and (min-width: 1001px/*mobileMenuMinWidth*/) {

  :is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-tiles--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-tile {
  margin: 0;
  position: relative;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-tile > * {
  margin: 0;
}

/* The image lightens a little on hover, the label takes the links' hover
   color. */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-tile img {
  display: block;
  height: auto;
  transition: opacity 0.2s ease;
  width: 100%;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-tile:hover img {
  opacity: 0.88;
}

/* A tile with a gallery, the class 'bube-block-tile-images', shows one of its
   pictures at a time, cut to the tiles' proportions: a random one on each
   visit, then the next with a cross-fade every few seconds (user,
   2026-10-22; design-frontpage.js). On the site only; the editor shows the
   whole gallery to work on. Without JavaScript the first picture shows. The
   picture due next is shown unseen shortly before, so that its lazy image
   loads (editing-setup.php). */

.bub-editor-content .bube-group-tile .bube-block-tile-images {
  aspect-ratio: 520 / 226;
  display: block;
  margin: 0;
  position: relative;
}

.bub-editor-content .bube-group-tile .bube-block-tile-images > figure.wp-block-image {
  display: none;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 1.2s ease;
  width: 100% !important;
}

html:not(.js) .bub-editor-content .bube-group-tile .bube-block-tile-images > figure:first-child,
.bub-editor-content .bube-group-tile .bube-block-tile-images > figure:is(.is-current, .is-next,
  .is-leaving) {
  display: block;
}

/* The new picture fades in over the old one, which stays until it is
   covered. */

html:not(.js) .bub-editor-content .bube-group-tile .bube-block-tile-images > figure:first-child,
.bub-editor-content .bube-group-tile .bube-block-tile-images > figure:is(.is-current, .is-leaving) {
  opacity: 1;
}

.bub-editor-content .bube-group-tile .bube-block-tile-images > figure.is-current {
  z-index: 2;
}

.bub-editor-content .bube-group-tile .bube-block-tile-images > figure.is-leaving {
  transition: none;
  z-index: 1;
}

.bub-editor-content .bube-group-tile .bube-block-tile-images img {
  height: 100% !important;
  object-fit: cover;
  width: 100% !important;
}

/* No band of blur at the picture's foot, which WordPress's gallery lays
   behind a caption there (user, 2026-10-22: the tiles looked blurry at the
   bottom). */

.bub-editor-content .bube-group-tile .bube-block-tile-images figure.wp-block-image::before {
  display: none;
}

/* The gallery's captions as the tile's credit in the upper right corner, in
   place of WordPress's caption band at the foot: only with
   BBE_Editing_Control::$show_tile_credits (the body class
   'bub-tile-credits'), and then on hover, on wider screens with a pointer
   (user, 2026-10-22). The tile pauses under the pointer, so the credit
   stays with its picture. Never on phones, where the small tiles would lose
   much of their picture to it. */

.bub-editor-content .bube-group-tile .bube-block-tile-images figcaption {
  display: none;
}

@media screen and (min-width: 601px) and (hover: hover) {

  .bub-tile-credits .bub-editor-content .bube-group-tile .bube-block-tile-images figcaption {
    display: block;
    opacity: 0;
  }

  .bub-tile-credits .bub-editor-content .bube-group-tile:hover .bube-block-tile-images figcaption {
    opacity: 1;
  }
}

.bub-editor-content .bube-group-tile .bube-block-tile-images figure.wp-block-image figcaption {
  bottom: auto;
  left: auto;
  max-height: none;
  overflow: visible;
  text-align: left;
  text-shadow: none;
  width: auto;
}

.bub-editor-content .bube-group-tile figcaption a {
  color: inherit;
  position: relative;
  text-decoration: none;
  z-index: 1;
}

/* A credit's link darkens its box on hover, without a line (user,
   2026-10-22). */

.bub-editor-content .bube-group-tile figcaption:has(a:hover) {
  background: var(--theme1-background-dk1);
}

/* The credit on a solid box in the header's green, to read on any picture
   (user, 2026-10-22; a see-through green at 0.6rem before, then 0.8125rem). */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-tile figcaption {
  background: var(--theme1-background-def);
  color: var(--theme1-color-lt1);
  font-size: 0.75rem;
  /* The time of the picture and the label (user, 2026-10-23). */
  transition: background-color 0.2s ease, opacity 0.2s ease;
  -webkit-hyphens: none;
  hyphens: none;
  line-height: 1.3;
  margin: 0;
  max-width: 85%;
  padding: 0.25em 0.55em 0.3em;
  position: absolute;
  right: 0.4rem;
  top: 0.4rem;
  z-index: 3;
}

/* In the editor, the gallery shows all its pictures as small thumbnails, which
   the box would cover (user, 2026-10-23). A credit shows only while its
   picture is selected, in a line under the whole gallery, where it is edited;
   no blurred band at the pictures' foot. */

:is(#editor, .editor-styles-wrapper) .bube-group-tile .bube-block-tile-images {
  position: relative;
}

:is(#editor, .editor-styles-wrapper) .bube-group-tile figure.wp-block-image:not(.is-selected) figcaption {
  display: none;
}

:is(#editor, .editor-styles-wrapper) .bube-group-tile figure.wp-block-image.is-selected {
  position: static;
}

:is(#editor, .editor-styles-wrapper) .bube-group-tile figcaption {
  background: var(--body-background-def);
  bottom: auto;
  color: var(--body-color-def);
  left: 0;
  max-height: none;
  max-width: none;
  outline: 1px solid var(--body-background-dk2);
  padding: 0.4em 0.5em;
  right: 0;
  text-align: left;
  text-shadow: none;
  top: 100%;
}

:is(#editor, .editor-styles-wrapper) .bube-group-tile figure.wp-block-image::before {
  display: none;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-tile > p {
  color: var(--body-color-def);
  font: var(--basic-font-def);
  font-size: 1rem;
  font-weight: 600;
  -webkit-hyphens: none;
  hyphens: none;
  line-height: 1.3;
  padding: 0.55rem 0 0;
  transition: color 0.2s ease;
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-tile:hover > p {
  color: var(--body-color-acc);
}

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-tile > p::after {
  color: var(--brand1-color-def);
  content: '\f054'; /* chevron-right */
  font: var(--fa-font-regular);
  font-size: 0.75em;
  margin-left: 0.45em;
}

/* The link takes the label's color as it fades, with no transition of its
   own: the links' general one, stacked on the inherited fade, held the text
   back to about 0.4s, after the picture and the credit (user, 2026-10-23). */

:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-tile > p a,
:is(#editor, .editor-styles-wrapper, .bub-editor-content) .bube-group-tile > p a:hover {
  color: inherit;
  text-decoration: none;
  transition: none;
}

/* On the site, the label's link covers the tile, so picture and label are
   one link. Not in the editor, where it would keep editors from selecting
   the image. A gallery's pictures lie above the link (their z-index), so
   they let the pointer through to it; only the credit takes it (user,
   2026-10-23: the pictures were not linked). */

.bub-editor-content .bube-group-tile > p a::after {
  content: '';
  inset: 0;
  position: absolute;
}

.bub-editor-content .bube-group-tile .bube-block-tile-images > figure {
  pointer-events: none;
}

.bub-editor-content .bube-group-tile .bube-block-tile-images figcaption {
  pointer-events: auto;
}
