/*
Description: Responsives Coding fuer Dr. Wiater
Author: Ralph Segert
Relaunch: Februar 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(--regular);
}

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

img { 
  border: 0; 
}

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


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

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

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

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

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

p a:hover {
  font-family: var(--bold);
  color: #777;
  text-decoration: none;
  border-bottom: 3px solid #000;
}

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

footer a {
    text-decoration: none;
    color: #fff;
    border: none;
    transition: all .3s;
    letter-spacing: 0;
}

footer a:hover {
    color: #eee; 
    border-bottom: 1px solid #fff;
    padding-bottom: 4px;
    letter-spacing: 1px;
}


 /* Mobile Navigation: RESETS */
 
 .hc-offcanvas-nav .nav-content {
   padding: 0 1px;
 }
   
   .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: #545E8E; /* 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/bg-startseite.webp'); 
     background-size: cover;
     background-repeat: no-repeat;
     background-position: -600px;
   }
    
   .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: #545E8E; /* 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 */
   }
   
   
   
.section {
     position: relative;
     width: 100%;
     height: 100vh; 
     max-width: 2400px;
     background: url("images/bg-startseite.webp") center center no-repeat;
     background-size: cover;
     margin: 0 auto;
     padding: 0 clamp(32px, calc(0.054545 * 100vw - 2.909px), 128px);
   }

.sectionsub {
  display: flex;
  flex-direction: column;
      width: 100%;
      min-height: 100vh; 
      max-width: 2400px;
      background: url("images/bg-schlafstoerungen3.webp") center center no-repeat;
      background-size: cover;
      margin: 0 auto;
      padding: 0 clamp(32px, calc(0.054545 * 100vw - 2.909px), 128px);
    }   

.sectionperson {
        background: url("images/bg-schlafstoerungen2.webp") center center no-repeat;
        background-size: cover;
      }
      
.sectiontermin {
        background: url("images/bg-schlafstoerungen4.webp") center center no-repeat;
        background-size: cover;
      } 
      
.sectionkontakt {
        background: url("images/bg-startseite-2.webp") center center no-repeat;
        background-size: cover;
      } 
               
/* - HEADER  */


header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 20px 1rem 0rem;
  max-height: 200px;
  height: auto;
  color: #000;
  font-size: clamp(var(--step-1), 1.5vw, var(--step-2b)); 
  position: relative;
  z-index: 1000; 
}

.headersub {
  display: flex;
  width: 100%;
  max-width: 2400px;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 20px 1rem 0rem;
  max-height: 200px;
  height: auto;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 1);
  color: #000;
  font-size: clamp(var(--step-1), 1.5vw, var(--step-2b));
  position: relative;
  z-index: 1000;
  padding: 1.6rem clamp(32px, calc(0.054545 * 100vw - 2.909px), 128px);
}


/* -- HEADER: Logo  */

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

.logo img {
  height: auto;
  width: 100%;
  min-width: 180px;
  max-width: 140px;
}

.sticky-header {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 2400px;
  margin: 0 auto;
  max-height: 110px; 
  transition: max-height 0.5s ease, padding 0.5s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
  background-color: rgba(255, 255, 255, .95);
}

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

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



/* -- HEADER: Hauptmenü  */


.main-menu {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  flex-grow: 1;
  font-size: clamp(var(--step-0), 1.8vw, var(--step-2));
  justify-content: center;
  padding-right: 3%;
  margin-left: 5%;
  margin-top: .8%;
}

.main-menu ul {
  font-family: var(--bold);
  font-size: 1.3rem;
  text-transform: uppercase;
  display: flex;
  width: 100%;
  position: relative;
}

.main-menu li {
  flex: 1;
  list-style: none;
  position: relative;
  margin-left: .5rem;
  margin-right: .5rem;
}


.main-menu li a {
  display: block;
  text-align: center;
  color: #000;
  text-decoration: none;
  transition: all .7s;
  padding: 12px;
  background-color: rgba(255, 255, 255, .6);
}

.main-menu li:hover a {
  display: block;
  color: #fff;
  background-color: rgba(39, 55, 119, .8);
  padding: 12px;
  transition: all .7s;
  letter-spacing: 0;
  
}

.main-menu .aktiv a {
  display: block;
  color: #fff;
  background-color: rgba(39, 55, 119, .8);
  padding: 12px;
  border-bottom: 4px solid #eee;
  transition: all .7s;
  letter-spacing: 0;
}

