/* ==========================================================
   SEM – Frontend Styles
   ========================================================== */

/* === Event Cards === */
.sem-event-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sem-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* === Image Wrapper === */
.sem-event-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.sem-event-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Region Overlay === */
.sem-region-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  min-height: 45px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  padding: 10px 16px 8px 16px;
  font-weight: 600;
  font-size: 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
}

/* === Card Body (Textbereich) === */
.sem-event-content {
  padding: 16px;
}

.sem-event-content p {
  margin: 4px 0;
  color: #444;
  line-height: 1.4;
}

.sem-event-content strong {
  color: #111;
}

/* === Buttons / Links === */
.sem-event-card a.button,
.sem-event-card a.btn {
  display: inline-block;
  background: #6b3eff;
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sem-event-card a.button:hover,
.sem-event-card a.btn:hover {
  background: #4a2ecc;
}

/* === Grid Layout (optional) === */
.sem-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* === Event Detail View === */
/* ========================= */
/* ========================= */
/* SECTION: Fullwidth Hintergrund, aber Inhalt im Container */
.sem-event-hero {
    position: relative;
    width: 100vw !important;                 /* volle Browserbreite */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 450px;                           /* bei Bedarf 500px */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 0;
    margin-bottom: 40px;
}

/* Dunkler Overlay nur über dem Hero */
.sem-event-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Innerer Bereich: wieder normale Seitenbreite wie der Rest der Seite */
.sem-event-hero-inner {
    position: relative;
    z-index: 2;                              /* über Overlay */
    max-width: 1140px;                       /* an deine Seitenbreite anpassen */
    margin: 0 auto;
    height: 100%;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    column-gap: 40px;
    align-items: center;
}

/* Linker Textbereich */
.sem-event-hero-left {
    color: #ffffff;
}

/* Rechter Bereich (Trainer-Bild) */
.sem-event-hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Rundes Trainer-PNG */
.sem-event-hero-trainer-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
}

/* Alle Texte im Hero weiß */
.sem-event-hero .sem-event-title,
.sem-event-hero .sem-event-longtitle,
.sem-event-hero .sem-event-region-date,
.sem-event-hero .sem-event-trainer-line,
.sem-event-hero .sem-event-location-line,
.sem-event-hero .sem-event-prereq {
    color: #ffffff !important;
}
/* Hero Typografie + CTA-Links wieder als Buttons */
.single-sem_event .sem-event-title{
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 6px 0;
}

.single-sem_event .sem-event-longtitle{
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 14px 0;
}

.single-sem_event .sem-event-region-date,
.single-sem_event .sem-event-trainer-line,
.single-sem_event .sem-event-location-line,
.single-sem_event .sem-event-prereq{
  font-size: 18px;
  line-height: 1.35;
}

/* CTA im Hero (falls vorhanden) */
.single-sem_event .sem-hero-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.single-sem_event a.sem-hero-cta--book,
.single-sem_event a.sem-hero-cta--info,
.single-sem_event a.sem-catlink-cta,
.single-sem_event a.sem-ics-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
}

/* “Ausführliche Seminar Beschreibung” wieder als echter Button */
.single-sem_event a.sem-catlink-cta{
  background: #6b3eff;
  color: #fff !important;
}

.single-sem_event a.sem-catlink-cta:hover{
  background: #4a2ecc;
}


