/* 
Theme Name: BFI Design
Author: Ivica Arelic-Lerner
Description: Ein einfaches Wordpress Theme.
Version: 1.0
*/

body:not(.admin-bar) {
    --wp-admin--admin-bar--height: 0px;
}


* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    background: rgba(107, 15, 160, 0.603);
    height: 100vh;
    min-height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-flow: column nowrap;
}

/* Typographie*
*Google Font*
*/

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open-sans', Arial, Helvetica, sans-serif;
    font-weight: bold;
}

body {
    font-family: 'Open-sans', Verdana, Tahoma, sans-serif;
    
}



/* Layout */


.wrapper {
    display: flex;
    flex-flow:column nowrap;
    flex: 1 0 auto;
}

.wrapper main {
    flex:1 0 auto;
}

/* Desktop*/

@media screen and (min-width: 54em) {
    .wrapper {
        flex-flow: row nowrap;
    }
    
    .wrapper .sidebar {
        flex: 1 0 auto;
        max-width: 0;
    }

    .wrapper main {
        flex: 5 0 auto;
        max-width: 100%;
        padding: 5%;
    }
}

/* Header Medien (Logo + Bild) */
.header-media {
    position: relative;
    width: 100%;
    height: 30vh;
}

.header-overlay {
    position: relative;
}

.header-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(88, 11, 139, 0.7);
    pointer-events: none;
}


/* Startseiten Header höher */
body.home .header-media {
    /*height: 50vh; /* 50% des Displays*/
    height: calc(100vh - 3.4em); /* Gesamte Höhe Menü sichtbar */
}

@media screen and (max-width: 34.998em) {
    body.home .header-media {
    height: calc(100vh - 22em);
    }

    body.page-id-2 .header-media .custom-logo-link {
        position: absolute;
        left: 25%;
        top: 55%;
        /*Für links/rechts Ausrichtung*/
        transform: translate(0, -50%);
    }
    
}

/* Beitragsbild */
.header-media .attachment-post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Logo */
@media screen and (min-width: 35em) {
    body.page-id-2 .header-media .custom-logo-link {
    position: absolute;
    left: 41%;
    top: 30%;
    /*Für links/rechts Ausrichtung*/
    transform: translate(0, -50%);
    }
}


/* Navigation */


header nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display:flex;
    flex-flow: column nowrap;
    text-transform: uppercase;
}

header nav ul a {
    display: flex;
    font-weight: 700;
}

header nav div ul li.menu-item-has-children a i {
    display: block;
    color:white;
    margin-left: 5px;
    font-size: 12px;
}


header nav div ul.sub-menu li a i {
    display: none;
}

header nav a:not(.open) + ul.sub-menu {
    display: none;
}
@media screen and (min-width: 35em) {
    header nav ul li a i {
        display: none;    
    }
}

header nav ul.sub-menu {
    font-size: 0.8em;

}

/* Aktiver Menü-Punkt */
header nav ul .current-menu-item {
    background: rgb(110, 10, 141)
}

header nav ul .current-menu-item > a {
    font-weight: bold;
}

/* Mobile Navigation */
@media screen and (max-width: 34.998em) {
    header nav {
        background: rgba(158, 158, 158, 0.4);
        backdrop-filter: blur(4px);
        transition: left 0.3s ease-in-out;
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        max-width: 100%;
        height: 100%;
    }

    header nav>div>ul>li>a>i {
        display: none;
    }

    body.menu-open header nav ul a {
        text-align: left;
    }

    header nav i {
        margin-right: 5px;
    }

    body.menu-open header nav {
        left: 0;

    }
}


/* Sticky header */
@media screen and (min-width: 35em) {
body.sticky-nav header nav {
    position: fixed;
    top: var(--wp-admin--admin-bar--height);
    left: 0;
    right: 0;
    background-color: rgb(0, 0, 0);
}

}

body.sticky-nav .wrapper {
    padding-top: 56px;
}

/* Footer */

footer {
text-align: center;
}

footer .social-buttons p {
    color: white;
    font-size: 2em;
}

