/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

body {
	hyphens: auto;
}

/*
 Post Style Changes
 for the Gutenberg Editor
*/

/* Buttons */

.wp-block-button .wp-block-button__link {
   display: flex;
   justify-content: center;
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    border-radius: 4px;
    background-color: var(--teal-600);
    color: var(--white)!important;
    letter-spacing: -0.01em;
    line-height: 1;
    padding-top: 15px;
    padding-right: 30px;
    padding-bottom: 15px;
    padding-left: 30px;
    transition: all 0.3s;
}

.wp-block-button .wp-block-button__link:hover {
    color: var(--teal-800)!important;
    background-color: var(--teal-100);
    border-color: var(--teal-500);
    transform: translateY(-3px);
    box-shadow: 0 0 15px 0 var(--black-trans-10);
    text-decoration: none!important;
}

/* Blockquote */

.wp-block-quote {
    border-left-style: solid;
    border-left-width: 4px;
    font-family: georgia, Times New Roman, times, serif;
    border-color: var(--bricks-border-color);
    font-size: 1.3em;
    margin: 15px 0;
    padding: 0 0 0 30px;
    position: relative;
}

/* Separator */

.wp-block-separator {
   border: none;
   border-top: 1px solid var(--black-trans-10);
   margin: var(--space-l) 0;
}

/* Table */

.wp-block-table {
   border-radius: 0px;
}

.table-line-height {
   line-height: 1.5;
}

/* Code */

.wp-block-code {
   color: var(--teal-800);
}

/* Headings */

h2.wp-block-heading,
h3.wp-block-heading {
   /*font-size: var(--text-xl);*/
   font-weight: 500;
   margin-top: var(--space-xl);
   line-height: 1.3;
}
h4.wp-block-heading,
h5.wp-block-heading,
h6.wp-block-heading {
   font-weight: 500;
   margin-top: var(--space-l);
   line-height: 1.3;
}

/* Margins and Paddings */
.twillo-margin-top-0 {margin-top:0px!important;}

/* Figcaption */
figcaption {
  color: black;
}

/* All animations for intersection observer */

/* Background Icon in header width lower opacity */
[data-builder-mode] .custom-animation-on-scroll.slide-up,
.custom-animation-on-scroll.fade-in-icon.active {
   opacity: 0.5;
   transform: translate(0);
}

/* Fade-in */
[data-builder-mode] .custom-animation-on-scroll.slide-up,
.custom-animation-on-scroll.fade-in.active {
   opacity: 1;
   transform: translate(0);
}

/* Breadcumb */
.breadcrumb-item {
   max-width: 200px; /* Anpassbar nach Bedarf */
   display: inline-block;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   vertical-align: bottom;
   text-wrap:nowrap!important;
}

/* No Breaks */
@media (max-width: 787px) {
    /* Break */
  .break-tab {
    display: block;
  }
}

@media (max-width:460px) {
    /* Break */
  .break-mob {
    display: block;
  }
}

/* videojs styles */

.video-js .vjs-text-track-display {
   width: auto !important;
   /* margin-bottom: 2em !important; */
}

.video-js .vjs-texttrack-settings {
   display: none !important;
}


.video-js .vjs-text-track-display > div > div > div {
   font-size: 25px !important;
   line-height: 33px !important;
   padding: 5px 8px !important;
   background: rgba(0, 0, 0, 0.9) !important; /* Optional: transparenter Hintergrund */
   text-shadow: 1px 1px 2px #000000 !important;
   display: inline-block !important;
   border-radius: 4px !important;
   white-space: pre-wrap !important;
   max-width: 90% !important;
   margin: 0 auto !important;
   text-align: center !important;
}

/* Großer zentraler Play-Button */
.video-js .vjs-big-play-button {
   /* Größe und Form ändern */
   width: 10rem !important;
   height: 10rem !important;
   border-radius: 100% !important;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%) !important;
   margin-left:0px !important;
   margin-top:0px !important;
   background-color: rgba(242,91,104,0.8) !important;
   border: none !important;
   box-shadow: 0 0 20px rgba(0, 0, 0, 0.2) !important;
   
   /* Icon zentrieren */
   display: flex;
   align-items: center !important;
   justify-content: center !important;
}

