/* CSS Document */
* {
    margin: 0;
    padding: 0;
}

/* roboto-100 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100;
  src: local(''),
       url('fonts/roboto-v30-latin-100.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('fonts/roboto-v30-latin-100.woff2') format('woff2'), /* Super Modern Browsers */
       url('fonts/roboto-v30-latin-100.woff') format('woff'), /* Modern Browsers */
       url('fonts/roboto-v30-latin-100.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/roboto-v30-latin-100.svg#Roboto') format('svg'); /* Legacy iOS */
}

/* roboto-regular - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       url('fonts/roboto-v30-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('fonts/roboto-v30-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('fonts/roboto-v30-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/roboto-v30-latin-regular.svg#Roboto') format('svg'); /* Legacy iOS */
}

/* roboto-500 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: local(''),
       url('fonts/roboto-v30-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
       url('fonts/roboto-v30-latin-500.woff') format('woff'), /* Modern Browsers */
       url('fonts/roboto-v30-latin-500.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/roboto-v30-latin-500.svg#Roboto') format('svg'); /* Legacy iOS */
}

/* roboto-700 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/roboto-v30-latin-700.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('fonts/roboto-v30-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('fonts/roboto-v30-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('fonts/roboto-v30-latin-700.woff') format('woff'), /* Modern Browsers */
       url('fonts/roboto-v30-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/roboto-v30-latin-700.svg#Roboto') format('svg'); /* Legacy iOS */
}

/* QuadraatSansPro-500 - latin */
@font-face {
  font-family: 'QuadraatSansPro';
  font-style: normal;
  font-weight: 500;
  src: local(''),
       url('fonts/QuadraatSansPro.otf');
      }

/* QuadraatSansPro-700 - latin */
@font-face {
  font-family: 'QuadraatSansPro';
  font-style: normal;
  font-weight: 700;
  src: local(''),
       url('fonts/QuadraatSansPro-Bold.otf');
      }

/* QuadraatSansPro-italic - latin */
@font-face {
  font-family: 'QuadraatSansPro';
  font-style: italic;
  font-weight: 500;
  src: local(''),
       url('fonts/QuadraatSansPro-Ita.otf');
      }

/* Allgemeiner Grid-Wrapper */
.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(12, minmax(0,1fr));
    column-gap: 23px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.center-wrapper {
    flex-direction: column;
    display: flex;
    align-items: center;
}

.full-width {
    width: 100%;
}

/* Für Wellen über oder unter Abschnitten */
.wave {
    width: 100%;
}

/* Allgemein */
h1 {
    margin-top: 8vw;
    margin-bottom: 15px;
    font-family: 'QuadraatSansPro';
    font-style: italic;
    font-size: 80px;
    color: #FFFFFF;
    letter-spacing: 0.02px;
    line-height: 88px;
    text-shadow: 0 0 80px #000000, 0 0 40px #000000;
}

h2 {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 25px;
    color: #168B46;
    letter-spacing: 0.01px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

h3 {
    font-family: 'QuadraatSansPro';
    font-style: normal;
    font-weight: 500;
    font-size: 63px;
    color: #000000;
    letter-spacing: 0.02px;
    line-height: 73px;
    margin-bottom: 15px;
}

div {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    color: #000000;
    line-height: 25px;
}

p {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    color: #000000;
    letter-spacing: 0.1px;
    line-height: 25px;
}

section {
	margin-top: 100px;
}

img {
    max-width: 100%;
}

/* Header für Desktop */
header {
    background-image: url("../img/header-desktop.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    /* aspect-ratio quelle: https://stackoverflow.com/a/69123402 */
    /* aspect-ratio: 100 / 61.52; */
    width: 100vw;
	height: 61.52vw;
}

#nav-items {
    grid-template-areas: "logo logo . menu menu menu menu menu menu menu menu menu";
}

nav {
    background-image: url("../img/nav-background.svg");
    background-size: 100% 100%;
    padding-bottom: 60px;
	width: 100vw;
}

#logo {
    grid-area: logo;
    max-height: 130px;
    margin-top: 23px;
}

#menu-items {
    color: #FFFFFF;
    grid-area: menu;
    margin-top: 60px;
    display: flex;
    align-items: center;
    height: auto;
    justify-content: space-between;
    align-self: start;
}


