/*
Description: Responsives Coding fuer Kristina Franke
Author: Ralph Segert
Relaunch: Juli 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 */

  --light: 'source-sans-light', sans-serif;
  --lightitalic: 'source-sans-lightitalic', sans-serif;
  --regular: 'source-sans-regular', sans-serif;
  --bold: 'source-sans-bold', sans-serif; 
  
  --robotolighter: 'robotolighter', sans-serif;
  --robotolight: 'robotolight', sans-serif;
  --robotoregular: 'robotoregular', sans-serif;
  --robotomedium: 'robotomedium', sans-serif;
  --robotobold: 'robotobold', sans-serif;
  
  --robotoclight: 'robotoclight', sans-serif;
  --robotoclightplus: 'robotoclightplus', sans-serif;
  --robotocregular: 'robotocregular', 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(--robotolight); 
}



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 */

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

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

header button:focus {
  outline: none;
}

.footer-col a {
  text-decoration: none;
  color: #fff;
}

.footer-col a:hover {
  border-bottom: 1px #fff solid;
  padding-bottom: 1px;
  color: #ddd;
  transition: ease .2s;
}



 /* 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(--bold);
     color: #fff;
     background-color: #991C2D; /* 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: 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: #E1E0E0; /* Hintergrundfarbe */
     transition-delay: 0.1s;
     background-image: url('images/logo-franke.webp'); 
     background-size: 40%;
     background-repeat: no-repeat;
     background-position: 3rem 7vh;

   }
 
   
   .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: #991C2D; /* 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-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: #000;
     /* 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:  #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: -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 */
   }
   
   
/* - HEADER  */


/* Hintergrundbild-Container */
.header-bg-image {
  height: 420px;
  max-width: 1600px;       /* <- HIER steht die Begrenzung */
  margin: 0 auto;           /* <- Zentrierung innerhalb des Viewports */
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  background-image: url('https://kristinafranke-stb.de/images/bg-start.webp');
  z-index: 0;
  border-bottom: 42px solid #717171;
}

/* für andere Seiten (ExpressionEngine-Klassen) */
.hleistungen + .header-bg-image {
  background-image: url('https://kristinafranke-stb.de/images/bg-leistungen.webp');
}
.hkompetenzen + .header-bg-image {
  background-image: url('https://kristinafranke-stb.de/images/bg-kompetenzen.webp');
}
.hteam + .header-bg-image {
  background-image: url('https://kristinafranke-stb.de/images/bg-team.webp');
}
.hkontakt + .header-bg-image {
  background-image: url('https://kristinafranke-stb.de/images/bg-kontakt.webp');
}

/* Header */
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  max-width: 1600px;       /* <- HIER steht die Begrenzung */
  margin: 0 auto;           /* <- Zentrierung innerhalb des Viewports */
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 20px 30px 4rem;
  height: 420px;
  z-index: 1000;
  background-color: transparent;
  transition:
    height 0.4s ease,
    padding 0.4s ease,
    background-color 0.4s ease;
}

/* Innerer Header-Bereich */
.header-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Logo */
.logo {
  flex: 0 0 auto;
  max-width: 380px;
  transition: transform 0.4s ease;
}
.logo img {
  width: 100%;
  height: auto;
  min-width: 220px;
}

/* Menü */
.main-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
  font-size: clamp(var(--step-1), 1.8vw, var(--step-2));
  padding-right: 2rem;
}
.main-menu ul {
  display: flex;
  gap: 4vw;
  list-style: none;
  font-family: var(--robotoclightplus);
  text-transform: uppercase;
  background: #fff;
  border-radius: 8px;
  padding: 1rem 4rem;
  opacity: 0.47;
}
.main-menu li a {
  text-decoration: none;
  color: #000;
  padding: 0.4rem 0;
  transition: all 0.3s ease;
}
.main-menu li:hover a,
.main-menu a.aktiv {
  font-family: var(--robotocregular);
  color: #991C2D;
  background-color: #fff;
}

