/*
Theme Name: Filipos
Description: Child theme for Twenty Twenty-One
Author: Ihr Name
Template: twentytwentyone
Version: 1.0.0
*/

:root {
    --size_margin: 40px;
    --size_gutter: 20px;
}

@font-face {
    font-family: 'DMSans';
    src: url('https://www.felipeascacibar.com//wp-content/themes/twentytwentyone-child/fonts/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    /* Legt die Gewichtsspanne fest */
    font-style: normal;
    font-optical-sizing: auto;
    /* Aktiviert die automatische optische Größenanpassung */
}

/* Beispiel für die Verwendung in Ihrem Stylesheet */

body {
    font-family: 'DMSans', sans-serif !important;
    font-weight: 400;
    /* Standard-Schriftgewicht */
}

h1 {
    font-family: 'DMSans', sans-serif !important;
    font-weight: 500 !important;
    /* medium */
}

h2 {
    font-family: 'DMSans', sans-serif !important;
    font-weight: 500 !important;
    /* medium */
}

p {
    font-family: 'DMSans', sans-serif !important;
    font-weight: 400;
    /* Leichteres Schriftgewicht für Absätze */
}

a {
    text-decoration: none;
}

button:active {
    border: 3px solid rgba(0, 0, 0, 0) !important;
}

.top {
    position: fixed;
}

button:not(:hover):not(:active):not(.has-background) {
    background-color: transparent !important;
}

.site-header {
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 20 !important;
    max-width: 100% !important;
    padding-top: 0px !important;
}

.site-header>.site-logo {
    width: 100%;
    padding-top: none !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    text-align: center;
}

.site-logo {
    width: 100%;
    margin: 0 auto !important;
    display: flex;
    justify-content: center;
    /*    align-items: center; */
    z-index: 1;
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 21%;
}

.site-logo img.custom-logo,
span.custom-logo-link {
    max-width: 260px !important;
}

.site-logo .custom-logo {
    max-height: 100% !important;
    max-width: 100% !important;
}

@media screen and (max-width: 1366px) and (min-width: 1024px) {
    .site-logo img.custom-logo,
    span.custom-logo-link {
        /*   max-height: 100px!important; */
        max-width: 180px !important;
    }
}

@media screen and (max-width: 1024px) and (min-width: 768px) {
    .site-logo img.custom-logo,
    span.custom-logo-link {
        max-width: 150px !important;
    }
}

@media screen and (max-width: 768px) and (min-width: 375px) {
    .site-logo img.custom-logo,
    span.custom-logo-link {
        max-width: 240px !important;
        top: 15% !important;
    }
}

.down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}

@media screen and (max-width: 3000px) and (min-width: 2300px) {
    .down {
        position: absolute;
        bottom: 200px;
    }
}

.site-main {
    padding-top: 0px !important;
}

.entry-content {
    width: 100% !important;
}

/* Off-Canvas-Menü */

button.offcanvas-toggle,
button.back {
    position: absolute;
    right: 10px;
    z-index: 105 !important;
    top: 10px;
    /*  border-radius: 100px;
    border: 2px solid #fff;*/
    background-color: transparent !important;
    color: #fff !important;
}

button.offcanvas-toggle.burger-menu:hover,
button.back:hover {
    border-color: transparent !important;
}

.burger-menu {
    display: inline-block;
    /* Erlaubt die Feinabstimmung der Position */
    cursor: pointer;
    /* Ändert den Cursor beim Überfahren mit der Maus */
}

.bar {
    width: 35px;
    height: 3px;
    background-color: #ffff;
    margin: 8px 0;
    transition: 0.4s;
}

button.back img {
    width: 35px;
    height: 35px;
}

.site .button:focus,
button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
.wp-block-search .wp-block-search__button:focus,
.wp-block-button .wp-block-button__link:focus,
.wp-block-file a.wp-block-file__button:focus {
    outline-offset: -6px;
    outline: none !important;
}

a:focus img {
    outline: none !important;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
}

/* Für größere Tablets */

@media (min-width: 320px) {
    h2 {
        font-size: 1.2rem !important;
    }
}

/* Für Desktops */

@media (min-width: 1081px) {
    h2 {
        font-size: 2rem !important;
    }
}

.offcanvas-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80vw;
    max-width: 600px;
    transform: translate(-50%, -50%) scale(0.9);
    visibility: hidden;
    opacity: 0;
    background: none;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 100;
}

.offcanvas-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.offcanvas-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
}

.offcanvas-overlay.active {
    display: block;
}

main.overlay-active {
    filter: blur(100px);
    pointer-events: none;
    user-select: none;
}