#menu-items a {
    font-family: 'QuadraatSansPro';
    font-style: normal;
    font-weight: 500;
    font-size: 25px;
    text-decoration: none;
    color: #FFFFFF;
}

#menu-items a.active {
    border-bottom: 4px solid #FFFFFF;
}

#menu-items a:visited {
    text-decoration: none;
    color: #FFFFFF;
    
}
    
#menu-items a.menu-small {
    font-size: 16px;
    }


#burger-button {
    display: none;
}
#header-text {
    grid-template-areas: ". . . h1 h1 h1 h1 h1 h1 h1 h1 ."
                         ". . . p p p p p p . . .";
}

h1 {
    grid-area: h1;
}

#header-text p {
    font-family: 'QuadraatSansPro';
    font-style: normal;
    font-weight: 500;
    grid-area: p;
    font-size: 33px;
    color: #FFFFFF;
    letter-spacing: 0.01px;
    text-shadow: 0 0 100px #000000;
}

/* Erster Abschnitt */

#agrargenossenschaft-finow {
    grid-template-areas: "img img img img img . text text text text text text";
}

#quote-img {
    grid-area: img;
    /* gleich position: relative von #quote aus */
    margin-bottom: -100px;
}

#gemuesekiste {
    border-radius: 11px;
}


#gemuesekiste-mobil {
    border-radius: 11px;
    display: none;
}

.text {
    grid-area: text;
}

#quote {
    display: flex;
    padding: 24px 15px;
    background-color: #168B46;
    border-radius: 11px;
    position: relative;
    top: -100px;
    left: 40px;
    width: 40%;
    min-width: 280px;
    min-height: 180px;
    margin: auto;
    justify-content: center;
    box-shadow: 6px -7px 20px 0 rgba(0,0,0,0.15);
}

#quote p {
    font-size: 30px;
    color: #FFFFFF;
    letter-spacing: 0.01px;
    line-height: 51px;
    margin-top: 0px;
}

#quote-icon {
    max-width: 70px;
    height: auto;
    align-self: flex-end;
    margin-left: -70px;
    margin-bottom: 50px;
    top: 50px;
    position: relative;
}

/* Zweiter Abschnitt */

#unser-aquaponik-kreislaufsytem {
    grid-template-areas: "text text text text text  . img img img img img img ";
    /* Ausgleich für position: relative */
    margin-top: 200px;
}

#aquaponik-kreislauf {
    grid-area: img;
}

#aquaponik-kreislauf-mobil {
    grid-area: img;
    display: none;
}

/* Dritter Abschnitt */

#blue-wave-top {
    margin-top: 100px;
}

#wie-funktioniert-aquaponik .grid-wrapper {
    grid-template-areas: ". h3 h3 h3 h3 h3 h3 h3 h3 h3 h3 ."
                         ". p p p p p p p p p p .";
}
#wie-funktioniert-aquaponik  {
    background-color: #012C60;
    padding: 20px 0;
    margin: -20px 0;
}

#wie-funktioniert-aquaponik h3 {
    grid-area: h3;
    color: #FFFFFF;
    align-self: center;
    justify-self: center;
}

#erklaertext {
    grid-area: p;
    color: #FFFFFF;
    align-self: center;
    justify-self: center;
    text-align: center;
	font-family: 'Roboto';
	font-weight: 100;
}

#aquaponik-diagramm {
    background-image: url("../img/vektor_kreislauf.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 80px auto 80px auto;
    width: 1200px;
    height: 745px;
    display: block;
}

#aquaponik-diagramm-mobil {
    display: none;
}

.diagramm-info {
    position: relative;
    display: flex;
    align-items: flex-start;
    max-width: 350px;
}

.triangle {
    margin-top: 15px;
    margin-right: -4px;
    align-self: flex-start;
}

.erklaerung-text {
    height: auto;
    background: #fff;
    padding: 10px;
    border-radius: 11px;
    display: inline-block;
}

/* Quelle: https://www.geeksforgeeks.org/display-div-element-on-hovering-over-a-tag-using-css/ */
.ipunkt + .erklaerung {
    display: none;
}

