/*!
 * Theme Name: TMK_ALJO
 * Author: Johann Altenberger
 */

 /*Mobile First*/

 :root {
    --white: #ffffff;
    --black: #000000;
    --grey-light: #eee;
    --grey-medium: #aaa;
    --grey-dark: #555;

    --text: #000;
    --text-light: #eee;

    --primary: #7a9174;
    --secondary: #c2ac9b;

    --navigation-width: 350px;
    --navigation-background: rgba(2, 55, 112, 0.8);
    --navigation-backdrop: rgba(0, 0, 0, 0.5);

    --header-padding: 30px;
    --logo-width: 75px;

    --menu-buten-padding: 30px;

    --header-bottom: 100px;

    --wp-admin--admin-bar--height: 32px;
}

@font-face {
    font-family: 'Arima_Bold';
    src: url('fonts/arimamadurai-bold-webfont.woff2') format('woff2'),
         url('fonts/arimamadurai-bold-webfont.woff2') format('woff');
    font-weight: normal;
    font-style: normal;
}

/*-----------------------------------
 *------------ Layout --------------*
 *----------------------------------*/

 html, body {
    margin: 0;
    padding: 0;
    height: vhcalc(100vh - var(--wp-admin--admin-bar--height));
    font-family: Arial, Helvetica, sans-serif;
}

#page {
    display: flex;
    flex-flow: column nowrap;
    min-height: calc(100vh - var(--wp-admin--admin-bar--height));
}

#content {
    flex: 1;
}

.site-header {
    background: var(--secondary);
    position: relative;
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: var(--header-padding);
    padding-left: 10px;
    z-index: 1;
}

.custom-logo {
    max-width: var(--logo-width);
    height: auto;
}

.menu-toggle {
    position: absolute;
    top: var(--header-padding);
    right: var(--menu-buten-padding);

    cursor: pointer;
    display: inline-block;
}

.menu-toggle div {
    width: 40px;
    height: 5px;
    background: var(--white);
    margin: 8px 0;
}

body.nav-open .menu-toggle div:nth-child(1){
    transform: translateY(11px)rotate(-45deg);
}

body.nav-open .menu-toggle div:nth-child(2){
    opacity: 0;
}
body.nav-open .menu-toggle div:nth-child(3){
    transform: translateY(-11px)rotate(45deg);
}

.header-media {
    width: 100%;
    height: 40vh;
}

.header-media-image {
    width: 100%;
    height: 100%;
}

.header-media-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(80%);
}

.header-media-content h1{
    margin: 0;
    color: var(--white);
    font-size: 3.5rem;
    font-family: 'Arima_Bold', serif;
    font-weight: 700;
}


.header-media-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.header-site-title-link{
    text-decoration: none;
}

.site-footer {
    background: var(--primary);
    color: var(--text-light);
}


.site-footer-collumns{
    display: flex;
    justify-content: space-around;
    font-size: 0.5rem;
}

.site-footer-navigation ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;

    list-style-type: none;
}

.site-footer-navigation a {
    padding: 10px;
    color: var(--blue);
    cursor: pointer;
}

.social-media-links{
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px;
}

.social-media-links a{
    display: inline-block;
    width: 40px;
    height: 40px;
}

.social-media-links svg{
    width: auto;
    height: 100%;
}

.post-header h1 {
    display: none;
    visibility: hidden;
}

/*-----------------------------------
 *---------- Navigation ------------*
 *----------------------------------*/

.site-navigation ul {
    list-style-type: none;
    font-size: 1.4rem;
    line-height: 2;
    font-weight: bold;
}

.menu-close {
    display: flex;
    justify-content: flex-end;
}

.menu-close-button {
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    padding: 0 15px;

    transition: 0.2s ease-out;
}

.menu-close-button:hover {
    color: var(--grey-medium);
}

/* Für Trenner aktivieren: */
.site-navigation ul.menu > li {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.7);
}

.site-navigation a,
.site-navigation a:visited {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 16px 0;

    transition: 0.2s ease-out;
}

.site-navigation a:hover {
    padding-left: 30px;
}

.site-navigation  .social-media-links :hover {
    padding-left: 0px;
}

.backdrop {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    background: var(--navigation-backdrop);
    backdrop-filter: blur(4px);

    transition: 0.5s;

    z-index: 2;
}

.menu-container {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    overflow-y: auto;

    margin: 0;
    margin-top: var(--wp-admin--admin-bar--height);
    padding: 16px 35px;
    width: var(--navigation-width);
    max-width: 100vw;

    background: var(--secondary);
    backdrop-filter: blur(15px);

    transform: translateX(0);
    visibility: visible;
    transition: 0.5s;
    z-index: 2;
}

body:not(.nav-open) .menu-container {
    transform: translateX(-101%);
    visibility: hidden;
}

body:not(.nav-open) .backdrop {
    display: none;
}

/*-----------------------------------
 *---------- Startseite ------------*
 *----------------------------------*/ 
 /*Header auf Startseite*/
 
 body.home .header-media{
    height: calc(100vh - var(--wp-admin--admin-bar--height) - var(--header-bottom));
}

body.home .site-logo{
    display: flex;
    visibility: visible;
}
body.home .header_img_shapedevieder{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translate(0,1px) rotate(180deg);
    visibility: visible;
}

