/*
 Theme Name:   King Schule Theme
 Description:  Das King Schule Theme
 Author:       Lars Badke
 Author URI:   https://www.larsbadke.com
 Version:      1.0
 Text Domain:  King-Schule-theme
*/

/* raleway-100 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 100;
    src: url('/fonts/raleway-v37-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-100italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 100;
    src: url('/fonts/raleway-v37-latin-100italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-200 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 200;
    src: url('/fonts/raleway-v37-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-200italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 200;
    src: url('/fonts/raleway-v37-latin-200italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 300;
    src: url('/fonts/raleway-v37-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-300italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 300;
    src: url('/fonts/raleway-v37-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/raleway-v37-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 400;
    src: url('/fonts/raleway-v37-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-500 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 500;
    src: url('/fonts/raleway-v37-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-500italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 500;
    src: url('/fonts/raleway-v37-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 600;
    src: url('/fonts/raleway-v37-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-600italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 600;
    src: url('/fonts/raleway-v37-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/raleway-v37-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-700italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 700;
    src: url('/fonts/raleway-v37-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-800 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 800;
    src: url('/fonts/raleway-v37-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-800italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 800;
    src: url('/fonts/raleway-v37-latin-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-900 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 900;
    src: url('/fonts/raleway-v37-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-900italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 900;
    src: url('/fonts/raleway-v37-latin-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
.p-row-sm {
    margin-left: -5px;
    margin-right: -5px;
}

.p-row-sm > div[class^="col"] {
    padding-left: 5px;
    padding-right: 5px;
}

body {
    font-family: 'Raleway';
    color: black;
    font-size: 16px;
    line-height: 28px;
    overflow-x: hidden;
    background: #FFF;
    font-weight: 300;
}

html {
    background: #4766a3;
    overflow-x: hidden;
}


.brand-color {
    color: #4766a3;
}


ul {
    padding-left: 20px;
}

li {
    font-size: 16px;
    line-height: 28px;
}

h1, .h1 {
    /*text-transform: uppercase;*/
    font-size: 30px;
    line-height: 40px;
    font-weight: 300;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    h1, .h1 {
        font-size: 24px;
        line-height: 30px;
    }
}

.lb-header-image {
    position: relative;
}

.border-image{
    height: 30px;
    background: rgb(51 69 109 / 0.64);
    width: 100%;
    bottom: 0;
    border: none;
    position: absolute;
}

@media (max-width: 992px) {
    .lb-header-image {
        height: 350px !important;
    }
}

@media (max-width: 768px) {
    .lb-header-image {
        height: 250px !important;
    }
}

#main-header {
    background: #33456d;
}

#main-header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

#logo {
    width: 300px;
    margin: 20px 0 5px 0;
}

#logo img {
    width: 100%
}

.header-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.header-menu > li {
    display: inline-block;
    position: relative;
}

.header-menu > li > a {
    padding: 0px 7px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 300;
    color: white;
    line-height: 14px;
    transition: 0.4s all;
}

.header-menu > li:last-of-type > a {
    padding-right: 0;
}

.header-menu > li:hover > a {
    color: white;
    text-decoration: none;
}

.header-menu > li.current_page_item > a, .header-menu > li.current-page-parent > a, .header-menu > li.current_page_ancestor > a {
    color: white;
    border-bottom: 4px solid #e08d30;
}

.header-menu > li.menu-item-has-children .sub-menu {
    display: none;
    position: absolute;
    z-index: 1;
    background: rgba(255, 255, 255, 0.85);
    list-style-type: none;
    margin: 0;
    padding: 15px 0px;
    width: 100%;
    transform: translateX(-5px);
    min-width: 200px;
}

.header-menu > li.menu-item-has-children:hover .sub-menu {
    display: block;
}

.header-menu > li.menu-item-has-children .sub-menu > li > a {
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    color: inherit;
    display: block;
    padding: 3px 15px;
}

.header-menu > li.menu-item-has-children .sub-menu > li:hover > a, .header-menu > li.menu-item-has-children .sub-menu > li.current_page_item > a {
    color: #e08d30;
}