/* Wenn über den i-Punkt gehovert wird, soll der erklaertext daneben sichtbar werden */
.ipunkt:hover + .erklaerung {
    display: flex;
    position: absolute;
    left: 60px;
    font-family: "Roboto";
    font-size: 16px;
    font-weight: 100;
    margin-left: 5px;
}

#info-fische {
    top: 80px;
    left: 340px;
}

#info-ausscheidungen {
    top: 150px;
    left: 720px;
}

#info-pflanzen {
    top: 550px;
    left: 680px;
}

#info-wasser {
    top: 450px;
    left: 125px;    
}

#aquaponik-foto {
    width: 100%;
    height: auto;
    position: relative;
    top: -235px;
    margin: 0px 0px -235px 0px;
    z-index: -1;
}

#blaue-welle-unten {
	width: 100%;
}

/* Rezept slider */
#rezeptkarussel {
    grid-template-areas: "slider slider slider slider slider slider slider slider slider slider slider slider";
}

#splide01 {
    grid-area: slider;
}

.splide__arrow {
    width: 3vw;
    height: 3vw;
}

.splide__arrow svg {
    width: 2vw;
    height: 2vw;
}
/* Pfeile gehen aus dem Raster raus  */
.splide__arrow--next {
  right: -50px;
}

.splide__arrow--prev {
  left: -50px;
}

.splide__progress__bar {
    margin-top: 30px;
    background: #EBAC0D;
    height: 5px;
}


.rezept {
    /* Um das Icon auszugleichen */
    margin-left: 50px;
}

.rezept-icon {
    position: absolute;
    margin-top: 0px;
    /*
    TODO: entfernen
    height: 100px;
    width: 100px;
    top: -30px;
    left: -30px;
    */
    
    height: 20%;
    width: auto;
    top: -5%;
    left: -5%;
}


.splide__track {
    padding-left: 30px;
    padding-top: 30px;
    
}
.splide__slide__container {
    border-radius: 11px;
}
.splide__slide a {
    color: #000000;
    text-decoration: none;
}

.splide__slide a:visited {
    color: #000000;
    text-decoration: none;
}

.splide__slide a:hover {
    text-decoration: underline;
}

.rezeptname {
    font-family: "Roboto";
    font-weight: 500;
    font-size: 25px;
    margin-top: 20px;
    /* Zu lange Rezeptnamen sollen umbrechen, statt in das nächste Rezept zu laufen:
    * https://stackoverflow.com/a/3059128
    */
    overflow-wrap: break-word;
}

.rezept p {
    font-family: "Roboto";
    font-weight: 100;
    font-size: 20px;
    margin-top: 10px;
}

#welsfilet {
    background-image: url("../img/welsfilet.jpg");
}

#rote-beete {
    background-image: url("../img/roten-beete.jpg");
}


#blumenkohl {
    background-image: url("../img/blumenkohl.jpg");
}

#mangold {
    background-image: url("../img/mangold.jpg");
}

#gemuese {
    background-image: url("../img/gemuese.jpg");
}

/* Footer */
footer {
	margin-top: 100px;
}

#footer-welle {
    position: relative;
    top: 110px;
    z-index: -1;
	
}

#footer-content {
    grid-template-areas: "logo logo . . . . . . name name name name"
                         "logo logo . . a a a a . p p p"
                         ". . . . img img img img . . . .";
}

footer {
    background-color: #168B46;
    padding: 40px 0px 60px 0px;
    font-size: 16px;
}

#footer-logo {
    grid-area: logo;
}

#footer-links{
	grid-area: a;
	text-align: center;
}

#footer-links a {
	font-family: 'Roboto';
    font-style: normal;
	text-decoration: underline;
    color: black;
}

#footer-links a:visited {
	font-family: 'Roboto';
    font-style: normal;
    color: #000000;
}

#footer-links a:hover {
    color: #ffffff;
}

#footer-name {
	grid-area: name;
    text-align: right;
    justify-self: right;
	font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
	margin-top: 0;
}

#footer-text {
	grid-area: p;
    text-align: right;
    justify-self: right;
}

footer p {
    margin-top: 0px;
}
#wels {
    grid-area: img;
}


