﻿/*
CSS STRUKTUR
1. Settings
2. Typografie
3. Positioning
4. Container & Grid
5. Navigation
6. Button
7. Image Setting
    Gallery
8. Form
9. Alert
10. Card
12. Divider
13. Table
Animation
*/

/*Settings*/

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  left: 0;
  top: 0;
  font-size: 100%;
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 8px;
}
  
::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: var(--highlight);
}

::selection {
  color: var(--light);
  background: var(--highlight);
}

:root {
  --primary: #18F76F;
  --secondary: #66F4D9;
  --contrast: #66F4D9;
  --light: #fff;
  --highlight: #000;
  --grey: #d3d3d3;
  --darkgrey: #000;
  --customwidth: 900px;
  --green: #18F76F;
  --red: #D94552;
  --fontcolor: #000;
  --cubic: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --boxshadow: 0 10px 20px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
}

/* Typografie*/

html {
  font-family: 'neue-haas-grotesk-text', sans-serif;
  font-size: 16px;
  color: var(--fontcolor);
}

@media screen and (min-width: 320px) {
  html {
    font-size: calc(16px + 2 * ((100vw - 320px) / var(--customwidth)));
  }
}

@media screen and (min-width: 900px) {
  html {
    font-size: 16px;
  }
}

h1, h2, h3, h4, h5, h6, .logo a {
  font-family: 'tussilago', sans-serif;
  line-height: 1.2;
  color: var(--fontcolor);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5em;
}

h2 {
  font-size: 2em;
}

h3 {
  font-size: 1.25em;
}

h4 {
  font-size: 1.125em;
}

h5 {
  font-size: 2em;
}

h6 {
  font-size: 1.75em;
}

p {
  line-height: 1.6;
  letter-spacing: -0.017em;
  margin-top: 0;
  margin-bottom: 1em;
}

p a {
  color: inherit;
  text-decoration: underline;
}

p a:hover {
  color: var(--highlight);
  text-decoration: underline;
}

.font-regular {
  font-weight: 400;
}

.font-heavy {
  font-weight: 700;
}

/* Icon Position*/

.far, .fas {
  margin-right: 8px;
}

/* Positionen */

.left {
  text-align: left;
}

.right {
  text-align: right;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.justify {
  text-align: justify;
}

.justify-content {
  align-items: center;
}

/* Back to top*/

.back-to-top {
  display: flex;
  width: 100%;
  height: 100%;
  max-width: 230px;
  max-height: 20px;
  position: fixed;
  margin: 16px;
  padding: 16px;
  right: 0;
  bottom: 0;
  background-color: var(--primary);
  z-index: 100;
}

.back-to-top a {
  display: block;
  padding: 0 auto;
  flex-direction: row;
  font-size: 1em;
  color: var(--darkgrey);
  text-align: left;
  justify-content: flex-end;
  align-items: flex-end;
  text-decoration: none;
}

@media (orientation: portrait) {
  .back-to-top a i {
    padding: 0 auto;
    flex-direction: row;
    font-size: 1.5em;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
}




/*Container & Grid */

.container {
  max-width: var(--customwidth);
  margin: auto;
  padding: 16px;
}

@media(orientation: landscape) {
  section {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      grid-gap: 16px;
      margin: 4em auto;
  }

  .col-2{
    grid-column: span 2 / auto;
  }

  .col-3{
    grid-column: span 3 / auto;
  }

  .col-4{
    grid-column: span 4 / auto;
  }

  .col-5{
    grid-column: span 5 / auto;
  }

  .col-6{
    grid-column: span 6 / auto;
  }

  .col-7{
    grid-column: span 7 / auto;
  }

  .col-8{
    grid-column: span 8 / auto;
  }

  .col-9{
    grid-column: span 9 / auto;
  }

  .col-10{
    grid-column: span 10 / auto;
  }

  .col-11{
    grid-column: span 11 / auto;
  }

  .col-12 {
    grid-column: span 12 / auto;
  }

  .col-12 .blogtext {
    max-width: 64%;
    margin: auto;
  }
}

/* always use grids */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 16px;
  margin: 1em auto;
}

@media (orientation: portrait) {
  .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 8px;
    margin: 1em auto;
  }

  .col-2-sm {
    grid-column: span 2 / auto;
  }
  
  .col-3-sm {
    grid-column: span 3 / auto;
  }
  
  .col-4-sm {
    grid-column: span 4 / auto;
  }
  
  .col-5-sm {
    grid-column: span 5 / auto;
  }
  
  .col-6-sm {
    grid-column: span 6 / auto;
  }
  
  .col-7-sm {
    grid-column: span 7 / auto;
  }
  
  .col-8-sm {
    grid-column: span 8 / auto;
  }
  
  .col-9-sm {
    grid-column: span 9 / auto;
  }
  
  .col-10-sm {
    grid-column: span 10 / auto;
  }
  
  .col-11-sm {
    grid-column: span 11 / auto;
  }
  
  .col-12-sm {
    grid-column: span 12 / auto;
  }
}

