/* *****************
        Views
****************** */

section.main .view {
    width: 100%;
    position: relative;
}

@keyframes Easter-Egg {
    0% {
        background: linear-gradient(to right, #ff4f00, transparent, transparent, transparent);
    }
    50% {
        background: linear-gradient(to right, transparent, transparent, #ff4f00, transparent);
    }
    100% {
        background: linear-gradient(to right, transparent, #ff4f00, transparent, transparent);
    }
}

.Easter-Egg {
    position: fixed;
    z-index: 1000;
    width: 96%;
    height: 94%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    border: solid transparent 100rem;
    animation: 6s ease-in Easter-Egg infinite;
    transition: 0.5s;
    pointer-events: none; 
}

/* Ribbon */

.ribbon {
    position: sticky;
    top: 0rem;          
    z-index: 3;        
    margin-top: 0;      
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start; /* sicherstellen, dass Sidebar-Button links bleibt */
    height: 5rem;
    background-color: var(--primary-color);
    box-shadow: var(--shadow-color-darker) 0px 0px 25px;
    /*margin-bottom: 2rem; /* Damit content im content-view sich passend automatisch nach unten schiebt */
    animation: none;
    transition: 0.5s;

    /* Schachbrett-Muster
    background: 
        repeating-conic-gradient(var(--primary-color) 0 25%, #ff5d13 0 50%) 
        25% / 50px 50px;
    
    background-position: 1000 0;    
    animation: loop 40s linear infinite;
    z-index: 1; */
}

.rainbow_animation {
    animation: rainbow 20s linear infinite !important;
}
.no_animations {
    animation: none !important;
    transition: 0s !important;
}
.high_contrast {
    background: none !important;
}

section.main .ribbon .logo {
    background-color: white;
    border-radius: 10px;
    width: 15rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.5s;
    border: 4px black solid;

}

section.main .logo .title {
    text-align: center;
    padding: 10px;
    border-radius: 24px;
    transition: 0.5s;
}

.title b {
    font-size: x-large;
    color: black;
}

b[id="location"] {
    font-size: large;
    color: var(--primary-color);
    opacity: 1;
    /* animation: fadeIn 1s ease-out forwards; */
}

section.main .view .content_view {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
/* Cookie Banner */

section.cookie_banner {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    width: auto;
}

.banner_box {
    width: 90%;
    margin-inline: 20px;
    bottom: 16px;
    position: fixed; 
    padding: 30px; 
    border-radius: 30px; 
    z-index: 1000; 
}

div.banner_box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    min-height: 100px;
    padding-inline: 20px;
    padding-block: 20px;
    background-color: white;
    border-radius: 30px;
    box-shadow: -0px -20px 40px black;
    box-sizing: border-box;
    border: 3px solid transparent; /* reserve space so hover doesn't shift layout */
    margin-block: 15px;
}

div.banner_box img {
    width: 8rem;
}

div.banner_box .text {
    display: flex;
    gap: 15px;
    flex-direction: column;
    align-items: baseline;
}

div.banner_box b[id="title"] {
    color: black;
    font-size: larger;
    font-weight: 1000;
}
div.banner_box b[id="description"] {
    color: black;
    font-weight: 500;
}
div.banner_box b[id="checkmark"] {
    color: var(--primary-color); margin-block: 10px;
}

@media screen and (max-width: 650px) {
    .banner_box {
        border-radius: 0px;
    }
    div.banner_box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    div.banner_box img {
        height: auto;
    }

    div.banner_box .text {
        align-items: center;
    }
}

@media screen and (max-width: 650px) {
    section.main .ribbon {
        top: 0;          
        margin-top: 0;      
    }

    section.main .ribbon .logo {
        position: static;
        transform: none;
        margin-inline: 1rem;
        width: auto;
        flex-grow: 1;
        display: flex;          
        justify-content: center;
        align-items: center;
        height: 3rem;          
    }

    section.main .logo .title {
        padding: 0 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