#showNavBtn {
    align-items: center;
    cursor: pointer;
    display: none;
}

.open-btn {
    height: 35px;
}

@media (max-width: 1200px) {

    #main-header .wrapper {
        align-items: center;
        flex-wrap: wrap;
    }

    #logo {
        width: 200px;
        margin: 10px 0;
    }

    nav {
        transform: unset;
        display: none;
        order: 4;
        width: 100%;
    }

    #showNavBtn {
        display: flex;
    }

    .header-menu {
        margin: 10px 0;
    }

    .header-menu > li {
        display: block;
    }

    .header-menu > li > a {
        padding: 7px 15px;
        padding-left: 0;
        display: block;
    }

    .header-menu > li.current_page_item > a {
        border-bottom: unset;
    }

    .header-menu > li.menu-item-has-children .sub-menu {
        display: block;
        position: unset;
        background: unset;
        padding: 0px 0px;
        transform: unset;
    }

    .header-menu > li.menu-item-has-children .sub-menu > li > a {
        color: white;
    }
}


@media (max-width: 768px) {


    #logo {
        width: 150px;
    }
}


#main-footer {
    background: #4766a3;
    color: white;
    font-size: 14px;
    line-height: 22px;
    padding: 30px 0 10px 0;
}

#main-footer .wrapper {
    display: flex;
    justify-content: space-between;
}

#main-footer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}


#main-footer ul li {
    font-size: 14px;
    line-height: 22px;
}

#main-footer a {
    color: white;
    font-size: 14px;
    line-height: 22px;
}

@media (max-width: 768px) {
    #main-footer .wrapper {
        flex-direction: column;
    }

    #main-footer {
        padding: 30px 0;
    }
}

.block {
    padding: 60px 0;
}

.block p:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .block {
        padding: 30px 0;
    }
}

#team {
    margin-top: 40px;
}

.person {
    display: flex;
    margin-bottom: 60px;
    align-items: center;
}

.person .image {
    width: 150px;
    margin-right: 30px;
}

.person .image img {
    border-radius: 100%;
}

.person .content {
    width: calc(100% - 200px);
}

.person .content h3 {
    font-size: 16px;
    font-weight: 600;
}

.person .more_btn, .person a {
    color: #86b54b !important;
}

.person .info{
    margin-top: 20px;
}

.person .more {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .person {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .person .image {
        width: calc(100%);
        margin-right: 0px;
        margin-bottom: 20px;
    }

    .person .image img {
        max-width: 150px;
    }

    .person .content {
        width: calc(100%);
    }
}

.block a {
    color: #214386 !important;
    text-decoration: none !important;
    font-weight: bold;
}

.block a.brand-button {
    background: #86b54b;
    color: white !important;
    padding: 12px 20px;
    text-decoration: none !important;
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: 300;
    font-size: 22px;
    display: inline-block;
}

#anfahrt_ctr {
    display: none;
}

.block a.galerie_button{
    text-transform: uppercase;
    background: #86b54c;
    color: white!important;
    padding: 15px 30px;
    margin-top: 40px;
    display: inline-block;
    font-weight: 300;
    font-size: 28px;
    border-radius: 30px;
    transition: 0.4s all;
}

.block a.galerie_button:hover{
    background: #668b36;
}

.block a.galerie_button.dark{
    background: #54754c;
}

.block a.galerie_button.dark:hover{
    background: #3a5334;
}

.block a.galerie_button.gray{
    background: #54754c;
}

.block a.galerie_button.gray:hover{
    background: #3a5334;
}

.galerien{

}

.galerien a{
    color: black;
}

.galerien img{
    width: 100%;
    border-radius: 20px;
}

.galerien .name{
    color: #4766a3;
}

@media (max-width: 992px) {
    .galerien{
        margin-bottom: 40px;
        margin-top: 0px;
    }
}


#news img{
    border-radius: 20px;
    margin-bottom: 15px;
}

.blog-vorschau__datum{

    color: #e6a53e;
    font-weight: 600;
    font-style: italic;
}

#news h3 , #news a{
    color: #4766a3!important;
    font-size: 16px;
    line-height: 24px;
}

#news h3{
    margin-bottom: 0px;
}

