/*
Description: Responsives Coding fuer Karin Pilot
Author: Ralph Segert
Relaunch: Januar 2025
Author URI: https://segert.net
*/


/* - Globale Variablen: Deklarationen  */

:root {

 --step-1: 1rem;    /* 16px */
 --step-2: 1.25rem; /* 22px */
 --step-3: 2rem;    /* 32px */
 --step-4: 3rem;    /* 48px */

  --light: 'source-sans-light', sans-serif;
  --lightitalic: 'source-sans-lightitalic', sans-serif;
  --medium: 'source-sans-medium', sans-serif;
  --semibold: 'source-sans-semibold', sans-serif; 
  
  
  --ease-03: a 0.3s ease;
  --ease-05: border-radius 0.5s ease;
  --ease-shadow: box-shadow 0.5s ease;
  
  --ease-03-0: a 0 ease;
  --ease-05-0: border-radius 0 ease;
  
  --bgcolor: #FCFCFC;
}


/* Resets */

* {
margin: 0;
padding: 0;
}

*, html {
    box-sizing: border-box;
}

*, *::before, *::after {
box-sizing: inherit; 
}


html {
 scroll-snap-type: y mandatory; /* Vertikales Scroll-Snapping erzwingen */
}

.section, .section2, .section3, .section4, .section5 {
  scroll-snap-align: start; /* Einrasten am Start jeder Section */
  scroll-snap-type: y mandatory; /* Erzwingt das Einrasten */
  scroll-padding-top: 100px; /* Platz für den fixierten Header */
}



body {
  margin: 0;
  font-family: var(--light);
  background: var(--bgcolor);
  color: #fff;
  font-size: 100%;
  height: 100%; /* Sicherstellen, dass der Body die volle Höhe abdeckt */
  overflow-y: scroll; /* Ermöglicht vertikales Scrollen */
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}
th, td {
    text-align: left;
    vertical-align: top;
}

img { 
  border: 0; 
}


.cf::after {
  content: " ";
  display: block;
  clear: both; 
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Linkauszeichnungen */

p a, .sectionsub ul a {
    color: #fff;
    font-family: var(--medium);
    text-decoration: none;
    position: relative;
    display: inline;
    transition: color 0.3s ease, box-shadow 0.3s ease; /* Animiert die Farbänderung und box-shadow */
}

.footer a, .footersub a {
    color: #eee;
    font-family: var(--ligth);
}

p a:visited, .sectionsub ul a:visited {
    color: #fff;
}

p a:hover, .sectionsub ul a:hover {
    color: #ede9de;
}

:focus {
  outline: none;
}

/* Pseudo-Element für den gepunkteten Unterstrich */
p a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    box-shadow: 0 1px 0 0 #fff; /* Gepunkteter Unterstrich */
    opacity: 0; /* Startet unsichtbar */
    transition: opacity 0.3s ease; /* Sanftes Ein- und Ausblenden der Linie */
}

p a:hover::after, a:focus::after {
    opacity: 1; /* Wird sichtbar beim Hover */
}


header a:focus, .galery-container a {
  outline: none;
}


