/*
Theme Name: MBC Poing V3.4 Final
Author: MBC Poing e.V.
Description: MBC Poing Vereinswebsite in Gruen und Gelb mit Smart Slider, Bildergalerien und Veranstaltungskalender.
Version: 3.4.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: mbc-poing-v31
*/

:root {
    --green: #17452e;
    --darkgreen: #103322;
    --yellow: #ffdf35;
    --background: #f2f5f2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: #26332b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.7;
}

a {
    color: var(--green);
}

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

.container {
    width: min(1200px, 92%);
    margin: auto;
}

.site-header {
    background: var(--green);
    color: white;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 22px;
}

.custom-logo {
    width: 85px;
    height: auto;
    border-radius: 6px;
}

.site-name {
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-decoration: none;
}

.site-description {
    font-size: 15px;
    margin: 0;
}

.main-nav {
    background: var(--darkgreen);
    border-bottom: 4px solid var(--yellow);
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    background: var(--green);
    color: var(--yellow);
}

.main-nav .sub-menu {
    display: block;
    padding-left: 12px;
}

.hero-slider {
    width: 100%;
    overflow: hidden;
    background: var(--darkgreen);
}

.hero-slider img {
    display: block;
    width: 100%;
}

.welcome {
    text-align: center;
    padding: 32px 15px 20px;
}

h1, h2, h3 {
    color: var(--green);
    line-height: 1.3;
    overflow-wrap: break-word;
}

.welcome h1 {
    margin: 0 0 10px;
    font-size: 36px;
}

.welcome p {
    margin: 0;
}

.quicklinks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 15px 0 30px;
}

.quicklinks a {
    display: block;
    background: white;
    border-top: 4px solid var(--yellow);
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    font-size: 21px;
    font-weight: bold;
    box-shadow: 0 3px 12px #00000010;
}

.quicklinks a:hover {
    background: var(--green);
    color: white;
}

.content-card {
    background: white;
    border-radius: 10px;
    padding: 35px;
    margin: 25px 0;
    overflow-wrap: break-word;
}

.events-list {
    list-style: none;
    padding: 0;
}

.events-list li {
    padding: 12px 0;
    border-bottom: 1px solid #dddddd;
}

.event-date {
    display: block;
    font-weight: bold;
    color: var(--green);
}

.site-footer {
    background: var(--darkgreen);
    color: white;
    padding: 30px 15px;
    margin-top: 40px;
    text-align: center;
}

.site-footer a {
    color: var(--yellow);
    text-decoration: none;
}

.site-footer ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.site-footer p {
    margin: 12px 0 0;
}

iframe, video {
    max-width: 100%;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin: 0 20px 15px 0;
}

.alignright {
    float: right;
    margin: 0 0 15px 20px;
}

