@import "/Stylesheets_general/Stylesheet_Menu.css";
@import "/Stylesheets_general/Stylesheet_BodyNavFooter.css";

:root{
  --bg: #0e0f10;
  --text: #fcfbe8;
  --muted: #c9c9c9;
  --accent: #ee9e00;              /* neue Überschriftenfarbe */
  --overlay: rgba(0,0,0,.45);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --wrap-w: 70vw;
  --gap: clamp(16px, 2vw, 28px);

  /* Triptych-Mobile-Carousel */
  --triptych-card-w: 76vw;   /* Breite der Karte auf Mobile */
  --triptych-gap: 3.5vw;       /* Abstand zwischen den Karten */
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  margin: 0 auto;
  height: 100%;
  margin: 0;
  background: var(--bg);
  font-family: "Sunflower", sans-serif; /* Standard-Fließtext */
  font-size: 16px;
  line-height: 1.6;
  color: inherit; /* keine feste Textfarbe – du bestimmst sie selbst */
  background-image: url(/Media/Background_LQ.jpg);
}

/* ---------- Typo ---------- */
.h2, .h3, h1, h2, h3, h4 {
  font-family: ff-providence-sans-web-pro, sans-serif;
  color: var(--accent);
  margin: 0 0 .4em;
}

.h2{ font-size: clamp(28px, 3.8vw, 42px); letter-spacing:.2px; }
.h3{ font-size: clamp(22px, 3.2vw, 32px); }

p{ color: var(--muted); }

/* ---------- HERO ---------- */
.hero{
  position: relative;
  width: 100%;
  overflow: clip;
}

.hero__video{
  width: 100%;
  height: min(95vh, 900px);
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.03);
}

.hero__center{
  position: absolute;
  margin-top: -200px;
  inset: 0;
  display:grid;
  place-items:center;
  pointer-events: none;
}

.hero__logo{
  width: min(30vw, 270px);
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.45));
}

/* PNG unten, überlappt Video */
.hero__overlap{
  position: relative;
  width: 100%;
  margin-top: -8vh; /* leichte Überlappung */
  text-align: center;
}

.hero__overlap-img{
  width: 100%;
  height: auto;
  display: block;
}

.hero__overlap-text{
  position: absolute;
  max-width: 80%;
  padding-left: 20%;
  inset: 0;
  display:grid;
  place-items:center;
  font-size: 20px;
  font-weight: 600;
  color: rgb(211, 208, 199);
}

/* ---------- WRAP ---------- */
.wrap{
  width: 100%;
  max-width: min(var(--wrap-w), 100%);
  margin-inline: auto;
}

/* ---------- Abschnitt 1: Split ---------- */
.section{ padding: clamp(28px, 5vw, 72px) 0; }

.info_container_1{
  display: flex;
  max-height: 50vh;
  justify-content: center;
  gap: 20px;
}

.Info1{
  width: 30vw;
  flex: 1;
  flex-direction: column; 
  justify-content: center;
  padding: 10px;
  gap: 15px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10%;
  padding-bottom: 2%;
}

.info-item p{
  width: 70%;
  color: #ee9e00;
  font-family: "sunflower", sans-serif;
  font-size: 16px;
}

.info-icon {
  width: 13%;
  height: auto;
}

#ticket_button_container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3vw auto;
    margin-top: 5vw;
}

.ticket_link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.ticket_content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#anmelden26 {
    width: 120%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#anmelden26 path {
    animation-timing-function: linear;
    animation-fill-mode: both;
}

#ticket_button_container p {
    margin: 1vh;
    font-size: 1.8vw;
    font-family: "sunflower", sans-serif;
    position: relative;
    text-align: center;
    color:#ee9e00
}

#ticket_p {
    margin-right: 3%;
}













.section--split{
  display:grid;
  grid-template-columns: 1fr 2fr; /* 1/3 – 2/3 */
  gap: var(--gap);
  align-items: center;
}

.split--media { min-width: 0;}

/* ---------- Carousel ---------- */
.carousel{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}
.carousel__track{
  display: flex;
  will-change: transform;
  transition: transform .45s ease;
  touch-action: pan-y;
}
.carousel__slide{
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
  aspect-ratio: 12/7;
  position: relative;
}
.carousel__slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Nav-Pfeile als PNGs */
.carousel__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 48px;
  height: 48px;
  background: no-repeat center / contain;
  cursor: pointer;
  padding: 0;
}
.carousel__nav--prev{ left: 12px; }
.carousel__nav--next{ right: 12px; }

