:root {
  /*Design Colors*/
  --primary-color: #859fac;
  --nav-color: #31444d;
  --navText-color: #FFFFFF;
  --navHover-color: #3a525e;/*#9ecae0;*/
  --navSelected-color: #25373f; /*#80b4ce;*/
  --hyperlink-color: #547d8f;
  --footer-text-color: #84bdd6;
  --highlight-color: #d6f1ff;

  --background-color: #F7F9FC;
  --text-color: #111111;
  --header-font: 'Raleway', sans-serif;
  /* --header-font: 'OmnesHeader', sans-serif; */
  /* --body-font: 'Inter', sans-serif; */
  --header-font: 'Cormorant', sans-serif;
  --body-font: 'Lato', sans-serif;
}

/* Raleway */
@font-face {
  font-family: 'Raleway';
  src: url('./fonts/Raleway-Regular.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Raleway';
  src: url('./fonts/Raleway-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* Inter */
@font-face {
  font-family: 'Inter';
  src: url('./fonts/Inter_18pt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('./fonts/Inter_18pt-SemiBold') format('truetype');
  font-weight: 600;
  font-style: normal;
}

/* Lato */
@font-face {
  font-family: 'Lato';
  src: url('./fonts/Lato-Light.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Lato2';
  src: url('./fonts/Lato-Regular.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Cormorant';
  src: url('./fonts/Cormorant/static/Cormorant-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

svg text {
  font-family: 'Lato Light', sans-serif;
}

h1, h2, h3 {
  font-family: var(--header-font);
  text-transform: uppercase;
  padding-top: 1.5rem;
}

h1 {
    padding-top: 0rem;
}

body {
  font-family: var(--body-font);
  box-sizing: border-box;
  flex-direction: column;
  align-content: center;
  background-color: var(--background-color);
  font-size: large;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (orientation: landscape) {

    header{
        width: 100%;
        height: 20vh;
        /* background-color: var(--primary-color); */
        /* background-position: center center; horizontal und vertikal zentrieren */
        /* background-repeat: no-repeat;       verhindert Wiederholung */
        /* background-size: cover; */
        /* border-bottom: thin solid white; */
        /* background-color: #008be7; */
    }

    header.index{
      height: 50vh;
      background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.5)), url(./img/img114.jpg);
    }

    .headerLogoSvg{
      height: 60%;
      width: 100%;
      object-fit: contain;
    }

    .headerLogoPng{
      height: 60%;
      width: 100%;
      object-fit: contain;
    }

    #headerPortrait{
        display: none;
    }

    nav{ 
        width: 100%;
        position: sticky;
        top: 0;
        align-content: center;
        justify-content: space-evenly;
        flex-direction: row;
        flex-wrap: wrap;
        /* align-items: stretch; */
    }

    footer{
       padding-inline: 10%;
       padding-block: 2vh;
       justify-content: space-between;
    }

    .btnNav{
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
    }

    .btnNavImg{
      display: none;
    }

    .gallery {
      grid-template-columns: repeat(4, 1fr);
    }

    .reverse.dynamicImage {
      flex-direction: row-reverse;
      justify-content: space-between;
    }

    .dynamicImage {
      flex-direction: row;
      justify-content: space-between;
    }

    .txtSection{
      width: 60%;
      flex-direction: column;
      justify-content: center;
    }

    .imgSection{
      width: 35%;
      max-height: 100%;
      justify-content: center;
      flex-direction: column;
      align-items: center;
    }

    img {
      object-fit: contain;
      width: fit-content;
      max-width: 100%;
      border-radius: 10px;
      max-height: 30vw;
      margin-block: 1rem;
    }
}

@media (orientation: portrait) {

    header{
        width: 100%;
        height: 70vh;
        z-index: 1000;
        padding: 4vw;
        display: none;
    }

    header.index{
      height: 80vh;
      display: unset;
      background-image:  linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.7)), url(./img/img100.jpg);
    }

    .headerLogoSvg{
      object-fit: contain;
      max-width: 100%;
      max-height: 100%;
      margin: 0;
    }

    #headerPortrait{
        z-index: 1000;
        text-align: center;
        flex: 1;
        justify-content: center;
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        flex-direction: column;
        margin: 2%;
    }

    .headerText {
        flex:1;
        text-align: center;
        padding: 2vh;
    }

    .portraitNav {
        width: 100%;
        height: 10vh;
        background-color: var(--primary-color);
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: stretch;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .btnNavImg {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        height: fit-content;
        width: 10vh;
        cursor: pointer;
        max-height: 100%;
    }

    nav {
        margin-left: auto;
        position: fixed;
        top:10vh;
        right: 0;
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        flex-direction: column;
        background-color: var(--primary-color);
        justify-content: flex-end;
        width: 80%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s /*cubic-bezier(.77,0,.18,1)*/;
        z-index: 1000;
    }

    nav.open {
        max-height: 90vh;
    }

    .btnNav {
        height: 10vh;
        /* 
        display: block;
        width: 100%;
        text-align: left;
        background: none;
        border: none;
        color: white;
        font-size: 1.2em;
        padding: 1em 2em;
        */
    } 

    main{
        position: relative;
        /* margin-top: 7vh; */
        min-height: 90vh;
        scroll-margin-top: 10vh; /* leave 10% of viewport height at top */
    }

    footer{
        position: relative;
        flex-direction: column-reverse;
        justify-content: space-between;
    }

    .gallery {
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .reverseVertival.dynamicImage{
      flex-direction: column-reverse;
    }

    .dynamicImage {
      flex-direction: column;
    }

    .txtSection{
      width: 100%;
      flex-direction: column;
    }

    .imgSection{
      flex-direction: column;
    }

      img {
      object-fit: contain;
      width: 100%;
      border-radius: 10px; 
      margin-block: 1rem; 
    }

    .team {
      flex-direction: column;
    }

    #b1{
      order: 1;
    }
    #b2{
      order: 3;
    }
    #b3{
      order: 2;
    }
}

.flex {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
}

header{
    align-content: center;
    text-align: center;
    background-position: center center; /* horizontal und vertikal zentrieren */
    background-repeat: no-repeat;       /* verhindert Wiederholung */
    background-size: cover;
    border-bottom: thin solid white;
}


header.socials{
  background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.5)), url(./img/img112.jpg);
}
header.courses{
  background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.5)), url(./img/img100.jpg);
}
header.workshops{
  background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.5)), url(./img/img115.jpg);
}
header.private{
  background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.5)), url(./img/img114.jpg);
}
header.aboutWCS{
  background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.5)), url(./img/img112.jpg);
}
header.aboutUs{
  background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.5)), url(./img/img114.jpg);
}

