/*
Theme Name: BFI Design
Author: Adam Szücs
Description: Ein einfaches Wordpress Theme.
Version: 4
*/

* {
    box-sizing: border-box;
}

body:not(.admin-bar) {
    --wp-admin--admin-bar--height: 0px;
}

html {
    height: 100%;

    font-family: 'Outfit', verdana, sans-serif;
}

body {
    height: 100vh;
    min-height: 100%;

    margin: 0;
    padding: 0;

    display: flex;
    flex-flow: column nowrap;
}

/*
 * Typographie
 */
h1, h2, h3,
h4, h5, h6 {
    font-family: 'Sedan', verdana, sans-serif;
    font-weight: normal;
    color: #444242;
}

/*
 * Layout
 */
.wrapper {
    display: flex;
    flex-flow: column nowrap;

    flex: 1 0 auto;
}

main{
    padding: 0px !important;
}

.wrapper main {
    flex: 1 0 auto;

}

.content-div{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.content-div-background{
    background-color: #efe9db !important;
    padding-top: 60px;
    padding-bottom: 60px;
    margin-left: auto;
    margin-right: auto;
}

.centered-div{
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left;
}

/* 
    Dropdown element bei Aktuelles 
    https://codepen.io/MoritzGiessmann/pen/PobErJB
*/
details{
    width: 100%;
    /* margin: 0 auto ; */
    text-align: left;
    margin-bottom: 20px;
    color: black;
    border-top: 1px solid var(--color5);
    border-bottom: 1px solid var(--color5);
    overflow: hidden;
}

summary {
    padding: 1rem;
    display: block;
    padding-left: 2.2rem;
    position: relative;
    cursor: pointer;
    user-select: none;
  }
  
  summary:before {
    content: '';
    border-width: .4rem;
    border-style: solid;
    border-color: transparent transparent transparent var(--color5);
    position: absolute;
    top: 1.3rem;
    left: 1rem;
    transform: rotate(0);
    transform-origin: .2rem 50%;
    transition: .25s transform ease;
  }
  
  /* THE MAGIC 🧙‍♀️ */
  details[open] > summary:before {
    transform: rotate(90deg);
  }
  
  
  details summary::-webkit-details-marker {
    display:none;
  }
  
  details > ul {
    padding-bottom: 1rem;
    margin-bottom: 0;
  }

  details > p {
    margin-top: 0px;
    margin-left: 2.2rem;
  }


  

/*Willkommen bei Manana*/

.header-wrapper{
    font-size: x-large;
    position: relative;
    display: flex;
    top: -75%;
    color: white;
    flex-direction: column;
    align-items: center;
    margin: 0;
    text-align: center;
}
/*Willkommen bei Manana*/

.header-title{
    display: flex;
    margin: inherit;
}

.header-manana{
    font-style: italic;
    margin: 0px 0px 0px 10px;
    color: white;
}

.separator-space{
    max-height: 50px;;
}

/* Desktop */
/* Alternativ für Inhalt auf gesamte Breite:
    Ganzes @media Query löschen */
@media screen and (min-width: 54em) {
    .separator-space{
        min-height: 100px;;
    }
    
    .wrapper {
        flex-flow: row nowrap;
        justify-content: center;
    }

    .wrapper main {
        width: 100%;
        max-width: 1060px;
    }

    .content-div{
        width: 100%;
        max-width: 1060px;
    }
}

/*
 * Header Medien (Logo + Bild)
 */
.header-media {
    position: relative;
    width: 100%;
}
.header-media.has-media {
    height: 30vh;
}

/* Startseiten Header höher */
body.home .header-media.has-media {
    height: 60vh; /* 60% des Displays */
    /* height: 100vh; /* Gesamte Höhe */
    /* height: calc(100vh - 3em); /* Gesamte Höhe; Menü sichtbar */
}

/* Beitragsbild */
.header-media .attachment-post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Logo */
.header-media .custom-logo-link {
    position: absolute;
    left: 110px;
    top: 110px;
    /* Für Links- und Rechtsausrichtung nächste Zeile auf 0, -50% */
    transform: translate(-50%, -50%);
}


.footer-media .custom-logo {
    max-width: 100px;
}

/*
 * Navigation
 */
header nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;

    display: flex;
    flex-flow: column nowrap;
}

header nav ul.sub-menu {
    font-size: 0.75em;
}

@media screen and (min-width: 761px) {
    header nav ul.sub-menu {
        display: none;
    }

    header nav ul li a i {
        display: none;
    }
}

