/*
	Theme Name: Bildungswerk
	Theme URI: http://html5blank.com
	Description: HTML5 Blank WordPress Theme
	Version: 1.4.3
	Author: Todd Motto (@toddmotto)
	Author URI: http://toddmotto.com
	Tags: Blank, HTML5, CSS3

	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

:root {
    --primary-color: #2c5a5a;
    --bg-submenu: #e7e6e6;
    --tile-green: #dcedd6;
    --tile-mid-green: #cbe6c4;
    --tile-peach: #f4c7b6;
    --text-color: #3c5f55;
    --accent-orange: #d98d70;
    --link-color: #6f9f66;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    border-bottom: 2px solid var(--primary-color);
    background: white;
    position: relative;
    z-index: 100;
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 130px;
    width: 1300px;
    margin: 0 auto;
}

.spruch {
    flex: 1;
}

nav {
    flex: 2;
    height: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    justify-content: center;
    height: 100%;
}

nav ul li {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
}

nav ul li:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
}

.main-nav .unterstuetzen::after {
    content: "";
    background: url("img/unterstuetzen.jpg");
    width: 39px;
    height: 27px;
    margin-left: 5px;
}

/* Logos */
.logos {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    align-items: center;
}

.logos img {
    height: 50px;
    width: auto;
    display: block;
    background: #f0f0f0;
}

.submenu-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-submenu);
    display: none;
    padding: 40px 5%;
    box-sizing: border-box;
    border-bottom: 1px solid #ddd;
    cursor: default;
    color: var(--text-color);
    text-decoration: none;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0px 6px 6px rgba(0,0,0,.1);
}

nav ul li:hover .submenu-container {
    display: block;
}

.submenu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.submenu-column h3 {
    color: var(--accent-orange);
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 20px;
    margin-top: 0;
}

.submenu-column ul {
    display: block;
    list-style: none;
    padding: 0;
}

.submenu-column ul li {
    display: block;
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 0.95rem;
    padding: 0;
    text-decoration: none;
}

.submenu-column ul li:hover {
    color: var(--accent-orange);
    text-decoration: none;
}

.submenu-column a:hover {
    color: var(--accent-orange);
}

/* Content */
.content {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.content p a {
    color: var(--link-color);
    text-decoration: none;
}

.content p a:hover {
    color: var(--link-color);
    text-decoration: underline;
}

.tiles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.tile {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.tile-image-placeholder {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 4rem;
    font-weight: 900;
    color: white;
    padding-bottom: 20px;
    overflow: hidden;
    letter-spacing: -5px;
}

.tile:nth-child(1) .tile-image-placeholder { background-color: var(--tile-green); }
.tile:nth-child(2) .tile-image-placeholder { background-color: var(--tile-mid-green); }
.tile:nth-child(3) .tile-image-placeholder { background-color: var(--tile-peach); }

.tile-text {
    padding: 20px 0;
    font-size: 0.95rem;
}

/* Slider Section */
.slider-section {
    background-color: #d9d9d9;
    padding: 0;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
}

.main-slider, .slick-list, .slick-track {
    height: 100%;
}

.slide-item {
    display: flex !important;
    align-items: stretch;
    gap: 50px;
    height: 100%;
}

.slide-content {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
    position: relative;
}

.slide-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
    min-height: 150px;
}

.slide-image {
    flex: 1;
    height: 100%;
}

.slide-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #ccc;
}

/* Custom Arrows */
.slider-nav {
    display: flex;
    gap: 20px;
    position: absolute;
    bottom: 40px;
    left: 0;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}

.nav-btn:hover {
    color: var(--primary-color);
}

/* Slick adjustments */
.slick-list {
    overflow: visible;
}

/* Termine */

#termine-wrap {
    /*display: flex;
    gap: 30px;
    flex-wrap: wrap;*/
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 30px;
}

.termin {
    display: flex;
    gap: 30px;
}

.termin .post-categories {
    margin: 0;
    padding: 0;
    list-style: none;
}

.termin .post-categories li {
    display: inline-block;
}

.termin .post-categories a {
    color: #667;
    font-size: 14px;
    text-decoration: none;
}

.termin .post-categories a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.termin a.titel {
    color: var(--primary-color);
    text-decoration: none;
}

.termin a.titel:hover {
    text-decoration: underline;
}

.termin .titel h3 {
    margin: 10px 0 5px 0;
}

