/*------------------------------------------------------------------
[Master Stylesheet]

Project:    Gänsefüßchen
Version:    1.1
Last change:    28/06/2025
Primary use:    Website
-------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root{
  --base-clr: #11121a;
  --line-clr: #ffffff;

  --secondary-clr: #01cdc6;
  --active-clr: #313145;
  --hover-clr: #10e8e1;
  --text-clr: #ffffff;

  --secondary-text-clr: #e6e6ef;
  --accent-clr: #01cdc6;
}
/*#fc9846;#e6e6ef;*/





/*------------------------------------------------------------------
General Config
*/
*{
  margin: 0;
  padding: 0;
}
html{
  font-family: Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5rem;
}
body{
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--base-clr);
  color: var(--text-clr);
  display: grid;
  grid-template-columns: auto 1fr;
}





/*------------------------------------------------------------------
Sidebar
*/
#sidebar{
  box-sizing: border-box;
  height: 95vh;
  width: 250px;
  padding: 5px 1em;
  margin-left: 20px;
  background-color: var(--secondary-clr);
  border-radius: .6em;

  position: sticky;
  top: 2.5vh;
  align-self: start;
  transition: 300ms ease-in-out;
  overflow: hidden;
  text-wrap: nowrap;
}
#sidebar.close{
  padding: 5px;
  width: 59px;
}
#sidebar ul{
  list-style: none;
}
#sidebar > ul > li:first-child{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
  .logo{
    font-weight: 600;
  }
}
#sidebar ul li.active a{
  color: var(--active-clr);

  svg{
    fill: var(--active-clr);
  }
}

#sidebar a, #sidebar .dropdown-btn, #sidebar .logo{
  border-radius: .5em;
  padding: .85em;
  text-decoration: none;
  color: var(--text-clr);
  display: flex;
  align-items: center;
  gap: 1em;
}
.dropdown-btn{
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
#sidebar svg{
  flex-shrink: 0;
  fill: var(--text-clr);
}
#sidebar a span, #sidebar .dropdown-btn span{
  flex-grow: 1;
}
#sidebar a:hover, #sidebar .dropdown-btn:hover{
  background-color: var(--hover-clr);
}
#sidebar .sub-menu{
  display: grid;
  grid-template-rows: 0fr;
  transition: 300ms ease-in-out;

  > div{
    overflow: hidden;
  }
}
#sidebar .sub-menu.show{
  grid-template-rows: 1fr;
}
.dropdown-btn svg{
  transition: 200ms ease;
}
.rotate svg:last-child{
  rotate: 180deg;
}
#sidebar .sub-menu a{
  padding-left: 2em;
}
#toggle-btn{
  margin-left: auto;
  padding: 1em;
  border: none;
  border-radius: .5em;
  background: none;
  cursor: pointer;

  svg{
    transition: rotate 150ms ease;
  }
}
#toggle-btn:hover{
  background-color: var(--hover-clr);
}
#infotext{
  position: absolute;
  bottom: 70px;
  left: 34px;
  width: 92%;

  p { font-size: 13px; }
}
#infotext.close{
  visibility: hidden;
}
#infobtns{
  position: absolute;
  bottom: 10px;
  left: 20px;
  display: flex;
  gap: 15px;
  width: 92%;

  svg{
    width: auto;
    height: 20px;
  }
}
#infobtns.close{
  visibility: hidden;
}





/*------------------------------------------------------------------
Main Site Content
*/
main{
  padding: min(30px, 7%);
  text-align: justify;
  color: var(--secondary-text-clr);
  h1{
    color: var(--accent-clr);
    font-size: 3em;
    margin: 16px 0 0 0;
    text-align: center;
  }
  h2{
    color: var(--accent-clr);
    font-size: 2em;
    padding-bottom: .8em;
  }
  h3{
    color: var(--accent-clr);
    font-weight: 500;
    font-size: 1.5em;
  }
  p{
    margin-top: 5px;
    margin-bottom: 15px;
  }  
  a{
    color: var(--accent-clr);
  }
}
#company-logo{
  display: flex;
  justify-content: center;
  height: 280px;

  img { max-height: 100% }
}
/*------------------------------------------------------------------
Styling
*/
.hr-line{
  margin: 10px;
  border-top: 3px solid var(--accent-clr);
  border-radius: 5px;
}
.round-border{
  color: var(--base-clr);
  background-color: var(--accent-clr);
  border-radius: .6em;
  padding: 0 0.8rem;
}
.colored{
  color: var(--accent-clr);
}
.container{
  margin-bottom: 20px;
  padding: min(3em, 15%);
  text-align: center;

  h2, p { margin-top: 20px }
  ul{
    margin: 10px 0 0 1.5em ;
  }
}
.box{
  padding: 10px;
  border: 2px solid var(--secondary-text-clr);
  border-radius: 15px;
}
.centered{
  margin: 0 6vw 0 6vw;
}
.left{
  text-align: left;
}
.bold{
  font-weight: bold;
}
.hidden{
  display: none;
}
@media(min-width: 1500px){
  .scale-hover{
    transition-property: transform;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
  }
  .scale-hover:hover{
    transform: scale(1.05);
  }
}