/* display grid colored in branding guide */

.coloredgrid {
 background-color: var(--highlight);
 padding: 16px;
 vertical-align: middle;
 color: var(--light);
}

.coloredgrid p {
  color: var(--light);
}


/* Navigation */

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

li a {
  color: inherit;
  text-decoration: none;
}

label[for="mobile-menu"] {
  font-size: 32px;
  cursor: pointer;
  position: absolute;
  padding: 20px;
}

ul.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  margin: 0;
  width: 300px;
  height: 100%;
  z-index: 999;
  background: var(--light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: var(--cubic);
  overflow-x: hidden;
  overflow-y: auto;
}

ul.side-nav > li.logo a {
  padding: 20px 15px;
  font-size: 24px;
  background-color: var(--darkgrey);
  color: var(--primary);
  transition: var(--cubic);
}

ul.side-nav > li a,
ul.side-nav > li label {
  display: block;
  font-size: 16px;
  line-height: 44px;
  padding-left: 15px;
  white-space: nowrap;
  color: var(--fontcolor);
}

ul.side-nav > li:not(.logo) a:hover,
ul.side-nav > li label:hover {
  background-color: var(--highlight);
  color: var(--primary);
}

.dropdown input[type="checkbox"] {
  display: none;
}

.dropdown input[type="checkbox"]:checked ~ label {
  background-color: var(--primary);
  color: var(--light);
}

.dropdown input[type="checkbox"]:checked ~ ul {
  max-height: 100vh;
}

.dropdown label {
  cursor: pointer;
}

.dropdown > ul {
  max-height: 0;
  overflow: hidden;
  transition: var(--cubic);
}

.dropdown > ul > li > a {
  padding-left: 30px;
}

.ripple {
  transition: all 0.4s;
  background-position: 50%;
  background-size: 200%;
}

.ripple:active {
  background-repeat: no-repeat;
  background-size: 1000%;
  background-image: radial-gradient(circle, rgba(0,0,0,0.1) 10%, rgba(0,0,0,0) 11%);
}

@media only screen and (max-width: 1800px) {
  input[type="checkbox"]#mobile-menu:checked ~ label[for="mobile-menu"] {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    transition: all 0.25s ease-in-out;
  }

  input[type="checkbox"]#mobile-menu:checked ~ ul.side-nav {
    margin-left: 0%;
  }

  ul.side-nav {
    margin-left: -100%;
  }
}

.hidden {
  display: none;
}

/* Code */

code {
  white-space: pre;
  background-color: var(--primary);
  color: var(--light);
  font-size: 14px;
  padding: 1em;
}

@media (orientation: portrait) {
  code {
    display: none;
  }
}

/* Button */

.primary-button-outline {
  font-weight: 700;
  display: inline-block;
  text-align: center;
  font-size: 16px;
  padding: 12px 24px;
  border: 1px solid var(--secondary);
  background-color: var(--light);
  color: var(--secondary);
  position: relative;
  cursor: pointer;
}

.primary-button-outline:hover {
  background-color: var(--highlight);
  color: var(--light);
  box-shadow: 0 10px 20px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  transition: 0.5s;
}

.primary-button {
  font-weight: 700;
  display: inline-block;
  text-align: center;
  font-size: 16px;
  padding: 12px 24px;
  border: 1px solid var(--secondary);
  background-color: var(--secondary);
  color: var(--light);
  position: relative;
  cursor: pointer;
}