.content-card::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 768px) {

    .site-name {
        font-size: 24px;
    }

    .custom-logo {
        width: 65px;
    }

    .brand {
        gap: 12px;
    }

    .main-nav a {
        padding: 10px 12px;
        font-size: 15px;
    }

    .quicklinks {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .welcome h1 {
        font-size: 27px;
    }

    .content-card {
        padding: 20px;
    }

    .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .alignleft, .alignright {
        float: none;
        margin: 10px auto;
    }
}


/* ========================================
   MBC POING VERSION 3.2
   VEREINSFARBEN GRUEN UND GELB
   ======================================== */

:root {
    --mbc-green: #17432e;
    --mbc-darkgreen: #103323;
    --mbc-yellow: #ffff00;
    --mbc-background: #f0f3f0;
}

/* Kopfbereich */

.site-header,
header.site-header,
.mbc-header {
    background-color: #17432e !important;
    color: #ffff00 !important;
}

.site-title,
.site-title a,
.site-description,
.site-header h1,
.site-header p,
.mbc-header h1,
.mbc-header p {
    color: #ffff00 !important;
}

/* Hauptmenue */

.main-navigation,
.site-navigation,
.mbc-nav,
.mbc-navigation,
.site-header nav {
    background-color: #103323 !important;
    border-bottom: 4px solid #ffff00;
}

.main-navigation a,
.site-navigation a,
.mbc-nav a,
.mbc-navigation a,
.site-header nav a {
    color: #ffff00 !important;
}

.main-navigation a:hover,
.site-navigation a:hover,
.mbc-nav a:hover,
.mbc-navigation a:hover,
.site-header nav a:hover {
    background-color: #ffff00 !important;
    color: #103323 !important;
}

.current-menu-item > a,
.current_page_item > a {
    background-color: #24583c;
    color: #ffff00 !important;
}

/* Untermenues */

.sub-menu {
    background-color: #103323 !important;
}

.sub-menu a {
    color: #ffff00 !important;
}

/* Fussbereich */

.site-footer,
.mbc-footer,
footer.site-footer {
    background-color: #103323 !important;
    color: #ffff00 !important;
    padding: 30px 20px;
    text-align: center;
}

.site-footer a,
.site-footer p,
.mbc-footer a,
.mbc-footer p {
    color: #ffff00 !important;
}

.site-footer li,
.mbc-footer li {
    margin: 0 8px;
}

/* Schaltflaechen */

.wp-block-button__link,
.mbc-button {
    background-color: #17432e !important;
    color: #ffff00 !important;
    border-radius: 6px;
    padding: 12px 22px;
    text-decoration: none;
}

.wp-block-button__link:hover,
.mbc-button:hover {
    background-color: #ffff00 !important;
    color: #103323 !important;
}

/* The Events Calendar */

.tribe-events {
    --tec-color-accent-primary: #17432e;
    --tec-color-accent-primary-hover: #24583c;
    --tec-color-background-events-bar-submit-button: #17432e;
}

.tribe-events .tribe-events-c-search__button,
.tribe-events .tribe-common-c-btn,
.tribe-events .tribe-common-c-btn-border {
    background-color: #17432e !important;
    color: #ffff00 !important;
    border-color: #17432e !important;
}

.tribe-events .tribe-events-c-search__button:hover,
.tribe-events .tribe-common-c-btn:hover {
    background-color: #ffff00 !important;
    color: #103323 !important;
}

.tribe-events-calendar-list__event-title a {
    color: #17432e !important;
}

/* Hinweis Modellbahntage */

.mbc-event-highlight {
    max-width: 1120px;
    margin: 28px auto;
    padding: 24px;
    background-color: #17432e;
    color: #ffff00;
    border-left: 6px solid #ffff00;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
}

.mbc-event-highlight h2,
.mbc-event-highlight p,
.mbc-event-highlight a {
    color: #ffff00 !important;
}

.mbc-event-highlight h2 {
    margin: 0 0 12px;
}

.mbc-event-highlight a {
    display: inline-block;
    border: 1px solid #ffff00;
    border-radius: 5px;
    padding: 10px 20px;
    margin-top: 8px;
    text-decoration: none;
}

.mbc-event-highlight a:hover {
    background-color: #ffff00;
    color: #103323 !important;
}

/* Vereinsabend */

.mbc-club-evening {
    background-color: #17432e;
    color: #ffff00;
    padding: 24px;
    margin: 30px 0;
    border-radius: 8px;
    border-left: 6px solid #ffff00;
}

.mbc-club-evening h2,
.mbc-club-evening p,
.mbc-club-evening a {
    color: #ffff00 !important;
}

/* Bilder und Videos */

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

.entry-content iframe {
    max-width: 100%;
}

.ngg-galleryoverview {
    max-width: 100%;
}

/* Tastaturbedienung */

a:focus-visible,
button:focus-visible {
    outline: 3px solid #d4b900;
    outline-offset: 3px;
}

/* Smartphone und Tablet */

@media screen and (max-width: 768px) {

    .site-title,
    .site-title a {
        font-size: 25px !important;
    }

    .site-description {
        font-size: 14px !important;
    }

    .main-navigation ul,
    .mbc-nav ul,
    .mbc-navigation ul {
        flex-wrap: wrap;
    }

    .entry-content {
        overflow-wrap: anywhere;
    }

    .mbc-event-highlight {
        margin: 15px;
        padding: 18px;
    }

    .mbc-event-highlight h2 {
        font-size: 23px;
    }

    .mbc-club-evening {
        padding: 18px;
    }

    .site-footer,
    .mbc-footer {
        padding: 24px 15px;
    }
}

/* MBC Poing Version 3.3 */

:root {
    --mbc33-green: #17412d;
    --mbc33-dark: #103223;
    --mbc33-yellow: #ffff00;
}

/* Kopfbereich */

.site-title,
.site-title a,
.site-description,
.site-header h1,
.site-header h1 a,
.site-header .site-title a {
    color: #ffff00 !important;
}

/* Hauptnavigation */

.mbc33-navigation a,
.main-navigation a,
.site-navigation a,
.main-nav a {
    color: #ffff00 !important;
}

.mbc33-navigation a:hover,
.mbc33-navigation a:focus-visible,
.mbc33-navigation .current-menu-item > a,
.mbc33-navigation .current_page_item > a {
    background-color: #24573d !important;
    color: #ffff00 !important;
}

/* Bilder und Videos */

.entry-content img,
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.entry-content iframe,
.entry-content video,
.wp-block-embed {
    max-width: 100%;
}

.wp-block-embed.is-type-video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* Veranstaltungskalender */

.tribe-common,
.tribe-events {
    --tec-color-accent-primary: #17412d;
    --tec-color-accent-primary-hover: #24573d;
    --tec-color-background-events-bar-submit-button: #17412d;
    --tec-color-text-events-bar-submit-button: #ffff00;
}

.tribe-events .tribe-events-c-search__button {
    background: #17412d !important;
    color: #ffff00 !important;
}

.tribe-events .tribe-events-calendar-list__event-title-link {
    color: #17412d !important;
}

/* Smartphone-Menue */

.mbc33-menu-toggle {
    display: none;
}

@media screen and (max-width: 600px) {

    .mbc33-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 18px;
        min-height: 48px;
        border: 0;
        background: #103223;
        color: #ffff00;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
    }

    .mbc33-navigation.mbc33-ready
    .mbc33-menu-list {
        display: none !important;
    }

    .mbc33-navigation.mbc33-open
    .mbc33-menu-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mbc33-menu-list > li {
        display: block !important;
        width: 100%;
        margin: 0 !important;
    }

    .mbc33-menu-list > li > a {
        display: block !important;
        padding: 13px 18px !important;
        border-top: 1px solid rgba(255,255,0,0.15);
    }

    .site-title {
        font-size: 22px !important;
    }

    .site-description {
        font-size: 13px !important;
    }

    .entry-content {
        overflow-wrap: anywhere;
    }

    .entry-content h1 {
        font-size: 26px;
    }

    .entry-content h2 {
        font-size: 23px;
    }

    .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .wp-block-column {
        flex-basis: 100% !important;
        min-width: 0;
    }

    .tribe-events {
        max-width: 100%;
    }
}