/* Sticky-Zustand */
.header-container.sticky {
  height: 120px;
  padding: 0 20px 0 2rem;
  background-color: rgba(249, 249, 249, 0.9);
  backdrop-filter: blur(5px);
}
.header-container.sticky .logo {
  transform: scale(0.8);
}
.header-container.sticky .main-menu {
  font-size: clamp(var(--step-1), 1.2vw, var(--step-1));
}


/* -- GRUNDLAYOUT Startseite */


.container {
  flex: 1 0 auto; /* sie nimmt den verfügbaren Raum ein */
  display: grid;
  grid-template-rows: auto auto;
  margin: 0 auto;
  width: 100%;
  max-width: 1600px;
  padding: 2rem 1rem;
}

.layout {
  display: grid;
  grid-template-columns: 70% 30%;
  padding: 0 6rem 4rem 9rem;
  align-items: start;
}


.left-col {
  color: #333;
  padding-right: 1.5rem;
  min-height: 600px;
}


.left-col strong {
  font-family: var(--robotobold);
}


.right-col {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}

/* Graue Box: oben bündig mit dem grauen Balken des Headers */
.portrait-box {
  background: #717171;
  color: #fff;
  text-align: center;
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-top: -42px; /* exakt der border-bottom-Wert des Headers */
}

/* Bild nach unten versetzen (optisch tiefer gesetzt) */
.portrait-box img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 54px; /* gleiche Höhe wie header-balken */
  margin-bottom: 1rem;
}

/* Info-Text zentriert darunter */
.info-box {
  padding: 1.5rem 2rem 8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1.9;
  letter-spacing: 1px;
}


.right-col {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

/* Grauer Hintergrundbalken */
.subnav-wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.subnav-box {
  display: flex;
  flex-direction: column;
  background: #717171;
  padding-top: 11rem;
  padding-bottom: 20rem;
  max-width: 260px;
  margin-top: -2rem;
  width: 100%;
}

/* Liste */
.subnav {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* wichtig! */
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Buttons */
.subnav li {
  margin-bottom: 8px;
}

.subnav li a {
  display: flex;
  align-items: center;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-family: var(--robotoclight);
  font-size: 1.05rem;
  padding: 1rem 1rem 1rem 2.8rem;
  width: 300px; /* Volle Buttonbreite */
  box-sizing: border-box;
  transition: ease-in-out .3s;
}

/* Aktiver Zustand */
.subnav a.aktiv,
.subnav li a:hover {
  background: #991C2D;
}




/* Footerbereich */

.footer {
  background: #717171;
  color: #fff;
  padding: 2rem 2rem 0 10rem;
  flex-shrink: 0;
  max-height: 182px;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.11fr 1.11fr .77fr;
}

.footer-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-family: var(--robotolighter);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 1px;
}

.footer-col p {
  text-decoration: none;
  color: #fff;
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  padding: .5rem 0 5rem 1.5rem
}




/* Typografie */


h1, h2 {
  font-family: var(--robotobold);
}

h1 {
  font-size: 2.3rem;
  color: #9E1737;
  padding: 4rem 0 2rem 0;
  text-shadow: 0 2px 4px rgba(182,182,182,0.50);
}

h2 {
  font-size: 1.8rem;
  color: #000;
  padding: 3rem 0 1rem 0;
}

h3 {
  font-family: var(--robotolight);
  font-size: 1.6rem;
  color: #000;
  padding: 2rem 0 1rem 0;
}

.container p {
  font-size: 1.4rem;
  line-height: 1.8em;
  padding-bottom: 1rem;
}


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

footer li, .left-col li {
  list-style: square;
  line-height: 1.7em;
  font-size: 1rem;
  letter-spacing: 1px;
}

.left-col ul {
  margin-inline-start: 2rem;
}

.left-col li {
  font-size: 1.3rem;
  padding: 1.2rem 0 0 .2rem;
  letter-spacing: 0;
}

.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: 8%;
  bottom: 9%;
  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: 12%; }

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