.primary-button:hover {
  background-color: var(--highlight);
  color: var(--light);
  box-shadow: 0 10px 20px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  transition: var(--cubic);
}

.secondary-button {
  font-weight: 700;
  display: inline-block;
  text-align: center;
  font-size: 16px;
  padding: 12px 24px;
  border: 1px solid var(--darkgrey);
  background-color: var(--darkgrey);
  color: var(--light);
  position: relative;
  cursor: pointer;
}

.secondary-button:hover {
  background-color: var(--grey);
  color: var(--light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: var(--cubic);
}

/* Image Settings */
img {
  width: 100%;
  object-fit: cover;
}

/* Gallery Settings*/

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
}

.media-gallery :nth-child(n) {
  max-height: calc(100vh / 3);
  max-height: 25vh;
  object-fit: cover;
}

/* Kontaktformular*/
.group {
  position: relative;
  margin-bottom: 8px;
}

#contact label {
  font-size: 14px;
  margin-bottom: 2em;
}

#contact input {
  display: block;
  width: calc(100% - 48px);
  padding: 8px 12px;
  border: 1px solid var(--primary);
}

#contact input:focus {
  outline: none;
  border: 1px solid var(--highlight);
}

#contact select {
  width: calc(100% - 24px);
  padding: 8px 12px;
  margin-bottom: 1em;
  border: 1px solid var(--highlight);
  color: var(--primary);
}

#contact select:focus {
  box-shadow: 0 2px 8px var(--contrast), 0 2px 4px var(--contrast);
}

.radio label {
  display: block;
}

#contact input[type="checkbox"] {
  display: inline-block;
  margin-right: 4px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--primary);
  background-color: var(--primary);
}

#contact input[type="radio"] {
  display: none;
}

label span {
  background: #fff;
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 1px solid var(--primary);
  position: relative;
  margin-right: 8px;
}

input[type="radio"] + span {
  border-radius: 50%;
}

input[type="radio"]:checked + span{
  background-color: var(--primary);
}

/* Alert */
.alert {
  padding: 16px;
  background-color:var(--red);
  color: var(--light);
  opacity: 1;
  transition: opacity 0.6s;
  margin-bottom: 16px;
}

.alert.success {
  background-color: var(--green);
}

.alert.info {
  background-color: var(--primary);
}

.closebtn {
  margin-left: 15px;
  color:var(--light);
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: var(--cubic);
}

.closebtn:hover {
  color: var(--primary);
}

/* Card */

.card {
  padding: 12px;
  background-color: var(--light);
  margin-bottom: 1em;
  box-shadow: var(--boxshadow);
}

/* Divider */

.divider-top {
  border-top: 1px solid var(--grey);
  margin-top: 1em;
}

/* Tabelle */

.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 2rem;
  background-color: var(--white);
}

.table > thead > tr,
.table > tbody > tr,
.table > tfoot > tr {
  transition: var(--cubic);
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
  text-align: left;
  padding: 1.6rem;
  vertical-align: top;
  border-top: 0;
  transition: var(--cubic);
}

.table > thead > tr > th {
  font-weight: 400;
  color: var(--primary);
  vertical-align: bottom;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.table > caption + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > th,
.table > thead:first-child > tr:first-child > th,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > td {
  border-top: 0;
}

.table > tbody + tbody {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.table .table {
  background-color: var(--white);
}

.table .no-border {
  border: 0;
}

.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
  padding: 0.8rem;
}

.table-bordered {
  border: 0;
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
  border: 0;
  border-bottom: 1px solid var(--grey);
}

.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
  border-bottom-width: 2px;
}

.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th {
  background-color: #f5f5f5;
}

.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th {
  background-color: rgba(0, 0, 0, 0.12);
}