/* Mobile: untereinander statt nebeneinander */
@media (max-width: 768px) {
    .sem-event-hero {
        height: auto;
        padding-bottom: 30px;
    }

    .sem-event-hero-inner {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .sem-event-hero-right {
        justify-content: flex-start;
    }

    .sem-event-hero-trainer-img {
        width: 160px;
        height: 160px;
    }
}

/* Newsletter bei free booking Form */
/* Newsletter Opt-in – Grundblock */
.sem-booking-newsletter-optin {
    margin-top: 20px;
}

/* Label kompakt halten */
.sem-booking-newsletter-optin label {
    display: block;
    cursor: pointer;
}

/* Erste Zeile: „Ja, ich möchte …“ */
.sem-optin-headline {
    display: block;
    font-weight: 700;
    font-size: 130%; /* +30% */
    line-height: 1.2;
    margin: 0;
}

/* Zweite Zeile + Erklärung */
.sem-optin-text {
    display: block;
    font-size: 70%; /* -30% */
    line-height: 1.4;
    margin: 2px 0 0 0;
    color: #333;
}

/* Tracking-Hinweis direkt anschließend */
.sem-optin-tracking-hint {
    font-size: 70%;
    line-height: 1.4;
    margin: 4px 0 0 0;
    color: #555;
}

/* Datenschutz-Link ruhig halten */
.sem-optin-tracking-hint a {
    color: inherit;
    text-decoration: underline;
}
/* SEM Newsletter Opt-in – exakt nach Vorgabe */
.sem-booking-newsletter-optin .sem-optin-label{
  display:block;
  cursor:pointer;
}

/* 1) Headline: deutlich größer (+30%) + hervorgehoben, nur hier fett */
.sem-booking-newsletter-optin .sem-optin-headline{
  display:block;
  font-weight:700;
  font-size:130%;
  line-height:1.15;
  margin:0;               /* kein Abstand nach unten */
}

/* 2) Alles darunter: NICHT fett + ca. 30% kleiner */
.sem-booking-newsletter-optin .sem-optin-body{
  display:block;
  font-weight:400 !important; /* überschreibt Theme-Bold */
  font-size:70%;
  line-height:1.45;
  margin:2px 0 0 0;          /* praktisch kein Zeilenabstand zur Headline */
}

/* Falls Theme irgendwo strong/b auf den Label-Text setzt: hart zurücksetzen */
.sem-booking-newsletter-optin .sem-optin-body strong,
.sem-booking-newsletter-optin .sem-optin-body b{
  font-weight:400 !important;
}

/* Link ruhig, aber klar */
.sem-booking-newsletter-optin .sem-optin-privacy-link{
  font-weight:400;
  text-decoration:underline;
}

.sem-booking-newsletter-optin .sem-optin-label{
  display:grid;
  grid-template-columns: 22px 1fr;
  column-gap:10px;
  align-items:start;
}

.sem-booking-newsletter-optin input[type="checkbox"]{
  margin-top:4px;
}

.sem-booking-newsletter-optin .sem-optin-headline{
  font-size:130%;
  font-weight:700;
  line-height:1.2;
  margin:0;
}

.sem-booking-newsletter-optin .sem-optin-body{
  font-size:70%;
  font-weight:400;
  line-height:1.45;
  margin-top:2px;
}

.sem-booking-newsletter-optin .sem-optin-body strong,
.sem-booking-newsletter-optin .sem-optin-body b{
  font-weight:400;
}
/* Opt-in Block auffälliger, aber seriös */
.sem-booking-newsletter-optin{
  background:#f7f4fb;                 /* sehr helles Violett */
  border-left:4px solid #5b3aa4;       /* Akzentfarbe */
  padding:14px 16px;
  border-radius:6px;
}

/* Checkbox deutlich sichtbarer */
.sem-booking-newsletter-optin input[type="checkbox"]{
  width:18px;
  height:18px;
  accent-color:#5b3aa4;                /* moderne Browser */
  cursor:pointer;
}

/* Label klickfreundlicher */
.sem-booking-newsletter-optin .sem-optin-label{
  align-items:flex-start;
}
/* zusätzlich Newsletter free form */

.sem-booking-newsletter-optin{
  position:relative;
}

.sem-booking-newsletter-optin::before{
  content:"Optional";
  position:absolute;
  top:-10px;
  left:12px;
  font-size:11px;
  background:#fff;
  padding:0 6px;
  color:#5b3aa4;
  font-weight:600;
}
.sem-booking-decision {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  margin-top: 60px;
}

.sem-cat-brand {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #888;
  margin-bottom: 8px;
}

.sem-booking-title strong {
  display: block;
  font-size: 26px;
}

.sem-booking-title span {
  font-size: 20px;
  color: #555;
}

.sem-booking-info {
  margin: 24px 0;
  font-size: 16px;
}

.sem-trainer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sem-trainer img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.sem-price-box {
  margin: 30px 0;
}

.sem-price-current {
  font-size: 40px;
  font-weight: 700;
}

.sem-price-original {
  text-decoration: line-through;
  color: #999;
}

.sem-price-free {
  font-size: 42px;
  font-weight: 800;
  color: #1a8f3a;
}

.sem-price-badge {
  display: inline-block;
  background: #ffe9c6;
  color: #8a4b00;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 8px;
}

.sem-countdown {
  background: #fff3e0;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: center;
}

.sem-cta-button {
  display: block;
  background: #e53935;
  color: #fff;
  padding: 18px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  border-radius: 14px;
}

.sem-cta-button:hover {
  background: #c62828;
}

.sem-termininfo {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
}

.sem-trust {
  margin-top: 30px;
  font-size: 14px;
  color: #666;
}

/* Abstand zwischen Newsletter-Kasten und Submit-Button */
.sem-booking-newsletter-optin{
  margin-bottom:16px; /* bei Bedarf 12–24px feinjustieren */
}
/* SEM Booking CTA – stark & groß */
.single-sem_event .sem-booking-decision .sem-cta .sem-cta-button,
.single-sem_event .sem-booking-decision .sem-cta a.button.sem-cta-button{
  display:block !important;
  width:100% !important;
  background:#f79a0e !important;
  color:#fff !important;
  padding:18px 22px !important;
  font-size:20px !important;
  font-weight:700 !important;
  text-align:center !important;
  border-radius:14px !important;
  line-height:1.2 !important;
  box-shadow:0 12px 26px rgba(0,0,0,.18) !important;
  border:0 !important;
}
/* Preis + CTA als Entscheidungseinheit */
.single-sem_event .sem-booking-decision .sem-price-box{
  margin-bottom:14px !important;
}

.single-sem_event .sem-booking-decision .sem-price-box > div{
  font-size:1.25rem !important;
}

.single-sem_event .sem-booking-decision .sem-cta{
  margin-top:6px !important;
}
.single-sem_event .sem-booking-decision .sem-countdown{
  margin: 12px 0 14px 0 !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: #fff3e0 !important;
  text-align: center !important;
  font-weight: 600 !important;
}

.single-sem_event .sem-booking-decision .sem-cta .sem-cta-button:hover,
.single-sem_event .sem-booking-decision .sem-cta a.button.sem-cta-button:hover{
  background:#c62828 !important;
}

/* Event Detail Ansicht */

/* ========== Sitewide Sections ========== */

/* Obere Zeile – Hauptfarbe mit Dreieck */
.sitewide-primary-triangle {
    position: relative;
    background: var(--primary-color);
    padding: 100px 0 80px;
    overflow: hidden;
}

/* Dreieck oben */
.sitewide-primary-triangle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 40px solid #fff;
}

/* Untere Zeile – dunkles Blau */
.sitewide-darkblue {
    background: #0b1f3a; /* dunkles Blau */
    padding: 80px 0;
}

/* Container bleibt sauber zentriert */
.sitewide-primary-triangle .container,
.sitewide-darkblue .container {
    position: relative;
    z-index: 2;
}
.sem-evorg__container{max-width:900px;margin:0 auto;padding:30px 20px;}
.sem-evorg__list{margin:20px 0;padding-left:18px;}
.sem-evorg__item{margin:6px 0;}