/* Das Play-Icon innerhalb des Buttons */
.video-js .vjs-big-play-button .vjs-icon-placeholder:before {
   font-size: 6rem !important;
   line-height: 10rem !important;
}

/* Hover-Effekt */
.video-js:hover .vjs-big-play-button {
   background-color: rgba(237,28,46,0.8) !important;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%) scale(1.1) !important;
   margin-left:0px !important;
   margin-top:0px !important;
   transition: all 0.3s ease !important;
}

/* Control Bar größer machen */
.video-js .vjs-control-bar {
   height: 4em; /* Standard ist etwa 3em */
   font-size: 14px; /* Schriftgröße erhöhen (Standard ist oft 10px) */
}

/* Verhindert das Anzeigen von Tooltips bei Hover */
.video-js .vjs-control:hover .vjs-control-text {
   display: none !important;
}

/* Verhindert das Öffnen von Menüs bei Hover */
.video-js .vjs-menu-button:hover .vjs-menu,
.video-js .vjs-menu-button-popup:hover .vjs-menu {
   display: none !important;
}

/* Menüs werden nur angezeigt, wenn die Klasse 'vjs-lock-showing' vorhanden ist */
.video-js .vjs-menu-button .vjs-menu.vjs-lock-showing,
.video-js .vjs-menu-button-popup .vjs-menu.vjs-lock-showing {
   display: block !important;
}

/* In Video.js 7+ wird diese Klasse für Klick-aktivierte Menüs verwendet */
.video-js .vjs-menu-button.vjs-menu-button-popup-active .vjs-menu {
   display: block !important;
}

/* Buttons in der Control Bar vergrößern */
.video-js .vjs-button {
   width: 4em;
   height: 4em;
}

/* Größere Icons für die Buttons */
.video-js .vjs-icon-placeholder:before {
   font-size: 2em;
   line-height: 2;
}

/* Zeitanzeige größer machen */
.video-js .vjs-time-control {
   font-size: 1.2em;
   padding: 0 0.7em;
   min-width: 3em;
}

/* Mehr Abstand zwischen den Elementen */
.video-js .vjs-control {
   padding: 0 0.8em;
}

/*screen reader only */
.sr-only {
  clip: rect(0, 0, 0, 0);
  border-width: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Back to Top Button */

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--teal-700);
  color: #fff;
  border: 3px solid var(--teal-50);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden; 
  transition: all 0.3s ease; 
  z-index: 1000;
  font-size: 24px;
  text-align: center;
  line-height: 1;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: var(--teal-500);
}

#back-to-top::before {
  content: "\f28c";
  font-family: "Ionicons";
  font-size: inherit;
  color: inherit;
}




/* Print Styles */

@media print {
  /* Elemente ausblenden */
  header,
  nav,
  footer,
  .brxe-header,
  .brxe-footer,
  .no-print {
    display: none !important;
  }
  
  /* Seitenränder anpassen */
  @page {
    margin: 2cm;
  }
  
  /* Textoptimierung für Druck */
  body {
    font-size: 13pt;
    line-height: 1.3;
    background: #fff !important;
    color: #000 !important;
  }
  
  /* Links mit URL anzeigen */
  a[href]::after {
    content: " (" attr(href) ")";
  }

  .no-print {
    display: none !important;
  }

  .show-print {
    display: block !important;
  }

  .event__sidebar {
   box-shadow: none !important;
   border: none;
  }
}

