@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');

/* Variables */
:root {
    --primary-bg-color-dark: 0, 38, 80;
    --primary-txt-color-dark: rgb(255, 255, 255);
    --primary-bg-color-light: rgb(255, 255, 255);
    --primary-txt-color-light: rgb( 0, 38, 80);
    --primary-txt-color-light-active: rgb(22, 83, 153);
    --secondary-bg-color-dark: brown;
    --secondary-txt-color-dark: brown;
    --secondary-bg-color-light: brown;
    --secondary-txt-color-light: brown;
  }

/* Overall stylings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    line-height: 1.5rem;
    /* Scroll smooth does not work on Safari (state 15.06.2021)
    /* scroll-behavior: smooth; */
}

h1, h2, h3, h4, h5 {
    margin-bottom: 2rem;
    font-weight: 500;
}

h1 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

.vorteile h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.muted {
    color: var(--primary-txt-color-light-active);
}

a {
    color: var(--primary-txt-color-light);
}

a .link-more {
    font-size: 1.5rem;
}

li {
    margin-left: 1rem;
}

body {
    background: var(--primary-bg-color-light);
    color: var(--primary-txt-color-light);
    min-height: 200vh;
    hyphens: auto;
    text-align: justify;
}

.decoration-element {
    max-width: 35rem;
    margin: 0.5rem auto 4rem;
}

/* MENU */

.ci-logo-start {
    width: 22vw; 
    max-width: 100%;
    opacity: 0.8 !important;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* padding: .3rem 2rem; */
    opacity: 0;
    z-index: 100;
    /* transition: opacity .6s; */
    display: none;
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.nav-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bright {
    color: var(--primary-txt-color-dark);
}

.txt-center {
    text-align: center;
}

.hamburger {
    display: none;
  }

/* Hamburger Icon */
  .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-txt-color-light);
}

/* Hamburger closed Icon */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

header .logo {
    /* position: relative; */
    font-weight: 700;
    color: tomato;
    text-decoration: none;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    transition: .6s;
    z-index: 1;
}

@keyframes fadeIn {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
    }
}

a:link {
    text-decoration: none;
}

nav ul li a.active-menu-item {
    color: white;
    background-color: rgba(var(--primary-bg-color-dark),.6);
    padding: 0.3rem 1rem;
}


.scroll-down-btn {
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    font-size: 1.5rem;
}

.scroll-down-btn i {
    margin-top: 1rem;
}

nav ul {
    /* position: relative; */
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    /* position: relative; */
    list-style: none;
}

nav ul li a {
    /* position: relative; */
    margin: 0 15px;
    text-decoration: none;
    letter-spacing: 0.2rem;
    font-weight: 500;
    transition: .6s;
}

section {
    width: 100%;
    margin-bottom: 4rem;
}

#start {
    /* position: relative; */
    height: 100vh;
    background: url('./content/6156_schulweg_meilen_aussen_k12b_020920.jpg');
    background-size: cover;
    background-position: 50% 50%;
}

.bg-dark {
    /* position: relative; */
    background: rgb(var(--primary-bg-color-dark));
}

.bg-light {
    /* position: relative; */
    background:var(--primary-bg-color-light);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0rem 2rem;
}

.container .col-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 3rem;
}

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

.container.full-width {
    max-width: 100%;
    /* padding: 1rem; */
} 

.offer-table {
    display: grid;
    grid-template-columns: 2fr 5fr;
    grid-gap: 2rem;
}

.center-txt {
    text-align: center;
}

.mb-5 {
    margin-bottom: 5rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mt-5 {
    margin-top: 5rem;
}

.center-flex-vert {
    display: flex;
    height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.key-features {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.key-feature {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.key-feature img {
    margin: 0 auto;
}

.carousell {
    height: 100px;
}

.gallery-grid {
    /* height: 50vh; */
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.gallery-grid .item-1, .item-2, .item-3, .item-4, .item-5  {
    /* border: 1px solid black; */
    position: relative;
    overflow: hidden;
}

.gallery-grid .item-1, .item-2, .item-3 {
    grid-column: span 2;
}

.gallery-grid .item-4, .item-5 {
    grid-column: span 3;
}

.gallery-grid img {
    object-fit: cover;
    width: 100%;
    max-height: 100%;
    display: block;
}

.gallery-grid .img-caption {
    display: flex;
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    text-align: center;
    margin: auto 0;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: .6s;
}

.gallery-grid .img-caption span {
    color: var(--primary-txt-color-dark);
}

.gallery-grid .img-caption:hover {
    opacity: 1;
    background-color: rgba(var(--primary-bg-color-dark), .5);
}

img.zoom-in {
    transition: transform .6s;
    overflow: hidden;
}
img.zoom-in:hover {
    transform: scale(1.5); 
}

.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #002650;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(var(--primary-bg-color-dark), 0.5);
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: var(--primary-txt-color-dark);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-bg-color-dark), 0.5);
  }

  .btn {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: rgba(var(--primary-bg-color-dark));
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }

  .btn:hover {
    color: #fff;
    background-color: rgba(var(--primary-bg-color-dark), .9);
    cursor: pointer;
  }


/* //////////// */
/* Breakpoints */
/* //////////// */

/* Tablets */
@media only screen 
    and (max-width: 80rem) {

    /* General */
    .fold .md {
        display: block;
    }

    /* Offer */
    .container.offer-table {
        grid-template-columns: 1fr;
        grid-gap: 0rem;
    }

    /* Menu */
    .ci-logo-start {
        width: 41vw; 
    }

    nav ul {
        position: fixed;
        padding: 2rem 0 2rem;
        top: 85px;
        left: 0;
        /* display: none; */
        /* left: -100%; */
        transform-origin: top;
        transform: scaleY(0);
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.2);
    }

    nav.sticky ul {
        top: 95px;
        padding: 2rem;
    }

    nav ul.active {
        /* left: 0px; */
        /* top: 47px; */
        left: 0;
        /* display: flex; */
        transform: scaleY(1);
        transition: 0.3s;
    }

    nav ul li {
        margin: 1.2rem 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

}

/* Smartphones */
@media screen and (max-width: 40rem) {
    .ci-logo-start {
        width: 75vw; 
        margin-top: 3rem;
    }

    .container .col-2 {
        display: block;
        grid-template-columns: 1fr;
        grid-gap: 0rem;
    }

    .container.offer-table {
        margin-top: -8rem;
    }

    .gallery-grid .item-1, .item-2, .item-3, .item-4 {
        grid-column: span 3;
    }
    
    .gallery-grid .item-5 {
        grid-column: span 6;
    }
}