@media screen and (max-width: 768px) {
  .table-responsive-vertical > .table {
    margin-bottom: 0;
    background-color: transparent;
  }
  .table-responsive-vertical > .table > thead,
  .table-responsive-vertical > .table > tfoot {
    display: none;
  }

  .table-responsive-vertical > .table > tbody {
    display: block;
  }

  .table-responsive-vertical > .table > tbody > tr {
    display: block;
    border: 1px solid var(--grey);
    margin-bottom: 1.6rem;
  }

  .table-responsive-vertical > .table > tbody > tr > td {
    background-color: var(--light);
    display: block;
    text-align: right;
  }

  .table-responsive-vertical > .table > tbody > tr > td[data-title]:before {
    content: attr(data-title);
    float: left;
    font-size: inherit;
    font-weight: 400;
    color: var(--darkgrey);
  }

  .table-responsive-vertical.shadow-z-1 {
    -webkit-box-shadow: none;
    box-shadow: none;
  }


  .table-responsive-vertical > .table-bordered {
    border: 0;
  }

  .table-responsive-vertical > .table-bordered > tbody > tr > td {
    border: 0;
    border-bottom: 1px solid var(--grey);
  }

  .table-responsive-vertical > .table-bordered > tbody > tr > td:last-child {
    border-bottom: 0;
  }

  .table-responsive-vertical > .table-striped > tbody > tr > td,
  .table-responsive-vertical > .table-striped > tbody > tr:nth-child(odd) {
    background-color: var(--light);
  }

  .table-responsive-vertical > .table-striped > tbody > tr > td:nth-child(odd) {
    background-color: #f5f5f5;
  }

  .table-responsive-vertical > .table-hover > tbody > tr:hover > td,
  .table-responsive-vertical > .table-hover > tbody > tr:hover {
    background-color: var(--light)
  }

  .table-responsive-vertical > .table-hover > tbody > tr > td:hover {
    background-color: rgba(0, 0, 0, 0.12);
  }
}

@media screen and (max-width: 767px) {
  .table-responsive-vertical .table-striped.table-mc-blue > tbody > tr > td,
  .table-responsive-vertical .table-striped.table-mc-blue > tbody > tr:nth-child(odd) {
    background-color: var(--white);
  }

  .table-responsive-vertical .table-striped.table-mc-blue > tbody > tr > td:nth-child(odd) {
    background-color: var(--highlight);
  }

  .table-responsive-vertical .table-hover.table-mc-blue > tbody > tr:hover > td,
  .table-responsive-vertical .table-hover.table-mc-blue > tbody > tr:hover {
    background-color: var(--white);
  }

  .table-responsive-vertical .table-hover.table-mc-blue > tbody > tr > td:hover {
    background-color: var(--highlight);
  }
}

.table-striped.table-mc-color > tbody > tr:nth-child(odd) > td,
.table-striped.table-mc-color > tbody > tr:nth-child(odd) > th {
  background-color: var(--highlight);
}

.table-hover.table-mc-color > tbody > tr:hover > td,
.table-hover.table-mc-color > tbody > tr:hover > th {
  background-color: var(--highlight);
}


/*Color Palette*/
.hex:after {
  content: "hex: ";
  color: var(--grey);
}

.rgb:after {
  content: "rgb: ";
  color: var(--grey);
}

.cmyk:after {
  content: "cmyk: ";
  color: var(--grey);
}

/*Animation*/

/*BLUR*/
.blur {
    filter: blur(4px);
    transition: var(--cubic);
}

.blur:hover {
  filter: blur(0);
  transition: var(--cubic);
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {filter: blur(2px)}
  to {filter: blur(0)}
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/*SHADOW*/
.shadow {
  box-shadow: 0 10px 20px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
}


@keyframes image {
  0% {
      opacity: 0;
      filter: blur(42px);
      background-image: url("../img/2.jpg");
  }

  25% {
      opacity: 1;
      filter: blur(0px);
      background-image: url("../img/2.jpg");
  }

  50% {
      opacity: 0;
      -webkit-filter: blur(42px);
  }

  75% {
      opacity: 1;
      filter: blur(0px);
      background-image: url('../img/4.jpg');
  }

  100% {
      opacity: 0;
      filter: blur(42px);
  }

}

.font-type {
  width: 60%;
  margin: 2.5vh 0 5vh 0;
}

.font-type_2 {
  display: block;
  width: 40%;
  margin: 2.5vh 0 5vh 0;
}