footer .social-buttons a {
    color: white;
    font-size: 2em;
    padding: 10px;
}

footer div img {
    object-fit: contain;
    width: 35%;
    height: auto;
    border-radius: 30px;
}


footer .copyright-info {
    color: white;
    
}

footer div ul li a {
    color: white;

}

footer ul.menu {
    list-style-type: none;
    margin-left: 0;
    padding: 0;
}




/* Tablet und größer */

@media screen and (min-width: 35em) {
    header nav ul {
        flex-flow: row nowrap;
        gap: 50px;
    }

    header nav ul li {
        flex: 1 0 auto;
    }

    header nav li.menu-item-has-children {
        
        position: relative;
       
    }

    header nav li.menu-item-has-children > a.open + ul.sub-menu {
        background: rgb(133, 1, 160);
        display: flex;
        position: absolute;
        flex-flow: column wrap;
        min-width: 15em;
        backdrop-filter: blur(3px);
        top: calc(100% + 14px);
        border-radius: 5px;
        left: -15px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
        align-items: center;
    }


    

    header nav li.menu-item-has-children > a.open + ul.sub-menu li {
        z-index: 999;
    }


    header nav li.menu-item-has-children > a.open + ul.sub-menu::after {
        z-index: 1;
        content: '';
        position: absolute;
        top: -14px;
        left: 50%;
        transform: translateY(50%);
        width: 20px;
        height: 20px;
        rotate: 45deg;
        background: rgb(133, 1, 160);
    }



    header nav li.menu-item-has-children ul.sub-menu a {
        text-align: left;
    }

    header nav li.menu-item-has-children > a > i {
        transition: margin-top 0.3s;
    }
    header nav li.menu-item-has-children:hover > a > i {
        margin-top: 4px;
        border-radius: 5px;
    }



    footer {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
    }

}




/* Desktop */

@media screen and (min-width: 54em) {
    header nav ul li {
        flex: 0 0 auto;
        border-radius: 5px;
    }


    body.page-id-2 header nav {
        padding-top: var(--wp-admin--admin-bar--height);
        position: relative;
        top: -500px;
    }

}


/****** Design ******/

main {
    padding: 1em;
}


footer {
    padding: 4em 1em;
}
/* 
* Header
*/

header {
    background-color: rgb(113, 25, 148)(0, 255, 0, 0.3);
    z-index: 99999;
}

.page-id-2 .custom-logo-link {
    display: block;
    text-align: center;
    padding-top: 3%;
    position: relative;
}

.page-id-2 .custom-logo {
    max-width: 220px;
    height: auto;
}

.custom-logo-link {
    display: block;
    text-align: center;
    position: relative;
}

.custom-logo {
    max-width: 220px;
    height: auto;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    margin-top: -250px;
    border-radius: 30px 30px 40px 40px;
}



@media screen and (max-width: 34.998em) {
    header {
        display: flex;
        justify-content: flex-end;
        padding: 10px;
    }
}

/*
*Navigation Button
*/

@media screen and (min-width: 35em) {
    #nav-btn {
        display: none;
    }
}

#nav-btn {
    width: 40px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

#nav-btn div {
    background: black;
    width: 40px;
    height: 6px;
    border-radius: 20%;
    transition: all 1s;
}

/*
*Menü geöffnet
*/

body.menu-open #nav-btn div:first-child {
    rotate: 45deg;
    position: absolute;
    top: 50%;
}

body.menu-open #nav-btn div:nth-child(2) {
    opacity: 0;
}

body.menu-open #nav-btn div:last-child {
    rotate: -45deg;
    position: absolute;
    top: 50%;
}

#nav-btn div:not(:last-child) {
    margin-bottom: 5px;
}



/*
* Navigation
*/

header nav ul {
    list-style-type: none;
    justify-content: center;
}

header nav ul li:hover {
    background-color: rgba(170, 82, 221, 0.3);
    border-radius: 5px;
}

header nav ul a {
    text-align: center;
    text-decoration: none;
    padding: 1em;
    color: #ffffff;
}