/* Mobile Navigation: RESETS */
  
  .header .hc-nav-trigger span, 
  .header .hc-nav-trigger span::before, 
  .header .hc-nav-trigger span::after {
    display: block;
    position: absolute;
    left: 0;
    height: 4px;
    transition: all 0.3s ease;
    background: #7F8690;  /* Hamburger Start */ 
  }
  
    
  .header-white .hc-nav-trigger span, 
  .header-white .hc-nav-trigger span::before,
  .header-white .hc-nav-trigger span::after {
    display: block;
    position: absolute;
    left: 0;
    height: 3px;
    transition: all 0.3s ease;
    background: #aaa; /* Hamburger header-white */ 
  }
  
  .hc-offcanvas-nav .nav-item-wrapper {
    font-size: 1.2em;
    letter-spacing: 1px;
    font-family: var(--light);
    color: #fff;
    background-color: #444; /* Offcanvas Sidebar Menü */
    border: 0;
    transition: 0.2s background ease; 
  }
  
  .hc-offcanvas-nav:not(.touch-device) li:not(.nav-item-custom) a:not([disabled]):hover {
    color: #ddd; 
  }
  
  .hc-offcanvas-nav .nav-wrapper-1 .nav-item-link {
    font-family: var(--lato-light);
    font-size: 1em;
    color: #fff;
    background-color: #0B6583; 
  }
  
  .hc-offcanvas-nav a.nav-next:before {
    width: 2px;
    height: 35px;
    left: -7px;
    top: 2px;
    background: transparent;
    border-radius: 2px; 
  }
  
  .hc-offcanvas-nav.nav-levels-expand li.level-open > .nav-wrapper::before, 
  .hc-offcanvas-nav.nav-levels-none li .nav-wrapper::before {
    background: transparent; 
  }
  
  .hc-offcanvas-nav ul li ul {
    margin-bottom: 5%; 
  }
  
  .hc-offcanvas-nav.disable-body.nav-open::after, 
  .hc-offcanvas-nav .sub-level-open::after {
    visibility: visible;
    background-color: #33355C; /* Feste Hintergrundfarbe */
    transition-delay: 0.05s;
    background-image: 
      linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
      url('images/bg-start.webp'); /* Dein Hintergrundbild */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: -320px 80%;
  }

  
  .hc-offcanvas-nav.nav-levels-expand .nav-wrapper.nav-wrapper-0 > .nav-content {
    overflow: scroll;
    overflow-x: visible;
    overflow-y: auto;
    box-sizing: border-box;
    max-height: 100vh;
    background-color: #444 /* Gesamte Hintergrundfläche */ 
  }
  
  .hc-offcanvas-nav .nav-container, 
  .hc-offcanvas-nav .nav-wrapper, 
  .hc-offcanvas-nav ul {
  background-color:  #4f5764;
    /* Menülinks */ 
  }
  
  .hc-offcanvas-nav .nav-item-link, 
  .hc-offcanvas-nav li.nav-close a, 
  .hc-offcanvas-nav .nav-back a {
    padding: 10px 0 10px 20px;
    font-size: 1.1em;
    color: #fff; /* Linkfarbe Menü */
    z-index: 2;
    background: rgba(0, 0, 0, 0);
    border-radius: 5px;
    transition: 0.05s background ease; 
  }
  
  .hc-offcanvas-nav:not(.touch-device) li:not(.nav-item-custom) a:not([disabled]):hover {
    color: #cdd9eb;
    /* Linkfarbe Menü Hover */ 
  }
  
  .nav-item .active a {
    color: #cdd9eb; 
  } 
  
  .hc-offcanvas-nav .nav-close-button span, 
  .hc-offcanvas-nav .nav-parent .nav-next, 
  .hc-offcanvas-nav .nav-back span {
    display: inline-block; 
  }
  
.hc-nav-trigger {
    position: absolute;
    cursor: pointer;
    user-select: none;
    display: none;
    z-index: 9980;
    width: 75px;
    right: 5%;
    min-height: 44px;
  }
  
  .hc-nav-trigger span {
    width: 75px;
    transform: translateY(-50%);
    transform-origin: 50% 50%;
  }
  
  .hc-nav-trigger span, .hc-nav-trigger span::before, .hc-nav-trigger span::after {
    display: block;
    position: absolute;
    left: 0;
    height: 3px;
    width: 65px;
    background: #8B8B8B;
    transition: all 0.2s ease;
  }
    
  .hc-nav-trigger span::before, .hc-nav-trigger span::after {
    content: "";
    width: 100%;
  }
  .hc-nav-trigger span::before {
    top: -11px;
    width: 80px;
  }
  .hc-nav-trigger span::after {
    bottom: -11px;
    width: 50px;
  }
  
  /* Mouseover effects */
  
  .hc-nav-trigger:hover span::before {
    top: -11px;
    width: 50px;
    opacity: .8;
    transition: width 0.6s cubic-bezier(0.55, 0.055, 0.675, 0.19); /* Transition with ease-out effect */
  }
  .hc-nav-trigger:hover span::after {
    bottom: -11px;
    width: 80px;
    opacity: .8;
    transition: width 0.6s cubic-bezier(0.55, 0.055, 0.675, 0.19); /* Transition with ease-out effect */
  }
  

#main-nav {
    display: none; 
  }


/* - IMG  */
  
.content-start img {
  width: 40%;
  height: auto;
}

.sectionsub img {
  width: 100%;
  height: auto;
}


/* - HEADER  */


