/*
Theme Name: Glaedus
Theme URI: frappant.ch
Description: Wordpress Theme für Glaedus.ch
Author: !frappant
Author URI: !frappant
*/
/* Settings */
:root {
    --font-family:"Cutive Mono", serif;
    --strong-red: #b33607;
    --body-color: #4e2c1e;
    --body-background:#5d9e7e;
    --garishly-yellow: #D6CB8A;
    --button-hover:#aba26e;
}
/**
 * Global
 */
body {
    margin: 0;
    padding: 0;
    background-color: var(--body-background);
    font-family: var(--font-family);
    color: var(--body-color);
}
div#main.container {
    max-width: 960px;
}

/* Color palette */
.has-strong-red-color {
    color:var(--strong-red);
}
.has-strong-red-background-color {
    background-color:var(--strong-red);
}
.has-body-color-color {
    color:var(--body-color);
}
.has-body-color-background-color {
    background-color:var(--body-color);
}
.has-garishly-yellow-color {
    color:var(--garishly-yellow);
}
.has-garishly-yellow-background-color {
    background-color:var(--garishly-yellow);
}

/**
 * Typographie
 */
h1, h2, h3, h4, h5, h6, .btn, a{
    font-family: var(--font-family);
    color: var(--body-color);
    font-size: 24px;
    line-height: 1.5;
}
h1 {
    font-size: 70px;
    letter-spacing: -6px;
    color: var(--strong-red);
    font-weight: 900;
    font-family: var(--font-family);
    text-align: center;
    margin-bottom: 40px;
}
h2 {
    font-size: 45px;
    letter-spacing: -1px;
    color: var(--strong-red);
    font-weight: 800;
    font-family: var(--font-family);
    text-align: center;
    margin-bottom: 40px;
}
h3 {
    font-size: 35px;
    color: var(--strong-red);
    font-weight: 900;
    font-family: var(--font-family);
}

h4 {
    font-size: 24px;
    color: var(--strong-red);
    font-weight: 900;
    font-family: var(--font-family);
    margin-bottom:0;
}
.has-small-font-size {
    font-size: 24px !important;
    font-weight: 800;
}

#main .has-small-font-size a {
    text-decoration: underline;
    color: var(--body-color);
    font-weight: 800;
    font-size: 22px;
}

#main .has-small-font-size a:hover {
    text-decoration: underline;
    color: var(--body-color);
    font-weight: 800;
    font-size: 22px;
}
#main p.has-text-align-center {
    text-align: center;
    text-align: -webkit-center;
}

/**
 * Header
 */
#wrapper header {
    margin-top:33px;
}
header, #menu-mainnavigation {
    text-align: center;
}
#menu-hamburger {
    text-align: center;
    font-size: 30px;
}

/* Navigation */
.container.mainNavigationContainer {
    margin-bottom:1rem;
}
#menu-mainnavigation {
    display: inline-flex;
}
.mainNavigation {
    font-family: var(--font-family);
    color: var(--body-color);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    background-repeat: repeat;
    text-align: center;
    padding-top: 1%;
    float: none;
    font-size: 20px;
}

.mainNavigation li a{
    padding: 0 10px;
}

.mainNavigation a:hover {
    color: var(--body-color);
    text-decoration: none;
}
.mainNavigation a:focus {
    color: var(--body-color);
    text-decoration: none;
}
.mainNavigation ul {
    display: flex;
    -ms-flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    flex-direction: row;
}
.mainNavigation li {
    font-weight: 900;
    padding: 8px 11px;
}
@media screen and (min-width: 992px) {
    .mainNavigation .menu-item-has-children {
        position:relative;
    }
    .mainNavigation .menu-item-has-children .sub-menu {
        position: absolute;
        top:100%;
        left:8px;
        height:auto;
        width:100%;
    }
}
.mainNavigation li li {
    padding:0;
}
.mainNavigation .sub-menu {
    display: none;
    text-align: left;
}
.sub-menu .menu-item:hover {
    background-color: var(--garishly-yellow);
    border-radius: 10px;
}
#mobile-menu-Container {
    display: none;
}
#mobile-menu-Container .mainNavigation ul {
    -ms-flex-direction: column !important;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    flex-direction: column !important;
    text-indent: 0 !important;
}
#mobile-menu-Container .mainNavigation .sub-menu {
    display: none;
    text-align: center;
}
#mobile-menu-Container .mainNavigation .sub-menu a {
    font-size: 0.9em;
}
.mainNavigation .glyphicon-menu-down {
    display: inline;
    margin-left: -15px;
}
/**
 * Back to Top
 */
 #BTTButton {
    display: inline-block;
    background-color: rgba(0,0,0,.3);
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 4px;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    transition: background-color .3s, opacity .5s, visibility .5s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
  }
  #BTTButton::after {
    content: "\f077";
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    font-size: 2rem;
    line-height: 40px;
    color: #fff;
  }
  #BTTButton:hover {
    cursor: pointer;
    background-color: #333;
  }
  #BTTButton:active {
    background-color: #555;
  }
  #BTTButton.show {
    opacity: 1;
    visibility: visible;
  }