/* Menü zentrieren */

.offcanvas-menu ul {
    list-style: none;
    padding: 0;
}

/* Animation der einzelnen Navigationslinks */

.offcanvas-menu li {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s, transform 0.4s;
}

.offcanvas-menu li a {
    font-size: 2em;
    text-decoration: none;
    text-transform: uppercase;
}

/* Stufenweise Animation der Menüpunkte */

.offcanvas-menu li:nth-child(1) {
    transition-delay: 0.1s;
}

.offcanvas-menu li:nth-child(2) {
    transition-delay: 0.3s;
}

.offcanvas-menu li:nth-child(3) {
    transition-delay: 0.5s;
}

.offcanvas-menu li:nth-child(4) {
    transition-delay: 0.7s;
}

/* Und so weiter für mehr Menüpunkte, falls nötig */

.offcanvas-overlay {
    z-index: 1;
}

.offcanvas-menu {
    z-index: 999;
}

.offcanvas-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.samegrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sameitem {
    aspect-ratio: 16/9;
    position: relative;
}

.sameitem img {
    height: 100%;
    -o-object-position: center;
    object-position: center;
    position: absolute;
    width: 100%;
    z-index: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.griditem.fullwidth,
.griditem.halfwidth,
.griditem.fullwidth-row,
.griditem.thirdwidth {
    aspect-ratio: 16 / 9;
    padding-top: 56.25%;
    /* 9 / 16 * 100% */
}

.griditem.fullwidth {
    grid-column: 1 / span 6;
    contain-intrinsic-size: 56.25vw;
    /* 9 / 16 * 100vw */
}

.griditem.halfwidth {
    grid-column: span 3;
    contain-intrinsic-size: 28.125vw;
    /* 9 / 16 * 100vw * 0.5 */
}

.griditem.fullwidth-row {
    grid-column: 1 / span 6;
    aspect-ratio: 2.39 / 1;
    padding-top: 41.841%;
    contain-intrinsic-size: 41.841vw;
}

.griditem.thirdwidth {
    grid-column: span 2;
    contain-intrinsic-size: 18.7498125vw;
}

.griditem .posttitle,
.sameitem .posttitle {
    bottom: 20px;
    left: 20px;
    color: #fff;
    position: absolute;
    z-index: 1;
}

.griditem img {
    transition: opacity 0.3s;
}

.griditem {
    box-sizing: border-box;
    content-visibility: auto;
    min-height: 200px;
    position: relative;
    width: 100%;
}

.griditem .videowrap {
    height: 100%;
    overflow-x: hidden;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
}

.griditem .videowrap video {
    height: 100%;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translate3d(-50%, 0, 0);
    width: auto;
}

.griditem.fullwidth-row video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.postlink {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 3;
}

.carousel-item .postlink {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 3;
}

section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-width: 100%;
    background-color: #010101 !important;
}

h1.sectiontitle {
    text-transform: uppercase;
}

div .about,
div .contact {
    display: grid;
    padding: 20px;
}

.about {
    grid-template-columns: 1fr;
    grid-template-columns: repeat(2, 1fr);
}

.contact {
    grid-template-columns: 1fr;
}

.about p,
.contact p {
    padding-right: calc(var(--size_margin) + var(--size_gutter));
    margin-bottom: 1em;
}

@media screen and (max-width: 1024px) {
    .about,
    .contact {
        max-width: 100%;
        grid-template-columns: 1fr;
    }
}

div.about-img img {
    width: 100% !important;
}

@media screen and (max-width: 1024px) and (min-width: 320px) {
    div.about-img img {
        width: 100% !important;
    }
}

.videowrap {
    background-color: #222;
}

h1.sectiontitle {
    background-color: #010101 !important;
    padding: 20px;
}

a:focus {
    background-color: transparent !important;
}

* {
    margin: 0;
    padding: 0;
}

img {
    display: block;
    transition: opacity .2s ease-in-out 0ms;
}

img.cover {
    font-family: "object-fit: cover; object-position: center;";
    -o-object-fit: cover;
    object-fit: cover
}

img.cover {
    height: 100%;
    -o-object-position: center;
    object-position: center;
    position: absolute;
    width: 100%;
    z-index: 1;
}

button.plyr__controls__item.plyr__control,
button.plyr__control.plyr__control--pressed {
    background-color: transparent !important;
    color: #fff !important;
}

div.plyr__controls__item:nth-child(4)>button:nth-child(1) {
    background-color: transparent !important;
    color: #fff !important;
}

