/* Stylesheet for visionaere-bewegung.org */


/* VARIABLES - DECLARATION */

:root {
    --theme-color-1: rgb(255, 247, 214);
    --theme-color-2: rgb(64, 64, 64);
    --theme-color-3: rgb(155, 7, 91);
}


/*==================================================================================*/

/* HOMEPAGE */
/*----------------------------------------------------------------------------------*/

body {
    font-family: 'Verdana', 'Trebuchet MS', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}


/*----------------------------------------------------------------------------------*/

/* DIV - STYLING */

/* Content - Wrapper */

.content-wrapper {
    position: relative;
    z-index: 10;
    background-color: var(--theme-color-1);
}


.content-two-sections {
    position: relative;

    display: grid;
    grid-template-columns: 1fr 1fr;

}

@media (max-width: 939.99px) {
    .content-two-sections {
        grid-template-columns: 1fr;
    }
}

/*----------------------------------------------------------------------------------*/

/* TEXT - STYLING */

/* h1 - styling */

.text-title {
    position: relative;
    padding: 50px 20px 30px 20px;
    text-align: center;
    font-weight: 300;
    margin: 0;
}

.text-normal {
    padding: 1.5% 3%;
    text-align: center;
    font-size: 1.5em;
}

@media (max-width: 939.99px) {
    .text-normal {
        padding: 1.5% 8%;
    }
}


@media (min-width: 1250px) {
    .text-normal {
        padding: 1.5% 15%;
    }
}


.text-list {
    padding: 1.5% 3%;
    text-align: left;
    font-size: 1.5em;
}

@media (min-width: 1250px) {
    .text-list {
        padding: 1.5% 15%;
    }
}

@media (max-width: 939.99px) {
    .text-list {
        padding: 1.5% 8%;
    }
}

.text-zitat {
    padding: 30px 6%;
    text-align: center;
    font-size: 1.5em;
    font-style: italic;
    color: #fff7d6;
    background-color: var(--theme-color-2);
}


/*----------------------------------------------------------------------------------*/

/* Button - STYLING */

/* close buttons */

.close-button {
    padding: 5px;
}

/*==================================================================================*/

/* HOMEPAGE - STYLING - HEADER */
/*----------------------------------------------------------------------------------*/

#header-master {
    position: sticky;
    top: 0;
    z-index: 90;
    background-color: var(--theme-color-1);
    backdrop-filter: blur(5px);
    transition: top 0.7s ease-in, opacity 0.7s ease-in;
}

/* HEADER MASTER - JS ANIMATIONS */
.hide-header {
    top: -120px !important;
    opacity: 0;
}

#header-container {
    padding: 10px 10px;
    min-height: 90px;
    display: grid;
    gap: 2em;
    align-items: center;
    grid-template-columns: 1fr 2fr 4fr;
}

@media (max-width: 939.99px) {
    #header-container {
        grid-template-columns: 1fr 6fr 1fr;
    }
}

@media (max-width: 650px) {
    #header-container {
        grid-template-columns: 1fr;
        gap: 0.5em;
        justify-items: center;
    }
}

#header-logo {
    max-height: 80px;
    vertical-align: middle;
}

#side-title {
    color: var(--theme-color-2);
}

#side-title-h1 {
    font-size: 2rem;
    font-weight: 300;
    margin: 0;
}

@media (max-width: 650px) {
    #side-title-h1 {
        text-align: center;
    }
}


/*----------------------------------------------------------------------------------*/

/* MENU - STYLING */


@media (min-width: 940px) {
    #header-navigation {
        width: 100%;
        justify-self: right;
    }
}

#header-nav-ul {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    list-style: none;
    gap: 0.2em;


    @media (max-width: 939.99px) {
        display: none;
    }

}

#header-nav-ul:has(li:hover) li:not(:hover) {
    opacity: 0.7;
}

.header-nav-li {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, #6f5800aa 1%, #6f580052 5%, #6f580000 30%);
    background-size: 200%;
    background-position: right;
    overflow: hidden;
}

.header-nav-li:hover {

    box-shadow: 2px 0px 0px var(--theme-color-2) inset;
    cursor: pointer;
    background-position: left;
    color: #000;
    transition: background-position 0.25s ease-out;
}

.header-nav-li::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    inset: -1em;
    border: 0.5em solid #ffdf5e;
    filter: blur(.75em);
    pointer-events: none;
}

.header-nav-button {
    display: block;
    text-align: center;
    align-content: center;
    padding: 0.5em 1em;
    width: 100%;
    height: 100%;
    color: var(--theme-color-2);
    text-decoration: none;
}



/* HEADER - STYLING - MOBILE */


/* MOBILE - MENU - BUTTON */


#mobile-menu-button {
    padding: 0.5em 1em;
    background: linear-gradient(to right, #6f5800aa 1%, #6f580052 5%, #6f580000 30%);
    background-color: #fff1c2;
    background-size: 200%;
    background-position: right;
    color: var(--theme-color-2);
    font-size: 1.2em;
    font-weight: 200;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-position 0.25s ease, transform 0.2s ease;
}

@media (min-width: 940px) {
    #mobile-menu-button {
        display: none;
    }
}

#mobile-menu-button:hover {
    background-position: left;
    box-shadow: 2px 0px 0px var(--theme-color-2) inset;
    transform: scale(0.96);
}

