/*
Theme Name: Sinoma.ch
Theme URI: https://www.sinoma.ch/
Author: Armin Oppliger
Author URI: https://arminoppliger.ch/
Description: 
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sinoma-ch
Tags: 
*/

@import url('responsive.css');


/* Global */
a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a:focus,
input:focus,
button:focus {
    outline: none;
}
.single-beratungen main a {
    color: #eb4f43;
}
.single-sicherheitskurse main a {
    color:#d24625;
}
strong {
    font-weight: 600;
}
.size-full img {
    width: 100%;
}
footer {
    margin-top: 0;
}

.grecaptcha-badge {
    display:none;
}

/* Header */
header {
    margin: 0 0 75px;
  }
header #stickyBar {
    position: fixed;
    top: 0;
    transform: translateX(0) translateY(0);
    width: 100%;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    box-sizing: border-box;
}
nav a,
.current-menu-item a {
    transition: background 0.3s ease, color 0.3s ease;
}
nav a:hover,
.current-menu-item a {
    color: #03a9f4 !important;
    text-decoration: underline;
}

.wp-block-navigation__responsive-container.is-menu-open {
    height:100vh;
}

/* Front Page */
.home main {
    padding: 0 !important;
    margin: 0;
}
.home .kurse-list {
    margin: 10px 0 0;
}
.home .kurse-list li a {
    background: #f0f0f0;
    color: #4a4e57;
}
.home .kurse-list li a:hover {
    background: #A3D9F6;
    color: #fff;
}
.home #beratungen .kurse-list li a:hover {
    background: #ffaea8;
}
.home #sicherheitskurse .kurse-list li a:hover {
    background: #ff7b5b;
}

/* Fullscreen home anchor sections on desktop */
.home #medizinische-kurse,
.home #beratungen,
.home #sicherheitskurse {
    scroll-margin-top: 75px;
}

@media only screen and (min-width: 1000px) {
    .home #medizinische-kurse,
    .home #beratungen,
    .home #sicherheitskurse {
        min-height: calc(100vh - 75px);
        width: 100%;
        padding: 0 !important;
        display: flex;
        align-items: stretch;
    }

    .home #medizinische-kurse > .wp-block-columns,
    .home #beratungen > .wp-block-columns,
    .home #sicherheitskurse > .wp-block-columns {
        width: 100%;
        margin: 0;
        min-height: calc(100vh - 75px);
        align-items: stretch;
    }

    .home #medizinische-kurse .wp-block-column,
    .home #beratungen .wp-block-column,
    .home #sicherheitskurse .wp-block-column {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .home #medizinische-kurse .wp-block-cover,
    .home #beratungen .wp-block-cover,
    .home #sicherheitskurse .wp-block-cover {
        min-height: calc(100vh - 75px) !important;
        width: 100%;
        margin: 0 auto;
    }
}

/* Custom Posts Navigation */
.kurse-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    list-style: none;
    margin: 60px 0 0;
    padding: 0;
    gap: 20px;
}
.kurse-list li a {
    display: block;
    padding: 5px 15px 7px;
    margin:0;
    background: #f0f0f0;
    color: #4a4e57;
    /*background: #02a3e8;*/
    /*color: #fff;*/
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease;
}
.kurse-list li a:hover,
.kurse-list li.active a {
    background: #A3D9F6;
    color: #fff;
    /*color: #4a4e57;*/
}

.single-beratungen .popup-button,
.single-beratungen .wpcf7-form input[type="submit"] {
    background: #eb4f43;
    color: #fff;
}
.single-beratungen .kurse-list li a {
    background: #f0f0f0;
    color: #4a4e57;    
}
.single-beratungen .kurse-list li a:hover,
.single-beratungen .kurse-list li.active a,
.single-beratungen .popup-button:hover,
.single-beratungen .wpcf7-form input[type="submit"]:hover {
    background: #ffaea8;
    color: #fff;
}
.single-sicherheitskurse .popup-button,
.single-sicherheitskurse .wpcf7-form input[type="submit"] {
    background: #d24625;
    color: #fff;
}
.single-sicherheitskurse .kurse-list li a {
    background: #f0f0f0;
    color: #4a4e57;    
    /*background: #d24625;*/
    /*color: #fff;*/
}
.single-sicherheitskurse .kurse-list li a:hover,
.single-sicherheitskurse .kurse-list li.active a,
.single-sicherheitskurse .popup-button:hover,
.single-sicherheitskurse .wpcf7-form input[type="submit"]:hover {
    background: #ff7b5b;
    color: #fff;
}