.btnNav{
    background-color: var(--nav-color);
    color: var(--navText-color);
    white-space: nowrap;
    flex: 1;
    align-content: center;
    text-align: center;
    padding-block: 3vh;
    justify-content: center;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
    padding-inline: 1rem;
}

.btnNav:hover{
    background-color: var(--navHover-color);
    transition: background-color 0.2s ease;
}

.btnNav.selected{
    background-color: var(--navSelected-color);
}

.btnNavImg{
    border-radius: 30%;
    margin:0;
}

.btnNavImg:hover{
    background-color: var(--primary-color);
}

main{
    padding-inline: 10%;
    padding-block: 2vh;
    min-height: 65vh;
}

footer{
    padding-inline: 10%;
    padding-block: 2vh;
    background-color: var(--navSelected-color);
    color: var(--footer-text-color);
}

footer a{
    color: var(--footer-text-color);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    background-color: rgba(0,0,0,0.7); /* halbtransparent schwarz */
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible; /* zur Sicherheit */
}

content{
    position: absolute;
}

a {
  color: var(--hyperlink-color);      /* oder deine Wunschfarbe, z.B. schwarz */
  text-decoration: none;
}

p{
    padding-block: 0.5rem;
}

ul li {
  padding-block: 0.5rem; /* oder 10-20px je nach Geschmack */
  list-style-position: inside;
}

ul.course-levelsv li{
  padding: 0em; /* oder 10-20px je nach Geschmack */
}

footer p{
    font-size: small;
}

section a{
    color: var(--hyperlink-color); /* oder deine Wunschfarbe */
    text-decoration: none;
}

/* Container & Layout */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 64px;
  color: #222; /* normaler, schwarzer Text */
  background: #f9fafc; /* helles, freundliches Grau */
}

.muted {
  color: #6b7280; /* neutrales Grau */
}

.member {
  /* border: 1px solid #e0e7ff; */
  padding: 2vh;
  flex: 1;
  flex-direction: column;
}

.member h1, .member h2, .member h3 {
  text-align: center;
  padding-block: 1rem;
}

.memberImage {
  justify-content: center;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  max-height: 100%;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.memberImage img{
  max-height: 40vh;
  border-radius: 10px; 
  margin-bottom: 10px;
  object-fit: contain;
  width: fit-content;
  max-width: 100%;
}

.memberText {
  text-align: justify;
}

/* Timeline */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed #c7d2fe;
}

/* Clean List */
ul.clean { margin: .4em 0 .2em 1.1em; }
ul.clean li { margin: .25em 0; color: #222; }

/* Gallery */
.gallery {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

/* Karten-Stil */
.gallery figure {
  margin: 0;
  background: #ffffff;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* Einheitliche Bildhöhe */
.gallery img {
  width: 100%;
  height: 240px; /* <-- Hier kannst du die gewünschte Höhe anpassen */
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.caption {
  margin-top: 6px;
  font-size: .95rem;
  color: #6b7280;
}

/* Button */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--nav-color), var(--navHover-color));
  color: #ffffff;
  font-weight: 200;
  font-family: Lato, sans-serif;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
  transition: transform .05s ease, box-shadow .2s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}

/* figure {
  padding-block: 1rem;
} */

.highlightBox{
  border: 2px solid;
  background-color: var(--nav-color);
  color: var(--navText-color);
  font-weight: bold;
  border-radius: 10px;
  padding: 1rem;
  margin-block: 1rem;
  text-align: center;
}