/*
* Main
*/

main {
    background-color: rgba(255, 255, 255);
}

/** Willkommen**/

div.wrapper main div blockquote  {
    text-align: left;
    padding: 0px;
    margin-left: 40px;

}

@media screen and (min-width: 35em) {
div.wrapper main div p {
    margin-left: 40px;
    font-size: 2em;
    text-align: center;
}
}


/** Kontakt**/

body.page-id-15 div.wrapper main p {
    text-align: center;
}

body.page-id-15 div main h2 {
    font-size: 2em;
}

.page-id-15 main label input.check {
    height: 20px;
}

.page-id-15 h2.map-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-id-15 h2.map-icon img {
    margin-left: 20px;
}

main iframe {
    width: 100%;
    border-radius: 20px;
}

/****Kontaktformular****/

span.wpcf7-form-control-wrap input {
    height: 4vh;
    border-radius: 10px;
}

.wpcf7-spinner {
    display: none !important;
    visibility: hidden !important;
}

.has-spinner {
    width: 20%;
    height: 4vh;
}

textarea {
    width: 40%;
    border-radius: 10px;
}

div.wpcf7 {
    font-weight: bold;
    font-size: 14px;
}

@media screen and (max-width: 34.998em) {
    div.wrapper main div p {
        font-size: 2em;
        text-align: center;
    }
}

/*
*Einbindung Medien
*/

.wp-block-image .size-large {
    position: absolute;
    background-image: url(Main_Gras.jpg);
}


/*
* Footer
*/

footer {
    background-color: rgba(0, 0, 0);
}

/*
* Tablet oder größer
*/

@media screen and (min-width: 35em) {
    main {
        background-color: white;
    }
}

/*
* Desktop oder größer
*/

@media screen and (min-width: 54em) {
    main {

    background-color: white;
    }
}

/** Tests**/
.bi-caret-down-fill {
    text-align: right;
}


.mannschaften--spieler img {
    width: 70%;
    object-fit: cover;
    border-radius: 10px;
}


body.home>.wrapper>main>h1 {
    display: none;
}

#metaslider-id-244 {
    height: 50vh;
}

#metaslider-id-244 img {
    height: 50vh;
	object-fit: cover;
}


body.page-id-67 div.is-style-default {
    max-width: 100%;
    display: flex;
    justify-content: center;
}


div.wp-block-column {
    font-size: 1.5em;
}

.ueber-uns-bild {
    display: flex;
    justify-content: center;
    align-items: center;
}



/** to the top Button **/

#topBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: rgba(88, 11, 139, 0.7); /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 18px; /* Increase font size */
  }
  
  #topBtn:hover {
    background-color: #555; /* Add a dark-grey background on hover */
  }


@media screen and (max-width: 34.998em) {
    .wp-block-media-text.is-stacked-on-mobile {
        font-size: 10px;
    }
}

.page-id-2 div.bild-start img {
    border-radius: 20px;
}

.page-id-2 div main div p.has-drop-cap {
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-align: left;
}

/*** Nachwuchs ***/

.page-id-29 .nachwuchs-spalte {
    border-radius: 20px;
}

.page-id-29 .nachwuchs-spalte div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-id-29 figure.nachwuchs-bild img {
    border-radius: 20px;
}

body.page-id-29 .wp-block-image {
    max-width: 50%;
}

@media screen and (max-width: 34.998em) {
    .page-id-29 main .wp-block-verse {
        padding: 15px;
    }
}

.page-id-39 h2.aufstellung-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-id-39 h2.aufstellung-icon img {
    margin: 20px;
}

body.page-id-39 figure.is-style-default {
    display: flex;
    justify-content: center;
    align-items: center;
}

body.page-id-39 figure.is-style-default img {
    border-radius: 20px;
}

body.page-id-39 .kampfmannschaft-bild img {
    border-radius: 15px;
}


.page-id-2 h1.ball-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-id-2 h1.ball-icon img {
    margin: 20px;
}

    