/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

html, body {
}


header{
    position: fixed !important;
	width:100% !important;
    left: 0 !important;
    top: 0px !important;
	z-index:999 !important;
}

.open-location-popup {
	cursor:pointer !important;
}




/* ===============================
   Grid wrapper
================================= */
.kurse-overview{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* Responsive */
@media (max-width: 1024px){
  .kurse-overview{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px){
  .kurse-overview{
    grid-template-columns: 1fr;
  }
}

/* ===============================
   Team & Kurse für Lehrer Grid Styles
================================= */

.lehrer-kurse-grid,
.team-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px !important; 
}


/* ===============================
   Card Base
================================= */
.team-card,
.kurs-card,
.kurse-overview .kurs-card{
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: 380px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

/* ===============================
   TEAM Overlay
================================= */
.team-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.18) 0%,
    rgba(0,0,0,.55) 77%,
    rgba(0,0,0,.72) 100%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity .35s ease;
}

.team-card:hover::before{
  opacity: .88;
}

/* ===============================
   KURS Overlay
================================= */
.kurs-card::before,
.kurse-overview .kurs-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.24) 0%,
    rgba(0,0,0,.55) 77%,
    rgba(0,0,0,.88) 100%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity .35s ease;
}

.kurs-card:hover::before,
.kurse-overview .kurs-card:hover::before{
  opacity: .66;
}

/* ===============================
   Team Card Hover Label
================================= */
.team-card::after{
  content: "Zu Profil";
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: translateX(-24px);
  transition: transform .35s ease, opacity .35s ease;
  pointer-events: none;
}

.team-card:hover::after{
  opacity: 1;
  transform: translateX(0);
}

/* ===============================
   Kurs Card (Overview spezifisch)
================================= */
.kurse-overview .kurs-card{
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

/* ===============================
   Media Images
================================= */
.kurse-overview .kurs-card__media,
.kurs-card__media,
.team-card__media{
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.kurse-overview .kurs-card__media img,
.kurs-card__media img,
.team-card__media img,
.team-card__image img{
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

/* slight zoom on hover */
.team-card:hover .team-card__media img,
.kurs-card:hover .kurs-card__media img,
.kurse-overview .kurs-card:hover .kurs-card__media img,
.team-card:hover .team-card__image img{
  transform: scale(1.05);
}

/* ===============================
   Content above image
================================= */
.kurse-overview .kurs-card__title,
.kurse-overview .kurs-card__desc,
.kurse-overview .kurs-card__meta,
.kurse-overview .kurs-card__actions,
.kurs-card__title,
.kurs-card__desc,
.kurs-card__meta,
.kurs-card__actions,
.team-card__title,
.team-card__desc,
.team-card__actions{
  position: relative;
  z-index: 2;
  color: #fff;
}

/* move team content slightly up on hover */
.team-card__title,
.team-card__desc,
.team-card__actions{
  transition: transform .35s ease;
}

.team-card:hover .team-card__title,
.team-card:hover .team-card__desc,
.team-card:hover .team-card__actions{
  transform: translateY(-10px);
}

/* ===============================
   Titles
================================= */
.kurse-overview .kurs-card__title,
.kurs-card__title{
  margin: 16px 16px 8px;
  font-size: 18px;
  line-height: 1.3;
}

.team-card__title{
  margin: 16px 16px 8px;
}

.kurse-overview .kurs-card__title a,
.kurs-card__title a,
.team-card__title a{
  font-size: 22px;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
}

/* ===============================
   Text / Desc
================================= */
.kurse-overview .kurs-card__desc,
.kurs-card__desc,
.team-card__desc{
  margin: 0 16px 12px;
  color: #fff;
  width: 28ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===============================
   Meta & Actions
================================= */
.kurse-overview .kurs-card__meta,
.kurs-card__meta{
  margin: 0 16px 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: #fff;
}

.kurse-overview .kurs-card__meta li,
.kurs-card__meta li{
  font-weight: bold;
}

.kurse-overview .kurs-card__actions,
.kurs-card__actions,
.team-card__actions{
  margin-top: auto;
  padding: 0 16px 16px;
	width:max-content;
}

.kurse-overview .kurs-card__btn,
.kurs-card__btn,
.team-card__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 24px;
  border: 1px solid rgba(255,255,255,.35);
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
  transition: all 300ms ease;
  font-weight: bold;
}

.kurse-overview .kurs-card__btn:hover,
.kurs-card__btn:hover,
.team-card__btn:hover{
  border-color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.14);
}





/* ===============================
   Blog Overview 
================================= */

.blog-overview{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Card */
.blog-card{
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: 440px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  isolation: isolate;
}

/* Overlay */
.blog-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.18) 0%,
    rgba(0,0,0,.55) 60%,
    rgba(0,0,0,.88) 82%,
    rgba(0,0,0,.96) 100%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity .35s ease;
}

.blog-card:hover::before{
  opacity: .9;
}

/* Media */
.blog-card__media{
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.blog-card__media img,
.blog-card__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.blog-card:hover .blog-card__media img,
.blog-card:hover .blog-card__img{
  transform: scale(1.05);
}

/* Content */
.blog-card__title,
.blog-card__excerpt,
.blog-card__actions{
  position: relative;
  z-index: 2;
  color: #fff;
}

.blog-card__title{
  margin: 18px 18px 10px;
  font-size: 16px;
  line-height: 1.3;
}

.blog-card__title a{
  font-size: 18px;
  font-weight:600;
  line-height: 1.15;
  color: #fff;
  text-decoration: none;
}

/* Excerpt */
.blog-card__excerpt{
  margin: 0 18px 14px;
  color: rgba(255,255,255,.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
  max-width: 30ch;
  font-size: 16px;
}

/* Button area */
.blog-card__actions{
  margin-top: auto;
  padding: 0 18px 24px 18px;
  width: max-content;
}

.blog-card__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 22px;
  border: 1px solid rgba(255,255,255,.38);
  text-decoration: none;
  color: #fff !important;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(4px);
  transition: border-color 300ms ease, background 300ms ease, transform 300ms ease;
  font-weight: 700;
}

.blog-card__btn:hover,
.blog-card__btn:focus{
  color: #fff !important;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.68);
  transform: translateY(-1px);
}

.blog-card__btn:visited,
.blog-card__btn:active{
  color: #fff !important;
}