/*
Theme Name: Twenty Seventeen Child Buchholz Hockey
Theme URI: https://buchholzhockey.de/
Description: Child Theme für Buchholz Hockey auf Basis von Twenty Seventeen
Author: Sebastian Gerlich
Template: twentyseventeen
Version: 1.0
Text Domain: twentyseventeen-child-buchholzhockey
*/

/* =========================
   Große Trennerbilder
========================= */

.twentyseventeen-panel .panel-image {
  display: block;
  height: 72vh;
  min-height: 420px;
  max-height: 920px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.panel-content {
  position: relative;
  z-index: 2;
  background: #f6f6f6;
}

@media (max-width: 767px) {
  .twentyseventeen-panel .panel-image {
    height: 40vh;
    min-height: 220px;
  }
}

/* =========================
   Frontpage Headline
========================= */

.panel-content .wrap .entry-header {
  margin-bottom: 24px;
}

.panel-content .wrap .entry-title {
  letter-spacing: 0.08em;
}

/* =========================
   News Section
========================= */

.bh-news-section {
  margin-top: 28px;
}

.bh-news-section__desktop {
  display: block;
}

.bh-news-section__mobile {
  display: none;
}

.bh-news-section__footer {
  margin-top: 20px;
  text-align: center;
}

/* =========================
   Hero Slider Desktop
========================= */

.bh-news-hero {
  margin-bottom: 28px;
}

.bh-news-hero-swiper,
.bh-news-mobile-swiper {
  position: relative;
  overflow: hidden;
}

.bh-news-hero-swiper {
  padding: 0 72px 50px;
}

.bh-news-mobile-swiper {
  padding: 0 8px 48px;
}

.bh-news-hero-swiper .swiper-slide,
.bh-news-mobile-swiper .swiper-slide {
  width: 100% !important;
  box-sizing: border-box;
}

/* =========================
   Grid Desktop
========================= */

.bh-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* =========================
   Cards
========================= */

.bh-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
}

.bh-news-card__image {
  display: block;
  overflow: hidden;
  background: #ececec;
  flex: 0 0 auto;
}

.bh-news-card--hero .bh-news-card__image {
  aspect-ratio: 16 / 8.8;
}

.bh-news-card--grid .bh-news-card__image,
.bh-news-card--mobile .bh-news-card__image {
  aspect-ratio: 16 / 10;
}

.bh-news-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.bh-news-card__placeholder {
  min-height: 220px;
  background: #ececec;
}

.bh-news-card__content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 20px 20px;
  min-height: 0;
}

.bh-news-card__tag {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1eded;
  color: #6c2327;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bh-news-card__meta {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.bh-news-card__title {
  margin: 0 0 10px;
  line-height: 1.08;
  color: #171717;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.bh-news-card--hero .bh-news-card__title {
  font-size: 38px;
}

.bh-news-card--grid .bh-news-card__title,
.bh-news-card--mobile .bh-news-card__title {
  font-size: 22px;
}

.bh-news-card__title a {
  color: inherit;
  text-decoration: none;
}

.bh-news-card__title a:hover {
  color: #8d1f23;
}

.bh-news-card__excerpt {
  flex: 1 1 auto;
  margin-bottom: 0;
  color: #666;
  line-height: 1.62;
}

.bh-news-card--hero .bh-news-card__excerpt {
  font-size: 17px;
}

.bh-news-card--grid .bh-news-card__excerpt,
.bh-news-card--mobile .bh-news-card__excerpt {
  font-size: 14px;
  margin-bottom: 14px;
}

/* =========================
   Clamp
========================= */

.bh-news-card__title,
.bh-news-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bh-news-card--hero .bh-news-card__title {
  -webkit-line-clamp: 2;
}

.bh-news-card--grid .bh-news-card__title,
.bh-news-card--mobile .bh-news-card__title {
  -webkit-line-clamp: 2;
}

.bh-news-card--hero .bh-news-card__excerpt {
  -webkit-line-clamp: 3;
}