header nav ul a {
    display: block;
}


/**
 *Navigation

header nav {
    padding-top: var(--wp-admin--admin-bar--height);
}*/

header nav ul li:hover {
    text-decoration: none;
}

header nav ul li::after {
    content: "";
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 0%;
    height: 3px;
    opacity: 0;
    background: #252525;
    transition-property: all;
    transition-duration: 0.5s;
    transform:translateY(-10px);
}

header nav ul li:hover::after {
    opacity: 1;
    width: 70%;
}

/* Aktiver Menü-Punkt */
header nav ul .current-menu-item::after {
    content: "";
    display: block;
    height: 3px;
    width: 70%;
    opacity: 1;
    background: #252525;
}

header nav ul .current-menu-item > a {
    font-weight: bold;
}

header nav ul {
    list-style-type: none;
}

header nav ul a {
    text-align: center;
    text-decoration: none;

    padding: 1em;
    color: #333;
}


/*
 * Mobile Navigation
 */
@media screen and (max-width: 760px) {
    .content-element{
        margin-top: 0.67em;
        margin-bottom: 0.67em;
        margin-left: 0em;
        margin-right: 0em;
    }
    header nav {
        background:#f5f0e6;
        backdrop-filter: blur(4px);
        transition: left 0.3s ease-out;

        position: fixed;
        top: 0;
        left: -250px;

        width: 250px;
        max-width: 100vw;
        height: 100%;
    }
    
    header nav>div>ul>li>a>i {
        display: none;
    }

    body header nav ul a {
        text-align: left;
    }

    header nav i {
        margin-right: 5px;
    }

    body.menu-open header nav {
        left:0;
    }

    .header-media .custom-logo {
        max-width: 150px;
    }

    .header-wrapper {
        top: -60%;
    }

    .header-media .custom-logo-link {
        left: 80px;
        top: 80px;
    }

    .footer-media .custom-logo {
        margin-top: 20px;
    }

    header nav ul .current-menu-item::after {
        content: "";
        height: 3px;
        width: 100%;
        opacity: 1;
        background: #252525;
    }

    header nav ul li::after {
        content: "";
        display: none;
    }

    .content-div{
        text-align: center;
        margin-left: 10px;
        margin-right: 10px;
        width: 95%;
    }

    main .content-div-background {
        margin-left: -10px;
        margin-right: -10px;
    }

    main {
        margin-left: 10px;
        margin-right: 10px;
    }

    .main-timeline {
        margin-left: -15px;
        margin-right: -15px;
    }



}


/*
 * Footer
 */
footer {
    text-align: center;
    color: white;
}

footer a{
    color: white;
    
    &:visited{
        color: #f7dba3;
    }

    &:hover{
        color: #F5F0E6;
    }
    
    /* &:active{
        color: red;
    } */
}

footer ul.menu {
    list-style-type: none;
    padding: 0;
}


/*
 * Tablet und größer
 */
@media screen and (min-width: 761px) {
    header nav ul {
        flex-flow: row nowrap;
    }

    header nav ul li {
        flex: 1 0 auto;
    }

    header nav li.menu-item-has-children {
        position: relative;
    }

    header nav li.menu-item-has-children ul.sub-menu a {
        text-align: left;
    }

    header nav li.menu-item-has-children:hover ul.sub-menu {
        background: rgba(61, 255, 61, 0.7);
        display: flex;
        position: absolute;
        flex-flow: column nowrap;
        min-width: 12em;
        backdrop-filter: blur(4px);
    }
    /* STRG + Shift + R */

    footer {
        text-align: left;
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
        align-items:center;
    }


}

/*
 * Desktop
 */
@media screen and (min-width: 54em) {
    header nav ul li {
        flex: 0 0 auto;
        margin-left: 5px;
        margin-right: 5px;
    }
}


/*
 * Blog-Seite
 */
body.archive main article {
    display: flex;
    flex-flow: column nowrap;
    
    margin-bottom: 30px;
}

body.archive main article img {
    width: 100%;
    height: auto;
}

body.archive main article .article-meta span {
    margin-right: 5px;
}

/*
 * Tablet und größer
 */
@media screen and (min-width: 761px) {
    body.archive main article {
        flex-direction: row;
    }

    body.archive main article .article-thumb img {
        width: 200px;
        height: 150px;
        object-fit: cover;
    }

    body.archive main article .article-content {
        padding: 0 20px;
    }

    body.archive main article h2 {
        margin-top: 0;
    }

    body.archive main article h2 a {
        color: black;
    }
}