.termin p {
    margin-top: 0px;
    color: #000;
}

.termin .pfeil {
    margin-left: 8px;
}

.kalenderblatt {
    border: 3px solid var(--primary-color);
    min-width: 70px;
    height: 70px;
}

.kalenderblatt .tag {
    margin: 0;
    text-align: center;
    font-weight: bold;
    font-size: 26px;
    line-height: 26px;
    margin-top: 8px;
    color: var(--primary-color);
}

.kalenderblatt .monat {
    margin: 0;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    color: var(--primary-color);
}

.infobox {
    display: flex;
    margin-top: 22px;
    margin-bottom: 30px;
}

.infobox div {
    flex: 3;
    position: relative;
}

.infobox div:has(img) {
    padding-left: 45px;
}

.infobox div img {
    position: absolute;
    top: -4px;
    left: 0;
}

.infobox {
    padding: 20px;
    border: 1px solid var(--primary-color);
}

.infobox .post-categories {
    margin: 0;
    padding: 0;
    list-style: none;
}

.infobox .post-categories li {
    display: inline-block;
}

.infobox .post-categories a {
    color: var(--text-color);
    text-decoration: none;
}

.infobox .post-categories a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.single-veranstaltung hr {
    width: 60%;
    margin-right: auto;
    margin-left: 0;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid var(--primary-color);
    opacity: .3;
}

a.veranstaltungen-link {
    color: var(--primary-color);
    text-decoration: none;
}

a.veranstaltungen-link:hover {
    text-decoration: underline;
}

/* Category Archiv */

.category .content, .page-template-page-banner .content {
    padding-top: 0;
}

.catbanner {
    width: 100%;
    height: 200px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 200px;
    text-align: center;
    margin-bottom: 40px;
}

.catdesc {
    margin-bottom: 80px;
}

/* Angebote */

.unsere-angebote .wp-block-column a {
    text-decoration: none;
    color: #000;
    
}

.unsere-angebote .wp-block-column:hover {
    opacity: .7;
}

/* Newsletter */

.newsabo {
    top: 420px;
    right: 0;
    position: fixed;
    z-index: 99999;
}

.newsabo a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    background: var(--accent-orange);
    width: 140px;
    height: 120px;
    display: block;
    padding-top: 10px;
}

.newsabo a:hover {
    opacity: .7;
}

/*#################### FOOTER ##################*/

footer {
    margin-top: 100px;
    border-top: 2px solid #d9e1e1;
}

.footer-wrap {
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

footer a {
    color: var(--text-color);
    text-decoration: none;
    margin-right: 10px;
}

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

/*############### FORMULAR ###############*/

input[type=submit] {
    background-color: var(--primary-color);
    color: #fff;
    border: 0;
    padding: 10px 15px !important;
    margin: 20px 0;
}

input[type=submit]:hover {
    cursor: pointer;
    background-color: var(--accent-orange);
}

.anmeldung h3 {
    margin: 40px 0
}

.anmeldung label {
    width: 180px;
    display: inline-block;
}

.anmeldung .wpcf7-acceptance label {
    width: auto;
}

.anmeldung hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid #bbb;
}

.anmeldung input {
    padding: 4px;
    border: 1px solid #bbb;
    margin-bottom: 10px;
}

.anmeldung .nachricht label {
    width: auto;
    margin-bottom: 10px;
}

.page-template-page-anmeldung h1 {
    margin-top: 40px;
    margin-bottom: 40px;
    line-height: 1.4;
}

.page-template-page-anmeldung h3 {
    margin: 10px 0;
}

.wpcf7 .wpcf7-submit:disabled {
    /*background: opacity:;*/
    opacity: .5;
}

a.button-kursanmeldung {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    border: 0;
    padding: 10px 15px !important;
    margin: 0 0 10px 0;
    text-decoration: none;
}

a.button-kursanmeldung:hover {
    background-color: var(--accent-orange);
}

/*#################### PAGINATION ##################*/

.pagination {
    /*text-align: center;*/
    margin-top: 50px;
}

.pagination .current {
    border-radius: 4px;
    border: 2px solid #d9e1e1;
    padding: 5px 7px;
}

.pagination a {
    border-radius: 4px;
    border: 2px solid #d9e1e1;
    background-color: #d9e1e1;
    padding: 5px 7px;
    text-decoration: none;
    color: var(--text-color);
}

.pagination a:hover {
    background-color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
    color: #fff;
}

