/*****************************************************************************************************
* Object Level CSS
******************************************************************************************************/

/*
Boxes
---------------------------------------------------------------------------------------------------- */

/* Standard Box
--------------------------------------------- */

.bub-field__title {
  font-size: 1.2rem;
  font-weight: normal;
  line-height: 1.4;
}

.bub-field__subtitle {
  font-size: inherit;
  font-weight: normal;
  margin-bottom: 10px;
}

.bub-field__subtitle:not(:first-child) {
  margin-top: 15px;
}

.bub-field__subtitle::after {
  /* content: ':'; */
}


/* Info Box
--------------------------------------------- */

.bub-box--info {
  background: var(--body-background-dk1);
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 0.5rem 0.8rem;
  position: relative;
}

.bub-box--info::before {
  background: var(--theme1-background-lt1);
  content: '';
  display: table;
  height: 100%;
  margin-left: -0.8rem;
  position: absolute;
    top: 0;
  width: 0.3em;
}

.bub-box--info p:last-child {
  margin-bottom: 0;
}


/*
Lists
---------------------------------------------------------------------------------------------------- */

/* Text Lists
--------------------------------------------- */

/* Type: Link Column */

.bub-list--linkcol {
  padding: 0;
}

.bub-list--linkcol li {
  line-height: 1.3;
  list-style-type: none;
}

/* Each link is a row of its own, which a tint fills on hover, as the site's
   small boxes; the tint reaches 0.5em past the column, so the text stays on
   its edge, and the first row moves up by its padding, so the text starts
   where it did. Rows without lines between them, under the sections' ruled
   titles (user, 2026-10-21; before, only the text was the link). The year
   follows the title in brackets (fields module); on the right it was cut off
   from its title and, below a full line, pushed the next row's year aside
   (user, 2026-10-21). */

