/*
Description: Responsives Coding fuer Karola Teschler
Author: Ralph Segert
Relaunch: Januar 2025
Update: - 
Author URI: https://segert.net
*/

/* - Globale Variablen: Deklarationen  */

:root {

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

  --regular: 'OpenSans Regular', sans-serif;
  --light: 'OpenSans Light', sans-serif; 
  --semibold: 'OpenSans SemiBold', sans-serif;
  --bold: 'OpenSans Bold', sans-serif;
  
  
  --ease-03: a 0.3s ease;  
  --bgcolor: #FCFCFC;
}


/* Resets */

* {
margin: 0;
padding: 0;
}

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

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


body {
  margin: 0;
  font-family: var(--light);
}

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;
}

strong, b {
  font-family: var(--medium);
}


iframe {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: none; /* Optional, um den Rahmen zu entfernen */
    max-width: 1020px; /* Optional: Maximale Breite setzen */
}

/* Tabelle(n) */

.vitatab {
  width: 100%;
  border-collapse: collapse;
  margin: 2% 0 1% 0;
}

.vitatab th,
.vitatab td {
  font-family: var(--light);
  font-weight: normal;
  border: 0;
  vertical-align: top;
  padding: 12px 0 12px 0;
}

.vitatab th.jahr {
  width: 20%;
  text-align: left;
}

.vitatab td.daten {
  width: 80%;
  padding-top: 9px;
}

/* Linkauszeichnungen */

a:focus, button:focus {
    outline: 1px solid #fff;
}

a:focus, button:focus {
    outline: 0px solid #fff;
}

header button:focus {
  outline: none;
}

h2 a, h2 a:visited, h3 a, h3 a:visited {
  font-family: var(--bold);
  color: #000;
  text-decoration: none;
  transition: all .4s;
}

h2 a:hover, h3 a:hover {
  font-family: var(--bold);
  color: #aaa;
}

p a, p a:visited {
  font-family: var(--bold);
  color: #000;
  text-decoration: none;
  transition: all .4s;
}

.container ul a, .container ul a:visited {
  font-family: var(--regular);
  color: #fff;
  text-decoration: none;
  border-bottom: 0;
  transition: all .3s;
}

p a:hover {
  color: #999;
  border-bottom: 3px solid #fff;
}

.container ul a:hover {
  font-family: var(--regular);
  color: #999;
  border-bottom: 3px solid #fff;
}


footer a {
    text-decoration: none;
    color: inherit;
    border: none;
    transition: all .4s;
}

footer a:hover {
    color: #555; 
    border-bottom: 1px dotted #222;
}



 /* 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.3rem;
     letter-spacing: 1px;
     text-transform: uppercase;
     font-family: var(--light);
     color: #fff;
     background-color: #000; /* 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: #000; 
   }
   
   .hc-offcanvas-nav .nav-wrapper-1 .nav-item-link {
     font-family: var(--lato-light);
     font-size: 1.1rem;
     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: #E1E0E0; /* Hintergrundfarbe */
     transition-delay: 0.1s;
     background-image: url('images/logo-kteschler2.png'); 
     background-size: 30%;
     background-repeat: no-repeat;
     background-position: 10% 11vh;
   }
 
   
   .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: #000; /* Gesamte Hintergrundfläche */ 
   }
   
   .hc-offcanvas-nav .nav-container, 
   .hc-offcanvas-nav .nav-wrapper, 
   .hc-offcanvas-nav ul {
   background-color:  #000;
     /* Menülinks */ 
   }
   
   .hc-offcanvas-nav .nav-content > .nav-close:first-child + ul {
     margin-top: 4rem;
   }
   
   .hc-offcanvas-nav .nav-item-link, 
   .hc-offcanvas-nav li.nav-close a, 
   .hc-offcanvas-nav .nav-back a {
     padding: 10px 0 10px 30px;
     font-size: 1.1em;
     color: #fff; /* Linkfarbe Menü */
     z-index: 2;
     background: rgba(0, 0, 0, 0);
     border-radius: 5px;
     transition: 0.4s background ease; 
   }
   
   .hc-offcanvas-nav:not(.touch-device) li:not(.nav-item-custom) a:not([disabled]):hover {
     color: #999;
     /* Linkfarbe Menü Hover */ 
   }
   
   .nav-item .active a {
     color: #999; 
   } 
   
   .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;
     -webkit-user-select: none;
     -moz-user-select: none;
     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:  #555;
     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;
   }
 
.sticky-header .hc-nav-trigger {
    position: absolute;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    display: none;
    z-index: 9980;
    width: 65px;
    right: 5%;
    min-height: 44px;
  }
  
.sticky-header .hc-nav-trigger span {
    width: 65px;
    transform: translateY(-50%);
    transform-origin: 50% 50%;
  }
  
.sticky-header .hc-nav-trigger span, .sticky-header .hc-nav-trigger span::before, .sticky-header .hc-nav-trigger span::after {
    display: block;
    position: absolute;
    left: 0;
    height: 3px;
    width: 55px;
    background:  #555;
    transition: all 0.2s ease;
  }
    