header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  max-height:190px;
  height: auto;
  color: #000;
  position: relative; 
  z-index: 999; 
  max-width: 2800px;
  margin: 0 auto;
}

/* -- HEADER: Logo  */

.logo {
flex: 0 0 calc(18% - 20px); 
max-width: 280px;
padding: 3% 0 0 7%; 
}

.logo img {
  height: auto;
  width: 100%;
  min-width: 200px;
  transition: min-width 0.5s ease;
  max-width: 80px;
  filter: none; /* Originalfarbe */
  transition: filter 0.3s ease; /* Sanfter Übergang */
}

/* Weißes Logo */

/* Weißes Logo */
.logo.white img {
  filter: brightness(0) invert(1); /* Weißer Effekt */
}

.logo.white {
padding: 2.5% 0 1% 7%; 
}

.sticky-header {
 position: fixed;
 top: 0;
 width: 100%;
 z-index: 999; /* falls notwendig, damit es über allem liegt */
}

.sticky-sub, .sticky-sub2  {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  max-height: 180px;
  max-width: 2800px;
  height: auto;
  color: #000;
  position: relative;
  z-index: 1000;
  padding-bottom: 1%;
}

.sticky-header-sub, .sticky-header-sub2 {
  position: sticky;
  top: 0;
}

.sticky-header-sub .logo {
  transform: scale(0.8);
  transition: transform 0.5s ease;
  margin-left: -1%;
}

.sticky-header-sub .main-menu, .sticky-header-sub2 .main-menu {
  font-size: 1em; 
  transition: font-size 0.5s ease;
}

.sticky-header-sub .logo img, .sticky-header-sub2 .logo img {
  max-width: 230px; 
  padding: 0; 
}

/* -- HEADER: Hauptmenü  */


.main-menu {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  padding-right:5%;
  margin-left: -4%;
}


.main-menu ul {
  display: flex;
  width: 100%;
  position: relative;
}

.main-menu li {
  flex: 1;
  list-style: none;
  position: relative;
}

.main-menu li:not(:last-child)::after {
  content: ' \00B7'; /* Unicode für &middot; */
  position: absolute;
  right: 0;
  top:0;
  color: #a00; /* Farbe des Mittelpunkts */
}

.main-menu li a {
  display: block;
  text-align: center;
  color: #a00;
  padding: 0 5% 0 0;
  text-decoration: none;
  padding-right: 10px; /* Abstand zwischen dem Text und dem Mittelpunkt */
  transition: var(--ease-03);
}

.main-menu li:hover a {
  color: #000;
  transition: var(--ease-03);
}

/* Contentbereich */


.section, .section2, .section3, .section4, .section5 {
  /* scroll-snap-align: start;  Snap-Position am Start */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  container-type: inline-size;
  position: relative; 
  width: 100%;
  max-width: 2800px;
  background-size: cover;
  height: 100vh; 
  background-repeat: no-repeat;
  margin: 0 auto;
  overflow: visible; 
}

.section {
    background-image: url('images/bg-start.webp');
    background-size: cover;
    overflow: hidden;
}


.section2 {
    background-image: url('images/bg-wingwave2.webp');
    background-size: cover;
    background-position: 100px 0%;
}


.section3 {
    background-image: url('images/bg-me3.webp');
    background-size: cover;
    background-position: -380px 0;
}


.section4 {
    background-image: url('images/bg-praegungen.webp');
    background-size: cover;
    background-position: 80px 0;
}


.section5 {
    background-image: url('images/bg-drehbuch.webp');
    background-size: cover;
    background-position: 0 0;
    height: 100vH;
}



/* Text Container */

.content-start {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 2%;
    margin-inline-start: 7%;
    margin-inline-end: 43%;
    margin-block-start: 7%;
}

.content-screen2 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: wrap;
    height: 100%;
    margin-inline-end: 40%;
    padding-top: 2%;
    margin-block-start: 0%;
    background-color: #921C11;
    position: relative;
    z-index: 99;
}

.content-screen3 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: wrap;
    height: 100%;
    margin-inline-start: 45%;
    margin-block-start: 0%;
    background-color: #394564;
    position: relative;
    z-index: 99;
}

.content-screen4 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: wrap;
    height: 100%;
    margin-inline-end: 38%;
    margin-block-start: 0%;
    background-color: #33355C;
    position: relative;
    z-index: 99;
}

