/**
Theme Name: Astra Child (Hotel-Silber)
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child-hotel-silber
Template: astra
*/
:root {
  --primary-color: #bd0926;
  --primary-gray: #aaaaaa;
  --ast-global-color-7: #e3e7eb;
  --wp--custom--ast-default-block-left-padding: 0;
  --small-spacer: 5px;
  --tec-font-family-sans-serif: "Barlow Semi Condensed", sans-serif;
}

/*
* Header
*/
#ast-desktop-header {
  .ast-site-identity {
    padding-bottom: 0;
  }
}

.external-event::before {
  content: "Externe Veranstaltung";
  color:var(--primary-color);
}
.external-event {
  background-color: lightgrey;
  padding: 20px 30px;
}

.tribe-block__organizer__details:before {
  content: "Veranstalter:"
}
.ast-desktop .ast-primary-header-bar {
  .site-primary-header-wrap {
    min-height: 50px;

    .main-header-menu > .menu-item {
      line-height: 50px;
    }
  }
}

/*Make Header Sticky*/
.df_fixed_header .site-header{
  position: fixed !important;
  top: 0;
  width: 100%;

  .site-logo-img img {
    width: 250px;
    height: auto;
  }

}

/*Adjust Content Padding*/
.df_fixed_header .site-content {
  padding-top: 170px;
}

@media (min-width: 980px) {
  .df_fixed_header .site-content{
    padding-top: 100px;
  }
  /*Stick the Off-Canvas Navigation Menu - Adjust Top Margin for your Layout*/
  .df_fixed_header 	.site-content .main-navigation {
    position: fixed;
    margin-top: 0px;
  }
}

@media (min-width: 767px) {
  .df_fixed_header .site-content {
    padding-top: 150px;
  }
  /*Stick the Off-Canvas Navigation Menu - Adjust Top Margin for your Layout*/
  .df_fixed_header 	.site-content .main-navigation {
    position: fixed;
    margin-top: 60px;
  }
}

/*******************
* Content
********************/

.ast-plain-container.ast-no-sidebar #primary {
  margin-top: 30px;
}
#content {
  padding-top: var(--small-spacer);
}

.entry-content a {
    color: var(--primary-color);
}

.sp-col-1 {
  &.wp-block-column p {
    font-size: var(--tec-font-size-4);
  }
  .tribe-common {
    img {
      border: #70655c solid 1px;
    }
    header {
      h2.tribe-events-widget-events-list__header-title {
        font-family: "Barlow Semi Condensed", sans-serif;
        font-size: var(--tec-font-size-6);
        font-weight: var(--tec-font-weight-bold);
      }
    }
    .tribe-common-h7 a {
      color: var(--primary-color);
      text-decoration: underline;
      font-family: "Barlow Semi Condensed", sans-serif;
      font-size: var(--tec-font-size-5);
    }
  }

  .tribe-events-eventinformation {
    display:flex;

    div:first-child {
      flex: 0.5;
    }

    div:nth-child(2) {
      flex:2;
      margin-left:var(--small-spacer);
    }
  }

  .tribe-events-widget-events-list__view-more a{
    font-size: var(--tec-font-size-4);
  }

  .tribe-events-calendar-list__event-description p {
    font-size: var(--tec-font-size-4);
  }

  .post-loop-hp li:last-child hr{
    display: none;
  }
}

.is-layout-flow > figure.alignleft {
  margin-right: 1em;

}

.sp-col-2 {
  background-color: var(--wp--preset--color--cyan-bluish-gray);
  padding: var(--small-spacer);

  p {
    line-height: 25px;
  }

  .wp-block-post-excerpt__excerpt {
    font-size: var(--tec-font-size-4);
  }
  .tribe-common {
    .tribe-common-h7,
    p {
      font-size:  var(--tec-font-size-4);
    }
  }
}

.sp-col-3 {
  background-color: var(--ast-global-color-7);
  padding: var(--small-spacer);

  p {
    line-height: 24px;
  }
}

#tribe-events-content {
  .tribe-events-back a,
  .tribe-events-sub-nav a{
    color: var(--primary-color);
  }

  .tribe-events-c-subscribe-dropdown__button {
    color: var(--primary-color);
    border-color: var(--primary-color);
  }
}

h3.wp-block-heading + p,
h4.wp-block-heading + p {
  margin-top: var(--small-spacer);
}

.entry-content ul {
  padding-left: 0;
}

.ast-article-single .entry-content {
  p + ul { margin-top: -20px; }
  ul {
    padding-left: 25px;
  }
  .sp-col-2 {
    ul {
      padding-left: 10px;
    }
  }
}

.page-template-homepage {
  .ast-breadcrumbs {
    display: none;
  }

  .tribe-events-widget-events-list {
    padding: var(--small-spacer)
  }

  .tribe-events-widget .tribe-events-widget-events-list__header {
    margin-bottom: var(--small-spacer);
  }

  .tribe-events-widget-events-list__event-datetime {
    font-size: var(--tec-font-size-2);
  }
  .tribe-events-widget-events-list__event-datetime::after {
    content: "Uhr"
  }

  header h3.tribe-events-widget-events-list__event-title {
    line-height:  var(--tec-font-size-4);
    margin-bottom: var(--small-spacer);
    a {
      transition: color 300ms;
    }
    a:hover {
      border-bottom: none;
      color: var(--primary-color);
    }
  }

  .tribe-events-widget-events-list__event-details {
    .tribe-events-c-read-more {
      border: 1px solid black;
      border-radius: 10px;
      display: inline;
      padding: var(--small-spacer);

      a {
        border-bottom: none;
        transition: color 300ms;
      }

      a:hover {
        color: var(--primary-color);
      }
    }
  }
}
.ast-breadcrumbs {
  margin-bottom: calc(var(--small-spacer) * 2);
  a {
    color: var(--primary-color);
  }
}

/* --- 3. Menüebene sichtbar machen --- */
/* Grundstil: Verstecke tiefere Ebenen */
.main-header-menu .sub-menu .sub-menu {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

/* Zeige 3. Ebene beim Hover an */
.main-header-menu .sub-menu li:hover > .sub-menu {
  top: 10%; /* öffnet nach unten statt zur Seite */
  left: 0;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Optional: Stil für besseres Aussehen */
.main-header-menu .sub-menu .sub-menu {
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 999;
  width: 300px;
}

/* Optional: Abstände & Lesbarkeit */
.main-header-menu .sub-menu .sub-menu a {
  padding: 8px 16px;
  font-size: 14px;
  line-height: 1.4;
}

.main-header-menu .sub-menu .menu-item.focus>.sub-menu, .main-header-menu .sub-menu .menu-item:hover>.sub-menu {
  left: 13%;
  right: auto;
}