/*#################### MOBIL MENÜ ##################*/

.screen1_menu_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    color: #000;
    padding: 0 10px;
    /*box-shadow: 0 5px 5px rgba(0,0,0,.2);*/
    position: relative;
    /*width: 100vw;*/
    /*left: 0;*/
    z-index: 99999;
}

.screen1_menu_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 75px;
    /*height: 75px;*/
    height: 100px;
    cursor: pointer;
    transition: all var(--transition) ease-in-out;
}

.screen1_menu_hamburger {
    width: 30px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 5px;
    z-index: 10;
    transition: all var(--transition) ease;
    z-index: 9999;
}

.screen1_menu_hamburger::before,
.screen1_menu_hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: all var(--transition) ease;
}

.screen1_menu_hamburger::before {
    transform: translateY(-8px);
}

.screen1_menu_hamburger::after {
    transform: translateY(8px);
}

.screen1_menu_items {
    background:  var(--primary-color);
    color: #fff;
    position: absolute;
    /*right: 100%;*/
    left: -50%;
    height: 100vh;
    width: 30%;
    padding-top: 100px;
    top: -50px;
    transition: all var(--transition) ease-in-out;
    box-shadow: 0 5px 5px rgba(0,0,0,.2);
    z-index: 9998;
}

.screen1_menu_items li {
    padding: auto;
    text-align: left;
    transition: all var(--transition) ease; 
    list-style-type: none;
	line-height: 32px;
}

.screen1_menu_items li:hover {
    color: #fff;
    text-decoration: underline;
}

.screen1_menu_items li.active {
    color: #fff;
}

.screen1_menu_items li a {
    font-size: 18px;
    line-height: 26px;
    color: #fff;
    text-decoration: none;
}

.screen1_menu_items .current_page_item {
    font-weight: bold;
}

/* animation */
.screen1_menu_btn input:checked ~.screen1_menu_hamburger {
    transform: translateX(-50px);
    background: transparent;
}

.screen1_menu_btn input:checked ~.screen1_menu_hamburger::before {
    transform: rotate(45deg) translate(35px, -35px);
    background: #fff;
}

.screen1_menu_btn input:checked ~.screen1_menu_hamburger::after {
    transform: rotate(-45deg) translate(35px, 35px);
    background: #fff;
}

.screen1_menu_btn input:checked ~.screen1_menu_items {
    left: 0%;
    width: 100%;
}

.screen1_menu_btn input {
    display: none;
}

.screen1_menu_container h4 {
    color: #799f3c;
}

.screen1_menu_container hr {
    width: 75%;
    margin-left: 0px;
    border: 0;
    border-top: 1px solid #828385;
}

/*nav img {
    max-width: 60%;
}*/

nav .logo {
    max-width: 240px;
    margin-right: 8%;
}

nav .logo img {
    width: 100%;
}

.screen1_menu_container a {
    text-decoration: none;
}

.screen1_menu_container a p {
    margin-top: 0;
    position: relative;
    color: #000;
    text-decoration: none;
    font-size: 12px;
}

.screen1_menu_container .bigmenutext {
    display: none;
}

.screen1_menu_container {
    display: none;
}

.screen1_menu_items .sub-menu {
    /*padding-left: 10px;*/
    padding-left: 0;
}

.screen1_menu_items .sub-menu a {
    margin-left: 0;
}

.screen1_menu_items .empty-link a {
    display: none;
}

.screen1_menu_items .empty-link ul li a {
    display: block;
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen and (max-width:1280px) {
    .wrapper {
        width: 90%;
        margin-left: 5%;
    }

    .footer-wrap {
        width: 90%;
        margin-left: 5%;
    }
    
    .screen1_menu_container {
        display: flex;
    }

    .header-wrap {
        display: none;
    }

    #termine-wrap {
        grid-template-columns: 100%;
        gap: 30px;
    }

    /*.slider-section {
        height: 300px;
    }*/

    .slide-content {
        padding-top: 0;
    }

    .slide-item {
        gap: 5px;
    }

    .slide-text {
        font-size: 0.8em;
    }

    .slide-image {
        height: 210px;
    }

    header img {
        max-height: 80px;
    }

}

.slide-item {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
}

@media (min-width: 768px) {
    .slide-item {
        flex-direction: row;
        align-items: center;
    }

    .slide-content, 
    .slide-image {
        width: 50%;
    }
}

.slick-slide {
    height: auto;
}