/*  Author:   Martin Stettler (https://dieweberei.ch/)
    Version:  07/05/2021 // based on BS v5.0
*/

/* ==========================================================================
   DEV STYLES
   ========================================================================== */


/* ==========================================================================
   BASE STYLES
   ========================================================================== */

/* Bootstrap CSS */
html {
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -ms-overflow-style: scrollbar;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    scroll-behavior: smooth; /* do not delete */
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-size: calc(16px + (20 - 16) * (100vw - 320px)/(1440 - 320));
    font-weight: 400;
    line-height: 1.5;
    color: #005daa;
    text-align: left;
    background-color: #fff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
        hyphens: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 20px;
}

h1,
h2,
.slogan p {
    font-size: 33px;
    font-size: calc(24px + (33 - 24) * (100vw - 320px)/(1440 - 320));
    font-weight: 900;
    margin-bottom: 40px;
}

.orange-cloud h2,
.green-cloud h2 {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 25px;
}

p {
    margin-top: 0;
    margin-bottom: 20px;
}

.slogan p {
    color:  #fd9c35;
    margin-bottom: 20px;
}

.slogan p.slogan-author {
    font-size: 20px;
    font-size: calc(16px + (20 - 16) * (100vw - 320px)/(1440 - 320));
    text-transform: uppercase;
    font-weight: 700;
}

.team-info p.team-name {
    font-weight: 700;
    margin-bottom: 0;
}

@media (max-width: 575px) {
    .cloud-info h2,
    .cloud-info p {
        margin-bottom: 10px;
    }
}

ul {
    margin-top: 0;
    margin-bottom: 20px;
}

b,
strong {
    font-weight: 700;
}

br {
    line-height: 1.5;
}

.main ul {
    padding: 0;
}

.main li {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 5px; }

.main li:before {
    position: relative;
    display: block;
    top: 0;
    left: -20px;
    height: 0;
    content: "–"; }

img {
    max-width: 100%;
    height: auto;
}

.main img {
    border-radius: 12px; 
}

.main a {
    color: #005daa;
    text-decoration: none;
    border-bottom: 1px solid #005daa;
}

.main a:hover {
    color: #005daa;
    text-decoration: none;
    border-bottom: 1px solid #fff;
}

.link-element a,
.cloud-info a,
.cloud-info a:hover {
    padding-bottom: 3px;
    border-bottom: 3px solid #bade17;
}

.map-container .link-element a {
    border-bottom: 3px solid #fff;
}

.cloud-info a,
.cloud-info a:hover {
    color: #fff;
    text-decoration: none;
}

.link-element a:hover,
.cloud-info a:hover {
    border-bottom: 3px solid #005daa;
}

:focus {
    outline: none;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}

/* File icon */
.main a[href$=".pdf"],
.main a[href$=".doc"],
.main a[href$=".docx"],
.main a[href$=".xls"],
.main a[href$=".xlsx"] {
    color: #005daa;
    padding-bottom: 3px;
    border-bottom: 3px solid #bade17;
}

.main a[href$=".pdf"]:hover,
.main a[href$=".doc"]:hover,
.main a[href$=".docx"]:hover,
.main a[href$=".xls"]:hover,
.main a[href$=".xlsx"]:hover {
    border-bottom: 3px solid #005daa;
}

.main a[href$=".pdf"]:before,
.main a[href$=".doc"]:before,
.main a[href$=".docx"]:before,
.main a[href$=".xls"]:before,
.main a[href$=".xlsx"]:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 25px;
    background: url(../img/file-icon.svg) no-repeat;
    background-color: transparent;
    color: #005daa;
    position: relative;
    margin: 0 8px -7px 0;
}

.main a[href$=".pdf"]:hover:before,
.main a[href$=".doc"]:hover:before,
.main a[href$=".docx"]:hover:before,
.main a[href$=".xls"]:hover:before,
.main a[href$=".xlsx"]:hover:before {
    background: url(../img/file-icon2.svg) no-repeat;
}

/* Phone */
a[href^="tel"]:hover {
    cursor: pointer !important;
}

/* Smooth animations */
a,
a:hover,
.navbar,
.navbar.shrink,
.navbar-brand,
.navbar-brand.shrink,
.navbar-brand span,
.navbar-brand.shrink span,
.body,
.body.shrink,
.arrow-top,
.arrow-top:hover   {
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}

/* Tables */
table {
    width: 100%;
}

table {
    table-layout: fixed;
}

table:last-child {
    margin-bottom: 0;
}

