/*
Theme Name: CENTEVO – Law Firm Child
Description: CENTEVO-Blog mit kompaktem Beitragskopf, aufklappbaren Schlagwörtern und Weiterlesen-Karten.
Author: CENTEVO GmbH
Template: law-firm-1-2-7
Version: 1.3.6
Text Domain: centevo-law-firm-child
*/

.home .centevo-home-photo picture,
.home .centevo-home-photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.home .centevo-home-photo img {
  object-fit: cover;
  object-position: center;
}

h3 {
font-family: Poppins, Arial, Helvetica, sans-serif;
}

/* CENTEVO: Informationen über dem Beitragstitel */
.single-post .btArticleHeadline dl.centevo-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px clamp(24px, 3.5vw, 54px);
  margin: 0 0 clamp(14px, 1.3vw, 20px);
  padding: clamp(8px, .7vw, 12px) clamp(14px, 1.45vw, 24px);
  border: 1px solid #e4d7c6;
  border-left: 3px solid #cca876;
  border-radius: 12px;
  background: #fcfaf7;
  box-shadow: 0 5px 18px rgba(49, 39, 24, .045);
  color: #242321;
  font-family: Poppins, Arial, sans-serif;
  text-align: left;
  text-transform: none;
}
.single-post .centevo-post-meta > div {
  min-width: 0;
  max-width: 100%;
}
.single-post .centevo-post-meta dt {
  margin: 0 0 2px;
  padding: 0;
  color: #715735;
  font: 600 clamp(10px, .74vw, 12px)/1.35 Poppins, Arial, sans-serif;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.single-post .centevo-post-meta dd {
  margin: 0;
  padding: 0;
  color: #242321;
  font: 600 clamp(13px, 1.05vw, 16px)/1.35 Poppins, Arial, sans-serif;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}
.single-post .btArticleHeadline .centevo-post-meta dd span,
.single-post .btArticleHeadline .centevo-post-meta dd a {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
}
.single-post .centevo-post-meta dd span::before,
.single-post .centevo-post-meta dd span::after,
.single-post .centevo-post-meta dd a::before,
.single-post .centevo-post-meta dd a::after {
  content: none;
}
.single-post .centevo-post-meta a {
  text-decoration: none;
}
.single-post .centevo-post-meta a:hover,
.single-post .centevo-post-meta a:focus-visible {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.single-post .btArticleHeadline [hidden] {
  display: none;
}
.single-post .centevo-post-meta .centevo-date-short { display: none; }
.single-post .centevo-post-meta .btArticleCategory { white-space: nowrap; }
@media (max-width: 700px) {
  .single-post .btArticleHeadline dl.centevo-post-meta {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: start;
    gap: 6px clamp(8px, 2.4vw, 14px);
    margin: 0 -18px 14px;
    padding: 8px 10px;
    border-radius: 10px;
  }
  .single-post .centevo-post-meta dt { font-size: 10px; letter-spacing: .045em; }
  .single-post .centevo-post-meta dd { font-size: 12px; line-height: 1.35; overflow-wrap: normal; }
  .single-post .centevo-post-meta .centevo-date-long { display: none; }
  .single-post .centevo-post-meta .centevo-date-short { display: inline; }
  .single-post .centevo-post-meta .btArticleCategories a { display: inline-block; }
  .single-post dl.centevo-post-meta:has(.btArticleCategories a:nth-of-type(2)) { grid-template-columns: max-content minmax(0, 1fr); }
  .single-post .centevo-post-meta > div:has(.btArticleCategories a:nth-of-type(2)) { grid-column: 1 / -1; }
}
@media (max-width: 370px) {
  .single-post .btArticleHeadline dl.centevo-post-meta { margin-inline: -23px; padding-inline: 7px; column-gap: 5px; }
  .single-post .centevo-post-meta dd { font-size: 11.5px; }
}

/* Einzelne Teaserbilder neben dem Einstieg. */
.single-post article:is(.format-standard, .format-image) .btPostContentHolder:has(> .btArticleMedia > .btMediaBox:only-child > img:only-child) {
  display: flow-root;
}
.single-post article:is(.format-standard, .format-image) .btPostContentHolder > .btArticleMedia:has(> .btMediaBox:only-child > img:only-child) {
  float: right;
  width: min(26%, 260px);
  margin: 0 0 1.25rem 2rem;
}
.single-post article:is(.format-standard, .format-image) .btArticleMedia > .btMediaBox:only-child > img:only-child {
  display: block;
  width: 100%;
  height: auto;
}
.single-post article:is(.format-standard, .format-image) .btArticleMedia:has(> .btMediaBox:only-child > img:only-child) + .btArticleContent {
  clear: none;
}
@media (max-width: 700px) {
  .single-post article:is(.format-standard, .format-image) .btPostContentHolder > .btArticleMedia:has(> .btMediaBox:only-child > img:only-child) {
    float: none;
    width: min(45%, 160px);
    margin: 0 0 1rem;
  }
}

/* Auch bei Artikeln mit einer einleitenden Zwischenüberschrift. */
@media (min-width: 701px) {
  .single-post article:is(.format-standard, .format-image) .btArticleMedia:has(> .btMediaBox:only-child > img:only-child) + .btArticleContent > .bt_bb_wrapper > :is(h1, h2, h3, h4, h5, h6):first-child {
    clear: none;
  }
}

@media (max-width: 700px) {
  .single-post .btArticleHeadline h1.bt_bb_headline_tag {
    font-size: clamp(1.7rem, 7vw, 2.45rem);
    line-height: 1.18;
    hyphens: auto;
    overflow-wrap: anywhere;
  }
}

/* CENTEVO: Beitragsbild im oberen Blog-Teaser */
.single-post .centevo-hero-with-art > .bt_bb_port {
  padding-top: max(86px, 5.4rem);
  padding-bottom: clamp(10px, 1vw, 16px);
}
.single-post .bt-blog-header-content .centevo-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.single-post .centevo-hero-row > .bt_bb_column {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
}
.single-post .centevo-hero-row .bt_bb_column_content {
  width: 100%;
  padding: 0;
}
.single-post .centevo-hero-row .bt_bb_headline_tag {
  max-width: 18ch;
  font-size: clamp(30px, 3vw, 50px);
  line-height: 1.2;
}
.single-post .centevo-hero-row .bt_bb_headline + .bt_bb_separator {
  display: none;
}
.single-post .centevo-hero-art {
  width: 100%;
  margin: 0;
}
.single-post .centevo-hero-art > .btMediaBox {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  margin: 0;
}
.single-post .centevo-hero-art > .btMediaBox > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(183px, 20vw, 292px);
  box-sizing: content-box;
  border-bottom: clamp(4px, .67vw, 10px) solid #cca876;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}
@media (max-width: 760px) {
  .single-post .centevo-hero-with-art > .bt_bb_port {
    padding-top: 76px;
    padding-bottom: 12px;
  }
  .single-post .bt-blog-header-content .centevo-hero-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .single-post .centevo-hero-row .bt_bb_headline_tag {
    max-width: none;
    font-size: clamp(24px, 5.8vw, 32px);
    line-height: 1.2;
  }
  .single-post .centevo-hero-art > .btMediaBox > img {
    max-height: clamp(122px, 35vw, 168px);
  }
}

/* Dieses Originalmotiv enthält den Goldbalken bereits. */
.single-post .centevo-hero-art > .btMediaBox > img:is([src*="/blog_20260521"], [src*="/centevo-ci-"]) {
  border-bottom: 0;
}

/* Blogübersicht: Die Spaltenbreiten und Abstände kommen aus dem Theme. */
.page-id-394 :is(.bt_bb_masonry_post_grid_content, .cv-blog-grid) {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  height: auto !important;
}
.page-id-394 .bt_bb_masonry_post_grid_content > .bt_bb_grid_sizer {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}
.page-id-394 :is(.bt_bb_masonry_post_grid_content, .cv-blog-grid) > .bt_bb_grid_item {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  display: flex;
  min-width: 0;
}
.page-id-394 .cv-blog-grid { margin: calc(-1 * var(--cv-grid-inset, 0px)); }
.page-id-394 .cv-blog-grid > .bt_bb_grid_item { padding: var(--cv-grid-inset, 0px); }
.page-id-394 .bt_bb_gap_extrasmall { --cv-grid-inset: 1px; }
.page-id-394 .bt_bb_gap_small { --cv-grid-inset: 3px; }
.page-id-394 .bt_bb_gap_normal { --cv-grid-inset: 20px; }
.page-id-394 .bt_bb_gap_large { --cv-grid-inset: 30px; }
.page-id-394 .bt_bb_grid_container:has(> .cv-blog-grid) { height: auto; }
.page-id-394 .bt_bb_grid_item_inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
.page-id-394 .bt_bb_grid_item_post_content {
  flex: 1 1 auto;
}
.page-id-394 .bt_bb_grid_item_post_thumbnail {
  --gold-height: 3.35%;
  min-height: 0;
  aspect-ratio: 1.45;
  height: auto !important;
  flex: none;
  background-color: #191918;
  box-shadow: 0 4px 9px rgba(0, 0, 0, .14);
  position: relative;
  z-index: 1;
}
.page-id-394 .bt_bb_grid_item_post_thumbnail::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--gold-height);
  background-color: #cca876;
  pointer-events: none;
}
.page-id-394 .bt_bb_grid_item_post_thumbnail > a {
  display: block;
  position: absolute;
  inset: 0 0 var(--gold-height);
}
.page-id-394 .bt_bb_grid_item_post_thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.page-id-394 .bt_bb_grid_item_post_thumbnail img {
  object-fit: contain;
}
.page-id-394 .bt_bb_grid_item_post_thumbnail:has(img:is([src*="/blog_20260521"], [src*="/centevo-ci-"])) {
  --gold-height: 0%;
  background-color: #10100f;
}
.page-id-394 .bt_bb_grid_item_post_thumbnail img:is([src*="/blog_20260521"], [src*="/centevo-ci-"]) {
  object-position: center bottom;
}
.page-id-394 .bt_bb_grid_item_post_thumbnail:has(img:is([src*="/blog_20260521"], [src*="/centevo-ci-"]))::after {
  display: none;
}