/* -- GRUNDLAYOUT Startseite */


/* Contentbereiche */

.container {
  display: flex;
  margin: 0 auto;
  height: 70%;
  width: 100%;
  align-items: center;
}

.sectionsub .container {
  display: block; 
  width: 100%;
  height: auto; 
  margin: 0 auto;
  padding-top: 5rem;
  padding-bottom: 2rem;
}



.layout {
 display: flex;
 flex-direction: column;
 width: 100%;
 /*padding-right: clamp(36px, calc(0.434 * 100vw - 241.76px), 800px); */
 padding-right: clamp(24px, calc(0.429 * 100vw - 181.92px), 848px);
}

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

.left-col {
  grid-area: left-col;
  display: flex;
  justify-content: center;
  align-items: flex-start; 
  padding: 8.2rem 4rem 0 0;
}

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


/* Accordion */

.accordion {
  margin-block-start: 3rem;
}

  .accordion-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-family: var(--bold);
    font-size: 1.2rem;
    color: #fff;
    background-color: #45508C;
    padding: 2% 6% 2% 5%;
    border-bottom: 1px solid #fff;
    cursor: pointer;
    transition: .3s; }

  .accordion-title:nth-of-type(2n) {
    background-color: #7c7c7c; 
  }
 
  .accordion-content {
    background-color: #fff;
    color: #000;
    padding: 5% 6% 5% 6%;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd; 
    background-color: rgba(255, 255, 255, .5);
  }
 
  dd {
    display: none; }

  .accordion-title a {
    float: right;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    margin-left: 5%; }
 
 
  .accordion-title a::before {
    content: " + ";
    color: #fff }

  .accordion-title:hover a::before {
    color: #fff }
   
     
  .accordion-title:hover {
    background-color: #545E8E;
    color: #fff;

 }
 
  .accordion-title {
    position: relative;
    overflow: hidden; 
  }


  .accordion-title.open {
    background-color: #545E8E;
    color: #fff;
    font-size: 1.5em; 
    letter-spacing: 1px;
    padding-right: 5%;
    margin-top: 6px;

  }
     
  .accordion-title.open a {
    background-color: #545E8E;
    color: #fff;
  }

  .accordion-title.open a::before {
    content: " × ";
    font-size: 1.5em;
    color: #fff; }




/* Footerbereich */

footer {
  position: absolute; 
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  color: #fff;
  text-align: center;
  border-top: 6px solid #fff;
  background-color: rgba(39, 55, 119, 0.8);
}


.footersub {
  position: unset;
  display: flex;
  margin: 0 auto;
  width: 100%;
  max-width: 2400px;
}

/* Typografie */


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

h1, .sectionsub h1 {
  font-size: clamp(32px, calc(0.010909 * 100vw + 18.62px), 52px);
  color: #000000;
  letter-spacing: 1px;
  line-height: clamp(42px, calc(0.025 * 100vw + 16px), 68px);
  text-shadow: 0 2px 4px rgba(176,176,176,0.50);
  padding: 1rem 0 2rem 0;
  text-transform: uppercase;
}

.sectionsub h1 {
  padding: 1rem 0 4rem 0;
  text-transform: none;
}

h2 {
  font-size: 1.6rem;
  line-height: 1.6rem;
 padding: 2rem 0 1rem 0;
}

h3 {
  font-size: 1.6rem;
  padding: 2rem 0 1rem 0;
}

p, ul {
  font-size: 1.2rem;
  line-height: 1.6em;
  padding-bottom: 1rem;
}

.starttext {
  display: flex;
  width: 90%;
  align-items: flex-start; /* Bild und Text am oberen Rand ausrichten */
  gap: 20px; /* Abstand zwischen Bild und Text */
}

.starttext p {
  font-size: 1.5rem;
  line-height: 2.5rem;
}

.starttext img {
  float: left;
  width: 25%;
  min-width: 120px;
  height: auto;
}

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

.intro {
  font-size: 1.75rem;
}


.left-col li {
  list-style: square;
  line-height: 1.7em;
  font-family: var(--bold);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

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

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

.teaser {
  margin-block-end: 5rem;
  font-size: 1.3rem;
}


footer ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  /* Abstand definieren (maximal 2rem, minimal 1rem) */
  gap: clamp(4rem, 5vw, 6rem); 
}

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


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



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

.main-menu ul {
  font-size: 1.1rem;

}

  
}



@media screen and (max-width: 820px) {
  
  
.section {
   background-position: -450px;
   padding: 0 1rem 0 0;
 }
  
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: 260px;
  }
  

.sectionsub .container {
    display: block; 
    width: 100%;
    height: auto; 
    margin: 0 auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
 
.layout {
   padding: 1rem 2rem 1rem 2.5rem;
   background-color: rgba(255, 255, 255, .3);
   border-radius: 24px;
  }
  
  
.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%;
  }
  
  .hc-offcanvas-nav.disable-body.nav-open::after, 
   .hc-offcanvas-nav .sub-level-open::after {
     background-position: -800px;
   }
  
  /* Typografie */
  
  
  h1 {
    font-size: 2rem;
    padding-bottom: 1.2rem;
    letter-spacing: 0;
    line-height: 2.6rem;
  }
  
  h2 {
    font-family: var(--light);
    font-size: 1.6rem;
    line-height: 2.6rem;
  }
  
  h3 {
    font-size: 1.6rem;
  }
  
  p {
    font-size: 1.2rem;
    line-height: 1.5em;
  }

.intro {
    font-size: 1.5rem;
  }
  
  .left-col ul {
    margin-inline-start: 1.4rem;
  }
  

  .left-col li {
    padding: 0;
  }


/* Footerbereich */
  
  footer ul {
      flex-wrap: wrap;

  }
  
  
  footer li {
    line-height: 2.5em;
    font-size: .9rem;
    letter-spacing: 0;
    white-space: normal;
    margin: 0 1rem 0 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;
    } 
    
  
  
}



@media screen and (max-width: 40em) {
  
  
 
 p a, p a:visited {
   font-family: var(--regular);
   border-bottom: 1px solid #000;
 }
  
 /* Mobile Navigation: RESETS */
  
 .hc-nav-trigger span, .hc-nav-trigger span::before, .hc-nav-trigger span::after {
   display: block;
   position: absolute;
   height: 3px;
   width: 50px;
   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: -8px;
   width: 65px;
 }
 .hc-nav-trigger span::after {
   bottom: -8px;
   width: 35px;
 }
 
  
header {
  padding: 1rem 0 30px 1rem;
  max-height: 100px;
}

.sticky-header {
  position: sticky;
  max-height: 80px; 
  padding-left: 0;
}

.logo img {
  min-width: 120px;
  margin-left: 1rem;
}

.container {
  height: 35%;
}

.section, .sectionsub {
   background-size: cover;
   background-position: -350px;
   padding: 0;
   height: auto;
 }

.layout {
 padding: 2rem 2rem 6rem 2rem;
 background-color: rgba(255, 255, 255, .4);
 border-radius: 0;
}

.layoutsub {
  padding-left: 1rem;
   padding-right: 1rem;
  gap: 1rem; 
}

.starttext {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start; /* Bild und Text am oberen Rand ausrichten */
  gap: 20px;
}

.starttext p {
  font-size: 1.1rem;
  line-height: 2rem;
  letter-spacing: 0;
}

.starttext img {
  float: none;
  width: 100%;

}


.left-col {
  padding: 0;
}

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



.accordion-title {

font-family: var(--light);
font-size: 1rem;
padding: 4% 6% 4% 5%;
 }

 .accordion-title.open {
  font-size: 1.15rem; 
  letter-spacing: 0;
  padding: 4% 6% 4% 5%;
  margin-top: 8px;
}



/* Typografie */


h1 {
    font-size: 1.2rem;
    padding-bottom: 1.2rem;
    letter-spacing: 0;
    line-height: 2.2rem;
  }
  
.sectionsub h1 {
    padding: 1rem 0 1.5rem 0;
    letter-spacing: 0;
    font-size: 1.4rem;
  }
  
  h2 {
    font-family: var(--light);
    font-size: 1rem;
    line-height: 1.6rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  p, ul {
    font-size: 1rem;
    line-height: 1.5em;
  }

.intro {
    font-size: 1.1rem;
  }

/* Footerbereich */

footer {
 position: fixed;
  padding: 1rem 1rem;
}

footer ul {
  justify-content: center;
  gap: 0; 
}

footer li {
  line-height: 1.5rem;
}


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

/* Footerbereich */


  
}