table>thead>tr,
table>tbody>tr {
    padding: 10px 0;
    border-bottom: 1px solid #000;
}

table>thead>tr>th,
table>tbody>tr>td {
    width: auto;
    font-size: 12px;
    font-size: calc(12px + (18 - 12) * (100vw - 320px)/(1280 - 320));
    vertical-align: top;
    border-top: 0;
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
    /* Non standard for webkit */
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

table>thead>tr>th {
    font-weight: 700;
}

table tr th,
table tr td {
    padding-left: 0;
    padding-right: 10px;
    padding: 2px 0;
}

table>tbody>tr>td:first-child {
    padding-right: 10px;
}

table>tbody>tr>td {
    width: auto;
}

/*
@media (max-width: 767px){

    // Force table to not be like tables anymore
    table, 
    thead, 
    tbody, 
    th, 
    td, 
    tr { 
        display: block; }

    // Hide table headers (but not display: none;, for accessibility)
    thead > tr { 
        position: absolute;
        top: -9999px;
        left: -9999px; }
    
    table {
        border: 1px solid #000; }

    table > thead > tr,
    table > tbody > tr {
        padding: 10px; }

    table > tbody > tr:last-child {
        border-bottom: 0; }

    table > tbody > tr > td {
        width: 100%; }
    
}
*/

/* ==========================================================================
   HEADER
   ========================================================================== */

header {
   position: relative;
}

.fullsize-image img {
    width: 100%;
    height: auto;
}

.orange-cloud {
   display: inline-block;
   background: url(../img/orange-cloud.svg) no-repeat;
   height: 218px;
   width: 300px;
   padding-left: 40px;
   padding-right: 45px;
   margin-top: -100px;
   margin-left: calc(100% - 275px);
}

.orange-cloud .cloud-info {
   font-size: 16x;
   color:  #fff;
   margin-top: 60px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

/* Bootstrap CSS */
.navbar {
  display: block;
  height: 150px;
  background: url(../img/cloud-top.svg) no-repeat;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 20px;
}

@media (max-width:  320px) {
    .navbar {
        height: 120px;
    }
}

.navbar.shrink {
    display: flex;
    height: 62px;
    background: #bade17 !important;
}

.navbar-brand {
    display: inline-block;
    padding-top: 5px;
    padding-bottom: 5px;
    margin:  10px 15px 25px 15px;
}

.navbar-brand-small {
    display: inline-block;
    position: absolute;
    top: -200px;
    left: 40px;
}

.navbar-brand.shrink {
    margin-left:  -500px;
}

.navbar-brand-small.shrink {
    top: 5px;
}

.navbar-brand span {
    display: inline-block;
    height: 58px;
    width: 150px;
    background: url(../img/logo-krippe-kunterbunt.svg) no-repeat;
    font-size: 20px;
    line-height: inherit;
    white-space: nowrap;
    text-indent: -9999px;
}

.navbar-brand-small span{
    display: inline-block;
    height: 50px;
    width: 50px;
    background: url(../img/logo-shrink.svg) no-repeat;
    font-size: 20px;
    line-height: inherit;
    white-space: nowrap;
    text-indent: -9999px;
}

.navbar-light .navbar-brand {
    color: rgba(0, 0, 0, 0.9);
}

.navbar-light .navbar-brand:hover,
.navbar-light .navbar-brand:focus {
    color: rgba(0, 0, 0, 0.9);
}

/* Offcanvas menu
-------------------------------------------------- */
html,
body {
    overflow-x: hidden;
}

/* Prevent scroll on narrow devices */

body {
    padding-top: 155px; /*280*/
}

@media (max-width:  320px) {
    body {
        padding-top: 125px;
    }
}

body.shrink {
    padding-top: 75px;
}

@media (max-width: 991.98px) {
    .offcanvas-collapse {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 100%;
        /* left for collapse-left */
        right: -300px;
        /* left for collapse-left */
        width: 280px;
        padding-right: 16px;
        padding-left: 16px;
        overflow-y: auto;
        visibility: hidden;
        background-color: #fff;
        border-left: 3px solid ;
        transition-timing-function: ease-in-out;
        transition-duration: .3s;
        transition-property: right, visibility;
    }

    /* left for collapse-left */

    .offcanvas-collapse.open {
        right: 0;
        /* left for collapse-left */
        visibility: visible;
    }

    .navbar-nav {
        margin-top: 60px;
    }
}

.navbar.shrink {
    top: -150px;
}

/* Bootstrap CSS */
.navbar-toggler {
    position: fixed;
    top:  20px;
    right: 16px;
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.navbar-light .navbar-toggler {
    color: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Hamburger
-------------------------------------------------- */
/*!
 * Hamburgers
 * @description Tasty CSS-animated hamburgers
 * @author Jonathan Suh @jonsuh
 * @site https://jonsuh.com/hamburgers
 * @link https://github.com/jonsuh/hamburgers
 */
.hamburger {
    z-index: 1080;
    padding: 0;
    /* 15px 15px */
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
}

.hamburger:hover {
    opacity: 0.7;
}

.hamburger-box {
    width: 40px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: 1px;
}

/* -2px */

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 40px;
    height: 4px;
    background-color: #005daa;
    /* border-radius: 4px; */
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
    background-color: #005daa;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Spin */
.hamburger--spin .hamburger-inner {
    transition-duration: 0.22s;
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--spin .hamburger-inner::before {
    transition: top 0.1s 0.25s ease-in, opacity 0.1s ease-in;
}

.hamburger--spin .hamburger-inner::after {
    transition: bottom 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--spin.is-active .hamburger-inner {
    transform: rotate(225deg);
    transition-delay: 0.12s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger--spin.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.1s ease-out, opacity 0.1s 0.12s ease-out;
}

.hamburger--spin.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Bootstrap CSS */
.nav-link {
    display: inline-block;
    padding: 12px 16px 4px 16px;
    border-bottom: 3px solid transparent;
}

.navbar-light .navbar-nav .nav-link {
    color: #005daa;
    font-size: 18px;
    font-weight: 700;
}

.nav-link:hover,
.nav-link:active,
.navbar-nav .active .nav-link {
    border-bottom: 3px solid #bade17;
    transition: all 0.5s cubic-bezier(.05,.8,.5,1);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: #005daa;
}

.navbar-light .navbar-nav .nav-link.disabled {
    color: rgba(0, 0, 0, 0.3);
}

.navbar-light .navbar-nav .show>.nav-link,
.navbar-light .navbar-nav .active>.nav-link,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .nav-link.active {
    color: #005daa;
}

.navbar-light .navbar-toggler {
    color: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 0, 0, 0.1);
}

.bg-light {
    background-color: #fff !important;
}

a.bg-light:hover,
a.bg-light:focus,
button.bg-light:hover,
button.bg-light:focus {
    background-color: #dae0e5 !important;
}

.navbar-nav .nav-link {
    padding-right: 0;
    padding-left: 0;
}

@media (min-width: 576px) {
    .navbar-expand-sm .navbar-nav .nav-link {
        padding-right: 8px;
        padding-left: 8px;
    }
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    padding: 8px 0;
    margin: 0;
    /* 2px 0 0 */
    font-size: 16px;
    color: #005daa;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    border-top: 3px;
    border-radius: 0;
    margin-top: -3px;
}

/* Animate caret */
.dropdown-toggle[aria-expanded="true"]:after {
    transform: rotate(180deg);
}

.dropdown-toggle:after {
    transition: 0.25s;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 4px 8px;
    clear: both;
    font-weight: 400;
    color: #005daa;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #005daa;
    text-decoration: none;
    background-color: #bade17;
}

.dropdown-item.active,
.dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #007bff;
}

.dropdown-item.disabled,
.dropdown-item:disabled {
    color: #6c757d;
    background-color: transparent;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.main {
    padding-bottom: 40px; 
}

.unit {
    margin-top: 40px; /* 5vw */
}

.unit *:last-child {
    margin-bottom: 0;
}

.team-unit {
    margin-top: 40px;
}

.team-item {
    margin-top: 40px;
    padding-left: 20px;
    padding-right: 20px;
}

.team-item img {
    border-radius: 50%;
    margin-bottom: 20px;
}

@media (max-width: 575px){
    .team-item img {
        width: 70%;
        height: auto;

    }
}

.team-info {
    position: relative;
    padding-top:  12px;
}

.team-info:before {
    position: absolute;
    display: block;
    content: "";
    top: 0;
    left: calc(50% - 51px);
    width: 102px;
    height: 3px;
    background-color: #bade17;
}


/*Fancybox*/
.fancybox-caption__body {
    font-family: Arial, sans-serif;
    font-size: 16px; }

.fb-image-container {
    position: relative;
    margin-bottom: 40px; }

.fb-image-container:last-child {
    margin-bottom: 0; }

@media (min-width:  576px) {
    .fb-image-container:nth-last-child(2) {
         margin-bottom: 0;
     }
}

.fb-image-container div {
    overflow: hidden;
    border-radius: 12px; }

.fb-image-container img {
    max-width: 100%;
    height: auto; }

.fb-image-container:hover img {
    transform: scale(1.1); }

.fb-image-container img,
.fb-image-container:hover img {
    -webkit-transition: all 0.3s cubic-bezier(0.05, 0.8, 0.5, 1);
    transition: all 0.3s cubic-bezier(0.05, 0.8, 0.5, 1); }

.fb-zoom-indicator {
    position: absolute;
    z-index: 2;
    right: 20px;
    bottom: 5px;
    width: 24px;
    height: 24px;
    border-radius: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    background-size: 12px 12px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-image: url(../img/fb-zoom-white.svg);
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
    -webkit-transition: all 0.3s cubic-bezier(0.05, 0.8, 0.5, 1);
    transition: all 0.3s cubic-bezier(0.05, 0.8, 0.5, 1); }

.fb-image-container:hover .fb-zoom-indicator {
    opacity: 1;
    transform: scale(1); }
/* .Fancybox */

.icon-sun {
    position: relative;
    margin-bottom: 40px;
}

.icon-sun span {
    display: inline-block;
    content: '';
    height: 38px;
    width:  102px;
    background-image: url(../img/icon-sun.svg);
    background-repeat: no-repeat;
}

.orange-line {
    position: relative;
    margin-top: 40px;
}

.orange-line span {
    position: absolute;
    display: inline-block;
    top:  0;
    left: calc(50% - 51px);
    height: 2px;
    width: 102px;
    content: '';
    background-color: #fd9c35;
}

.orange-line span {
    position: absolute;
    display: inline-block;
    top:  0;
    left: calc(50% - 51px);
    height: 3px;
    width: 102px;
    content: '';
    background-color: #fd9c35;
}

.unit:last-child .orange-line {
    display: none;
}

.icon-smiley span {
    display: inline-block;
    content: '';
    background: url(../img/icon-smiley-orange.svg) no-repeat;
    height: 61px;
    width: 61px;
    margin-right: 30px;
}

.icon-smiley span.icon-smiley-yellow {
    background: url(../img/icon-smiley-yellow.svg) no-repeat;
}

.icon-smiley span.icon-smiley-green {
    background: url(../img/icon-smiley-green.svg) no-repeat;
    margin-right: 0;
}

.pt-15 {
    padding-top:  15px;
}

.green-cloud {
    background: url(../img/green-cloud.svg) no-repeat;
    height: 327px;
    width: 450px;
    padding-top: 70px;
    margin-bottom: 40px;
}

#map {
    width: 100%;
    padding-top: 66.66%;
    margin-bottom: 40px;
    border-radius: 12px;
    border: 1px solid #fade4d;
}

.map-container {
    position: relative;
    padding-bottom: 120px;
}

.map-container .green-cloud {
    position: absolute;
    left: -120px;
    bottom:  0;
    z-index: -1;
    margin-bottom: 0;
}

/* ==========================================================================
   FORM
   ========================================================================== */

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {    
    background: url('../img/cloud-footer.svg') repeat-x;
    min-height: 250px;
    padding-top:  70px;
}

.arrow-top {
    display: inline-block;
    content: '';
    width: 43px;
    height: 16px;
    background: url('../img/arrow-top.svg') no-repeat;
    margin-top:  5px;
    margin-bottom: 0;
}

.arrow-top:hover {
    margin-top:  0;
    margin-bottom: 5px;
}

.footer {
    font-size: 14px;
    background-color: #fade4d;
    padding-top: 20px;
}

.footer h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer a {
    color: #005daa;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.footer a:hover {
    color: #005daa;
    border-bottom: 1px solid #005daa;
}

.logo-kibesuisse span {
    display: inline-block;
    content: '';
    background: url(../img/logo-kibesuisse.svg) no-repeat;
    height: 80px;
    width: 242px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.service-links li {
    display: inline-block;
    font-weight: 600;
}

.service-links li:after {
    display: inline-block;
    content: '|';
    margin-left: 10px;
    margin-right: 6px;
}

.service-links li:last-child:after {
    display: none;
}

/* ==========================================================================
   SELECTION
   ========================================================================== */

::-moz-selection {
    text-shadow: none;
    background: #005daa;
    color: #FFF;
}

::selection {
    text-shadow: none;
    background: #005daa;
    color: #FFF;
}

img::selection {
    background: 0 0;
}

img::-moz-selection {
    background: 0 0;
}

body {
    webkit-tap-highlight-color: #333;
}

a[href^="tel"],
a[href^="sms"] {
    color: inherit;
    cursor: default;
    text-decoration: none;
}