/* Dots als PNGs */
.carousel__dots{
  position: absolute;
  inset-inline: 0;
  bottom: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.carousel__dot{
  width: 16px;
  height: 16px;
  background: no-repeat center / contain;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: .95;
}

/* Dots unter dem Triptych-Carousel */
.triptych-dots{
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.triptych-dots .carousel__dot{
  position: static;      /* nicht absolut wie beim großen Carousel */
}

.carousel__nav:focus-visible,
.carousel__dot:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Abschnitt 2: Triptych ---------- */
.section--triptych{
  position: relative;
}

.section--triptych-track{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.card-vert{
  position: relative;
}

.card-vert__title{
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: .35em .7em;
  font-size: clamp(28px, 2.4vw, 40px); /* wirkt harmonischer, überall gleich */
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8);
}

.card-vert__media{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 7/10;
  cursor: pointer;
}

.card-vert__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* Overlay: standardmäßig unsichtbar, erscheint bei Klick-Klasse .is-open */
.card-vert__overlay{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background: transparent;
  font-size: 13px;
  transition: background .3s ease, opacity .3s ease;
  opacity: 0;
  pointer-events: none;
}

.card-vert__overlay span{
  color:#fff;
  font-weight:600;
  letter-spacing:.2px;
  transform: translateY(8px);
  transition: transform .3s ease;
  padding: 3vh;
}

/* statt :hover nun per Klasse von JS gesteuert */
.card-vert.is-open .card-vert__overlay{
  background: var(--overlay);
  opacity: 1;
  pointer-events: auto;
}
.card-vert.is-open .card-vert__overlay span{
  transform: translateY(0);
}

/* „Mehr erfahren“ unten am Bildrand */
.card-vert__more{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .6em 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  font-family: ff-providence-sans-web-pro, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .2px;
  color: var(--accent);
  text-shadow: 0 3px 8px rgba(0,0,0,0.9);
  user-select: none;
  cursor: pointer;
  border: 0;
}

.card-vert__more img{
  width: 14px;
  height: auto;
  display: inline-block;
}

/* ---------- Triptych: Desktop-Hover + "Mehr erfahren" ausblenden ---------- */
@media (min-width: 901px){

  /* Hover-Overlay wie früher (Desktop) */
  .card-vert:hover .card-vert__overlay{
    background: var(--overlay);
    opacity: 1;
    pointer-events: auto;
  }

  .card-vert:hover .card-vert__overlay span{
    transform: translateY(0);
  }

  /* "Mehr erfahren" auf Desktop ausblenden */
  .card-vert__more{
    display: none;
  }
}



/* ---------- Abschnitt 3: Feature + Team ---------- */
.section--feature {
  position: relative; 
  margin-top: 0;
  padding-top: 0;
}

.feature {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* Text im linken Drittel */
.feature__text {
  position: absolute;
  top: 55%;
  left: 2%;
  width: min(38%, 520px);
  transform: translateY(-50%);
  padding: clamp(12px, 2vw, 22px);
  color: white;
  transition: opacity .4s ease;
  z-index: 2;
}
.feature__text p{
  font-size: 14px;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.45));
  color: #fff;
}

.feature__title {
  position: relative;
  left: -2%;
  top: 10vh;
  margin: 0 0 .8em;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--accent);
  z-index: 4;
}

/* --- Clickbarer "Mehr erfahren" Textlink --- */
.learn-more{
  margin-top: 6px;
  color: var(--accent);
  font-family: ff-providence-sans-web-pro, sans-serif;
  font-size:20px;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  user-select: none;
  transition: opacity .2s ease, transform .05s ease;
  text-decoration: none;
}
.learn-more img{ width: 16px; height: auto; display: inline-block; }
.learn-more:hover{ opacity: .75; }
.learn-more:active{ transform: translateY(1px); }
.learn-more:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Klick-Zustand (Team sichtbar) */
.feature.is-open .feature__text { opacity: 0; }
.feature.is-open .team-grid {
  opacity: 1;
  pointer-events: auto;
}
.feature.is-open::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: rgba(0,0,0,0.45);
  z-index: 2;
}

