/*
Theme Name: hornusser-schuepbach.ch
Theme URI: 
Author: Armin Oppliger
Author URI: https://arminoppliger.ch/
Description: 
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hornusser-schuepbach-ch
Tags: 
*/

@import url('./responsive.css');

/* Global */
/*#wpadminbar {*/
/*    display:none;*/
/*}*/

a:focus,
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

strong {
    font-weight: 800;
}

figure.wp-block-table {
    border:none !important;
}

.back-btn a,
.back-btn {
    display: block;
    width: 100%;
    max-width: 180px;
    padding: 5px 10px;
    border: 1px solid #1960ab;
    margin:0;
    text-align: center;
}

.taxonomy-spielberichte-categories a {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

.homepage-link {
    display:none !important;
}

/* Navigation - Header */
header figure.wp-block-post-featured-image,
header figure.custom-header-img {
    height:auto !important;
}
header figure.wp-block-post-featured-image img.attachment-post-thumbnail,
header figure.custom-header-img img{
    max-height: 780px !important;
    height: auto !important;
}

.custom-header-img img {
    /*height: 780px;*/
    object-fit: cover;
    width: 100%;
    vertical-align: bottom;
}

header nav li a:hover,
header nav li.current-menu-item a,
header nav li.current-menu-item.has-child a.m-parent,
header nav li.current-menu-ancestor.has-child a.m-parent,
header nav li a.current-menu-ancestor {
    text-decoration: none;
    opacity: 0.6;
}

header nav li.current-menu-item.wp-block-navigation-submenu a
{
    opacity:1;
}
header nav li.has-child ul li {
    font-size: 1.7rem;
    text-transform: none;
    word-break: keep-all;
    text-align: center;
}
header nav li.has-child ul li a span {
    margin: 0 auto;
}
header nav .wp-block-navigation__submenu-container {
 left: 50% !important;
 transform: translateX(-50%);
 min-width: 300px !important;
}
/* Navigation - on Page */
.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;    
}
.sub-menu li a {
    text-transform: uppercase;
    font-weight: 600;
    color: #1960ab;
    text-decoration: none;
    font-size: 1.3rem;
}
.sub-menu li a:hover,
.sub-menu li.current-menu-item {
    color: #1960ab;
    text-decoration: underline;
    opacity: 0.6;
}

/*Sticky Header*/
header {
    padding:313px 0 0;
}

#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;
}
.custom-logo {
    transition: width 0.3s ease-in-out;
}
#stickyBar .wp-block-navigation-link {
    transition: font-size 0.3s ease-in-out;
}

/* Front Page */
.home .img-button .wp-block-button__link {
    width: 100%;
    min-height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    background: none;
    padding: 0;
    margin: 0;
    transition: background-color 0.3s ease;
}
.home .img-button .wp-block-button__link:hover {
    background-color: rgb(25, 96, 171, 0.7) !important;
}
.home .img-button .wp-block-button__link:hover strong {
    background:none;
    transition: background-color 0.3s ease;
}
.home .img-button .wp-block-button__link strong {
    width: 100%;
    display: block;
    background-color: rgb(25, 96, 171, 0.7);
    position: absolute;
    bottom: 0;
    padding: 15px 0;
}
.home .img-button .btn-wrapper {
    height: 100%;
}
.home .img-button .btn-wrapper.c-hover .wp-block-button__link {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}

.home .spielberichte-cats,
.home .home-team{
    position:absolute;
    width:100%;
    height:100%;
    z-index:10;
    list-style:none;
    margin:0;
    padding:0;
    display: flex;
    flex-direction:row;
    transition: opacity 0.5s ease;
    opacity:0;
    gap:2.5rem;
    align-items: center;
    justify-content: center;
}
.home .spielberichte-cats:hover,
.home .home-team:hover{
    opacity:1;
}
.home .spielberichte-cats li a,
.home .home-team a{
    color:#1960ab;
    background:#fff;
    border:1px solid #1960ab;
    padding:10px 15px;
    font-weight:800;
}
.home .spielberichte-cats li a:hover,
.home .home-team a:hover{
    color:#fff;
    background:#1960ab;
    text-decoration:none;
}

