/*
Theme Name: Telestar2
Description: Multi-Purpose Wordpress Theme
Author: Codex Themes.
Theme URI: http://codex-themes.com/thegem/
Author URI: http://codex-themes.com/thegem/
Template: thegem
Version: 1.0
Tags: one-column, two-columns, left-sidebar, right-sidebar, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, featured-images, flexible-header, full-width-template, theme-options, translation-ready, dark, light
License: GNU General Public License
License URI: license.txt
*/
@import url('css/montserrat.css');
@import url('css/roboto.css');

/*
Colors:
    light-blue: #009ee0;
    blue:       #006AB2;
    white:      #fff;
    grey:       #2a2b2a;
*/

/* =========================================
   TELESTAR Support Cards
   Verwendete Klassen:
   - Row:        ts-support-row
   - Column:     ts-card-col
   - Image:      ts-overlay-wrap
   - Textblock:  ts-overlay-box
   ========================================= */

/* WPBakery: Equal Height bis Column-Inner durchreichen */
.vc_row.vc_row-o-equal-height .vc_column_container,
.vc_row.vc_row-o-equal-height .vc_column_container .vc_column-inner{
  height: 100%;
}

/* Spalten dürfen volle Höhe nutzen */
.ts-card-col,
.ts-card-col > .vc_column-inner{
  height: 100%;
}

/* Overlay-Box */
.ts-overlay-box{
  position: relative;
  z-index: 2;
  margin: -40px auto 0;
  width: calc(100% - 30px);
  max-width: 400px;
  box-sizing: border-box;
  padding: 22px 22px 20px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  height: auto;
  overflow: visible;
  min-height: 140px;
}

/* Titel */
.ts-overlay-box h2,
.ts-overlay-box h3{
  margin: 0 0 10px !important;
  line-height: 1.15 !important;
}

/* Text */
.ts-overlay-box p{
  margin: 0;
}

/* Bild-Hover */
.ts-overlay-wrap{
  position: relative;
  overflow: hidden;
}

.ts-overlay-wrap::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.25s ease;
  pointer-events: none;
}

.ts-overlay-wrap:hover::after{
  background: rgba(255,255,255,0.3);
}

/* Shadow / Überstände nicht abschneiden */
.ts-support-row,
.ts-support-row > .vc_column_container,
.ts-support-row > .vc_column_container .vc_column-inner,
.ts-card-col{
  overflow: visible !important;
}

/* Optional: Startseiten-Abstand wie bisher */
.home div.block-content{
  padding-top: 0 !important;
}

/* ===============================
   Nur Textlinks unterstreichen
================================ */

/* Normale Textlinks unterstreichen */
.wpb_text_column a,
.entry-content a,
.textwidget a {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* ===================
   Header Schatten
====================== */

#site-header-wrapper .header-background:before,
#site-header-wrapper .header-background:after,
#site-header-wrapper .header-background{
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* ===================================
   WP File Download Buttons und Tags
==================================== */

/* WPFD – Reihenfolge: 1) Filter-Header 2) Tag-Buttons 3) Suchleiste */
.box-search-filter{
  display: flex !important;
  flex-direction: column !important;
  margin-top: 0 !important;
}

.mediaTableWrapperWithMenu > .mediaTableMenu{
  display:none !important;
}

.box-search-filter > #filter.wpfd-filter.wpfd_tabcontent.active{
  order: 1 !important;
}

.box-search-filter > .searchSection{
  order: 3 !important;
  margin-top: 15px !important;
}

/* Innerhalb des Filter-Blocks */
#filter.wpfd-filter.wpfd_tabcontent.active,
.wpfd-filter.wpfd_tabcontent.active{
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

#filter.wpfd-filter.wpfd_tabcontent.active .top.clearfix{
  order: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

#filter.wpfd-filter.wpfd_tabcontent.active .tags-item{
  order: 2 !important;
}

/* WPFD Filter-Tags */
.tags-item,
.wpfd-filter.wpfd_tabcontent.active .tags-item{
  margin-bottom: 0 !important;
  display: inline-flex;
  align-items: center;
}