@media screen and (max-width: 960px) {
  

header {
    padding: 30px 20px 30px 2rem;
    min-height: 290px;
  }
  
.sticky-header {
    position: sticky;
    top: 0;
    height: 90px;
    min-height: 90px; 
    padding-left: 1.2rem;
  }

.logo {
    flex: 0 0 calc(23% - 20px);
    padding-top: 0%;
  }
  
  .logo img {
    min-width: 260px;
  }
  
.layout {
    display: grid;
    grid-template-columns: 70% 30%;
    padding: 0 0 4rem 2rem;
  }
  

  .left-col {
    padding-right: 2rem;
    line-height: 1.8;
    min-height: auto;
  }
  
  .footer {
    padding: 2rem 2rem 0 2rem;
    flex-shrink: 0;
    max-height: 170px;
  }
  
  .footer-col {
    font-size: .9rem;
    line-height: 1.8;
    letter-spacing: 0;
  }
  
  .footer-col p {

    padding: .5rem 0 5rem 1rem
  }
  
  
}



@media screen and (max-width: 820px) {
  
  
  .info-box {
    padding: 1.5rem 2rem 6rem;
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 0;
  }

  
 
  
  /* Typografie */
  
  
h1 {
    font-size: 2rem;
    color: #9E1737;
    padding: 3rem 0 1.5rem 0;
    text-shadow: 0 2px 4px rgba(182,182,182,0.50);
  }
  

  
.container  p {
  font-size: 1.1rem
  }
  
 
  
  
  
  .btn {
    display: block;
    width: 44%;
    margin-inline-start: 33%;
    font-size: clamp(var(--step-1), 1.3vw, var(--step-2)); /* Größerer Fließtext: 18px bis 20px */
    letter-spacing: 0;
    transition: background-color 0, border-color 0; 
  }
  
    .btn:hover {
      border-top-left-radius: 0;
      border-bottom-right-radius: 0;
      background-color: #F0AB2C;
      border-color: initial;
    } 
    

/* Footerbereich */
    
  
  
}



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

  
 /* Mobile Navigation: RESETS */
  
 .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: 1rem 0 30px 1rem;
   height: 180px;
   min-height: 180px;
   background-size: 206%;
   border-bottom: 1px solid #717171;
 }

 
 .sticky-header {
   padding: 1.5rem 0 30px 0rem;
   position: sticky;
   top: 0;
   height: 120px;
  min-height: 120px;
 }
 
 .logo img {
   min-width: 210px;
   margin-left: .1rem;
 }

/* Logo verkleinern */
 .sticky-header .logo {
   transform: scale(.9);
   transition: transform 0.5s ease;
 }

.layout {
   display: block;
   padding: 0 1rem 2rem 1rem;
 }
 
 .left-col {
   padding: 0 0 2rem 0;
 }
 
 .right-col {
   justify-content: center;
   align-items: flex-start;
 }
 
 .portrait-box {
   margin: 0 auto;
   max-width: 310px;
 }
 
 
 .subnav-box {
   padding-top: 2rem;
   padding-bottom: 2rem;
   max-width: 260px;
   margin-top: 0;
 }
 
 /* Buttons */
 .subnav li {
   margin-bottom: 1px;
 }
 
 .subnav li a {

   font-size: 1rem;
   padding: 1rem 1rem 1rem 1.8rem;
   width: 260px; /* Volle Buttonbreite */
   box-sizing: border-box;
   transition: ease-in-out .3s;
 }

.footer {
   padding: 2rem 1.5rem 1rem 1.5rem;
   max-height: none;
 }
 
 .footer-inner {
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
 }
 
 .footer-col {
   font-size: 0.9rem;
   line-height: 1.6;
   letter-spacing: 0;
 }
 
 .footer-col p {
   border-left: 1px solid rgba(255, 255, 255, 0.6);
   padding: 0 0 0 1rem;
 }
 

/* Typografie */


h1, h2 {
  font-size: 1.8rem;
  padding-bottom: .9rem;
  line-height: 2.5rem;
  
}


.container p {
  font-size: 1rem;
  line-height: 1.5em;
}



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

/* Footerbereich */

footer {

}
  
}