@media (max-width: 1200px) {
    /* Allgemeiner Grid-Wrapper */
    .grid-wrapper {
        display: grid;
        grid-template-columns: repeat(6, minmax(0,1fr));
        column-gap: 40px;
        width: 90%;
    }
    /* Allgemein */
    h1 {
        font-size: 5vw;
        line-height: 6vw;
        margin-top: 3vw;
    }

    h2 {
        font-size: 25px;
        margin-bottom: 15px;
    }

    h3 {
        font-size: 45px;
        letter-spacing: 0.01px;
        line-height: 53px;
    }

    p {
        font-size: 18px;
        line-height: 25px;
    }
    
    div {
        font-size: 18px;
        line-height: 25px;
    }
    .wave {
        max-height: 100px;
    }
    
    section img {
        margin-top: 15px;
    }
    
    /* Header mobil */
    
    #logo {
        max-height: 100px;
    }
    
    #nav-items {
        grid-template-areas: "logo logo . . . burger";
    }

    #menu-items {
        display: none;
    }
    #burger-button {
        display: block;
        grid-area: burger;
        justify-self: center;
    }
    header {
        background-image: url("../img/header-mobil.jpg");
        height: 81.6vw;
    }
    
    #header-text {
        grid-template-areas: "h1 h1 h1 h1 h1 h1"
                             "p p p p p p ";
        justify-items: center;
    }
    
    #header-text p {
        font-size: 3vw;
    }
    
    /* Erster Abschnitt */
    #agrargenossenschaft-finow {
        grid-template-areas: "text text text text text text"
                             ". img img img img .";
    }

    #gemuesekiste-mobil {
        display: block;
    }

    #gemuesekiste {
        display: none;        
    }
    
    #quote {
        margin: unset;
    }

    /* Zweiter Abschnitt */
    
    #blue-wave-top {
        margin-top: 0px;
    }
    #unser-aquaponik-kreislaufsytem {
            grid-template-areas: "text text text text text text"
                                 "img img img img img img";
            margin: 100px;
    }

    
    #aquaponik-kreislauf {
        display: none;
    }

    #aquaponik-kreislauf-mobil {
        display: block;
    }
    
    /* Dritter Abschnitt */

    /* Desktop Elemente verstecken */
    #erklaertext {
        display: none;
    }
    #aquaponik-diagramm {
        display: none;
    }
    
    #wie-funktioniert-aquaponik {
        padding-bottom: 40px;
    }
    #wie-funktioniert-aquaponik h3 {
        grid-column: 1/7;

    }
    #wie-funktioniert-aquaponik .grid-wrapper {
        grid-template-areas: unset;
    }
    
    #aquaponik-diagramm-mobil {
        display: grid;
        grid-template-areas: unset;
    }
    
    #kreislauf-mobil {
        grid-column: 1/7;
        justify-self: center;
    }

    .erklaerung-mobil {
        grid-column: 1/7;
    }
    .erklaerung-mobil img {
        float: left;
    }
    .erklaerung-mobil div {
        margin-left: 80px;
        color: #ffffff;
    }
    
    /* Rezeptkarussel */
    
    #rezeptkarussel {
      grid-template-areas:
      ". slider slider slider slider .";
        /* slider macht schon margin */
        margin-top: 0px;

    }
    
    .rezept-icon {
        position: relative;
        height: auto;
        width: 35%;
        top: 10%;
        left: -10%;
}

    .rezept-img {
        width: 100%;
        height: auto;
        background-size: cover;
        background-position: center;
        border-radius: 11px;
    }

    .splide__arrow {
        height: 8vw;
        width: 8vw;

    }
    .splide__arrow svg {
        height: 4vw;
        width: 4vw;
    }  
    
    /* Pfeile gehen aus dem Raster raus  */
    .splide__arrow--next {
      right: -12vw;
    }

    .splide__arrow--prev {
      left: -8vw;
    }


    /* Footer mobil */
    #footer-content {
        grid-template-areas: "logo logo . . name name"
                             "logo logo a a p p"
                             ". . img img . .";
    }
    #footer-logo {
        max-width: 250px;
        max-height: 150px;
    }
    footer {
        font-size: 14px;
    }
}