html {
    height: 100% !important;
    margin: 0 !important;
}

main.content {
    padding: 0;
}

p.container--landing-switch-cel_text{
    margin: 0;

}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container--background_image::after {
    background: url("/wp-content/themes/Schmucki_child/img/celeroton_landing_background.png") no-repeat center
        center/cover;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container--content {
    text-align: center;
    color: white;
    z-index: 1;
}

.container--title {
    font-size: 3rem;
    margin-bottom: 5rem;
    color: white;
    z-index: 1;
}

.container--landing-switch {
    display: flex;
    justify-content: center;
    gap: 2rem;
    z-index: 1;
    flex-wrap: wrap;
}

.container--landing-switch-cel {
    height: 40rem;
    aspect-ratio: 1.1/1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 2rem 2rem 0 2rem;
    /* transition: background 0.3s ease-in-out; */
    text-decoration: none;
    color: white;
    padding: 6rem 8rem;
}

.container--landing-switch-cel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.container--landing-switch-cel_img_logo {
    max-width: 20rem;
    height: auto;
    margin-bottom: 1rem;
    aspect-ratio: 1 / 0.3;
    object-fit: contain;
    object-position: top;
}

.container--landing-switch-cel_text,
button.container--landing-switch-cel_button {
    display: none;
}

.container--landing-switch-cel:hover .container--landing-switch-cel_text,
.container--landing-switch-cel:hover .container--landing-switch-cel_button {
    display: block;
}

/* .container--landing-switch-cel:hover .container--landing-switch-cel_text{
    margin-top: auto;
    padding-bottom: 5rem;
} */

.container--landing-switch-cel_text {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.container--landing-switch-cel_button {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
}



@media (max-width: 920px) and (orientation: landscape) and (pointer: coarse) and (hover: none) {
    .container {
        width: 100%;
        height: 100%;
    }

    .container--content {
        padding: 1rem;
    }

    .container--title {
        font-size: 2rem;
        padding: 1.5rem 0;
        margin: 0;
    }

    .container--landing-switch {
        flex-direction: row; /* Stack items horizontally on mobile landscape */
        padding: 1.5rem 0; /* Adjust padding for better view */
        gap: 1rem; /* Adjust gap for better view */
    }

    .container--landing-switch-cel {
        width: 100%; /* Full width for each item */
        height: auto; /* Adjust height for better view */
        padding: 2rem 8rem; /* Adjust padding for better view */
        aspect-ratio: unset; /* Adjust aspect ratio */
        background: rgba(0, 0, 0, 0); /* Transparent background */
        justify-content:unset;
    }

    .container--landing-switch-cel_img_logo {
        max-width: 16rem;
        height: auto;
        margin-bottom: 1.5rem;
    }

    .container--landing-switch-cel_text {
        display: block;
    }

    .container--landing-switch-cel:hover .container--landing-switch-cel_button {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        height: 100%;
    }

    .container--content {
        padding: 2rem;
    }

    .container--title {
        font-size: 2.5rem;
        padding: 4rem 0 1.75rem 0;
        margin: 0;
    }

    .container--landing-switch {
        flex-direction: column; /* Stack items vertically on mobile */
        padding: 1.75rem 0; /* Adjust padding for better mobile view */
    }

    .container--landing-switch-cel {
        width: 100%; /* Full width for each item */
        height: auto; /* Adjust height for better mobile view */
        padding: 1.75rem; /* Adjust padding for better mobile view */
        aspect-ratio: unset; /* Square aspect ratio */
        justify-content:unset;
    }

    .container--landing-switch-cel_img_logo {
        max-width: 15rem;
        height: auto;
        margin-bottom: 1.5rem;
    }

    .container--landing-switch-cel_text {
        display: block;
    }

    .container--landing-switch-cel:hover .container--landing-switch-cel_button {
        display: none;
    }
}

@media (max-width: 768px) and (orientation: portrait) and (pointer: coarse) and (hover: none){
    .container {
        width: 100%;
        height: 100%;
    }

    .container--content {
        padding: 2rem;
    }

    .container--title {
        font-size: 2.5rem;
        padding: 4rem 0 1.75rem 0;
        margin: 0;
    }

    .container--landing-switch {
        flex-direction: column; /* Stack items vertically on mobile */
        padding: 1.75rem 0; /* Adjust padding for better mobile view */
    }

    .container--landing-switch-cel {
        width: 100%; /* Full width for each item */
        height: auto; /* Adjust height for better mobile view */
        padding: 1.75rem; /* Adjust padding for better mobile view */
        aspect-ratio: unset; /* Square aspect ratio */
        justify-content:unset;
    }

    .container--landing-switch-cel_img_logo {
        max-width: 15rem;
        height: auto;
        margin-bottom: 1.5rem;
    }

    .container--landing-switch-cel_text {
        display: block;
    }

    .container--landing-switch-cel:hover .container--landing-switch-cel_button {
        display: none;
    }
}

@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) and (pointer: coarse) and (hover: none) {
    .container {
        width: 100%;
        height: 100%;
    }

    .container--content {
        padding: 2rem;
    }

    .container--title {
        font-size: 2.5rem;
        padding: 1.75rem 0;
        margin: 0;
    }

    .container--landing-switch {
        flex-direction: row; /* Stack items horizontally on landscape tablets */
        padding: 1.75rem 0; /* Adjust padding for better view */
        gap: 1rem; /* Adjust gap for better view */
    }

    .container--landing-switch-cel {
        width: 100%; /* Full width for each item */
        height: auto; /* Adjust height for better view */
        padding: 2rem 20rem; /* Adjust padding for better view */
        aspect-ratio:unset; /* Aspect ratio */
        background: rgba(0, 0, 0, 0); /* Transparent background */
        justify-content:unset;
    }

    .container--landing-switch-cel_img_logo {
        max-width: 20rem;
        height: auto;
        margin-bottom: 1.75rem;
    }

    .container--landing-switch-cel_text {
        display: block;
    }

    .container--landing-switch-cel:hover .container--landing-switch-cel_button {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) and (pointer: coarse) and (hover: none) {
    .container {
        width: 100%;
        max-height: 100%;
        min-height: 100vh;
    }

    .container--content {
        padding: 2rem;
    }

    .container--title {
        font-size: 3rem;
        padding: 1.75rem 0;
        margin: 0;
    }

    .container--landing-switch {
        flex-direction: column; /* Stack items vertically on portrait tablets */
        padding: 1.75rem 0; /* Adjust padding for better view */
        gap: 1rem; /* Adjust gap for better view */
    }

    .container--landing-switch-cel {
        width: 100%; /* Full width for each item */
        height: auto; /* Adjust height for better view */
        padding: 2rem 8rem; /* Adjust padding for better view */
        aspect-ratio: unset; /* Adjust aspect ratio */
        background: rgba(0, 0, 0, 0); /* Transparent background */
        justify-content:unset;
    }

    .container--landing-switch-cel_img_logo {
        max-width: 20rem;
        height: auto;
        margin-bottom: 1.75rem;
    }

    .container--landing-switch-cel_text {
        display: block;
    }

    .container--landing-switch-cel:hover .container--landing-switch-cel_button {
        display: none;
    }
}

:root {
    --scalecoefficient: 0.8;
}

@media (min-width: 1024px) and (max-width: 1440px) {
    .container--landing-switch{
        /* Sicherstellen, dass die Skalierung einheitlich funktioniert */
        transform: scale(var(--scalecoefficient));
        /* transform-origin: 0 0;  */
    }

    .container--title{
        transform: scale(var(--scalecoefficient));
        /* transform-origin: 0 0;  */
        position: relative;
        top: 8vw;
    }

    .container--background_image::after {
        /* Leeres Pseudoelement */
        content: '';
        display: block;
        width: 100%;
        height: 100%;
        /* Optional: ein Beispiel für eine Hintergrundfarbe */
        background-color: rgba(0, 0, 0, 0.5); /* Anpassbar nach Bedarf */
    }

    .container--landing-switch .container--landing-switch-cel{
        padding: 6rem 2rem;
        flex: 1 1 20%;
        aspect-ratio: 1 / 1;
        max-width: 47vw;

        /* Sicherstellen, dass die Skalierung einheitlich funktioniert */
        transform: scale(var(--scalecoefficient));
        /* transform-origin: 0 0; */
    }
}