.content-screen5 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: wrap;
    height: 100%;
    margin-inline-start: 45%;
    margin-block-start: 0%;
    background-color: #921C11;
    position: relative;
    z-index: 99;
}

/* Sub Pages */


.sectionsub {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 2800px;
  width: 100%;
  background-size: cover;
  margin: 0 auto;
}

.content {
  width: 100%;
  display: flex;
}

.left-column {
  width: 62%;
  background-color: #33355C;
  color: white;
  padding-bottom: 5%;
}

.right-column {
  width: 38%;
  padding: 5.6% 0 0 1px;
}


/* Sticky Footer */

footer {
  position: fixed; /* Fixiert den Footer am unteren Rand */
  bottom: 0;
  width: 100%;
  letter-spacing: 1px;
  background-color: transparent
  color: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 0 30px 0;
  z-index: 998; 
  opacity: 0; /* Anfangs unsichtbar */
  transition: opacity 0.3s ease; /* Sanftes Einblenden */
}

.footersub {
  width: 100%;
  margin-top: 0px;
  letter-spacing: 1px;
  color: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 0 38px 0;
}

.footersub, .footersub2 {
  width: 100%;
  margin-top: 0px;
  letter-spacing: 1px;
  color: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 0 38px 0;
}

/* TYPOGRAFIE */


h2, h3, h4, p, ul {
  padding: 0 10% 0 11%;
}

h1 {
  display: flex;
    font-family: var(--semibold);
    font-size: clamp(var(--step-2), 3.5vw, var(--step-4));
    color: #000;
    font-weight: normal;
    margin-block-start: 8%;
    margin-block-end: 12%; 
    line-height: 1.2em;
}


h2 {
  display: flex;
    font-family: var(--medium);
    font-size: clamp(var(--step-2), 2.75vw, var(--step-3));
    color: #fff;
    font-weight: normal;
    line-height: 1.5em;
    margin-block-start: calc(17vh + 2%);
    margin-block-end: clamp(.2em, 0.2em + (100vw - 640px) * 0.0025, 1.2em);
}

.sectionsub h2 {
  margin-block-start: 7%;
}


.content-screen2 p, .content-screen3 p, .content-screen4 p, .content-screen5 p, .sectionsub p {
    font-family: var(--light);
    font-size: clamp(var(--step-1), 1.1vw, var(--step-2)); /* Größerer Fließtext: 18px bis 20px */
    color: #EDE9DE;
    letter-spacing: 0;
    line-height: 1.6em;
    margin-inline-end: 0%;
    margin-top: 2%;
}

.content-start p {
  margin-inline-end: 0%;
  padding-left: 0;
}

.sectionsub p, .sectionsub ul, .sectionsub li {
  padding-bottom: 1.5%;
}

.sectionsub ul {
  margin-left: 3%;
}

.sectionsub li {
list-style: square;
}



strong {
  font-family: var(--semibold);
}


 /* Buttons */
 
.btn, .btn a:visited {
  color: #fff;
  text-decoration: none;
}

button {
  all: unset;
}

.btn {
  display: block;
  width: 50%;
  margin-block-start: 4%;
  margin-inline-start: 22%;
  background-color: #444;
  border: 1px solid #eee; 
  color: #fff;
  font-family: var(--regular);
  font-size: clamp(var(--step-1), 1.1vw, var(--step-2)); /* Größerer Fließtext: 18px bis 20px */
  letter-spacing: 1px;
  padding: 10px 20px; /* Abstand innen */
  text-align: center; 
  border-top-left-radius: 12px; 
  border-bottom-right-radius: 12px; 
  cursor: pointer; /* Zeigt den Cursor als Pointer */
  transition: background-color 0.3s, border-color 0.3s; 
}


.btn3 {
 margin-block-start: 1.5%;
}

.btnsub {
  display: inline-block;
  width: 30%;
  margin-block-start: 3%;
  margin-inline-start: 12%;
}

.btn3:first-of-type {
 margin-block-start: 4%;
}

.btn:hover, .btn2:hover {
  background-color: #87190F;
  border-color: #888; 
}

small {
  display: block;
  color: #fff;
  margin-top: -0.5rem;
  margin-block-end: 2.3rem;
}


