/*
 *  Copyright (c) 2024 Mario Fischer, rematic media GmbH, All rights  reserved.
 *  https://rematic.com
 *
*/

/* --- FONTS --- */

/* 
@import url('https://fonts.googleapis.com/css2?family=Aleo:ital,wght@0,600;1,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Aleo:wght@600&family=Open+Sans&display=swap');
*/

/* aleo-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Aleo';
  font-style: normal;
  font-weight: 600;
  src: url('./fonts/aleo-v14-latin/aleo-v14-latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('./fonts/aleo-v14-latin/aleo-v14-latin-600.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/open-sans-v40-latin/open-sans-v40-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('./fonts/open-sans-v40-latin/open-sans-v40-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* open-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/open-sans-v40-latin/open-sans-v40-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('./fonts/open-sans-v40-latin/open-sans-v40-latin-700.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

.rematic-font-aleo-600, #rematic-video-container h1, #rematic-video-container h2, #rematic-video-container h3, #rematic-video-container h4, #rematic-video-container h5, #rematic-video-container h6 {
  font-family: "Aleo", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.rematic-font-open-sans-400 {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

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

#rematic-video-container {
    position: relative;
    width: 100%;
    margin: auto;
    color: #3d3d3d;
}

.rematic-mobile-content {
    display: none;
}

.rematic-desktop-content {
    display: flex;
    gap: 0px;
    max-height: 100%;
}

#rematic-video-container video {
    position: relative;
    z-index: 100;
}

#rematic-video-container h1, #rematic-video-container h2 {
    color: #003a68;
}

#rematic-video-container h3, #rematic-video-container h4, #rematic-video-container h5, #rematic-video-container h6 {
    color: #003a67;
}

#rematic-video-container ul {
    list-style-type: none;
}

#rematic-video-container .rematic-contentbox-content ul ul {
    margin-left: 1.2em;
}

#rematic-video-container li {
    padding-left: 20px;
    background-size: 10px!important;
    background: url(./images/icon-arrow-blue-double.png) no-repeat left 0px;
    background-position-y: 6px;
    margin: 5px 0;
}

#rematic-video-overlay-contentbox {
    position: absolute;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    z-index: 250;
    width: 50%;
    height: calc(80% - 5px);
    left: 1.8%;
    top: 8%;
    /*
    left: 20px;
    top: 60px;
    */
    padding: 0px;
    /* background: rgba(243, 247, 250, 0.90); */
    pointer-events: none;
}

.rematic-contentbox-content {
    overflow-y: auto;
    margin: 20px;
    padding-right: 20px;
    width: 100%;
}

.rematic-mobile-content .rematic-contentbox-content {
    margin: 0px;
}

#rematic-video-overlay {
    position: absolute;
    overflow: auto;
    box-sizing: border-box;
    z-index: 300;
    width: 30%;
    height: calc(100% - 5px);
    right: 0px;
    top: 0px;
    padding: 10px 40px 40px;
    background: rgba(243, 247, 250, 0.90);
    pointer-events: none;
}

#rematic-content {
    pointer-events: auto;
}

.rematic-contentbox {
    padding: 20px;
    display: flex;
    gap: 20px;
}

.rematic-contentbox-image {
    max-width: 35%;
    min-width: 25%;
    margin: 20px;
}

.rematic-contentbox ul, .rematic-contentbox-content ul {
    padding: 0px 0px 10px;
}

#rematic-content details[open] {
    background: #fff;
    padding-bottom: 20px;
}

#rematic-content summary {
    cursor: pointer;
    font-family: "Aleo", serif;
    font-weight: 600;
    padding: 10px;
    background: #003a68;
    color: #fff;
    border: 1px solid rgba(243, 247, 250, 0.90);
}

#rematic-content img {
    width: 100%;
    margin-left: 10px;
}


.rematic-tabs {
    float: left;
    min-width: 230px;
}

.rematic-tab-button {
    font-family: "Aleo", serif;
    font-weight: 600;
    font-size: 16px;
    display: block;
    padding: 10px 20px;
    border: none;
    border-bottom: 1px solid #fff;
    background-color: #003a68;
    cursor: pointer;
    color: #fff;
    width: 100%;
}

.rematic-tab-button:active, .rematic-tab-button:focus, .rematic-tab-button:hover, .rematic-btn-active {
    background-color: #2b68af;
}

.rematic-tab-contents {
    width: 100%;
}


.rematic-tab-content {
    margin-left: 0px;
    gap: 20px;
    padding: 0px;
    border: 1px solid #fff;
    background-color: rgba(243, 247, 250, 0.9);
    display: none; /* Versteckt standardmäßig den Inhalt */
    height: 100%;
}

.rematic-tab-content.active {
    display: flex; /* Zeigt den aktiven Tab-Inhalt an */
}



/* Style for the interactive points */
.rematic-interactive-point-wrapper {
    position: absolute;
    z-index: 200;
    cursor: pointer;
    font-size: 18px;
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.rematic-interactive-point-wrapper-background {
    /*
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 1px 10px 0px 0px;
    */
}

.rematic-point-title, .rematic-start-title, .rematic-back-title {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 2px 10px 0px 10px;
    display: inline-block;
}


/* Style for the interactive points */
.rematic-interactive-point {
    float: left;
    margin-right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 0.9;
    cursor: pointer;
    animation: pulse 2s infinite;
}

/* Key image animation for the pulse effect */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

/* Responsive settings */

@media (max-width: 1400px) {
    #rematic-video-overlay-contentbox {
        width: 60%;
    }
}

@media (max-width: 991px) {

    .rematic-mobile-content {
        display: block;
    }

    .rematic-desktop-content {
        display: none;
    }

    #rematic-video-overlay {
        width: 40%;
    }

    .rematic-interactive-point-wrapper {
        font-size: 14px;
    }

    .rematic-contentbox {
        display: block;
    }

    .rematic-contentbox-image {
        max-width: 100%;
    }
    
}

@media (max-width: 767px) {

    #rematic-video-overlay {
        position: relative;
        display: block;
        width: 100%;
        padding: 0px;
        padding: 10px 20px 30px;
    }

    .rematic-point-title {
        display: none;
    }

}