.blog-list__item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.blog-list__item:first-child {
    padding-top: 0;
}

.blog-list__image {
    flex-shrink: 0;
}

.blog-list__image img {
    width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.blog-list__body {
    flex: 1;
}

@media (max-width: 768px) {
    .blog-list__item {
        flex-direction: column;
        gap: 15px;
    }

    .blog-list__image img {
        width: 100%;
        height: 200px;
    }
}

.blog-pagination {
    margin-top: 40px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 300;
    color: #4766a3 !important;
    border: 1px solid #4766a3;
    text-decoration: none !important;
    transition: background 0.3s, color 0.3s;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: #4766a3;
    color: white !important;
}

.back_btn {
    padding: 30px 0 60px 0;
}

.back_btn a {
    display: inline-block;
    background: #4766a3;
    color: white !important;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 300;
    text-decoration: none !important;
    transition: background 0.3s;
}

.back_btn a:hover {
    background: #33456d;
}

.lb-header-image .dream{
    position: absolute;
    right: 0;
    bottom: 0;
    width: 600px;
    z-index: 9999;
}

@media (max-width: 992px) {
    .lb-header-image .dream{
        width: 350px;
    }
}

@media (max-width: 768px) {
    .lb-header-image .dream{
        width: 275px;
    }
}

footer .dream{
    position: absolute;
    right: 0;
    bottom: 0;
    width: 650px;
    /*z-index: 9999;*/
}

@media (max-width: 992px) {
    footer .dream{
        width: 350px;
    }
}

@media (max-width: 768px) {
    footer .dream{
        width: 275px;
    }
}

.header-menu-2{
    list-style-type: none;
    padding: 0;
    margin: 0;
    position: absolute;
    bottom: 10px;
    transform: translateX(calc(-100% - 35px));
}

.header-menu-2 > li{
    padding: 0;
}

.header-menu-2 > li > a {
    display: flex;
    align-items: center;
    color: white;
    font-size: 14px;
    line-height: 24px;
    gap: 6px;
}

.header-menu-2 > li > a::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: black;
    flex-shrink: 0;
}


.header-menu-2 > li:nth-of-type(1) > a::before {
    background-color: #00aded;
}


.header-menu-2 > li:nth-of-type(2) > a::before {
    background-color: #ecbc4e;
}


.header-menu-2 > li:nth-of-type(4) > a::before {
    background-color: #ffffff;
}

@media (max-width: 1400px) {


    .header-menu-2{

        position: unset;
        transform: unset;

    }
    .header-menu-2 > li{
        display: inline-block;
        margin-right: 3px;
    }


    #logo{
        margin-top: 5px;
    }

}

@media (max-width: 768px) {
    .header-menu-2 > li > a {

        font-size: 13px;
        gap: 3px;
    }

}

/* Shortcode [bildtext] – Bild neben Text */
.king-bildtext {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin: 10px 0 0 0;
}

.king-bildtext__bild {
    flex-grow: 0;
    flex-shrink: 0;
}

.king-bildtext__bild img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.king-bildtext__text {
    flex: 1 1 0;
    align-self: start;
    min-width: 0;
}

.king-bildtext__text > *:first-child {
    margin-top: 0;
}

.king-bildtext__text > *:last-child {
    margin-bottom: 0;
}

.king-bildtext--rechts .king-bildtext__bild {
    order: 2;
}

@media (max-width: 992px) {
    .king-bildtext {
        flex-direction: column;
        gap: 20px;
    }

    /* Auf dem Handy immer: Bild oben, Text darunter */
    .king-bildtext__bild {
        flex-basis: auto !important;
        order: 0 !important;
        width: 100%;
    }
}

/* --- Termin Block ------------------------------------------------------- */

.king-termin {
    display: grid;
    grid-template-columns: 180px 280px 1fr;
    gap: 30px;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.king-termin:first-child {
    padding-top: 0;
}

.king-termin:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.king-termin__datum {
    color: #e6a53e;
    font-weight: 600;
    font-style: italic;
}

.king-termin__name {
    color: #4766a3;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
}

.king-termin__info {
    margin-top: 0;
}

.king-termin__info p:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .king-termin {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}