/* Beitragsdaten und Schlagwörter teilen sich eine kompakte Karte. */
.single-post .btArticleHeadline dl.cv-post-facts {
  display: flex;
  align-items: center;
  gap: .45rem clamp(1rem, 3vw, 3rem);
  margin-inline: 0;
  color: #24211b;
}
.single-post .cv-post-facts .cv-categories a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.single-post .cv-post-facts .cv-tags:has(details[open]) { flex-basis: 100%; }
.single-post .cv-post-facts .cv-tags dt {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.single-post .cv-tags summary {
  box-sizing: border-box;
  display: list-item;
  width: fit-content;
  min-height: 28px;
  padding: .3rem .6rem;
  border: 1px solid #cca876;
  border-radius: 4px;
  background: #f6f3ed;
  color: #24211b;
  cursor: pointer;
  font: 600 .78rem/1.5 Poppins, Arial, sans-serif;
}
.single-post .cv-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .7rem;
  margin: .55rem 0 .25rem;
  padding: 0;
  list-style: none;
}
.single-post .cv-tags li { max-width: 100%; margin: 0; padding: 0; }
.single-post .btArticleHeadline .cv-tags li a {
  display: block;
  padding-block: .2rem;
  color: #24211b;
  font: 400 .8rem/1.4 Poppins, Arial, sans-serif;
  text-decoration: underline;
  text-decoration-color: #cca876;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.single-post .cv-post-reading {
  margin-block: clamp(1.75rem, 4vw, 3.5rem);
  color: #181817;
}
.single-post .cv-post-reading h2 {
  margin: 0 0 .9rem;
  color: inherit;
  font: 400 clamp(1.45rem, 2.4vw, 2rem)/1.3 "Libre Baskerville", Georgia, serif;
}
.single-post .cv-post-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.65rem, 1.5vw, 1.15rem);
}
.single-post a.cv-post-card {
  display: flex;
  align-items: center;
  gap: clamp(.65rem, 1.6vw, 1.2rem);
  min-width: 0;
  padding: clamp(.65rem, 1.5vw, 1.2rem);
  background: #f6f3ed;
  border: 1px solid #e4d7c6;
  border-left: 3px solid #cca876;
  border-radius: 9px;
  color: #181817;
  text-decoration: none;
}
.single-post a.cv-post-card:hover {
  border-color: #cca876;
  color: #181817;
  box-shadow: 0 4px 12px rgba(24, 24, 23, .08);
}
.single-post .cv-post-facts :focus-visible,
.single-post a.cv-post-card:focus-visible { outline: 2px solid #715735; outline-offset: 3px; }
.single-post .cv-post-card .cv-post-thumb {
  display: block;
  flex: 0 0 auto;
  width: clamp(72px, 26%, 150px);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}
.single-post .cv-post-card-text { display: block; min-width: 0; }
.single-post .cv-post-direction {
  display: block;
  margin-bottom: .35rem;
  color: #715735;
  font: 600 .75rem/1.4 Poppins, Arial, sans-serif;
}
.single-post .cv-post-card-title {
  display: block;
  font: 400 clamp(.95rem, 1.3vw, 1.2rem)/1.42 "Libre Baskerville", Georgia, serif;
  overflow-wrap: anywhere;
}
.single-post .btArticleShareEtc[hidden] { display: none; }
@media (max-width: 700px) {
  .single-post .btArticleHeadline dl.cv-post-facts { gap: .4rem .8rem; padding: .5rem .65rem; }
  .single-post .cv-post-facts .cv-categories { min-width: min-content; max-width: 100%; }
  .single-post .cv-post-cards { grid-template-columns: minmax(0, 1fr); }
}

/* eTermin consent notice. The browser only creates the calendar after approval. */
.cv-calendar {
  display: flow-root;
  color: #24211b;
  font-family: Poppins, Arial, sans-serif;
  text-align: left;
}
.cv-calendar [hidden] { display: none !important; }
.cv-calendar-notice {
  margin-block-start: clamp(20px, 2.5vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.4rem 2.5rem;
  padding: clamp(1.25rem, 3.2vw, 2.75rem);
  background: #fcfaf7;
  border: 1px solid #e4d7c6;
  border-left: 4px solid #cca876;
  border-radius: 12px;
}
.cv-calendar-copy { flex: 1 1 29rem; }
.cv-calendar-copy h3 {
  margin: 0 0 .6rem;
  color: #24211b;
  font: 400 clamp(1.35rem, 2.2vw, 1.9rem)/1.25 "Libre Baskerville", Georgia, serif;
  text-transform: none;
}
.cv-calendar-copy p, .cv-calendar-status, .cv-calendar-action noscript p {
  margin: 0;
  max-width: 62ch;
  font: 400 .94rem/1.65 Poppins, Arial, sans-serif;
}
.cv-calendar a.cv-calendar-privacy {
  display: inline-block;
  margin-top: .65rem;
  padding: .2rem 0;
  border: 0;
  background: transparent;
  color: #614923;
  font: 500 .875rem/1.5 Poppins, Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.cv-calendar-action { flex: 0 1 auto; max-width: 100%; }
.cv-calendar button.cv-calendar-allow {
  display: inline-block;
  max-width: 100%;
  min-height: 48px;
  padding: .8rem 1.3rem;
  border: 1px solid #cca876;
  border-radius: 5px;
  background: #cca876;
  color: #211d18;
  font: 600 .95rem/1.4 Poppins, Arial, sans-serif;
  text-transform: none;
  white-space: normal;
  cursor: pointer;
}
.cv-calendar button.cv-calendar-allow:hover { background: #d7b78d; }
.cv-calendar :is(button, a):focus-visible { outline: 3px solid #705127; outline-offset: 4px; }
.cv-calendar button:disabled { cursor: progress; }
.cv-calendar-status:not(:empty) { max-width: 36ch; margin-top: .65rem; }
.cv-calendar-frame iframe { display: block; width: 100%; height: 1600px; border: 0; }
.bt_bb_bottom_spacing_none .cv-calendar-notice {
  margin-block-end: clamp(32px, 5vw, 60px);
}
@media (max-width: 1024px) {
  .cv-calendar-notice {
    margin-block-end: clamp(32px, 5vw, 48px);
  }
}
@media (max-width: 620px) {
  .cv-calendar-action, .cv-calendar button.cv-calendar-allow { width: 100%; }
}

/* Category, tag and author pages share the site's editorial typography and the native WP query. */
.cv-archive {
  --cv-gold: #cca876;
  --cv-ink: #181817;
  background: #fff;
  color: var(--cv-ink);
  font-family: Poppins, Arial, sans-serif;
}
.cv-archive-inner {
  width: min(1200px, calc(100% - clamp(36px, 8vw, 104px)));
  margin-inline: auto;
}
.cv-archive-head {
  background: #191919;
  color: #fff;
  padding: clamp(110px, 9.5vw, 150px) 0 clamp(30px, 4vw, 55px);
  border-bottom: 4px solid var(--cv-gold);
}
.cv-archive-path {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  color: var(--cv-gold);
  font: 600 .78rem/1.5 Poppins, Arial, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.cv-archive-path a { color: #fff; text-underline-offset: .25em; }
.cv-archive .cv-archive-head h1 {
  margin: .65rem 0 .45rem;
  max-width: 32ch;
  color: #fff;
  font: 400 clamp(1.95rem, 3.7vw, 3.5rem)/1.2 "Libre Baskerville", Georgia, serif;
  letter-spacing: -.025em;
  text-transform: none;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.cv-archive-description { max-width: 65ch; margin-top: .9rem; }
.cv-archive-description p { margin: .3rem 0; }
.cv-archive .cv-archive-count { margin: 0; color: #e4dace; font-size: .9rem; }
.cv-archive-body { padding-block: clamp(24px, 3.5vw, 50px) clamp(36px, 5vw, 76px); }
.cv-archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(15px, 2vw, 28px);
}
.cv-archive .cv-archive-card {
  display: flex;
  align-items: center;
  gap: clamp(15px, 1.65vw, 25px);
  margin: 0;
  padding: clamp(15px, 1.65vw, 24px);
  min-width: 0;
  background: #f6f3ed;
  border: 1px solid #e6dece;
  border-radius: 8px;
  color: #24211b;
}
.cv-archive-card:only-child { grid-column: 1 / -1; }
.cv-archive-art {
  display: block;
  flex: 0 0 34%;
  max-width: 320px;
  align-self: center;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(24,24,23,.12);
}
.cv-archive-art img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 3px solid var(--cv-gold);
}
.cv-archive-art img:is([src*="/blog_20260521"],[src*="/centevo-ci-"]) { border: 0; }
.cv-archive-copy { flex: 1 1 auto; min-width: 0; max-width: 65ch; }
.cv-archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .65rem;
  margin-bottom: .45rem;
  color: #655236;
  font: 500 .78rem/1.5 Poppins, Arial, sans-serif;
}
.cv-archive-meta a { color: inherit; }
.cv-archive .cv-archive-card h2 {
  margin: 0;
  font: 400 clamp(1.12rem, 1.65vw, 1.6rem)/1.32 "Libre Baskerville", Georgia, serif;
  text-transform: none;
  letter-spacing: -.012em;
  color: #181817;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.cv-archive-card h2 a { color: inherit; }
.cv-archive .cv-archive-copy p { margin: .55rem 0 0; font: 400 .92rem/1.6 Poppins, Arial, sans-serif; }
.cv-archive a:hover { text-decoration: underline; text-underline-offset: .18em; }
.cv-archive :focus-visible { outline: 2px solid #805d32; outline-offset: 3px; }
.cv-archive-head :focus-visible { outline-color: var(--cv-gold); }
.cv-archive-pagination { margin: 2rem 0 0; }
.cv-archive-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.cv-archive-pagination .page-numbers {
  display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
  padding: .45rem .8rem; color: #24211b; border: 1px solid #cca876; border-radius: 3px;
}
.cv-archive-pagination .current { background: #cca876; }
@media (max-width: 1000px) {
  .cv-archive-list { grid-template-columns: minmax(0, 1fr); }
  .cv-archive-art { flex-basis: 30%; }
}
@media (max-width: 580px) {
  .cv-archive-head { padding-block: 84px 27px; }
  .cv-archive .cv-archive-card { flex-direction: column; align-items: stretch; gap: 14px; }
  .cv-archive-art { flex: none; width: min(100%, 300px); max-width: 100%; }
}

/* Cancel the parent theme's footer-only .9em scale. The page supplies its own type and link styles. */
.bt-site-footer:has(.cv-footer-page) { font-size: inherit; }
.bt-site-footer .cv-footer-page { display: contents; }

.cv-footer-home-link {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}
.cv-footer-home-link > img { display: block; }
.cv-footer-home-link:focus:not(:focus-visible) { outline: none; }
.cv-footer-home-link:focus-visible {
  outline: 2px solid #cca876;
  outline-offset: 3px;
}

/* Scale the two outer spacings selected on the shared FOOTER page. */
.bt-site-footer .bt_bb_section.bt_bb_top_spacing_large > .bt_bb_port {
  padding-top: clamp(54px, calc(44px + 2.4vw), 76px);
}
.bt-site-footer .bt_bb_section.bt_bb_bottom_spacing_medium > .bt_bb_port {
  padding-bottom: clamp(28px, calc(24px + 1vw), 38px);
}
