/* =========================
   ROOT COLORS
========================= */
:root {
  --colorOrange: #f08944;
  --colorGreen: #55a685;
  --colorRed:  #a63320;
  --colorBlue: #bbdbce;
}

/* =========================
   GLOBAL CONTAINERS
========================= */
.onlineContainer,
.mainContainer,
.detailListeContainer {
  width: 100%;
  position: relative; /* for sticky elements */
  overflow: visible;
}

.detailContainer {
  display: flex;
  max-width: 100%;
  padding: clamp(20px, 5vw, 50px);
  margin-top: 20px;
  color: black;
  background: white;
  border-radius: 10px;
}

.content {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 40px auto;
  gap: 40px;
  padding: 0 20px;
}



.detailHeader {
  width: 100%;
  min-height: 350px;
  margin-bottom: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.headerInner {
  width: 100%;
  display: flex;
  flex-direction: row;
  padding-right: 50px;
  overflow: hidden;
  border-radius: 8px;
  background: white;
}

.headerImg {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  background: #a63320;
}

.headerDetails {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: start;
  padding: 20px;
  flex: 1;
  order: 1;
}

.headerFooter {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

/* =========================
   REGISTRATION CARD
========================= */
.registration-card {
  flex: 1 1 320px;

  padding: 0 20px 20px 20px;

  position: sticky;
  top: 20px;
  height: fit-content;

  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Title */
.registration-card h4 {
  margin: 0;
  color: var(--colorRed);
  font-family: 'chau-philomene-one-regular', sans-serif;
}

/* BUTTON ROW */
.registration-card .button-row {
  display: flex;
  gap: 10px;
}

.beschreibungBody
{
  color: black;
}
.beschreibungBody h2 {
  font-size: 16px;
  margin: 0;
}

.registration-card a, #jetztAnmelden {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 0.95rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Primary CTA */
.registration-card .register {
  background-color: var(--colorRed);
  color: white;
}

.registration-card .register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.mobileStickyContainer .register {
    background-color: var(--colorRed);
      padding: 12px 36px;
      width: 100%;
font-size: 16px;
        border-radius: 16px;
  color: white;
}

.mobileStickyContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;

}

/* Secondary CTA */
.registration-card .pdf {
  background-color: white;
  border: 2px solid var(--colorRed);
  color: var(--colorRed);
}

.registration-card .pdf:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 14px rgba(0,0,0,0.15);

}

/* HIGHLIGHT GRID */
/* HIGHLIGHT STACK (NOT GRID) */
.highlight-boxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.highlight {
  background: #f0f8f5; /* very soft mint tone */
  color: #222;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 300;
  line-height: 1.2;

  display: flex;

  justify-content: flex-start; /* LEFT aligned = more readable */
  text-align: left;

  width: 100%;
  min-height: 56px;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.highlight span {
  font-weight: 700;
  margin-right: 12px;
  min-width: 22px;
}

.highlight p {
  text-align: start;
  margin: 0;
font-size: 15px;
}

.bigg {
  letter-spacing: 0.1rem;
  font-weight: 600;
  font-size: 16px;
}

/* AMPEL */
.ampelHead {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px;
  border-radius: 10px;
  background-color: var(--colorBlue);
}

/* =========================
   TRAINER CARD
========================= */
/* =========================
   TEACHER CONTAINER
========================= */
.detailTeacherContainer {
  margin-top: 40px;
}

/* =========================
   TEACHER CARD
========================= */
.detailTeacherInner {
  display: flex;
  gap: 24px;
  align-items: flex-start;

  background: #fff;
  padding: 10px;
  border-radius: 16px;
  margin-bottom: 24px;

  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.detailTeacherInner:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* =========================
   LEFT SIDE (IMAGE)
========================= */
.detailTeacherLeft {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* IMAGE WRAPPER */
.imgWrapTeacher {
  width: 140px;
  height: 146px;
  border-radius: 16px; /* softer than circle */
  overflow: hidden;

  display: flex;
  align-items:start;
  justify-content:flex-start;

}


.imgWrapTeacher img
{
    width: 100%;
  height: 100%;
  object-fit: cover !important; /* IMPORTANT: no distortion */
    object-position: top;

}

/* optional: website */
.detailTeacherLeft p {
  font-size: 0.8rem;
  text-align: center;
  word-break: break-word;
  margin: 0;
}

/* =========================
   RIGHT SIDE (CONTENT)
========================= */
.detailTeacherRight {
  flex: 1;
}

/* NAME */
.teacherName {
  margin: 0 0 8px;
  color: var(--colorGreen);
  line-height: 1.2;
}

/* BIO */
.detailTeacherRight p {
  margin: 0;
  line-height: 1.5;
  color: #444;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .detailTeacherInner {
    flex-direction: column;
    align-items: center;

  }

  .detailTeacherRight {
    text-align: center;
  }

  .imgWrapTeacher {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .registration-card {
padding: 10px;
  }
}

/* =========================
   DESCRIPTION
========================= */
.description {
  flex: 2 1 600px;
  background-color: white;
  color: black;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.description h3 {
  color: var(--colorGreen);
  margin-bottom: 12px;
}

.description p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: black;
}

.description ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.description ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.description ul.goals li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--colorOrange);
}

.description ul.methods li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--colorGreen);
}

