/*
 Theme Name:   BM 21 Child
 Description:  Basis Child-Theme Berchtold Marketing.
 Author:       Berchtold Marketing GmbH
 Author URI:   https://www.berchtold-marketing.ch
 Template:     bm21
 Version:      1.0.2
 Text Domain:  bm-child
*/
body {
  position: relative;
  overflow-x: hidden;
}
/**
 * Font Integration - Archivo & Clavo
 * 
 * @package BM21-Child
 * @since 1.0.1
 */
/* ==========================================================================
   Archivo Font Face Definitions
   ========================================================================== */
/* Archivo Regular (400) */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo/Archivo-Light.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Archivo Bold (700) */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo/Archivo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* ==========================================================================
   Clavo Font Face Definitions
   ========================================================================== */
/* Clavo Light (300) */
@font-face {
  font-family: 'Clavo';
  src: url('fonts/clavo/font.woff2') format('woff2'), url('fonts/clavo/font.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
/* ==========================================================================
   Archivo Font Anwendung
   ========================================================================== */
/* Globale Font-Familie setzen */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
input,
textarea,
select,
button {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}
/* Spezifische Gewichtungen */
strong,
b,
h1,
h2,
h3,
h4,
h5,
h6,
.bold {
  font-weight: 700;
}
.mod-mobilenavigation .triggerMobileNav:after,
.mod-mobilenavigation .triggerMobileNav:before,
.mod-mobilenavigation .triggerMobileNav div {
  background-color: white;
}
.mod-footer {
  margin-top: 50px;
}
.wp-block-accordion-panel .wp-block-list > li {
  margin-bottom: 8px;
}
.block-page-preview .page-preview-wrap .pageItem .itemWrap > a {
  -webkit-border-radius: 20px;
  -webkit-background-clip: padding-box;
  -moz-border-radius: 20px;
  -moz-background-clip: padding;
  border-radius: 20px;
  background-clip: padding-box;
  overflow: hidden;
}
.block-page-preview .page-preview-wrap .pageItem .itemWrap .imageWrap {
  margin: 0;
}
.block-page-preview .page-preview-wrap .pageItem .itemWrap .imageWrap .imageBox {
  padding-top: 170%;
  margin: -2px;
}
.block-page-preview .page-preview-wrap .pageItem .itemWrap h2 {
  position: absolute;
  left: 25px;
  bottom: 25px;
  margin: 0;
  font-size: 1.25rem;
}
.wp-block-group.bm-tour-intro {
  padding: 5px;
}
.wp-block-button.is-style-small-button-2 .wp-block-button__link:hover,
.wp-block-button.is-style-small-button-2 .wp-block-button__link:focus {
  -webkit-opacity: 0.6;
  -moz-opacity: 0.6;
  opacity: 0.6;
}
.single .entry-content .wp-block-accordion .wp-block-accordion-item .wp-block-accordion-heading .wp-block-accordion-heading__toggle-title::before {
  right: 5px;
}
.entry-content .wp-block-accordion .wp-block-accordion-item .wp-block-accordion-heading > button {
  display: block;
  width: 100%;
  text-align: left;
}
.entry-content .wp-block-accordion .wp-block-accordion-item .wp-block-accordion-heading > button .wp-block-accordion-heading__toggle-title {
  display: block;
}
.tour-intro-text p {
  max-width: 700px;
}
#main-content > .entry-content .bm-video-preview {
  position: relative;
}
#main-content > .entry-content .bm-video-preview a {
  display: block;
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
  -webkit-border-radius: 20px;
  -webkit-background-clip: padding-box;
  -moz-border-radius: 20px;
  -moz-background-clip: padding;
  border-radius: 20px;
  background-clip: padding-box;
}
#main-content > .entry-content .bm-video-preview a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  pointer-events: none;
}
#main-content > .entry-content .bm-video-preview a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #212120;
  transform: translate(-40%, -50%);
  transition: all 0.3s ease;
  pointer-events: none;
  margin-left: 1px;
  z-index: 1;
  cursor: pointer;
}
#main-content > .entry-content .bm-video-preview a:hover::after {
  transform: translate(-50%, -50%) scale(1.1);
}
#main-content > .entry-content .bm-video-preview a:hover::before {
  transform: translate(-40%, -50%) scale(1.1);
}
#main-content > .entry-content .bm-video-preview img {
  -webkit-border-radius: 20px;
  -webkit-background-clip: padding-box;
  -moz-border-radius: 20px;
  -moz-background-clip: padding;
  border-radius: 20px;
  background-clip: padding-box;
  transition: transform 0.1s ease-out;
}
@media (min-width: 782px) {
  #main-content > .entry-content .bm-video-caption {
    color: #fdf4e2;
    margin-left: -130px;
    margin-bottom: 0;
    z-index: 1;
    position: relative;
  }
}
@media (max-width: 781px) {
  .hide-mobile {
    display: none !important;
  }
  .block-bm-documents-links .documents-links-item a::after {
    width: 24px !important;
    height: 24px !important;
  }
  .block-bm-documents-links .documents-links-item a,
  .wp-block-list {
    font-size: 1.125rem;
  }
  .wp-block-columns.bm-video-wrapper h2 br {
    display: block;
  }
  .wp-block-columns.bm-video-wrapper .wp-block-accordion-heading {
    font-size: 1.5rem;
  }
  .wp-block-columns.bm-video-wrapper .wp-block-column.is-vertically-aligned-center {
    display: flex;
    flex-direction: column;
  }
  .wp-block-columns.bm-video-wrapper .wp-block-column.is-vertically-aligned-center > * {
    order: 10;
  }
  .wp-block-columns.bm-video-wrapper .wp-block-column.is-vertically-aligned-center > *:nth-last-child(1) {
    order: 1;
    position: absolute;
    top: -170px;
  }
  .wp-block-columns.bm-video-wrapper .wp-block-column.is-vertically-aligned-center > *:nth-last-child(2) {
    order: 2;
    position: absolute;
    top: -140px;
  }
  .wp-block-columns.bm-video-wrapper .wp-block-column.is-vertically-aligned-center > *:nth-child(1) {
    order: 3;
  }
  .wp-block-columns.bm-video-wrapper .wp-block-column.is-vertically-aligned-center > *:nth-child(2) {
    order: 4;
  }
  .wp-block-columns.bm-video-wrapper .wp-block-column.is-vertically-aligned-center .bm-video-caption {
    margin-bottom: 5px;
    padding: 0 10px 0 30px;
  }
  .wp-block-columns.bm-video-wrapper > .wp-block-column:last-child {
    position: relative;
    z-index: 2;
  }
}
/**
 * Dokumente & Links Block Styles
 * 
 * @package BM21-Child
 */