/*------------------------------------------------------------------
Index
*/
.index-flexbox{
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  gap: 4em;
}
.index-flexbox-item{
  text-align: justify;
  flex: 0 0 47%;
  img{
    border-radius: 20px;
    height: max-content;
    width: 100%;
  }
}
.small-grid{
  display: flex;
  gap: 1em;

  .small-grid-item{
    display: flex;
    flex-direction: column;
    gap: 1em;
    flex: 0 0 48%;
  }
  .small-grid-item:first-child{
    img{
      display: block;
      margin: auto;
      height: max-content;
    }
    height: fit-content;
  }
  .small-grid-item:last-child{
    img{
      display: block;
      margin: auto;
      height: max-content;
      width: 64%;
    }
    height: fit-content;
  }
}
@media(max-width: 1500px){
  .index-flexbox{
    gap: 2em;
  }
  .index-flexbox-item{
    flex: 0 0 100%;
  }
  .small-grid{
    margin: auto;
    margin-left: 50%;
  }
}

.headline-flexbox{
  display: flex;
  gap: 1em;
  img{
    width: 60px;
    height: auto;
  }
}




/*------------------------------------------------------------------
Header
*/
#header {
  text-align: right;

  .header-flex{
    width: fit-content;
    margin: auto;
    margin-right: 0;
    display: flex;
    flex-direction: row;
    gap: 1em;
    
    div{
      width: fit-content;
    }
  }
  p{
    color: var(--secondary-text-clr);
    font-size: 0.8em;
  }
}
#socialbtns{
  display: flex; 
  width: fit-content;
  gap: 10px;
  margin: auto;
  margin-right: 0;
  padding: .05em;
  background-color: var(--secondary-clr);
  border-radius: .6em;

  svg{
    width: auto;
    height: 18px;
    fill: var(--text-clr);
  }
  a{
    display: flex;
    border-radius: .5em;
    padding: .85em;
    text-decoration: none;
    align-items: center;
  }
  a:hover{
    background-color: var(--hover-clr);
  }
}





/*------------------------------------------------------------------
Footer
*/
#footer{
  padding: min(15px, 7%);
  margin: 60px min(-30px, 7%) -30px min(-30px, 7%);
  text-align: center;
  background-color: var(--base-clr);
  
  p{
    color: var(--text-clr);
    
  }
  a{
    text-decoration: none;
    color: var(--text-clr);
    border-radius: .5em;
    padding: .5em;
  }
  a:hover{
    background-color: var(--hover-clr);
  }
}
#line{
  border-right: 1px solid var(--text-clr);
  margin: 0 5px 0 5px;
}





/*------------------------------------------------------------------
Dienstleistung
*/
.preisliste{
  border: solid var(--secondary-text-clr) 2px;
  border-radius: .6em;
  width: 100%;

  table{
    border-collapse: collapse;
    width: 100%;
  }
  th{
    border: solid 0;
    background-color: var(--secondary-clr);
  }
  th:first-child{
    border-radius: .45em 0 0 0;
  }
  th:last-child{
    border-radius: 0 .45em 0 0;
  }
  tr:last-child td:first-child{
    border-radius: 0 0 0 .45em;
  }
  tr:last-child td:last-child{
    border-radius: 0 0 .45em 0;
  }
  tr:nth-child(even){
    background-color: var(--active-clr);
  }
  th, td{
    padding: 5px;
  }
  td:first-child{
    text-align: left;
  }
}
.preisliste-flexbox{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4em;
}
.preisliste-flexbox-item:last-child{
    margin-top: 105px;
  }
.preisliste-flexbox-item{
  flex: 0 0 47%;
}
.quote-flexbox{
  display: flex;
  font-weight: bold;
  margin: auto;
  width: fit-content;
  img{
    margin-top: 9px;
    width: 25px;
    height: auto;
  }
}