/* ========== TEAM GRID (überdeckt ganzes Bild) ========== */
.team-grid {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.5vw, 24px);
  padding: clamp(20px, 2vw, 28px);
  background: rgba(23,68,43,0.35);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
  z-index: 3;
}

/* Karten-Layout */
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4/4;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Namensfeld unten im Bild */
.team-card__name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  text-align: center;
  font-family: ff-providence-sans-web-pro, sans-serif;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
  padding: .5em 0;
  letter-spacing: .3px;
}

.team-back {
  grid-column: 1 / -1;
  align-self: end;
  color: var(--accent);
  font-family: ff-providence-sans-web-pro, sans-serif;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  user-select: none;
  transition: opacity .2s ease;
  font-size: 16px;
  margin-top: 10px;
}
.team-back:hover { opacity: 0.7; }
.team-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Starker Drop-Shadow für Text auf Bildern */
.feature__text,
.learn-more,
.team-back {
  text-shadow:
  0 3px 8px rgba(0, 0, 0, 0.9),
  0 0 15px rgba(0, 0, 0, 0.6);
}

/* Tooltip, folgt der Maus */
.tooltip{
  position: fixed;
  top:0; left:0;
  transform: translate(-9999px, -9999px);
  background: #111;
  color: #fff;
  border: 1px solid #222;
  border-radius: 10px;
  padding: .5em .7em;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
  z-index: 99;
  max-width: min(50ch, 50vw);
}

/* ---------- Abschnitt 4: Fifty-Fifty ---------- */
.section--fifty{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.rounded{ border-radius: var(--radius-lg); width:100%; height:auto; display:block; }
.fifty_fifty--text p{ font-size: 14px; }
.fifty_fifty--text h3{ font-size: 3.1vw; }
.fifty_fifty--media{ padding: 80px; }

/* ---------- Footer Note ---------- */
.footer-note{
  display:grid;
  place-items:center;
  padding: 40px 0 70px;
  max-width: 75%;
  padding-left: 25%;
}
.footer-note small{
  display:inline-block;
  color:#ee9e00;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px){

  /* Inhalt mit etwas Rand links/rechts */
  .wrap{
    max-width: 90vw;
    margin-inline: auto;
  }

  /* 1/3 – 2/3 untereinander */
  .section--split{
    grid-template-columns: 1fr;
  }

  /* Fifty-Fifty-Block untereinander, Bild zuerst */
  .section--fifty{
    grid-template-columns: 1fr;
  }

  .section--fifty .fifty_fifty--media{
    order: -1;              /* Bild nach oben */
    margin-bottom: 16px;
  }

  .section--fifty .fifty_fifty--text{
    order: 0;
  }

  .fifty_fifty--text p {
    color:#ee9e00;
  }

  /* Info-Container flexibel, nichts schneidet ab */
  .info_container_1{
    max-height: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .Info1{
    width: 100%;
  }

  /* „Wer wir sind“ – Text unter das Bild ziehen */
  .feature__text{
    position: static;
    transform: none;
    width: 100%;
    margin: 16px 0 0;
  }

  .feature__text p{
    filter: drop-shadow(0 0px 0px rgba(0,0,0,0));
    color: #ee9e00;
  }

  .feature__title{
    left: 0;
    top: 0;
    margin-bottom: .6em;
  }

  /* Headlines (Parkour / Natur / Abenteuer / Wer wir sind / Pädagogischer Ansatz) angleichen und leicht größer */
  .card-vert__title,
  .feature__title,
  .section--fifty .h3{
    font-size: 30px;
  }
}

@media (max-width: 900px){

  #ticket_button_container {
    padding-top: 10%;
  }

  #anmelden26 {
    width: 125%;
  }

  #ticket_button_container p {
    font-size: 3.8vw;
  }

  /* Etwas breiter, aber noch klarer Rand */
  .wrap{
    max-width: 92vw;
    margin-inline: auto;
  }

    /* Triptych: Infinite-Carousel mit zentrierter Karte + angeschnittenen Nachbarn */
    .section--triptych{
      overflow: hidden; /* schneidet nichts Wichtiges ab, hilft nur falls track größer wird */
    }
  
    .section--triptych-track{
      display: flex;
      gap: var(--triptych-gap);
      touch-action: pan-y;
      will-change: transform;
    }
  
    .section--triptych-track .card-vert{
      flex: 0 0 var(--triptych-card-w);
      max-width: var(--triptych-card-w);
    }

  /* Team-Grid: 3 Spalten */
  .section--feature .team-grid{
    grid-template-columns: repeat(3,1fr);
  }

  .hero__overlap-img{
    width: 200%;
    margin-top: -20vh;
  }

  /* Rückwärtssalto-Text etwas kleiner */
  .hero__overlap-text{
    font-size: 18px;
    max-width: 88%;
    padding-left: 12%;
  }

  /* Button („Mehr erfahren“) kleiner */
  .learn-more{
    font-size: 18px;
  }
}