#back-to-top {
  /* scriptgesteuerter Top-Balken */
  position: fixed;
  /* Fixiert den Balken unten */
  display: none;
  width: auto;
  right: 5.5%;
  bottom: 4%;
  padding: 10px 10px 12px 10px;
  background: #666;
  color: #fff;
  font-size: 130%;
  text-align: center;
  z-index: 1000;
  cursor: pointer;
  transition: all ease-in-out .3s;
  border-radius: 6px; }

#back-to-top:hover {
  bottom: 5%; 
}
  
  

/* Media Query für Bildschirmauflösung  1040px */

@media screen and (max-width: 65em) {
  

.section {
    background-size: cover;
    background-position: 50% 0%;
  }
  
.section2 {
      background-image: url('images/bg-wingwave.webp');
      background-position: -140px 0%;
  }
  
  
  .section3 {
      background-image: url('images/bg-me.webp');
      background-size: cover;
  }
  
  
  .section4 {
      background-image: url('images/bg-praegungen.webp');
      background-size: cover;
      background-position: -110px -20px;
  }
  
  
  .section5 {
      background-image: url('images/bg-drehbuch.webp');
      background-size: cover;
      background-position: 0 0;
  }
      
    
  header {
    width: 100%;
    background-color: #FCFCFC;
  }

  .logo {
    padding: 4% 0 1% 7%; 
  }
  
  .logo img {
    min-width: 150px;
  }
  
  .logo.white img {
    filter: none;
  }
  
  .sticky-header {
    padding-bottom: 2%;
  }
  
  .sticky-sub {
background-color: #FCFCFC;
  }

/* Contentbereich */
  
  
  .section, .section2, .section3, .section4, .section5 {
    display: flex;
    scroll-snap-align: none; 
    container-type: normal;
    margin: 0;
    height: auto;
    padding-bottom: 300px;
    background-size: cover;
  }

  .section {
    height: 100vh;
    background-position: 46% 80px;
    padding-bottom: 0;
  }
  

  .section2 {
    background-image: url('images/bg-wingwave.webp');
    background-position: 90% 520px;
  }
  
  .section3 {
      background-image: url('images/bg-me2.webp');
      background-position: 16% 660px;
  }
  
  .section4 {
      background-image: url('images/bg-praegungen.webp');
      background-position: 76% 700px;
  }
  
  
  .section5 {
      background-image: url('images/bg-drehbuch.webp');
      background-position: 0% 720px;
  }
  
/* Text Container */

  .content-start {
    margin-inline-start: 7%;
    margin-inline-end: 23%;
    margin-block-start: 0%;
  }
    
  .content-start img {
    width: 50%;
    text-align: left;
  }
  
  .content-screen2, .content-screen3, .content-screen4, .content-screen5 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: wrap;
    height: auto;
    margin-top: 0;
    margin-inline-end: 0;
    margin-inline-start: 0;
    margin-block-start: 0;
    background-color: #921C11;
    z-index: 99;
    padding-bottom: 12%;
  }
  
  .content-screen3 {
      background-color: #394564;
  }
  
  .content-screen4 {
      background-color: #33355C;
      padding-bottom: 21%;
  }
  
/* Sticky Footer */
  
  footer {
    position: fixed; /* Fixiert den Footer am unteren Rand */
    letter-spacing: 0;
    background-color: #33355C;
    color: #fff;
    font-size: .9em;
    line-height: 1.6em;
    padding: 20px 0 20px 0;
  }
  
  
/* TYPOGRAFIE */

  h1 {
    margin-block-start: 22%; 
    line-height: 1.6em;
  }

  
  h2 {
    margin-block-start: 12%; 
    line-height: 1.6em;
  }
  
  
  /* Sub Pages */
  
  .content {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .left-column {
    order: 2;
    width: 100%;
    background-color: #33355C;
    color: white;
    padding-bottom: 5%;
  }
  
  .right-column {
    width: 100%;
    background-color: #fff;
    padding: 0;
  }
  
  
  /* Buttons */

.btn {
    width: 80%;
    margin-block-start: 4%;
    margin-inline-start: 10%;
  }


}

/* Media Query für Bildschirmauflösung 640 */
  
  @media screen and (max-width: 40em) {

 .content-start img {
    width: 70%;
    text-align: left;
  }
  
  h1 {
    margin-block-start: 42%; 
    line-height: 1.6em;
  }
  
}

  
 