@media(max-width: 1500px){
  .preisliste-flexbox{
    gap: 2em;
  }
  .preisliste-flexbox-item{
    flex: 0 0 100%;
  }
}




/*------------------------------------------------------------------
Img Grid
*/
.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
  padding-left: 60px;
}
/* Create four equal columns that sits next to each other */
.column {
  flex: 32%;
  max-width: 33%;
  padding: 0 2px;
}
.column img {
  border-radius: .6em;
  margin-top: 8px;
  vertical-align: middle;
  width: 70%;
}
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 675px) {
  .row {
    padding-left: 30px;
  }
  .column {
    flex: 30%;
  }
}
/*
.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
  padding-left: 60px;
}
/* Create four equal columns that sits next to each other */
.column {
  flex: 32%;
  max-width: 33%;
  padding: 0 2px;
}
.column img {
  border-radius: .6em;
  margin-top: 8px;
  vertical-align: middle;
  width: 70%;
}
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 675px) {
  .row {
    padding-left: 30px;
  }
  .column {
    flex: 30%;
  }
}







/*------------------------------------------------------------------
Kontakt
*/
.kontakt-flexbox{
  display: flex;
  flex-direction: row-reverse;
  order: 2;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4em;
}
.kontakt-flexbox-item{
  flex: 1 1 auto;
}
#google-map{
  border-radius: .6em;
}





/*------------------------------------------------------------------
Impressum Datenschutz
*/
.formal-text{
  text-align: justify;
}





/*------------------------------------------------------------------
Responsive Media Querries
*/
@media(max-width: 1500px){
  .formal-text{
    h1{
      font-size: 2em;
    }
    h2{
      font-size: 0.9em;
    }
    h3{
      font-size: 0.9em;
    }
    p{
      font-size: 0.8em;
    }
  }
  .preisliste{
    font-size: 0.8em;
  }
}



@media(max-width: 1100px){
  main h1{
    font-size: 35px;
    margin-bottom: 0;
  }
  #google-map{
    width: 100%;
  }
  .kontakt-flexbox{
    gap: 2em;
  }
  .kontakt-flexbox-item:nth-child(1){
    text-align: center;
    p{
      text-align: center;
    }
  }
}



@media(max-width: 800px){
  #company-logo{
    display: flex;
    margin-top: 3em;
    height: 250px;
  
    img { max-height: 100% }
  }
  body{
    grid-template-columns: 1fr;
  }
  main{
    padding: 2em 1em 60px 1em;
  }
  .container{
    border: none;
    padding: 0;
  }
  #infotext{
    visibility: hidden;
  }
  #infobtns{
    visibility: hidden;
  }
  #sidebar{
    height: 60px;
    width: 94%;
    margin-left: 15px;
    margin-right: 15px;
    padding: 0;
    position: fixed;
    top: unset;
    bottom: 0;

    > ul{
      padding: 0;
      display: grid;
      grid-auto-columns: 60px;
      grid-auto-flow: column;
      align-items: center;
      overflow-x: scroll;
    }
    ul li{
      height: 100%;
    }
    ul a, ul .dropdown-btn{
      width: 60px;
      height: 60px;
      padding: 0;
      border-radius: 0;
      justify-content: center;
    }

    ul li span, ul li:first-child, .dropdown-btn svg:last-child{
      display: none;
    }

    ul li .sub-menu.show{
      position: fixed;
      bottom: 60px;
      left: 0;
      box-sizing: border-box;
      height: 60px;
      width: 100%;
      background-color: var(--hover-clr);
      border-top: 1px solid var(--line-clr);
      display: flex;
      justify-content: center;

      > div{
        overflow-x: auto;
      }
      li{
        display: inline-flex;
      }
      a{
        box-sizing: border-box;
        padding: 1em;
        width: auto;
        justify-content: center;
      }
    }
  }
  main{
    h1{
      margin-top: 16px;
      font-size: 6vw;
    }
    h2{
      line-height: 5vw;
      font-size: 5vw;
    }
    h3{
      font-size: 3vw;
    }
    p{
      font-size: 0.8em;
    }  
    li{
      font-size: 0.8em;
    }
    thead tr td{
      font-size: 0.8em;
    }
  }
  #footer{
    margin: 60px -1em 0 -1em;
  }
}


@media(max-height: 480px){
  #infotext{
    visibility: hidden;
  }
}
@media(max-height: 350px){
  #infobtns{
    visibility: hidden;
  }
}