/* audio Transcription styles */
.transcript-container {
   margin-top: 1em;
   font-size: 1em;
   line-height: 1.6;
   padding:20px;
   background-color:#f1f3f4;
   border-radius:8px;
 }
 .transcript-line {
   margin-bottom: 1em;
 }
 .transcript-line .speaker {
   font-weight: bold;
   display: block;
 }


 /* Table of Contents */

 ul.toc-list li.toc-list-item > ul.toc-list li.toc-list-item {
   border: none;
   padding-top:5px!important;
   padding-bottom:5px!important;
   margin-left:10px;
 }

 /* First section of every main content */
 main > section:first-child {
    padding-top: var(--space-xl);
}


/* Custom styles for OER Grundlagen Table */
.twillo-cc-table {
   width: 100%;
   border-collapse: collapse;
   font-size: var(--text-m);
   line-height:1.5;
   border: 5px solid black;
}

.twillo-cc-table thead {
   background: black;
   color: white;
}

.twillo-cc-table th {
   padding: 15px 20px;
   text-align: left;
   font-weight: 600;
   font-size: var(--text-m);
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.twillo-cc-table td {
   padding: 20px;
   border-bottom: 3px solid black;
   vertical-align: top;
}

/* Spaltenbreiten definieren */
.twillo-cc-table th:nth-child(1),
.twillo-cc-table td:nth-child(1) {
   width: 10%;
   max-width: 140px;
}

.twillo-cc-table th:nth-child(2),
.twillo-cc-table td:nth-child(2) {
   width: 25%;
   max-width: 300px;
}

.twillo-cc-table th:nth-child(3),
.twillo-cc-table td:nth-child(3) {
   width: 40%;
   max-width: 300px;
}

.twillo-cc-table th:nth-child(4),
.twillo-cc-table td:nth-child(4) {
   width: 15%;
   max-width: 200px;
}

.twillo-cc-table tbody tr {
   transition: background-color 0.3s ease;
}

.twillo-license-icon {
   width: 120px;
   height: auto;
   border-radius: 2px;
   border: none;
   transition: transform 0.3s ease;
}

.twillo-license-icon:hover {
   transform: scale(1.05);
   transition: transform 0.3s ease;
}

.twillo-license-link {
   color: var(--teal-700);
   text-decoration: none;
   font-weight: 500;
}

.twillo-license-link:hover {
   text-decoration: underline;
}

.twillo-zero {
   background-color: #DFF2D6;
}

.twillo-no-commercial {
   background-color: #FDFCD9;
}

.twillo-no-derivatives {
   background-color: #FDDED9;
}

/* Mobile Responsive - Spaltenbreiten werden hier überschrieben */
@media (max-width: 768px) {
   .twillo-cc-table {
         font-size: 12px;
   }
   
   .twillo-cc-table th,
   .twillo-cc-table td {
         padding: 8px 6px;
         width: auto !important; /* Überschreibt die festen Breiten */
         max-width: none !important;
   }
   
   .twillo-license-icon {
         width: 60px;
   }
   
   .twillo-cc-table th {
         font-size: 11px;
   }
}

/* Stack layout for very small screens */
@media (max-width: 600px) {
   .twillo-cc-table {
      border: none;
   }

   .twillo-cc-table,
   .twillo-cc-table thead,
   .twillo-cc-table tbody,
   .twillo-cc-table th,
   .twillo-cc-table td,
   .twillo-cc-table tr {
         display: block;
   }

   .twillo-license-icon {
         width: 100px;
   }
   
   .twillo-cc-table thead tr {
         position: absolute;
         top: -9999px;
         left: -9999px;
   }
   
   .twillo-cc-table tr {
         margin-bottom: 10px;
         padding: 10px;
   }
   
   .twillo-cc-table td {
         border: none;
         position: relative;
         padding: 8px 8px 8px 120px;
         margin-bottom: 8px;
   }
   
   .twillo-cc-table td:before {
         content: attr(data-label) ": ";
         position: absolute;
         left: 8px;
         width: 100px;
         font-weight: bold;
         color: #2c3e50;
         font-size: 11px;
         text-transform: uppercase;
   }
   
   .twillo-cc-table td:first-child {
         padding: 10px;
   }
   
   .twillo-cc-table td:first-child:before {
         display: none;
   }
}