/****************
 **** Design ****
 ***************/
main, aside, footer {
    padding: 1em;
}

/**
 * Header
 */
header {
    z-index: 99999;
}

.custom-logo-link {
    display: block;
}

.custom-logo {
    max-width: 200px;
    height: auto;
}

.nav-bar{
    display: flex;
    justify-content: center;
    z-index: 99999;
    -webkit-tap-highlight-color: transparent;
}

/**
 * Navigation Button
 */
#nav-btn {
    cursor: pointer;

    width: 50px;
    height: 50px;
    position: absolute;
    right: 15px;
    top: calc(20px + var(--wp-admin--admin-bar--height));
    -webkit-tap-highlight-color: transparent; 
    /*  Thanks to https://hartenfeller.dev/blog/chrome-mobile-highlight-color */
}

#header-logo{
    width: 80px;
    height: 80px;
    margin-left: 15px;
    margin-top: 8px;
    margin-bottom: 0px;;
}

#header-text{
    position: absolute;
    left: 0;
    right: 0;
    height: 80px;
    margin-left: 15px;
    margin-top: 8px;
    margin-bottom: 0px;;
    text-align: center;
}

@media screen and (min-width: 761px) {
    #nav-btn {
        display: none;
    }

    #header-logo{
        display: none;
    }

    #header-text{
        display: none;
    }
}

#nav-btn div {
    background: #f7dba3;
    width: 50px;
    height: 10px;
    transition: all 1s;
}

#nav-btn div:not(:last-child) {
    margin-bottom: 10px;
}

/* Menü geöffnet */
#nav-btn {
    caret-color: transparent;
    transition: all 1s;
}
body.menu-open #nav-btn {
    rotate: 90deg;

}


/**
 * Main
 */
main {
    /* background-color: rgba(255, 120, 0, 0.3); */
}

/**
 * Seitenleisten
 */
aside {
    background-color: rgba(180, 180, 180, 0.3);
}

/**
 * Footer
 */
footer {
    background-color: #252525;
}

/**
 * Tablet oder größer
 */
@media screen and (min-width: 761px) {
    main {
        /* background-color: rgba(255, 0, 0, 0.3); */
    }
}

/**
 * Desktop oder größer
 */
@media screen and (min-width: 54em) {
    main {
        /* background-color: rgba(0, 0, 255, 0.3); */
    }
}

/* Bilder bei Mitglieder rounded corners*/
.image-rounded {
    img {
        border-radius: 15px;
    }
}


.donate-link {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    margin-bottom: 50px;

    width: 300px;
    height: 80px;

    font-family: 'Sedan', verdana, sans-serif;
    font-size: x-large;

    text-decoration: none;
    background: #d46a52;
    color: white;
    border-radius: 25px;
    transition: all 0.5s;

    position: relative; /* Positioning the pseudo-element */
    padding-left: 40px; /* Add padding to make space for the heart */
}

.donate-link::after {
    content: '❤'; /* Unicode character for the heart */
    position: absolute;
    opacity: 1;
    transition: all 0.5s;
    left: 25px; /* Adjusted to keep the heart inside the button */
    font-size: 1.5em; /* Adjust the size of the heart */
    transform: translateX(0); /* Ensure initial position is correct */
}

.donate-link:hover {
    background: #d14728;
}

.donate-link:hover::after {
    opacity: 1; /* Make the heart visible on hover */
    transform: translateX(-5px); /* Smooth transition to the right */
    rotate: -10deg;
}



/*Rundungen bei den Bildern vom Metaslider*/
.metaslider img {
    -webkit-border-radius: 15px;
    -moz-border-radius:    15px;
    border-radius:         15px;
}













:root {
    /* --color1: #f5f4df;
    --color2: #cbb495;
    --color3: #8f735e;
    --color4: #d46a52;
    --color5: #c05943;
    --color6: #9f4936; */

    /* --color1: #e1d3b6;
    --color2: #d5b690;
    --color3: #ceb290;
    --color4: #c0a290;
    --color5: #b98e77;
    --color6: #90604c; */

    --color1: #efe9db;
    --color2: #e0d5bf;
    --color3: #bdac96;
    --color4: #ad9476;
    --color5: #8d765B;
    --color6: #675440;

    /* --color1: #FF5733;
    --color2: #33FF57;
    --color3: #5733FF;
    --color4: #FF33E6;
    --color5: #33E6FF;
    --color6: #E6FF33; */
}