.home .type-news.swiper-slide,
.home .type-news.swiper-slide .wp-block-columns{
    margin-top:0 !important;
    margin-bottom:0 !important;
    width:100% !important;
}
.home .type-news .wp-block-post-featured-image,
.home .type-news .wp-block-post-featured-image img {
    height:100%;
}
.home .type-news .news-excerpt {
    padding:20px !important;
}
.home .swiper-button-next {
    right: -60px;
}
.home .swiper-button-prev {
    left: -60px;
}
.home .swiper-pagination {
    bottom:-40px !important;
}
.home .swiper-button-next, .home .swiper-button-prev {
    color: #1960ab;
}
.home .swiper-pagination-bullet {
    width:14px;
    height:14px;
}
.home .swiper-pagination-bullet-active {
    background:#1960ab;
}

.home-posts .apbText {
    display: flex;
    flex-direction: column;
}
.home-posts .apbMeta {
    order: 1;
}
.home-posts .apbMeta span {
    font-size: 1.5rem !important;
}
.home-posts .apbTitle {
    order: 2;
}
.home-posts .apbTitle a {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
}
.home-posts .apbExcerpt {
    order: 3;
    line-height: normal !important; 
    font-size: 1.5rem !important;
}
.home-posts .dashicons.dashicons-calendar-alt {
    display: none;
}

.home .apbReadMore {
    position: absolute;
    bottom: 20px;
    right: 25px;
}

/* Page - Aktuelles */
.blog header .wp-block-post-featured-image,
.single-post header .wp-block-post-featured-image 
{
    /*display: none;*/
}

.news .news-excerpt,
.spielberichte .spielberichte-excerpt,
.geschichte .geschichte-excerpt{
    position:relative;
}
.news .wp-block-read-more,
.spielberichte .wp-block-read-more,
.geschichte .wp-block-read-more {
    position: absolute;
    right: 25px;
    bottom: 20px;
}
.news .wp-block-read-more:hover,
.spielberichte .wp-block-read-more:hover,
.geschichte .wp-block-read-more:hover {
    background-color: #1960ab !important;
    color:#fff !important;
    text-decoration:none;
}

/* JAHRESPROGRAMM */
    #hg_data,
    #hg_data_b,
    #hg_data_n,
    #hg_data_ec {
        border-collapse: collapse;
        width: 100%;
    }

    #hg_data tbody tr:nth-child(odd),
    #hg_data_b tbody tr:nth-child(odd),
    #hg_data_n tbody tr:nth-child(odd),
    #hg_data_ec tbody tr:nth-child(odd) {
        background-color: #e0f7fa;
    }

    #hg_data tr,
    #hg_data_b tr,
    #hg_data_n tr,
    #hg_data_ec tr {
        text-align: left;
    }

    #hg_data th,
    #hg_data_b th,
    #hg_data_n th,
    #hg_data_ec th {
        cursor: default;
        background-color: #b2ebf2;
    }

    #hg_data .sort.asc::after,
    #hg_data_b .sort.asc::after,
    #hg_data_n .sort.asc::after,
    #hg_data_ec .sort.asc::after {
        content: "\25b2";
    }

    #hg_data .sort.desc::after,
    #hg_data_b .sort.desc::after,
    #hg_data_n .sort.desc::after,
    #hg_data_ec .sort.desc::after {
        content: "\25bc";
    }