/* ========================================
   MBC POING VERSION 3.4 FINAL
   VEREINSFARBEN
   ======================================== */

:root {
    --mbc34-green: #17412d;
    --mbc34-darkgreen: #103223;
    --mbc34-yellow: #ffff00;
    --mbc34-background: #eff3ef;
}

/* Kopfbereich */

.site-header {
    background-color: #17412d !important;
    color: #ffff00 !important;
}

/* Vereinsname dauerhaft in Gelb */

header h1,
header h1 a,
header h2,
header h2 a,
header .site-title,
header .site-title a,
header .site-name,
header .site-name a,
header .brand-title,
header .brand-title a,
header .site-branding a,
header .site-description {
    color: #ffff00 !important;
}

/* Hauptnavigation */

.main-nav,
.main-navigation,
.site-navigation,
.mbc33-navigation {
    background-color: #103223 !important;
    border-bottom: 4px solid #ffff00;
}

.main-nav a,
.main-navigation a,
.site-navigation a,
.mbc33-navigation a {
    color: #ffff00 !important;
}

/* Aktive Menuepunkte */

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.mbc33-navigation .current-menu-item > a,
.mbc33-navigation .current_page_item > a {
    background-color: #24573d !important;
    color: #ffff00 !important;
}

/* Menue bei Maus- und Tastaturbedienung */

.main-nav a:hover,
.main-nav a:focus-visible,
.mbc33-navigation a:hover,
.mbc33-navigation a:focus-visible {
    background-color: #24573d !important;
    color: #ffff00 !important;
}

/* Smartphone-Menue */

.mbc33-menu-toggle {
    background-color: #103223;
    color: #ffff00;
}

/* Fussbereich */

.site-footer,
.site-footer p,
.site-footer a,
.site-footer li {
    color: #ffff00 !important;
}

.site-footer {
    background-color: #103223 !important;
}

/* Schaltflaechen */

.wp-block-button__link,
.mbc-button,
.tribe-events .tribe-events-c-search__button {
    background-color: #17412d !important;
    color: #ffff00 !important;
}

/* Bilder und Videos */

.content-card img,
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.content-card iframe,
.content-card video {
    max-width: 100%;
}

/* Hinweise und Vereinsabend */

.mbc-event-highlight,
.mbc-club-evening {
    background-color: #17412d;
    color: #ffff00;
}

/* Smartphone */

@media screen and (max-width: 600px) {

    header .site-name,
    header .site-title {
        font-size: 23px !important;
        line-height: 1.3;
    }

    header .site-description {
        font-size: 13px !important;
    }

    .brand {
        gap: 12px;
    }

    .content-card {
        padding: 18px;
    }

    .quicklinks {
        gap: 12px;
    }

    .site-footer {
        padding: 24px 15px;
    }
}

/* Ende MBC Poing Version 3.4 */