/**
 * Content
 */
 #wrapper {
    min-height: 60vh;
}
 #main {
    padding: 30px 50px 50px 50px;
    font-weight: 800;
    font-family: var(--font-family);
    font-size: 24px;
    letter-spacing: -1px;
    line-height: 28px;
}
#main a {
    text-decoration: underline;
    color: var(--body-color);
    font-size: 21px;
    font-weight: 800;
    font-size: 24px;
}

#main a:hover {
    text-decoration: underline;
    color: var(--body-color);
    font-weight: 800;
    font-size: 24px;
}
#main p {
    margin-bottom: 20px;
}

/*Button*/
#footer-links a, #main .buttonLink a, .contactForm input[type=submit], .wp-block-button .wp-block-button__link{
    padding: 10px;
    background-color: var(--garishly-yellow);
    border-radius: 40px;
    margin-top: 10px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none !important;
    color: rgba(0, 0, 0, .5) !important;
    border: none;
    font-size: 21px !important;
    text-shadow: 0 1px 0 rgba(0, 0, 1, .1);
}

#footer-links a:hover, #main .buttonLink a:hover, .wp-block-button .wp-block-button__link:hover {
    background: var(--button-hover) !important;
    color: rgba(0, 0, 0, .5) !important;
    text-decoration: none;
    border: none;
}

/* Gutenberg: Divider */
hr, .wp-block-separator {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

/* Gutenberg: text & Media */
/* place image on top at mobile view of media text block*/
.entry .wp-block-media-text {
    padding-top:25px;
    padding-bottom:25px;
}
.wp-block-media-text figure img {
    object-fit: contain;
}
@media (max-width: 600px) {
    .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__media {
        grid-row: 1 !important;
    }
    .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__content {
        grid-row: 2 !important;
    }
}

/**
 * Footer
 */
footer {
    min-height: 100px;
    padding: 20px;
    background-color: #5D907E;
    width: 100%;
}
#footer-adresse {
    font-weight: 900;
    font-size: 21px;
    line-height: 32px;
    font-family: var(--font-family);
    text-align: center;
}
#footer-links p {
    text-align: -webkit-center;
}
#footer-links .textwidget p{
    display:flex;
    flex-direction: column;
    align-items: center;
}
#footer-links .textwidget a {
    margin:10px auto;
}
/* icon */
.icon-pale-gold {
    color: var(--garishly-yellow) !important;
    border-color: var(--garishly-yellow) !important;
}
.icon {
    margin: 15px 15px 15px 15px;
}
.icon-lg {
    font-size: 60px !important;
}
.icon:hover {
    background-color: #FFDC67;
}

/**
 * Contact Form
 */
.contactForm {
    margin-top: 30px;
}

.contactForm input[type="submit"] {
    font-size: 21px;
    padding:10px 15%;
}

.caldera-grid .alert-danger, .caldera-grid .alert-error, .caldera-grid .alert-info, .caldera-grid .alert-success, .caldera-grid .alert-warning {
    border-radius: .25rem !important;
    text-align: center;
    background-image: none;
    text-shadow: none !important;
    box-shadow: none !important;
}

/**
 * UNKNOWN
 */
.imgHeader {
    margin-top: 50px;
    height: 200px;
    width: 200px;
}
#header-information img {
    min-height: 200px;
    min-width: 200px;
}

/**
 * Additional breakpoint
 */
@media screen and (max-width:480px) {
    [class *= "col-xxs-"] {
        position: relative;
        min-height: 1px;
        padding-right: 5px;
        padding-left: 5px;
    }
    .col-xxs-12 {
        width: 100%;
    }
    .col-xxs-11 {
        width: 91.66666667%;
    }
    .col-xxs-10 {
        width: 83.33333333%;
    }
    .col-xxs-9 {
        width: 75%;
    }
    .col-xxs-8 {
        width: 66.66666667%;
    }
    .col-xxs-7 {
        width: 58.33333333%;
    }
    .col-xxs-6 {
        width: 50%;
    }
    .col-xxs-5 {
        width: 41.66666667%;
    }
    .col-xxs-4 {
        width: 33.33333333%;
    }
    .col-xxs-3 {
        width: 25%;
    }
    .col-xxs-2 {
        width: 16.66666667%;
    }
    .col-xxs-1 {
        width: 8.33333333%;
    }
}