.page #hg_teamSelect,
.page #hg_jahrSelect,
.page #hg_teamSelect_b,
.page #hg_jahrSelect_b,
.page #hg_teamSelect_n,
.page #hg_jahrSelect_n,
.page #hg_teamSelect_ec,
.page #hg_jahrSelect_ec,
.page tfoot tr,
.iii-er-schnitt-berechnung #hg_anzahl{
    display: none;
}
.page .spiellistelink {
    color:#1960ab;
}
.page .tingle-modal-box {
    width:auto;
    padding: 20px;
}
.tingle-modal-box tfoot tr.total {
    display: table-row;
}
.page.jahresprogramm-a-mannschaft #hg_jahrSelect,
.page.jahresprogramm-b-mannschaft #hg_jahrSelect_b,
.page.jahresprogramm-nachwuchshornusser #hg_jahrSelect_n,
.page.jahresdurchschnitt-a-mannschaft #hg_jahrSelect,
.page.iii-er-schnitt-berechnung #hg_jahrSelect,
.page.statistiken #hg_jahrSelect,
.page.statistiken #hg_jahrSelect_num,
.page.statistiken #hg_spielerSelect,
.page.statistiken #hg_teamSelect,
.page.jahresdurchschnitt-nw-mannschaft #hg_jahrSelect {
    display: inline;
    font-size: 1.5rem;
    background: #1960ab;
    color: #fff;
    border: none;
}
.page.jahresdurchschnitt-a-mannschaft #hg_total_tr {
    display: contents;
    font-weight:800;
}

.page tr th {
    text-align: left;
}

.gutena-tabs-content,
.page #hg_data,
.page #hg_data_b,
.page #hg_data_n,
.page #hg_data_ec {
    font-size: 1.3rem;
}
.gutena-tabs-content .wp-block-gutena-tab {
    background: none !important;
}

.gutena-tabs-content table th,
.page table th {
    font-weight: 800;
}

table {
    border-collapse: collapse;
}
#hg_data {
    width:100%;
}
#hg_data th,
#hg_data td,
#hg_data_b th,
#hg_data_b td,
#hg_data_n th,
#hg_data_n td,
#hg_data_ec th,
#hg_data_ec td {
    border-bottom: 1px solid #1960ab;
    padding-left: 3px;
    padding-right: 10px;
}
table td.team,
table th.sort {
    /*white-space: nowrap;*/
}

#hg_data td.diff.positive,
#hg_data td.hg_number.plus {
    background-color: lightgreen;
}
#hg_data td.diff.negative,
#hg_data td.hg_number.minus {
    background-color: lightcoral;
}

span#hg_alle input,
#hg_fortlaufend input,
#hg_gegner input {
    width:20px;
    height:20px;
}
.page #hg_jahrSelect,
.page #hg_gegner,
.page #hg_gegner input,
.page #hg_alle,
.page #hg_alle input {
  vertical-align: baseline;
}
.page #hg_alle {
    font-family: var(--wp--preset--font-family--raleway) !important;
}

/* Mannschaft Loop */
.member-posts {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-between; */
}

.member-post {
    flex: 0 0 25%;
    font-size: 1.1rem;
    margin:0 0 5rem;
    text-align:center;
}
.member-post .featured-image img {
    width: 200px;
    height:300px;
    /*height: 200px;*/
    object-fit: cover;
    object-position: top;
    margin-bottom: 2rem;
}
.member-post p {
    margin: 0 0 0.6rem;
}
.member-post .email a {
    display: block;
    width: 100%;
    max-width: 180px;
    padding: 5px 10px;
    border: 1px solid #1960ab;
    margin:0 auto;
}

.kontakt .member-post {
    flex: 0 50%;
}

/* Sponsoring Loop */
.sponsors-wrapper {
    /*font-size: 1.1rem;*/
}
.sponsors-wrapper h3 {
    text-align:center;
    margin: 0 0 0.7rem;
}
.sponsors-wrapper ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.sponsors-wrapper ul li {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 0 0 0.7rem;
}
.sponsors-wrapper ul li a {
    text-align:center;
    /*min-width: 250px;*/
}
.sponsors-wrapper ul li p {
    margin: 0;
    padding: 0;
}
.sponsor-logo {
    width:100%;
    max-width:70%;
    height:auto;
}
.super-sponsor img {
    width: 80%;
    height: auto;
    margin-bottom: 3rem;
}

/*Honorary Members Loop*/
.h-members {
    border-top:1px solid #1960AB;
    padding-top:3.72rem;
    margin-top:3.72rem;
}
.h-members .entry-content {
    line-height: 1.5;
}