body.home .header_img_shapedevieder svg {
    position: relative;
    display: block;
    width: calc(128% + 1.3px);
    height: 191px;
    transform: rotateY(180deg);
}

body.home .header_img_shapedevieder .shape-fill {
    fill: #FFFFFF;
}

.header_img_shapedevieder {
    visibility: hidden;
}

 /*Content auf Startseite */

body.home .site-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    text-align: block;
    justify-content: space-between;
    margin: 10px;
}

body.home div.wp-block-cover {
    height: 30vh;
    border-radius: 10px;

    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 100%;
    margin-top: 50px;
}


body.home .newest_event {
    height: 100%;
    text-align: center;
    align-content: center;
    margin-bottom: 100px;
    display: flex;
    flex-direction: column;
}

body.home .newest_event h1 {
    font-size: 4rem;
    color: var(--black);
    font-family: "Arima_Bold", serif;
    font-weight: 700;
}

body.home .newest_event a {
    font-size: 2rem;
    color: var(--black);
}

body.home .newest_event ul {
    list-style-type: none;
    margin-right: 50%;
    transform: translateX(40%);
}

ul.mc-event-list {
    display: flex !important;
    justify-content: center !important;
}

.list-card-contents {
    height: 80vh;
}

.upcoming-event {

    background-image: url(img/newest\ event\ background.png);
    border-radius: 20px;
    box-shadow: none;
}

.newest_event_preview {
    display: flex;
    flex-direction: column;

}

.newest_event_preview_title {
    margin-top: 10px;
    margin-bottom: 2px;

    font-family: "Arima_Bold", serif;
    font-size: 2rem;

    text-shadow: 2px 2px gray;
}

.newest_event_preview_text {
    margin: 5px;
    font-size: 1.5rem;
}

.newest_event_preview_img{
    height: 200px;
    border-radius: 15px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.newest_event_preview_img img{
    height: 100%;
    width: auto;
    object-fit: cover;
}

/*-----------------------------------
 *---------- Termin-Seite ------------*
 *----------------------------------*/

 /*Content auf Terminseite */
 body.page-id-63 .site-content{
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
 }

 .gs-roow{
    margin: auto !important;
 }

 /*Terminkalender*/
 body.page-id-63 .site-content{
    padding-top: 5px;
 }

 .mc-main .heading{
    display: none;
 }

 .mc-main .past-event {
    display: none !important;
 }



 .my-calendar-cards{
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    margin-top: 5px;
 }

 .my-calendar-cards .card-event{
    align-content: center;
    width: 80vw;
    margin: auto;
    display: flex;
    flex-direction: column;
    flex-basis: 10px;
}

.mc-main div{
    display: flex;
    justify-content: center;
    justify-items: center;
}

.mc-details {
    display: none;
}

.page-id-63 .mc-image {
    display: none;
}

/*-----------------------------------
 *---------- Mitglieder ------------*
 *----------------------------------*/
.gs_team_area {
    padding: 2%;
}

.gs_team {
    justify-content: center;
}

body.page-id-65 p {
    position: relative;
    margin-top: 0;
    margin-bottom: 5px;
    font-family: "Arima_Bold", serif;
    font-weight: 700;
 }

.single-member-div{
    padding: 0px !important;
}

 /*----------------
  --- Jugend ---
  ---------------*/
  body.page-id-67 .site-content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
  }

  body.page-id-67 .site-content p {
    align-self: center;
    font-size: 20px;
    margin: 15px;
  }

  body.page-id-67 .site-content img {
    width: 90vw !important;
    margin-right: 5px;
    margin-left: 5px;
  }

body.page-id-67 p{
    text-align: center;
}

/*----------------
  --- Galerie ---
  ---------------*/
body.page-id-69 .site-content{
    padding: 5px;
}


/*----------------
  --- Impressum ---
  ---------------*/
body.page-id-7 .site-content{
    text-align: center;
}

/*----------------
  --- Datenschutz ---
  ---------------*/
body.privacy-policy .site-content{
    text-align: center;
}

/*----------------
  --- Kontakt ---
  ---------------*/
body.page-id-98 .gs-roow{
    height: 370px;
}

/*----------------
  --- Diverses ---
  ---------------*/
.top-button {
    display: none;
  }

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

    :root {
        --logo-width: 100px;
    }

    /*Startseite*/
    body.home div.wp-block-cover {
        flex-basis: 30%;
    }

    .upcoming-event {
        box-shadow: 15px 15px #CAD3C2;
    }

    body.home .newest_event {
        left: 50%;
        transform: translateX(-50%);
        position: relative;

    }

    /*----------------
    --- Kontakt ---
    ---------------*/
    body.page-id-98 .gs-roow {
    height: 300px;
    }

/*----------------
  --- Diverses ---
  ---------------*/
  .top-button {
    display: block;
    position: fixed;
    right: var(--header-padding);
    bottom: var(--header-padding);
    background: var(--navigation-backdrop); /* Variante 2: Gleich wie Navigation */
    border-radius: 50%;
    
    width: 50px;
    height: 50px;
    padding: 10px;

    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease-out;
}

body.top-btn-visible .top-button {
    opacity: 1;
    visibility: visible;
}

.top-button svg {
    width: 100%;
    height: 100%;
    fill: var(--white);
}
}