#mobile-menu-button:active {
    transform: scale(0.92);
}

/* MOBILE - POPUP - MENU - STYLING */
/*---------------------------------*/

#popup-logo {
    height: 100px;
    vertical-align: middle;
}

/* Popup - Main - Div */
#popup-menu-container {
    display: none; 
    position: fixed;
    z-index: 120;
    inset: 0;
    justify-content: center;
    align-items: center; 
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(4px);
    overflow: hidden;
    overflow-y: auto;
}

@media (max-height: 499px) and (orientation: landscape) {
    #popup-menu-container {
        align-items: flex-start;
        padding: 1em 0;
    }
}

#popup-menu-container.active {
    display: flex;
}

/* Popup - menu - div */
#popup-menu {
    display: none; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 250px;
    min-height: 450px;
    border-radius: 10px;
    background-color: #000;
    gap: 3em;
    transform: scale(0.2);
    transition: transform 0.8s ease;
}

#popup-menu.active {
    display: flex;
    transform: scale(1);
    visibility: visible;
}

#popup-logo {
    height: 100px;
}

/* Popup - Nav-Menu - Styling */

#popup-nav-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 100%;
    list-style: none;
    gap: 1em;
    padding: 0;
    margin: 0;
}


/* Menu - Popup - li_Button -Styling */

.popup-nav-li {
    width: 100%;
}

.popup-a-to-button {
    display: block;
    width: 100%;
    padding: 3px 0;
    background: var(--theme-color-1);
    color: var(--theme-color-2);
    text-decoration: none;
}

.popup-a-to-button:hover {
    background: var(--theme-color-2);
    color: var(--theme-color-1);
}

/* Popup - close_button - styling */

#close-popup-menu {
    display: block;
    width: 50%;
    color: black;
}


#close-popup-menu:hover {
    cursor: pointer;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    color: var(--theme-color-2);
}



/* Menu - Popup - Open - Close with custom-js.js */

.open-menu-container {
    visibility: visible;
}

.open-popup-content {
    visibility: visible;
    position: relative;
    top: -100vh;
    transform: translate(0%, 100vh) scale(1);
}

/* MOBILE - SMALL HEADER - ONSCROLL */
/*----------------------------------------------------------------------------------*/


/* TODO -> wird das genutzt ????*/
@media (max-width: 650px) {

    .small-mobile-header h1 {
        display: none;
    }

    .small-mobile-header {
        grid-template-columns: 1fr 0fr 1r !important;
        gap: 0 !important;
        ;
    }

    .small-mobile-header img {
        height: 60px !important;
    }
}


/*==================================================================================*/

/* HOMEPAGE - STYLING - FOOTER */
/*----------------------------------------------------------------------------------*/

footer {
    display: block;
    position: relative;
    z-index: 110;
    height: 30px;
    width: 100%;
    align-content: center;
    background-color: black;
}

#impressum-toggle {
    display: inline-block;
    text-align: center;
    align-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    text-decoration: none;

}


#impressum-overlay {
    display: none;
    z-index: 100;
    position: fixed;
    inset: 0 0 30px 0;
    background: rgb(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    backdrop-filter: none;
}

#impressum-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(4px);
}

#impressum-popup {
    display: none;
    z-index: 101;
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding: 15px;
    max-height: 80%;
    width: 90%;
    max-width: 1000px;
    overflow-y: auto;
    border-radius: 8px;
    opacity: 0;
    background: white;
    align-content: center;
    font-size: clamp(0.7rem, 0.6rem + 0.5vw, 2rem);

    transition: bottom 0.3s ease, opacity 0.3s ease;
}

#impressum-popup.active {
    bottom: 60px;
    opacity: 1;
}


/*==================================================================================*/

/* HOMEPAGE - STYLING - Startseite */

/*----------------------------------------------------------------------------------*/

/* Startseit - Hero - Styling */
/*-----------------------*/

#hero-wrapper {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-areas: "hero-div";
}

#hero-image {
    width: 100%;
}



/*==================================================================================*/

/* HOMEPAGE - STYLING - Leitprinzipien */
/*----------------------------------------------------------------------------------*/


/* Animation Text "Leitprinzipien" */
/*-----------------------*/

@media (prefers-reduced-motion: reduce) {
    .text-container>div {
        /* Keine Animation, Text sofort sichtbar */
        animation: none !important;
        opacity: 1 !important;
        width: auto !important;
        border-right: none !important;
    }

    .positiv-attribute {
        animation: none !important;
        /* kein Blinken */
    }
}


#line8 {
    margin-top: 1em;
}

.text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 650px) {
    .text-container>div {
        font-size: 0.7em;
        white-space: normal;
    }
}

.text-container>div {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--theme-color-2);
    opacity: 0;
    width: 0px;
}

.positiv-attribute {
    opacity: 1;
    color: var(--theme-color-3);
    font-size: 1.1em;
}


.text-line {
    --chars: 1;
    width: calc(var(--chars) * 1ch);
}

.blink {
    animation: blinkAnim 0.4s ease-in-out 3;
}

@keyframes blinkAnim {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes typing {
    from {
        width: 0ch;
    }

    to {
        width: var(--w);
    }
}

@keyframes cursorHide {
    to {
        border-right-color: transparent;
    }
}