/* =========================
   DOT AMPEL
========================= */
.dotsBin {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: #888;
}

.dotBin {
  width: 16px;
  height: 16px;
  background: #DEDEDE;
  border-radius: 50%;
}

.ampelBottom
{

  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dotBinS {
  width: 8px;
  height: 8px;
  background: #DEDEDE;
  border-radius: 50%;
}
.ain {
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 10px;
  gap: 4px;
}

.dotBin.activegreen, .dotBinS.activegreen  { background: #025f0f; }
.dotBin.activered, .dotBinS.activered { background: #c8102e; }
.dotBin.activeyellow, .dotBinS.activeyellow { background: #ffee00; }

.ampel {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: row !important;
}

.ampelTop {
  display: flex;
  justify-content: space-around;
  flex-direction: row;
  gap: 26px;
  align-items: center;
}





/* =========================
   Hero Section Modern Clean
========================= */
.hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 2rem 2rem 2rem;
  color: #fff;
  font-family: 'chau-philomene-one-regular', sans-serif;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  overflow: hidden;
  width: 100%;
}

/* Topic Gradient Backgrounds */
.hero[data-topic-color="#cc4e00"] { background: linear-gradient(170deg, #cc4e00 0%, #cc4e00 75%);}
.hero[data-topic-color="#269775"] { background: linear-gradient(170deg, #269775 0%, #167d7f 75%); }
.hero[data-topic-color="#167d7f"] { background: linear-gradient(170deg, #167d7f 0%, #167d7f 75%); }
.hero[data-topic-color="#515389"] { background: linear-gradient(170deg, #515389 0%, #515389 75%); }
.hero[data-topic-color="#9d5977"] { background: linear-gradient(170deg, #9d5977 0%, #9d5977 75%); }
.hero[data-topic-color="#61c6de"] { background: linear-gradient(170deg, #61c6de 0%, #61c6de 75%); }
.hero[data-topic-color="#f9da82"] { background: linear-gradient(170deg, #f9da82 0%, #f9da82 75%); }
.hero[data-topic-color="#ffa51f"] { background: linear-gradient(170deg, #ffa51f 0%, #ffa51f 75%); }
.hero[data-topic-color="#4093a4"] { background: linear-gradient(170deg, #4093a4 0%, #4093a4 75%); }
.hero[data-topic-color="#f4b9b8"] { background: linear-gradient(170deg, #f4b9b8 0%, #f4b9b8 75%); }
.hero[data-topic-color="#6c87a1"] { background: linear-gradient(170deg, #6c87a1 0%, #6c87a1 75%); }
.hero[data-topic-color="#d1c2d9"] { background: linear-gradient(170deg, #d1c2d9 0%, #d1c2d9 75%); }
.hero[data-topic-color="#515389"] { background: linear-gradient(170deg, #515389 0%, #515389 75%,); }

/* Hero Content Wrapper */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 100%;

  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.iframeContainer {
  position: relative;
opacity: 0;
height: 0;
width: 0;
transition: all 0.5s ease;
  box-shadow: 0 16px 32px rgba(0,0,0,0.15);
max-width: 1280px;
background: white;
padding: 12px;

}


.iframeHeader {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;

}

.iframeCloseBtn {
  margin: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Layered Hero Image Container */
.hero-image-container {
  position: relative;
  width: 360px;
  height: 360px;
}

/* Background Accent Square */
.hero-image-bg {
  position: absolute;
  top: -15px;
  left: 15px;
  width: 360;
  height: 360px;
  background: rgba(255, 200, 150, 0.2);
  transform: rotate(6deg);
  border-radius: 16px;
  z-index: 0;
  transition: transform 0.4s ease;
}

/* Main Rotated Hero Image */
.hero-image-wrapper {

  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  transform: rotate(-5deg);
  box-shadow: 0 16px 32px rgba(0,0,0,0.15);
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
  background: white;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text Section */
.hero-text {
  flex: 1 1 400px;
  max-width: 800px;
  text-align: left;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 0;
  color: inherit;
}

.hero-text h2 {
  font-size: 1.2rem;
  font-weight: 400;
  color: white;
}

.hero-text span {
margin: 12px 0;
  font-weight: 600;
    font-size: 1.2rem;

}

/* CTA Buttons */
.hero-text .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-text .cta-buttons a, .hero-text .cta-buttons div {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-text .cta-buttons a:hover, .hero-text .cta-buttons div:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.hero-text .cta-buttons .primary {
  background-color: #fff;
  color: black;
}

.hero-text .cta-buttons .secondary {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
}

/* Responsive */
@media(max-width:900px){
  .hero {
      clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
      padding: 2rem 1rem 0rem;
  }

  .hero-content { flex-direction: column; text-align: center; gap:20px; }
  .hero-image-container { width: 200px; height: 200px; }
  .hero-image-bg { width: 210px; height: 210px; top:-10px; left:10px; transform:rotate(4deg); }
  .hero-image-wrapper { width:100%; height:auto; transform: rotate(-3deg); }
  .hero-text h1 { font-size: 1.6rem; }
  .hero-text h2 { font-size: 1rem; }
}



/* =========================





/* Overlay */
.modalOverlay {
  position: fixed;

  left: 0;
 top: 0;
  height: 100dvh;
  background: rgba(210, 210, 210, 0.85);
  backdrop-filter: blur(8px);

  width: 100vw;
padding-top: 120px;
  z-index: 999999; /* go nuclear vs WP */

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;

}

/* Active state */
.modalOverlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Container */
.iframeContainerN {
width: 100%;
max-width: 1280px ;

  background: white;
  border-radius: 16px;
height: calc(100% - 140px);
overflow: hidden;
  display: flex;
  flex-direction: column;  
padding: 0 0 60px 40px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

/* Scale animation */
.modalOverlay.active .iframeContainerN {
  transform: scale(1);
}

/* Header */
.iframeHeader {
  height: 50px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 15px;
  flex-shrink: 0;
}

/* Close button */
.iframeCloseBtn {
  cursor: pointer;
  font-size: 22px;
  color: white;
  transition: 0.2s;
}

.iframeCloseBtn:hover {
  transform: scale(1.2);
  color: red;
}

/* Iframe */
#iframeInner {
  width: 100%;
  height: 100%;
  border: none;
  flex-grow: 1;
  
}

/* Prevent body scroll when open */
body.modalOpen {
  overflow: hidden;
}



.datumContainer {
    width: 100%;
    padding: 20px;
    border-radius: 10px;
}


.wochentagS {
    border-top: 0;
    flex: 1;
    min-width: 80px;
}

.uhrezeitS {
     flex: 1;
    min-width: 80px;
}

.datumS {
    flex: 1;
    min-width: 80px;
}

.zeitenTitel {
    margin: 0 0 20px 0;
}

.listeHead {

    padding: 5px 0 5px 5px;
}

.datumListe {

max-width: 600px;
display: flex;
flex-direction: column;


}

.listeDate {

    display: flex;
    flex-direction: row;
      flex-wrap: wrap;
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 5px;
}

.zeitenTitel {
    margin: 0 0 20px 0;
}


.listeDateTop {

    display: flex;
    flex-direction: row;
      flex-wrap: wrap;
    border: 0;
    padding: 5px;
}

.listeHead {

    padding: 5px 0 5px 5px;
}
