/*  Author:   Martin Stettler (https://dieweberei.ch/)
    Version:  05/04/2021 // based on BS v4.6.0
*/

/* ==========================================================================
   DEV STYLES
   ========================================================================== 
nav,
.main,
.unit,
.sidebar-item  {
    border: 1px dashed #f227f9;
}

.navbar-brand,
.navbar-nav .nav-link {
    border: 1px solid #f227f9;
}

.main,
.unit,
.sidebar-item,
.timeline,
.timeline .timeline-item .timeline-content {
    border: 1px dashed #f227f9; }
}
*/

/* ==========================================================================
   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: 'Comfortaa', cursive, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    color: #000;
    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 {
    font-weight: 700;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
        hyphens: auto;
}

h1,
h2 {
    font-size: 37px;
    font-size: calc(22px + (37 - 22) * (100vw - 320px)/(1440 - 320));
}

.layout-green h1.icon-marmot:after,
.layout-green h1.icon-capricorn:after,
.layout-red h1.icon-marmot:after,
.layout-red h1.icon-capricorn:after,
.layout-green h2.icon-marmot:after,
.layout-green h2.icon-capricorn:after,
.layout-red h2.icon-marmot:after,
.layout-red h2.icon-capricorn:after {
    display: inline-block;
    content: '';
    height: 39px;
    width: 39px;
    background-repeat: no-repeat;
    margin-left: 15px;
    margin-bottom: -10px;
}

.layout-green h1.icon-marmot:after,
.layout-green h2.icon-marmot:after {
    background-image: url(../img/icon-marmot-green.svg); 
}

.layout-green h1.icon-capricorn:after,
.layout-green h2.icon-capricorn:after {
    background-image: url(../img/icon-capricorn-green.svg); 
}

.layout-red h1.icon-marmot:after,
.layout-red h2.icon-marmot:after {
    background-image: url(../img/icon-marmot-red.svg); 
}

.layout-red h1.icon-capricorn:after,
.layout-red h2.icon-capricorn:after {
    background-image: url(../img/icon-capricorn-red.svg); 
}

.sidebar h2 {
    font-size: 25px;
    font-size: calc(18px + (25 - 18) * (100vw - 320px)/(1440 - 320));
}

.article-small h2.title-article {
    margin-top:  40px;
}

h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.timeline h3 {
    line-height: 1.5;
}

.layout-green h1,
.layout-green h2,
.sidebar h2,
.layout-green h3 {
    color: #66af24;
    
}

.layout-red h1,
.layout-red h2,
.layout-red h3  {
    color: #ca007c;
    
}

.lead {
    font-size: 16px;
}

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

.sidebar-item-content h2,
.sidebar-item-content h3,
.sidebar-item-content p {
    padding-right: 35px;
}

p.link-element a,
.main a[href$=".pdf"],
.main a[href$=".docx"],
.main a[href$=".xls"],
.main a[href$=".xlsx"] {
    font-weight: 700;
    line-height: 2.5;
    padding: 8px 16px;
    border-radius: 12px;
}

p.link-element a:hover {
    text-decoration: none;
}

.layout-green p.link-element a,
.btn,
.layout-green a[href$=".pdf"],
.layout-green a[href$=".docx"],
.layout-green a[href$=".xls"],
.layout-green a[href$=".xlsx"] {
    background-color: #cfe0be;
    color: #66af24;
}

.green-dark p.link-element a,
.green-dark a[href$=".pdf"],
.green-dark a[href$=".docx"],
.green-dark a[href$=".xls"],
.green-dark a[href$=".xlsx"] {
    background-color: #ecf3e6;
    color:  #66af24;
}

.layout-red p.link-element a,
.layout-red a[href$=".pdf"],
.layout-red a[href$=".docx"],
.layout-red a[href$=".xls"],
.layout-red a[href$=".xlsx"] {
    background-color: #efd0de;
    color: #ca007c;
}

.btn {
    margin-top: 5px;
}

.layout-green p.link-element a:hover,
.btn:hover,
.btn:focus,
.btn.active,
.layout-green a[href$=".pdf"]:hover,
.layout-green a[href$=".docx"]:hover,
.layout-green a[href$=".xls"]:hover,
.layout-green a[href$=".xlsx"]:hover {
    background-color: #66af24;
    color: #fff;
}

.layout-red p.link-element a:hover,
.layout-red a[href$=".pdf"]:hover,
.layout-red a[href$=".docx"]:hover,
.layout-red a[href$=".xls"]:hover,
.layout-red a[href$=".xlsx"]:hover {
    background-color: #ca007c;
    color: #fff;
}

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

b,
strong {
    font-weight: 700;
}

br {
    line-height: 1.5;
}

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

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

.main a,
.main .layout-green a {
  color: #66af24;
}

.main .layout-red a {
    color: #ca007c;
}  

.main a:hover {
    color: #000;
    text-decoration: none;
}

a:focus,
button:focus {
    outline: none;
}

.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: 12px;
    height: 12px;
    background-image: url(../img/file-icon-green.svg);
    background-color: transparent;
    color: #000;
    position: relative;
    margin: 0 8px 0 0;
}

.main .layout-red a[href$=".pdf"]:before,
.main .layout-red a[href$=".doc"]:before,
.main .layout-red a[href$=".docx"]:before,
.main .layout-red a[href$=".xls"]:before,
.main .layout-red a[href$=".xlsx"]:before {
    background-image: url(../img/file-icon-red.svg);
}



.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-image: url(../img/file-icon-white.svg);
}

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

/* Smooth animations */
a,
a:hover {
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    position: relative;
}