.plyr__progress,
.plyr--full-ui input[type="range"] {
    color: #fff !important;
}

.plyr__controls {
    padding-left: var(--size_margin) !important;
    padding-right: var(--size_margin) !important;
}

.slideshows-container .slider-wrapper {
    display: none;
}

.slideshows-container .slider-wrapper.active {
    display: block;
}

.music-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.music-title {
    font-size: 1.2em;
    font-weight: bold;
}

.play-pause-button {
    padding: 5px 10px;
    cursor: pointer;
}

#projectinfo {
    padding: 20px;
}

#projectinfo,
#contactinfo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#projectinfo>div,
#contactinfo>div {
    flex: 1;
    padding: 20px;
}

.title h1,
.title h2 {
    margin: 0;
}

.site-footer>.site-info {
    border-top: none !important;
}

.site-footer {
    padding: var(--size_margin);
    max-width: 100% !important;
    z-index: 3;
    position: relative;
}

@media (max-width: 768px) {
    #projectinfo,
    #contactinfo {
        justify-content: space-between;
        align-items: flex-start;
    }
}

/* Stile für Bildschirme ab 768px Breite */

@media (max-width: 768px) {
    .grid,
    #projectinfo,
    #contactinfo {
        grid-template-columns: 1fr;
        display: grid;
    }
    .griditem.fullwidth,
    .griditem.halfwidth,
    .griditem.fullwidth-row,
    .griditem.thirdwidth {
        aspect-ratio: auto;
        min-height: 100px;
        width: 100%
    }
    .griditem.fullwidth,
    .griditem.halfwidth,
    .griditem.fullwidth-row,
    .griditem.thirdwidth {
        grid-column: 1 / span 1;
    }
}

@media screen and (max-width: 1279px) and (min-width: 768px) {
    .samegrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) and (min-width: 320px) {
    .samegrid {
        grid-template-columns: 1fr;
    }
}

.samegrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Stellen Sie sicher, dass der <body> keine Margin hat, um unerwünschte Abstände zu entfernen */

body {
    margin: 0;
    padding: 0;
}

@media screen and (max-width: 767px) and (min-width: 320px) {
    .top-section .grid,
    img.videoPoster {
        width: auto;
        height: 100vh;
        aspect-ratio: auto;
        object-fit: cover;
        background-color: transparent;
        margin-top: 0;
        margin-bottom: 0;
    }
}

header.entry-header.alignwide {
    max-width: 610px !important;
}

.entry-header> :first-child {
    margin-top: 40px !important;
}

.carousel-item img {
    width: 100%;
    height: auto;
}

.carousel .carousel-item {
    margin: 0px;
}

/* Stellt sicher, dass .carousel-item als Bezugspunkt für die absolute Positionierung dient */

.carousel-item {
    position: relative;
    overflow: hidden;
}

/* Positioniert den .posttitle unten links im .carousel-item */

.carousel-item .posttitle {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

/* Verbessert die Lesbarkeit des Titels durch Begrenzung der Breite und Zentrierung des Texts */

.carousel-item .posttitle h2 {
    margin: 0;
    text-align: left;
    word-wrap: break-word;
    max-width: 100%;
}

.slick-track {
    position: relative;
    top: 0;
    left: 0;
    display: block;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Stellt sicher, dass der Slick Slider Container relativ positioniert ist */

.slick-slider {
    position: relative;
}

/* Gemeinsame Basis-Styles für beide s */

.slick-prev,
.slick-next {
    position: absolute !important;
    top: 115% !important;
    top: 115% !important;
    bottom: 10px !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    background: transparent !important;
    color: #fff;
    z-index: 100;
}

/* Spezifische Positionierung des Previous-Buttons */

.slick-prev {
    left: auto !important;
    right: 80px !important;
}

/* Spezifische Positionierung des Next-Buttons */

.slick-next {
    right: 15px !important;
}

.slick-prev:before {
    content: '' !important;
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url(https://www.felipeascacibar.com//wp-content/themes/twentytwentyone-child/img/for.svg);
    background-repeat: no-repeat;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    color: #fff;
    opacity: 1;
}

.slick-next:before {
    content: '' !important;
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url(https://www.felipeascacibar.com//wp-content/themes/twentytwentyone-child/img/for.svg);
    background-repeat: no-repeat;
    font-size: 24px;
    color: #fff;
    opacity: 1;
}

.slick-dots li {
    list-style: none;
    color: #fff;
    font-size: 16px;
}

.slick-dots {
    position: absolute !important;
    bottom: -63px !important;
    right: -120px !important;
    display: block;
    width: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}