.bub-list--linkcol li a {
  display: block;
  font-size: 0.9rem;
  margin: 0 -0.5em;
  padding: 0.35em 0.5em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bub-list--linkcol li:first-child a {
  margin-top: -0.35em;
}

.bub-list--linkcol li a:hover {
  background: var(--body-background-sh1);
  color: inherit;
}

/* Type: Text Column */

.bub-list--textcol {
  padding: 0;
}

.bub-list--textcol li {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  list-style-type: none;
  padding: 1em 0.7em 0.9em;
}

/* Type: Bullet Column */

ul.bub-list--bulletcol,
.bub-list--bulletcol ul {
  margin: 0;
  padding: 0;
}

.bub-list--bulletcol li {
  list-style-type: none;
}

.bub-list--bulletcol :is(p, li),
.bub-party-contact__website--standalone {
  position: relative;
  padding-left: 1.25em !important;
}

.bub-list--bulletcol :is(p, li):last-child {
  margin-bottom: 0;
}

.bub-list--bulletcol :is(p, li)::before,
.bub-party-contact__website--standalone::before {
  background: var(--theme1-background-lt1);
  content: '';
  height: 0.7em;
  position: absolute;
    left: 0;
    top: 0.45em;
  width: 0.7em;
}


/* Button Lists
--------------------------------------------- */

/* Type: Flexbox Buttons */

.bub-list--buttonflex {
  display: flex;
  flex-flow: row wrap;
  margin: -5px;
  padding: 0;
}

.bub-list--buttonflex li {
  list-style-type: none;
  margin: 5px;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

.bub-list--buttonflex a,
.bub-list--buttonflex a:hover {
  background: var(--groupButton-background-def);
  border: 1px solid #ddd;
  color: var(--groupButton-color-def);
  display: block;
  font-size: 0.8rem !important;
  line-height: 1;
  max-width: 300px;
  overflow: hidden;
  padding: 1.3em 2em 1.2em;
  text-decoration: none;
  text-overflow: ellipsis;
}

.bub-list--buttonflex a:hover {
  background: var(--groupButton-background-acc);
  color: var(--groupButton-color-acc);
  border: 1px solid #ccc;
}

@media screen and (max-width: 500px) {
  
.bub-list--buttonflex a {
    font-size: 0.9rem;
  }
}


/* Image Lists
--------------------------------------------- */

/* Type: Flexbox Image */

.bub-list--imageflex {
  display: flex;
  flex-flow: row wrap;
  margin: -10px;
  padding: 0;
  width: auto;
}

.bub-list--imageflex li {
  flex: 1 1 130px;
  list-style-type: none;
  margin: 10px;
  min-width: 140px;
  max-width: 200px;
}

.bub-list--imageflex a,
.bub-list--imageflex a:hover {
  background: none;
  border: none;
  color: inherit !important;
  display: block;
  padding: 0;
  text-decoration: none;
}

.bub-list--imageflex .image {
  box-shadow: var(--cover-shadow-sm); /* setup.css */
  display: block;
  transition: transform 200ms;
}

/* On hover, over the cover or its text, the cover lifts a little, as in the
   title and people archives (postloops-imagebox.css, postloops-smartbox.css;
   user, 2026-10-22; before, the cover darkened while the pointer was on
   it). The hover sits on the item, which does not move, so the cover cannot
   flicker at its edges. */

.bub-list--imageflex li:hover .image {
  transform: translateY(-3px);
}

.bub-list--imageflex .text {
  line-height: 1.3;
  margin: 8px 0 0 2px;
  font-size: 0.9rem;
}

/* At 600, as every bold line outside the text (2026-10-21). */

.bub-list--imageflex .text a {
  font-weight: 600;
}

/* In the sections of the single views the covers as a masonry grid, like the
   title archive: four columns, two on phones, each cover at the top with its
   text right below (user, 2026-10-21; before, they stood on one line at
   their bottom edge). CSS columns instead of Masonry.js, since a section
   holds four covers at most and opens closed, when Masonry.js would have to
   lay out again; in two columns the covers fill top to bottom. The fields
   module prints covers up to four titles, a link list from five, here and
   in the reading samples' lists of several titles (single-content.css). The
   items' bottom padding spaces them within a column, the negative margin
   takes the last one back. */

.bub-togglebox__content.bub-list--imageflex,
.bub-content-related--list .bub-list--imageflex {
  column-gap: 1.25rem;
  columns: 4;
  display: block;
  margin: 0 0 -1.25rem;
}

.bub-togglebox__content.bub-list--imageflex li,
.bub-content-related--list .bub-list--imageflex li {
  break-inside: avoid;
  margin: 0;
  max-width: none;
  min-width: 0;
  padding-bottom: 1.25rem;
}

@media screen and (max-width: 500px) {

  .bub-togglebox__content.bub-list--imageflex,
  .bub-content-related--list .bub-list--imageflex {
    columns: 2;
  }
}


/* PDF Posts
--------------------------------------------- */

/* The covers of [bub_pdf_posts] (core/includes/shortcode.php), such as the
   season previews in Vertrieb's side column, the newest two in one row
   (user, 2026-10-22): in the look of the image lists above, the cover with the
   larger shadow over its title at 600, the file's type and size below in
   grey, the cover lifting 3px on hover. As many columns of at least 9rem as
   fit. The shortcode comes from septime-verlag; its look there stays its
   own (user). */

.bub-pdf-posts {
  display: grid;
  gap: 1.5rem 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.bub-pdf-posts .bub-pdf-posts__item {
  margin: 0;
  padding: 0;
}

.bub-pdf-posts__cover {
  display: block;
}

.bub-pdf-posts__image {
  box-shadow: var(--cover-shadow-def); /* setup.css */
  display: block;
  height: auto;
  transition: transform 200ms;
  width: 100%;
}

.bub-pdf-posts__item:hover .bub-pdf-posts__image {
  transform: translateY(-3px);
}

.bub-pdf-posts a.bub-pdf-posts__title {
  color: inherit;
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0.6rem 0 0.1rem;
  text-decoration: none;
}

.bub-pdf-posts__meta {
  color: var(--body-color-acc);
  font-size: 0.8125rem;
}


/*
Images
---------------------------------------------------------------------------------------------------- */

/* Basic Images
--------------------------------------------- */

/* Image Defaults */

img {
  height: auto;
  max-width: 100%;
  vertical-align: bottom;
}

@media screen and (max-width: 300px) {
  
  body:not(.page) img {
    width: 100%
  }
}

.featured-content img,
.gallery img {
  width: auto;
}

.bub-image-link { /* js */
  border: 0 !important;
}

/* Default Image */

.single .content .bub-default-image {
  display: none;
}

.single .content .bub-loop .bub-default-image {
  display: initial;
}

/* Featured Image with Caption */

.featimg a {
  border-bottom: 0;
}

.featimg__image {
  max-height: 700px;
  /* object-fit: cover; */
  width: auto;
}

/* Post Content Images */

.entry-content figure:not(.gallery),
.entry-content .bub-image-paragraph {
  max-width: 100%;
  margin-bottom: 1.3em;
}

/* Space above an image within the text, none above one that opens it. */
.single .content p + figure:not(.gallery),
.single .bub-image-paragraph:not(:first-child) {
  margin-top: 1.3em;
}

.wp-block-image.is-style-circle-mask img, 
.wp-block-image.is-style-rounded img {
    border-radius: 9999px;
}

.wp-block-image.is-style-circle-mask figcaption, 
.wp-block-image.is-style-rounded figcaption {
  margin-top: 0.5em;
  text-align: center;
}


/* Featured Image: 3D Book
--------------------------------------------- */

.featimg-3d {
  position: relative;
  transform: translateX(-20px);
  max-width: 400px;
}

.featimg-3d::after {
  clear: both;
  content: '';
  display: table;
}

/* 3D Book Start */

.featimg-3d .featimg__image {
  box-shadow: none;
  max-height: none;
  /* The book is drawn around the link, which takes the container's width,
     so a smaller image would leave the fore-edge and the back beside it. */
  width: 100%;
}

/* 3D Book Front Image */

.featimg-3d__wrap {
  perspective: 100px;
  pointer-events: none; /* Avoid blocking anchor */
  transform-style: preserve-3d; /* Firefox */
}

.featimg-3d__wrap a {
  box-shadow: 0 0 12px #bbb;
  display: block;
  pointer-events: all;
  transform: rotateY(-3deg);
}

.featimg-3d__wrap a,
.featimg-3d .featimg__image {
  perspective: 200px;
}

  /* Smoothen jagged image edges in Webkit browsers. */
  .featimg-3d img {
    outline: 1px solid transparent !important;
  }

/* 3D Book Back Image */

.featimg-3d .featimg-3d__flip {
  display: block;
  position: absolute;
    top: 0;
    left: 7.5%;
    left: min(7.5%, 24px);
  perspective: 200px;
  transform: rotateY(-3deg) scale(.975);
  width: 100%;
  z-index: -1;
}

.featimg-3d .featimg-3d__flip-image {
  box-shadow: 5px 5px 20px #999;
  filter: brightness(80%) contrast(80%);
  width: 100%; /* As the front image. */
}

/* 3D Book Fore-Edge (Vorderschnitt) */

.featimg-3d__wrap a::after {
  box-shadow: inset 0px 0px 5px #aaa;
  background: #efefef;
  content: '';
  height: 100%;
  position: absolute;
    top: 0.3%;
    left: 98%;
  transform: rotateY(20deg) scale(0.97);
  transform-style: preserve-3d; /* Firefox */
  width: 7%;
  z-index: -1;
}

/* 3D Book Spine */

/*.featimg-3d__wrap a:before {
  content: ' ';
  width: 1%;
  position: absolute; 
    top: 0; 
    bottom: 0;
    left: 4%; 
  background: rgba(0,0,0,.05);
  box-shadow: 1px 0 3px rgba(255, 255, 255, 0.1);
  z-index: 1;
}
*/


/* Image Captions
--------------------------------------------- */

.featimg__caption,
.caption,
.wp-caption-text /* Inpost captions */ {
  display: block;
  font-size: 0.9rem;
  -ms-hyphens: manual;
  -webkit-hyphens: manual; 
  -moz-hyphens: manual; 
  hyphens: manual;
  line-height: 1.3;
  margin-top: 0.3em;
  word-break: break-word; 
}

.bub-caption-heading {
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1.3;
}

img[alt] {
  font-size: 12px;
}


/*
Iframes, Embeds, Videos etc.
---------------------------------------------------------------------------------------------------- */

/* bub Tools' bub Consent puts a placeholder in a frame's place until the
visitor's click, which needs the frame's width. */

embed,
iframe,
object,
video,
.bubconsent-embed {
  width: 100%;
}

/* Its button in the site's button style; the extra class outweighs bub
Consent's own rule. */

.site-inner .bubconsent-embed .bubconsent-embed__button {
  background: var(--theme1-background-lt1);
  border-radius: 0;
  color: var(--theme1-color-lt1);
}

.site-inner .bubconsent-embed .bubconsent-embed__button:hover {
  filter: var(--theme1-filter-acc);
}

/* Responsive Embeds 
  Note: Wrap embedded element with class 'bub-responsive-embed' */

.bub-responsive-embed {
  height: 0; 
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
}

.youtube-responsive-container embed,
.bub-responsive-embed iframe, 
.youtube-responsive-container object, 
.youtube-responsive-container video {
  height: 100%;
  position: absolute;
    left: 0;
    top: 0;
  width: 100%;
}

.single iframe {
  margin: 8px 0 12px;
}

/* Iframes in Paragraphs (classic editor embeds): the top alignment removes
the gap below an inline iframe. */

p iframe {
  vertical-align: top;
}

/* Video Embeds */

@media screen and (min-width: 601px) {

  .wp-block-embed.is-type-video iframe {
    min-height: 360px;
  }
}