header .teaser {
    background-color: rgba(102, 175, 36, 0.8);
    font-size: 30px;
    font-size: calc(16px + (30 - 16) * (100vw - 320px)/(1440 - 320));
    font-weight: 700;
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    margin: 40px 15px 0 15px;
}

header .teaser br {
    display: none;
}

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

.logo-chinderstuba span{
    display: inline-block;
    content: '';
    background-image: url("../img/logo-chinderstuba.svg");
    background-repeat: no-repeat;
    width: 180px;
    height: 77px;
    text-indent: -9999px;
    margin: 15px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}

/* ==========================================================================
   FULLSCREEN OVERLAY NAVIGATION (https://codepen.io/KingKabir/pen/QyPwgG)
   ========================================================================== */
/* Hamburger
-------------------------------------------------- */
/*!
 * Hamburgers
 * @description Tasty CSS-animated hamburgers
 * @author Jonathan Suh @jonsuh
 * @site https://jonsuh.com/hamburgers
 * @link https://github.com/jonsuh/hamburgers
 */

.navbar-toggler {
    padding: 5px;
    font-size: 24px;
    background: #FFF;
    border-radius: 0;
}

#toggle.active.navbar-toggler {
    background: transparent;
}

.navbar-toggler div {
    float: left;
    margin: 5px 15px 0 0;
    color: #4d3328;
}

#toggle.active.navbar-toggler div {
    display:  none;
}

.hamburger:hover div {
    color:  #ca007c;
}

.hamburger {
    position: fixed;
    top: 20px;
    right: 15px;
    height: auto;
    width: auto;
    cursor: pointer;
    transition: opacity .25s ease;
    z-index: 1081;
}

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

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

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 35px;
    height: 3px;
    background-color: #4d3328;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

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

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

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

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

/* 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);
}

.overlay {
    position: fixed;
    background: rgba(255, 255, 255, 0.9);
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s, height .35s;
    overflow: hidden;
    z-index: 1080;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
    height: 100%;
}

.overlay.open li {
    animation: fadeInRight .5s ease forwards;
    animation-delay: .35s;
}

.overlay.open li:nth-of-type(2) {
    animation-delay: .4s;
}

.overlay.open li:nth-of-type(3) {
    animation-delay: .45s;
}

.overlay.open li:nth-of-type(4) {
    animation-delay: .5s;
}

.overlay.open li:nth-of-type(5) {
    animation-delay: .55s;
}

.overlay.open li:nth-of-type(6) {
    animation-delay: .6s;
}

.overlay nav {
    position: relative;
    top: 50px;
    right: 100px;
    font-size: 25px;
    font-size: calc(16px + (25 - 16) * (100vw - 320px)/(1440 - 320));
    text-align: right;
}

.overlay ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    position: relative;
    height: 100%;
}

.overlay ul li {
    display: block;
    position: relative;
    opacity: 0;
}

.overlay ul li a {
    display: inline-block;
    position: relative;
    color: #4d3328;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
}

.overlay ul li a:hover:after,
.overlay ul li a:focus:after,
.overlay ul li a:active:after,
.overlay ul li.active a:after{
    width: 100%;
}

.overlay ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 3px;
    background: #4d3328;
    transition: .35s;
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        left: 20%;
    }

    100% {
        opacity: 1;
        left: 0;
    }
}
/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.main {
    position: relative;
    padding-top: 40px; 
    padding-bottom: 10px;
}

.unit {
    margin-bottom: 40px; 
}

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

.article-small .unit-small {
    margin-top: 30px;
}

.green-light {
    background-color: #ecf3e6;
}

.green-dark{
    background-color: #d6e4c8; /* dee9d2*/
}

/* colored line */
.article-start,
.sidebar-start {
    padding-left:  15px;
    padding-right:  15px;
}

.border-top {
    padding-bottom: 40px;
}

.article-small .border-top {
    padding-bottom: 0;
}

.layout-red .border-top {
    border-top: 2px solid #ca007c !important;
    
}

.layout-green .border-top,
.sidebar-start .border-top {
    border-top: 2px solid #66af24 !important;;
    
}
/* .colored line */

/* sidebar */
.sidebar {
    margin-bottom: 30px;
    overflow: hidden;
}