@media (max-width: 640px){

  .hero__logo{
    width: 50%;
    margin-top: 10%;
    height: auto;
    filter: drop-shadow(0 6px 24px rgba(0,0,0,.45));
  }

  /* Auf Handy: klarer Rand, aber schön breit */
  .wrap{
    max-width: 94vw;
    margin-inline: auto;
  }

  .info-item {
    display: flex;
    align-items: center;
    gap: 8%;
    padding-bottom: 0.1rem;
  }

  #anmelden26 {
    width: 125%;
  }

  #ticket_button_container p {
    font-size: 5vw;
  }

  .Info1{
    margin-top: -10%;
  }

  /* Triptych: auf Handy bleibt es Slider, nur etwas enger */
  .section--triptych-track .card-vert__media{
    aspect-ratio: 3 / 4.5;
  }
  
  .section--triptych .card-vert{
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    padding-top: 10vh;
  }

  .card-vert__overlay span{
    font-size: 11px;
    line-height: 1.4;
  }

  /* Sicherstellen, dass der Button klickbar bleibt */
  .card-vert__more{ z-index: 3; }

  .section--feature .team-grid{
    grid-template-columns: repeat(2,1fr);
  }

  .carousel__nav{ 
    display:none; 
  }

  /* Team-Grid: 2 Spalten */
  .section--feature .team-grid{
    grid-template-columns: repeat(2,1fr);
  }

  /* Karussell-Pfeile ausblenden */
  .carousel__nav{
    display: none;
  }

  /* Weniger vertikaler Abstand zwischen Sections */
  .section{
    padding: 20px 0 32px;
  }

  /* Bild im Pädagogik-Block etwas näher */
  .fifty_fifty--media{
    padding: 24px 0 0;
  }

/* Pädagogischer Ansatz: Reihenfolge Überschrift → Bild → Text */
.section--fifty{
  grid-template-columns: 1fr;   /* 1 Spalte */
}

.section--fifty .fifty_fifty--media{
  order: 1;
  padding: 24px 0 0;
}

.section--fifty .fifty_fifty--text{
  order: 2;
}

/* Original-H3 im Text auf Handy ausblenden ... */
.section--fifty .fifty_fifty--text .h3{
  display: none;
}

/* ... und vor dem Bild künstlich wieder anzeigen */
.section--fifty .fifty_fifty--media::before{
  content: "Pädagogischer Ansatz";
  display: block;
  margin-bottom: 12px;
  font-family: ff-providence-sans-web-pro, sans-serif;
  font-size: 30px;
  font-weight: bold;
  color: var(--accent);
}


  /* Footer-Text nicht mehr so schief eingerückt */
  .footer-note{
    max-width: 94vw;
    padding: 24px 0 40px;
    margin-inline: auto;
  }

  .hero__overlap-img{
    width: 250%;
    margin-top: -20vh;
  }

  /* Rückwärtssalto-Text noch etwas kleiner & mehr Rand */
  .hero__overlap-text{
    font-size: 12px;
    max-width: 90%;
    padding-left: 10%;
    margin-top: -2.5%;
  }

  /* Button („Mehr erfahren“) auf Handy noch kompakter */
  .learn-more{
    font-size: 16px;
    display: none;
  }

  /* Headlines auf Handy etwas kleiner, aber alle gleich */
  .card-vert__title,
  .feature__title,
  .fifty_fifty--text .h3 {
    font-size: 36px;
  }
}