.bh-news-card--grid .bh-news-card__excerpt,
.bh-news-card--mobile .bh-news-card__excerpt {
  -webkit-line-clamp: 3;
}

/* =========================
   Buttons
========================= */

.bh-news-card__link,
.bh-news-archive-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s ease;
}

.bh-news-card__link {
  background: transparent;
  color: #111;
  border: 1px solid #111;
}

.bh-news-card__link:hover {
  background: #111;
  color: #fff;
}

.bh-news-archive-button {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #111;
  padding: 0 26px;
}

.bh-news-archive-button:hover {
  background: #fff !important;
  color: #111 !important;
}

/* =========================
   Navigation / Dots
========================= */

.bh-news-hero-swiper .swiper-button-prev,
.bh-news-hero-swiper .swiper-button-next,
.bh-news-mobile-swiper .swiper-button-prev,
.bh-news-mobile-swiper .swiper-button-next {
  width: 46px;
  height: 46px;
  top: 50%;
  margin-top: -23px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.08);
  color: #222;
  z-index: 20;
}

.bh-news-hero-swiper .swiper-button-prev {
  left: 12px;
}

.bh-news-hero-swiper .swiper-button-next {
  right: 12px;
}

.bh-news-mobile-swiper .swiper-button-prev {
  left: 0;
}

.bh-news-mobile-swiper .swiper-button-next {
  right: 0;
}

.bh-news-hero-swiper .swiper-button-prev:after,
.bh-news-hero-swiper .swiper-button-next:after,
.bh-news-mobile-swiper .swiper-button-prev:after,
.bh-news-mobile-swiper .swiper-button-next:after {
  font-size: 14px;
  font-weight: 700;
}

.bh-news-hero-swiper .swiper-pagination,
.bh-news-mobile-swiper .swiper-pagination {
  bottom: 6px !important;
}

.bh-news-hero-swiper .swiper-pagination-bullet,
.bh-news-mobile-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d1d1d1;
  opacity: 1;
}

.bh-news-hero-swiper .swiper-pagination-bullet-active,
.bh-news-mobile-swiper .swiper-pagination-bullet-active {
  background: #111;
}

/* =========================
   Tablet
========================= */

@media (max-width: 1100px) {
  .bh-news-hero-swiper {
    padding: 0 56px 48px;
  }

  .bh-news-card--hero .bh-news-card__title {
    font-size: 30px;
  }

  .bh-news-grid {
    gap: 18px;
  }

  .bh-news-card--grid .bh-news-card__title {
    font-size: 20px;
  }
}

/* =========================
   Mobile
========================= */

@media (max-width: 767px) {
  .bh-news-section__desktop {
    display: none;
  }

  .bh-news-section__mobile {
    display: block;
  }

  .bh-news-card {
    border-radius: 8px;
  }

  .bh-news-card__content {
    padding: 16px 16px 18px;
  }

  .bh-news-card__title,
  .bh-news-card--hero .bh-news-card__title,
  .bh-news-card--grid .bh-news-card__title,
  .bh-news-card--mobile .bh-news-card__title {
    font-size: 24px;
  }

  .bh-news-card__excerpt,
  .bh-news-card--hero .bh-news-card__excerpt,
  .bh-news-card--grid .bh-news-card__excerpt,
  .bh-news-card--mobile .bh-news-card__excerpt {
    font-size: 14px;
  }

  .bh-news-card--mobile .bh-news-card__image {
    aspect-ratio: 16 / 10;
  }

  .bh-news-mobile-swiper .swiper-button-prev,
  .bh-news-mobile-swiper .swiper-button-next {
    width: 38px;
    height: 38px;
    margin-top: -19px;
  }

  .bh-news-mobile-swiper .swiper-button-prev:after,
  .bh-news-mobile-swiper .swiper-button-next:after {
    font-size: 12px;
  }

  .bh-news-archive-button {
    width: 100%;
    max-width: 280px;
  }
}