.sticky-header .hc-nav-trigger span::before, .sticky-header .hc-nav-trigger span::after {
    content: "";
    width: 100%;
  }
.sticky-header .hc-nav-trigger span::before {
    top: -9px;
    width: 70px;
  }
.sticky-header  .hc-nav-trigger span::after {
    bottom: -9px;
    width: 40px;
  }
 
   
   /* 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 */
   }
   

   /* OWL Resets */
      
.owl-theme .owl-nav.disabled + .owl-dots {
     margin-top: 4%;
   }
   
/* - HEADER  */


header {
  display: flex;
  width: 100%;
  margin: 0 auto;
  max-width: 1600px;
  background-color: #fff;
  padding: 3% 0 2% 160px;
  max-height: 180px;
  margin-block-end: 1%;
  height: auto;
  color: #000;
  font-size: clamp(var(--step-1), 1.5vw, var(--step-2b)); /* Größerer Fließtext: 18px bis 20px */
  position: relative;
  z-index: 1000; /* Hoher = drüber */
}

/* -- HEADER: Logo  */

.logo {
  flex: 0 0 calc(21% - 20px);
  justify-content: flex-start;
  max-width: 240px;
  padding-top: .5%;
}

.logo img {
  height: auto;
  width: 100%;

}

.sticky-header {
  position: sticky;
  top: 0;
  max-height: 100px; 
  padding-left: 160px;
  transition: max-height 0.5s ease, padding 0.5s ease;
  opacity: .9;
}

.sticky-header .logo {
  transform: scale(.7);
  transition: transform 0.5s ease;
}

.sticky-header .main-menu {
  font-size: clamp(var(--step-1), 1.2vw, var(--step-1)); 
  transition: font-size 0.5s ease;
}


/* -- HEADER: Hauptmenü  */






/* IMG */

.contentbox img {
  width: 40%;
  height: auto;
  margin-block-start: 1rem;
  margin-block-end: 2rem;
}

.floatbild img {
  width: 48%;
  float: left;
  margin: 0 4% 2% 0;
}

/* -- GRUNDLAYOUT Startseite */



.layout {
  display: grid;
  grid:
    ". . fotografie" 165px /* Neue Höhe */
    ". skulptur ." 165px
    "aktuell . ." 165px
    ". audiovisuelle ." 165px
    ". . installation" 165px
    / 220px 220px 220px; /* Neue Breite */
  gap: 0px;
}

.fotografie,
.skulptur,
.aktuell,
.audiovisuelle,
.installation {
  border: 1px solid #999;
}


.layout div a {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding: 0 10% 8% 0;
  letter-spacing: 0;
  font-size: 1.3rem;
  text-decoration: none;
  color: #000;
  transition: all 0.6s;
}

.layout div:not(.fotografie) a {
  transform: scale(-1);
}

.fotografie a {
  align-items: flex-start; 
}

.layout div a.flipped {
  transform: scale(1);
  letter-spacing: 2px;
}

.fotografie { grid-area: fotografie; 
}
.skulptur { grid-area: skulptur; 
}
.aktuell { grid-area: aktuell; 
}
.audiovisuelle { grid-area: audiovisuelle; 
}
.installation { grid-area: installation; 
}


.start-container {
    display: flex;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}


/* Contentbereiche */

.container {
  display: flex;
  margin: 0 auto;
  grid-template-rows: auto auto; /* Zwei Zeilen für layout und layout2 */
  width: 100%;
  max-width: 1600px;
  margin-block-start: 3%; 
}


.layoutsub {
  width: 100%;
  display: grid;
  grid:
    "left-col right-col" 1fr
    / 26% 74%;
}

.left-col {
  grid-area: left-col;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start; 
  padding-right: 6%;
}

.right-col {
  grid-area: right-col; 
  display: flex;
  width: 100%;
  flex-direction: column;
  padding-right: 1rem;
}


.layoutsub .kunstart a {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 0 9% 8% 0;
  letter-spacing: 0;
  font-size: 1.3rem;
  text-decoration: none;
  color: #000;
  transition: all 0.6s;
  border: 1px solid #999;
  width: 220px;
  height: 165px;
}

.sliderbox {
  width: 100%;
  border: 1px solid #bbb;
  padding: 5% 4% 3% 4%;
  margin-block-end: 5rem;
}

.contentbox {
  border: 1px solid #999;
  padding: 5.6% 6% 5% 4%;
  margin-block-end: 1.5rem;
}

.diashow {
  display: flex;
  margin-block: 2rem 1rem;
}

/* Footerbereich */

footer {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 0 auto;
  max-width: 1600px;
  padding-bottom: 4rem;
}

/* Typografie */

h1 {
  font-weight: normal;
}

h2, h3, h4 {
  font-family: var(--bold);
  text-transform: uppercase;
}

h2 {
  text-transform: uppercase;
  font-size: 1.8rem;
  padding-bottom: 1.4rem;
}