.chk-tags-filtering ul{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.chk-tags-filtering ul li.tags-item{
  margin: 0 !important;
}

/* Aktiver Filter-Tag */
.chk-tags-filtering ul li.tags-item.active{
  background-color: #ffe9ec !important;
  background-image: none !important;
  box-shadow:
    0 3px 8px rgba(227,6,19,0.10),
    0 0 0 1px #E30613 inset !important;
  border: none !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
}

.chk-tags-filtering ul li.tags-item.active > a,
.chk-tags-filtering ul li.tags-item.active > span{
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.chk-tags-filtering ul li.tags-item.active,
.chk-tags-filtering ul li.tags-item.active *{
  color: #2c2c2c !important;
}

/* WPFD Kategorie-Buttons – Grundlayout */
.wpfd-container .wpfd-categories,
.wpfd-content .wpfd-categories,
.wpfd-container .wpfd-subcategories,
.wpfd-content .wpfd-subcategories{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
}

.wpfd-container .wpfd-categories a.wpfdcategory.catlink,
.wpfd-content .wpfd-categories a.wpfdcategory.catlink,
.wpfd-container .wpfd-subcategories a.wpfdcategory.catlink,
.wpfd-content .wpfd-subcategories a.wpfdcategory.catlink{
  margin: 10px !important;
  flex: 0 0 calc(33.333% - 20px) !important;
  width: calc(33.333% - 20px) !important;
  max-width: calc(33.333% - 20px) !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  background-color: #ffffff !important;
  border: 1px solid #e3e3e3 !important;
  transition: all 0.2s ease;
}

.wpfd-container .wpfd-categories a.wpfdcategory.catlink:hover,
.wpfd-content .wpfd-categories a.wpfdcategory.catlink:hover{
  background-color: #fff6f7 !important;
  border-color: #E30613 !important;
  box-shadow: 0 3px 8px rgba(227,6,19,0.06);
}

@media (max-width: 991px){
  .wpfd-container .wpfd-categories a.wpfdcategory.catlink,
  .wpfd-content .wpfd-categories a.wpfdcategory.catlink,
  .wpfd-container .wpfd-subcategories a.wpfdcategory.catlink,
  .wpfd-content .wpfd-subcategories a.wpfdcategory.catlink{
    flex: 0 0 calc(50% - 20px) !important;
    width: calc(50% - 20px) !important;
    max-width: calc(50% - 20px) !important;
  }
}

@media (max-width: 575px){
  .wpfd-container .wpfd-categories a.wpfdcategory.catlink,
  .wpfd-content .wpfd-categories a.wpfdcategory.catlink,
  .wpfd-container .wpfd-subcategories a.wpfdcategory.catlink,
  .wpfd-content .wpfd-subcategories a.wpfdcategory.catlink{
    flex: 0 0 calc(100% - 20px) !important;
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
  }
}

.wpfd-container .wpfd-categories a.wpfdcategory.catlink span,
.wpfd-content .wpfd-categories a.wpfdcategory.catlink span,
.wpfd-container .wpfd-subcategories a.wpfdcategory.catlink span,
.wpfd-content .wpfd-subcategories a.wpfdcategory.catlink span{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* ======================
   Tabs in Produkten
====================== */

/* Aktiver Tab */
.vc_tta-color-white.vc_tta-style-modern .vc_tta-tab.vc_active > a {
    background-color: #F1F2F3 !important;
    border-color: #E9E9E9 !important;
    color: #2c2c2c !important;
}

.vc_tta-color-white.vc_tta-style-modern .vc_tta-tab > a {
    border-color: #E9E9E9 !important;
}

.vc_tta.vc_tta-style-modern .vc_tta-tabs-list {
    border-bottom: none !important;
}

/* Mobile Panels (Grundzustand) */
.vc_tta-color-white.vc_tta-style-modern .vc_tta-panel-heading {
    background-color: #ffffff;
    border-color: #E9E9E9 !important;
}

/* Mobile Titel-Link */
.vc_tta-color-white.vc_tta-style-modern .vc_tta-panel-title a {
    color: #2c2c2c !important;
}

/* Aktives Panel (geöffnet) */
.vc_tta-color-white.vc_tta-style-modern .vc_tta-panel.vc_active .vc_tta-panel-heading {
    background-color: #F1F2F3 !important;
    border-color: #E9E9E9 !important;
}

/* ========================================
   Button in Suchergebnissen ausblenden
======================================== */

/* TheGem – View All Button in normalen Suchergebnissen entfernen */
a.view-all.gem-button{
  display: none !important;
}