.sidebar-item {
    padding-right: 0;
    margin-bottom: 40px;
}

.sidebar-item-content {
    padding: 20px;
    margin-right: 15px;
    border-radius: 15px;
}
/* .sidebar */

/* timeline */
/* https://codepen.io/itbruno/pen/KwarLp  */

.timeline .timeline-item:after,
.timeline .timeline-item:before {
    content: "";
    display: block;
    width: 100%;
    clear: both;
}

*,
*:before,
*:after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.timeline {
    position: relative;
    width: 100%;
}

.timeline:before {
    position: absolute;
    left: 30%;
    top: 19px;
    content: "";
    width: 2px;
    height: calc(100% - 19px);
    background: #66af24;
}

.timeline:after {
    content: "";
    clear: both;
    display: table;
    width: 100%;
}

.timeline .timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline .timeline-item:last-child {
    margin-bottom: 0;
}

.timeline .timeline-item .timeline-icon {
    position: absolute;
    top: 15px;
    left: 30%; 
    margin-left: -11px;
    width: 24px;
    height: 24px;
}

.timeline .timeline-item .timeline-content {
    background: #fff;
    padding: 15px;
}

.timeline .timeline-item .timeline-content.left {
    float: left;
    width: calc(25% - 10px);
    padding-left: 0;
}

.timeline .timeline-item .timeline-content.right {
    position: relative;
    background: #ecf3e6;
    border-radius: 12px;
    float: right;
    width: calc(65% - 10px);
}

.green-diamond {
    position: absolute;
    display: inline-block;
    width: 12px;
    height: 12px;
    top: 22px;
    left: -6px;
    background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 25.2.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 12 12' style='enable-background:new 0 0 12 12;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23ECF3E6;%7D%0A%3C/style%3E%3Crect x='1.8' y='1.8' transform='matrix(0.707 -0.7072 0.7072 0.707 -2.4855 6.0006)' class='st0' width='8.5' height='8.5'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
}
/* .timeline */

/* Fancybox */
.fancybox-caption__body {
    font-family: 'Comfortaa', cursive, 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 */

/* Google Map */
#map {
    width: 100%;
    padding-top: 66.66%; /* 3:2 Aspect Ratio */
    border-radius: 12px
    margin-top:  40px;
}


/* ==========================================================================
   FORM
   ========================================================================== */
.help-block {
    margin: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: 'Comfortaa', cursive, sans-serif;
    font-size: 18px;
    padding: 10px;
    height: auto;
    background-color: #ecf3e6;
    border: 0;
    border-radius: 12px;
    font-weight: normal;
    color: #000;
}

.form-control:focus {
    outline: 0;
    box-shadow: none;
}

label {
    font-size: 16px;
    padding-top: 5px;
    padding-left: 0px;
}

.form-check-input {
    margin-top: 7px;
}

.honeypot {
    display: none;
}

.list-unstyled li {
    /* check default list-style on line 164 */
    padding-left: 0;
    background-color: transparent !important;
}

.list-unstyled li:before {
    content: '';
}

#success {
    font-weight: normal;
    color: #000;
    border: 0;
    border-radius: 0;
}

.alert-success,
.alert-danger {
    border-radius: 0;
}

.has-error input,
.has-error textarea {
    border: 1px solid #a40000 !important;
    margin-bottom: 10px;
}

.has-error .help-block {
    color: #a40000;
}

ul.list-unstyled {
    /* error message without padding-left */
    padding: 0 !important;
}

.col-btn {
    width: 100%;
    padding: 0;
    margin-top: 16px;
}

.messages {
    background: #FFF;
    color: #000;
}

/* Perch form */
.form-check {
  padding-left: 0;
}

form .form-group input.form-check-input {
    position: relative;
    width: auto;
    margin: 0 !important;
    padding: 0;
}

.col-lg-7 .form-check.form-check-inline {
    display: block !important;
}

.form-group .form-check-inline input[type="radio"] {
    margin-right: 8px !important;
    margin-top: 5px !important;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.alert-success {
    padding: 10px 20px;
}

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

footer {
    background-color: #fff;
}

.footer h3 {
    font-size: 16px;
    margin-bottom: 0;
}

.footer a {
    color: #000;
}

.footer a:hover {
    color: #ca007c;
    text-decoration: none;
}

.footer-start .border-top {
    border-top: 2px solid #ca007c !important;
    padding-bottom: 40px;    
}

.footer-info {
    padding-top: 40px;
}

.vcard .adr {
    margin-bottom: 20px;
}

.vcard .tel,
.vcard .email {
    display: block;
}

.footer .logo img {
    width: 340px;
    height: 113px;
    margin-bottom: 20px;
}

.footer .service-links {
   margin-top: 20px;
}

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

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

.footer .service-links li:last-child:after {
    content: '';
}

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

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

::selection {
    text-shadow: none;
    background: #333;
    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;
}