.archive .kurse-list {
    justify-content: center;
}

/* Popup */
.popup-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    margin: 0;
}
.popup-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.popup-modal {
    background: #fff;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 15px 20px;
    position: relative;
    box-sizing: border-box;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.popup-modal h3 {
    text-transform: uppercase;
}
.popup-modal-overlay.active .popup-modal {
    transform: translateY(0);
    opacity: 1;
}
.popup-modal-close {
    position: absolute;
    top: 10px; right: 15px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}
.popup-button,
.wpcf7-form input[type='submit'] {
    display: inline-block;
    padding: 8px 25px 10px;
    margin:20px 0 0;
    background: #02a3e8;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}
.popup-button:hover,
.wpcf7-form input[type='submit']:hover {
    background: #A3D9F6;
    color: #4a4e57;
    text-decoration: none;
}

/* Kontakt Form */
.wpcf7-form .wpcf7-select,
.wpcf7-form input[type='text'],
.wpcf7-form input[type='email'],
.wpcf7-form input[type='tel'],
.wpcf7-form textarea {
    font-size: 100%;
    padding: 10px 2%;
    border: 1px solid #b9b9b9;
    border-radius: 5px;
}
.wpcf7-form .wpcf7-select {
    width:100%;
}
.wpcf7-form input[type='text'],
.wpcf7-form input[type='email'],
.wpcf7-form input[type='tel'],
.wpcf7-form textarea {
    width: 96%;
}
.wpcf7-form textarea {
    height:100px;
}
.wpcf7-form .wpcf7-list-item {
    margin: 0;
 }
.wpcf7-form input[type='checkbox'] {
    padding: 0;
    margin: 0;
    width: 15px;
    height: 15px;    
 }
 .wpcf7-form input[type='submit'] {
    font-size: 100%;
    margin:0;
 }
 
.wpcf7-not-valid-tip {
    color: #fff;
    font-size: 0.7rem;
    background: #dc3232;
    text-transform: uppercase;
    text-align: center;
    border-radius: 5px;
}
.wpcf7 form.invalid .wpcf7-response-output {
    background: #ffb900;
    color: #000;
    font-size: 0.9rem;
    margin: 0;
    border-radius: 5px;
    line-height: 1.4;
    text-align: center;
}

 /* WOO */
 li.wc-block-product.product {
    text-align: center;
 }
 .prod-search {
    width: 300px;
    position: absolute;
    right: 30px;
    top: 30px;
 }
 .prod-search .wp-block-search__input {
     padding:5px 10px;
 }
 .prod-search .wp-block-search__button {
     padding:0 10px;
 }
 
 .archive.woocommerce .shop-page-only,
 .archive.woocommerce.woocommerce-shop .woo-archive {
    display: none;
 }
 .archive.woocommerce.woocommerce-shop .shop-page-only {
    display: block;
 }

 .add_to_cart_button {
  padding: 5px 15px 7px;
  margin: 0 0 1rem;
  background: #02a3e8;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
 }
 .add_to_cart_button:hover {
    background: #A3D9F6;
    color: #4a4e57;
    text-decoration: none;
}
.add_to_cart_button span {
    line-height: 24px;
}
 .woocommerce a.added_to_cart {
    margin: 0;
    padding: 0;
 }
 .wc-block-components-product-image {
    background: #fff;
 }
 .wc-block-components-product-image a {
    border:1px solid #4a4e57;
 }
 
.merged-additional-info h2 {
    display: inline-block;
    color:#4a4e57;
    padding: .5em 1em;
    font-size: 16px;
    border-bottom: 2px solid #4a4e57;    
}
 
.single-product .wp-block-add-to-cart-form .stock {
    display: none !important;
}
.stock-traffic-light {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}
.stock-traffic-light .dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-block;
}
.stock-traffic-light .stock-label {
    font-weight: 600;
}

h2.wc-block-mini-cart__title {
  font-size: 1em;
}

.woocommerce-checkout .sinoma-before-country {
    margin: 20px 0 0;
    color:#000;
}
/*.wc-block-components-address-form__address_2-toggle {*/
/*    display:none;*/
/*}*/