/* Page: Gallery */
.gallery-wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;    
}
.ngg-custom-gallery {
    flex: 1 1 calc(33.33% - 10px);
    max-width: 395px;
    margin: 0 0 5rem;
    padding: 0;
}
.ngg-custom-gallery img {
    width: 100%;
}
.ngg-custom-gallery {
    font-size: 1.1rem;
    line-height: 1.7rem;
}
.ngg-custom-gallery strong {
    display: block;
    margin-top: 2rem;
}

/*Page Intern*/
.intern-login-form {
    text-align:center;
}
.intern #loginform label {
    font-weight:500;
}
.intern #loginform .login-username,
.intern #loginform .login-password,
.intern #loginform .login-remember {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.intern #loginform .login-username input,
.intern #loginform .login-password input{
    padding: 4px 8px;
    margin:0;
    box-sizing: border-box;
    line-height: 1.4;
    font-size: 100% !important;
    text-align: center;
    width: 100% !important;
    max-width: 700px;
    font-weight: 300;
}
.intern #loginform .login-remember input {
    width: 25px;
    height: 25px;
}

.intern #loginform .login-submit {
    text-align:center;
}
.intern #loginform .login-submit input {
    border: 1px solid #1960ab;
    border-radius: 0;
    background: #1960ab;
    color: #fff;
    font-size: 1.5rem;
    font-family: 'Raleway';
    font-weight: 800;
    padding: 10px 15px;
    margin:2rem 0;
}
.intern #loginform .login-submit input:hover {
    cursor:pointer;
    background: #fff;
    color: #1960ab;
}

.subscriber-dashboard {
    text-align:center;
}
.intern .user-info-item {
    margin-bottom: 2.5rem;
}
.intern .acf-field {
    border:none !important;
}
.intern .acf-field.email {
    display:flex;
    flex-direction: column;
    align-items: center;
}
.intern .acf-field label,
.intern .acf-fields .acf-label label{
    font-weight:700;
}
.intern .acf-field input {
    font-size: 100% !important;
    text-align: center;
    width: 100% !important;
    max-width:700px;
    font-weight: 300;
}
.intern table.acf-table tr th {
    text-align:center;
}

.intern #message {
    display:none;
}

.intern .acf-button.button.button-primary {
    border: 1px solid #1960ab;
    border-radius: 0;
    background: #1960ab;
    color: #fff;
    font-size: 1.5rem;
    font-family: 'Raleway';
    font-weight: 800;
    padding: 10px 15px;
    margin:2rem 0;
}
.intern .acf-button.button.button-primary:hover {
    cursor:pointer;
    background: #fff;
    color: #1960ab;
}

.intern .logout-section {
    display: flex;
    flex-direction: column;
    font-weight:400;
}
.intern .logout-button img {
    width: 30px;
    height: auto;
}

/* Footer */
footer {
    margin: 0;
}
footer .cf-wrapper p {
    padding: 0;
    margin: 0;
}
footer .cf-wrapper input,
footer .cf-wrapper textarea {
    border:none;
    font-family: 'Raleway';
    font-size: 1.5rem;
    font-weight: 400;
    padding:5px 2%;
    width: 96%;
}
footer .cf-wrapper textarea {
    height:150px;
    padding:5px 1%;
    width: 98%;
}
footer .cf-columns {
    margin-bottom: 30px;
}
footer .cf-columns p {
    display: flex;
    flex-direction: row;
    gap: 30px;
}
footer .cf-send p {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}
.cf-send input.wpcf7-submit {
    width: auto;
    padding: 15px 12px;
    background: #000;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.cf-send input.wpcf7-submit:hover {
    background: #fff;
    color: #000;
}
footer .wpcf7-not-valid-tip {
    color: #fff;
    font-size: 1.5rem;
}
footer .wpcf7 form.invalid .wpcf7-response-output {
    border: 0;
    background: #ffb900;
    margin: 30px 0;
    text-align: center;
    font-size: 1.5rem;
    color: #000;
}
footer .wpcf7 form.sent .wpcf7-response-output {
    border: 0;
    background: #46b450;
    font-size: 1.5rem;
    text-align: center;
    margin: 30px 0;    
}