h3 {
  font-family: var(--light);
  font-size: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

p, ul {
  font-size: 1rem;
  line-height: 1.6em;
  padding-bottom: .8rem;
  letter-spacing: 1px;
}

.right-col li {
  list-style: square;
  margin-left: 1.2rem;
  
}

.datum {
  font-size: 1.1rem;
  margin-block-end: 2%;
}

footer ul {
    display: flex;
    list-style: none;
    padding-bottom: 1%;
    margin-block-start: 3%;
    width: 100%;
    justify-content: space-evenly;
}


footer li {
  display: inline; 
  line-height: 1.5em;
  font-family: var(--light);
  font-size: 1rem;
  letter-spacing: 1px;
  white-space: nowrap;
}

.left-col li {
  padding: 1.5rem 0 0 .2rem;
}

.datum {
  padding-bottom: .6rem;
}

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

button {
  all: unset;
}


.btn {
  display: block;
  width: 40%;
  margin-inline-start: 30%;
  background-color: #F0AB2C;
  border: 1px solid #fff; 
  color: #fff;
  font-family: var(--bold);
  text-transform: uppercase;
  font-size: clamp(var(--step-1), 1.3vw, var(--step-2)); /* Größerer Fließtext: 18px bis 20px */
  letter-spacing: 1px;
  padding: 10px 20px; /* Abstand innen */
  text-align: center; 
  border-top-right-radius: 12px; 
  border-bottom-left-radius: 12px; 
  cursor: pointer; /* Zeigt den Cursor als Pointer */
  transition: background-color 0.4s, border-color 0.8s; 
}

.btn:hover {
  border-top-left-radius: 12px; 
  border-bottom-right-radius: 12px; 
  background-color: #991C2D;
  border-color: yellow; 
}


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

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



@media screen and (max-width: 820px) {
  
  
header {
    padding: 30px 20px 30px 2rem;
    max-height: 120px;
  }
  
.sticky-header {
    position: sticky;
    top: 0;
    max-height: 100px; 
    padding-left: 1.2rem;
  }

.logo {
    flex: 0 0 calc(25% - 20px);
    padding-top: .5%;
  }
  
  .logo img {
    min-width: 300px;
  }
  
  .layout {
    display: grid;
    grid:
      ". . fotografie" 150px /* Neue Höhe */
      ". skulptur ." 150px
      "aktuell . ." 150px
      ". audiovisuelle ." 150px
      ". . installation" 150px
      / 200px 200px 200px; /* Neue Breite */
    gap: 0px;
  }

  
  
}



@media screen and (max-width: 40em) {
  
  
.layout {
  display: flex;
  width: 80%;
  flex-direction: column;
  gap: 30px; 
  margin-block-start: 2rem;
}

.layout > div {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; 
}

.layout div a {
  font-size: 1.5rem;
  padding: 0 10% 8% 0;
}


 
 p a, p a:visited {
   font-family: var(--regular);
   border-bottom: 1px solid #000;
 }
  
 /* Mobile Navigation: RESETS */
 
 .hc-nav-trigger {
    width: 65px;
    right: 5%;
    top: 27%;
  }
  
  
 .hc-nav-trigger span, .hc-nav-trigger span::before, .hc-nav-trigger span::after {
   display: block;
   position: absolute;
   left: 0;
   height: 3px;
   width: 55px;
   background: #991C2D;
   transition: all 0.2s ease;
 }
   
 .hc-nav-trigger span::before, .hc-nav-trigger span::after {
   content: "";
   width: 100%;
 }
 .hc-nav-trigger span::before {
   top: -9px;
   width: 70px;
 }
 .hc-nav-trigger span::after {
   bottom: -9px;
   width: 40px;
 }
 
  
header {
  padding: 2.4rem 20px 30px 2.5rem;
  max-height: 100px;
}

.sticky-header {
  position: sticky;
  max-height: 80px; 

}

.logo img {
  min-width: 200px;
}



.layoutsub {
  display: flex;
  width: 100%;
  flex-direction: column; /* Spalten untereinander anordnen */
  gap: 20px; /* Abstand zwischen den Spalten */
}

.left-col {
  display: flex;
  width: 100%;
  justify-content: center; /* Links ausrichten */
  padding: 5%;
}

.right-col {
  display: flex;
  width: 100%;
  padding: 0 5% 5% 5%;
}



.layoutsub .kunstart a {
  display: flex;
  justify-content: center;
  padding: 0;
  letter-spacing: 0;
  font-size: 1.6rem;
  transition: 0;
  border: 0;
  width: 100%;
  height: auto;
}

.sliderbox, .contentbox {
  width: 100%; /* Volle Breite einnehmen */
}

.floatbild img {
  width: 100%;
  float: left;
  margin: 0 0 2rem 0;
}


/* Typografie */

p {
  font-size: .8rem;
}

.subline {
  font-size: .9rem;
}

.btn {
  display: block;
  width: 80%;
  margin-inline-start: 10%;
  font-size: 1.1rem;
}

/* Footerbereich */

footer ul {
    flex-wrap: wrap;
    padding-bottom: 5%;
    margin-block-start: 5%;
    justify-content: center; 
}


footer li {
  line-height: 2.5em;
  font-size: .9rem;
  letter-spacing: 0;
  white-space: normal;
  margin: 0 1rem 0 1rem;
}

  
}