.block-bm-documents-links .documents-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.block-bm-documents-links .documents-links-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.block-bm-documents-links .documents-links-item:last-child {
  border-bottom: none;
}
.block-bm-documents-links .documents-links-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 40px 20px 0;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
  position: relative;
}
.block-bm-documents-links .documents-links-item a::after {
  content: '';
  width: 32px;
  height: 32px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="white" d="M336 96l16 0 0 16 0 224 0 16-32 0 0-16 0-185.4L67.3 403.3 56 414.6 33.4 392l11.3-11.3L297.4 128 112 128l-16 0 0-32 16 0 224 0z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.block-bm-documents-links .documents-links-item a:hover {
  color: #fce4b5;
}
.block-bm-documents-links .documents-links-item a:hover::after {
  transform: translateY(-50%) scale(1.2);
}
.block-bm-documents-links .documents-links-item a i {
  display: none;
}
.block-bm-documents-links .documents-links-item a .item-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  order: 1;
}
.block-bm-documents-links .documents-links-item a .item-name {
  font-weight: 400;
}
.block-bm-documents-links .documents-links-item a .item-meta {
  font-size: 0.875rem;
  opacity: 0.6;
  padding: 0 10px;
  top: -1px;
  position: relative;
}
@media (max-width: 782px) {
  .block-bm-documents-links .documents-links-item a {
    gap: 10px;
    padding: 15px 0;
  }
}
/**
 * Tour Locations List
 * Styling für die Tour-Standorte Liste auf der Tour-Übersichtsseite
 */
.single-tour .entry-content h1 {
  margin-top: 60px;
}
.single-tour .entry-content .tour-intro-text {
  margin-top: 15px;
}
.tour-locations-list {
  margin-top: 60px;
}
.tour-locations-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tour-locations-list .tour-location-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}
.tour-locations-list .tour-location-item .location-page-title {
  flex: 1;
  font-size: inherit;
  font-weight: bold;
}
.tour-locations-list .tour-location-item .location-page-title .station-number {
  display: block;
  font-size: 0.75em;
  font-weight: normal;
  opacity: 0.7;
  margin-bottom: 5px;
}
.tour-locations-list .tour-location-item .location-map-link {
  flex-shrink: 0;
  margin-left: 20px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.tour-locations-list .tour-location-item .location-map-link .location-label {
  font-size: 0.75em;
  opacity: 0.7;
  margin-bottom: 5px;
}
.tour-locations-list .tour-location-item .location-map-link .location-name-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tour-locations-list .tour-location-item .location-map-link .location-name-wrapper::after {
  content: '\f3c5';
  font-family: "Font Awesome 5 Pro";
  font-weight: 300;
}
.tour-locations-list .tour-location-item .location-map-link:hover {
  opacity: 0.7;
}
@media (max-width: 767px) {
  .tour-locations-list .tour-location-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .tour-locations-list .tour-location-item .location-map-link {
    margin-left: 0;
    margin-top: 10px;
    align-items: flex-start;
  }
}
.mod-mobilenavigation .mobile-wrap .mobile-content .mobile-navigation > li a {
  font-size: 2rem;
  font-weight: 700;
}
.mod-mobilenavigation .mobile-wrap .mobile-content .mobile-navigation > li .sub-menu {
  display: block !important;
  padding-left: 20px;
  padding-right: 20px;
}
.mod-mobilenavigation .mobile-wrap .mobile-content .mobile-navigation > li .sub-menu > li > a {
  color: white;
  font-weight: 400;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: 0;
  padding-right: 0;
}
.mod-mobilenavigation .mobile-wrap .mobile-content .mobile-navigation > li.menu-item-has-children:before {
  display: none;
}
.video-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.video-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.video-lightbox.active .video-lightbox-content {
  transform: scale(1);
}
.video-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}
.video-lightbox-content {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 500px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.video-lightbox-close {
  position: fixed;
  top: 30px;
  right: 30px;
  background: #ffffff;
  border: none;
  color: #000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  -webkit-opacity: 0.7;
  -moz-opacity: 0.7;
  opacity: 0.7;
}
.video-lightbox-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}
.video-lightbox-close svg {
  width: 28px;
  height: 28px;
}
.video-lightbox-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%;
  background-color: #000;
  border-radius: 4px;
  overflow: hidden;
}
.video-lightbox-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
@media (max-width: 768px) {
  .video-lightbox-content {
    width: 95%;
    max-width: 400px;
  }
  .video-lightbox-close {
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
  .video-lightbox-close svg {
    width: 24px;
    height: 24px;
  }
}
@media (max-width: 480px) {
  .video-lightbox-content {
    width: 90%;
    max-width: 320px;
  }
}
body:has(.video-lightbox.active) {
  overflow: hidden;
}