.main-timeline {
    margin-top: 20px;
    font-family: 'Sedan';
}

.timeline-image {
    border-radius: 25px;
    margin-top: 15px;
    margin-bottom: 20px;
    max-width: 355px;
    width: -webkit-fill-available;
}

.main-timeline:after {
    content: '';
    display: block;
    clear: both;
}

.main-timeline .timeline {
    width: calc(50% + 58px);
    border-top: 2px solid #404247;
    float: left;
    position: relative;
    z-index: 1;
}


.main-timeline .timeline:before {
    content: "";
    background: #404247;
    width: 10px;
    height: 10px;
    border-radius: 50px;
    position: absolute;
    top: -5px;
    right: 0;
}

/* .main-timeline .timeline:hover {
    border-top: 2px solid #e6e9cd;

    &::before {
        background: #e6e9cd;
    }
} */

.main-timeline .timeline-content {
    text-decoration: none;
    color: #404740;
    text-align: center;
    padding: 15px 80px 15px 10px;
    display: block;
    position: relative;
}

.main-timeline .timeline-content:hover {
    text-decoration: none;
}

.main-timeline .timeline-content:before {
    content: "";
    /* background: #00a6f9; */
    background: var(--color1);
    width: 15px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 50px;
}

.main-timeline .timeline-year {
    font-size: 35px;
    line-height: 35px;
    font-weight: 700;
    transform: translateY(-50%) rotate(90deg);
    position: absolute;
    top: 50%;
    right: -15px;
}

.main-timeline .title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px;
    margin-top: 20px;
}

.main-timeline .description {
    font-size: 18px;
    margin: 0 50px 0 50px;
}

.main-timeline .timeline:nth-child(even) {
    float: right;
}

.main-timeline .timeline:nth-child(even):before {
    right: auto;
    left: 0;
}

.main-timeline .timeline:nth-child(even) .timeline-content {
    padding: 15px 10px 15px 80px;
}

.main-timeline .timeline:nth-child(even) .timeline-content:before {
    right: auto;
    left: 51px;
}

.main-timeline .timeline:nth-child(even) .timeline-year {
    right: auto;
    left: -15px;
}

.main-timeline .timeline:nth-child(4n+2) .timeline-content:before {
    background: var(--color2);
}

.main-timeline .timeline:nth-child(4n+3) .timeline-content:before {
    background: var(--color3);
}

.main-timeline .timeline:nth-child(4n+4) .timeline-content:before {
    background: var(--color4);
}

.main-timeline .timeline:nth-child(4n+5) .timeline-content:before {
    background: var(--color5);
}

.main-timeline .timeline:nth-child(4n+6) .timeline-content:before {
    background: var(--color6);
}

@media screen and (max-width:767px) {
    .main-timeline .timeline {
        width: 100%;
    }

    .main-timeline .timeline:nth-child(odd) {
        float: right;
    }

    .main-timeline .timeline:nth-child(odd):before {
        right: 0;
        left: auto;
    }

    .main-timeline .timeline:nth-child(even):before {
        right: 0;
        left: auto;
    }

    .main-timeline .timeline:nth-child(odd) .timeline-content {
        padding: 15px 10px 15px 80px;
    }

    .main-timeline .timeline:nth-child(odd) .timeline-content:before {
        right: auto;
        left: 51px;
    }

    .main-timeline .timeline:nth-child(odd) .timeline-year {
        left: -15px;
        right: auto;
    }
}


/* Readmore-Button*/
.readmore-text-hidden {
    display: none;
}

.readmore-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.readmore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    border: 1px solid black;
    color: black;
    text-align: center;
    padding: 16px;
    width: 150px;
    height: 30px;
    transition: all 0.5s;
    cursor: pointer;
    margin: 5px;

    &:hover {
        background-color: #f0ebd8;
        color: black;
    }
}


.container {
    margin-left: 20px;
    margin-right: 20px;
}


@media screen and (max-width:767px) {
    .container {
        margin-left: 0px;
        margin-right: 0px;
    }

    .main-timeline .description {
        font-size: 18px;
        margin: 0 20px 0 20px;
            
    }
}

/*Text markieren deaktivieren*/
/* Thanks to https://www.blogseite.com/html-text-markieren-mit-css-verhindern/*/
.description {
        -moz-user-select: none;
        -khtml-user-select: none;
        user-select: none;
    }
