* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fira Sans', sans-serif;
}

body {
    background-color: #e8e8e8;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Base font size for responsive scaling */
:root {
    --base-font-size: 16px;
    --title-scale: 1;
}

.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    /*align-items: center;
    justify-content: center;*/
    padding: clamp(1rem, 2vw, 2rem);
    box-sizing: border-box;
    position: relative;
    /*background-color: blue;*/
    /*overflow-x: hidden;*/
    overflow: hidden;
}

.main-title {
    text-align: left;
    width: 100%;
    margin-bottom: clamp(1rem, 2vw, 2rem);
    position: absolute;
    z-index: 100;
    display: flex;
    gap: 0.6vw;
}

.main-title h1 {
    font-family: 'Fira Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #000000;
    margin: 0;
    font-size: 2vw;
}

.main-title h2 {
    font-family: 'Fira Sans', sans-serif;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    color: #000000;
    /*margin: clamp(0.5rem, 1vw, 0.625rem) 0 0 0;*/
    margin: 0.52vw 0 0 0;
    line-height: 1.6;
    font-size: 1.2vw;
}

.logos-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    gap: 2%;
    left: 0.0%;
    bottom: 0.0%;
    width: 100%;
    /*height: 13.00%;*/
    height: 150px;
    transform-origin: top left;
    /*background-color: red;*/
    position: absolute;
    z-index: 100;
    padding: clamp(1rem, 2vw, 2rem);
    /*display: none;*/
    overflow: hidden;
}


.logo-element {
    flex: 0 1 auto;
    opacity: 0; /* Initial state for GSAP animation */
    transform: translateY(100px);
}

.logos-all {
    height: 67%; 
}

.logo-text {
    height: 100%; 
}


.aspect-ratio-box {
    /*width: 100%;
    position: absolute;*/
    /*padding-top: 66.67%; */ /* 3:2 Aspect Ratio */
}

.workshop-container {
    position: absolute;
    top: -4%;
    left: 0;
    margin: 0px 0px;
    /*width: 100%;
    height: 100%;*/
    /*overflow: hidden;*/
    /*background-color: red;*/
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    scale: 0.5;
}

.overlay-container {
    position: absolute;
    z-index: 10;
    opacity: 0; /* Initial state for GSAP animation */
    transform: scale(0.95); /* Initial state for GSAP animation */
    will-change: transform, opacity;
}

.overlay-point {
    width: 100%;
    /*height: 100%;*/
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: transform 0.20s ease-in-out;
    transform-origin: inherit;
}

.overlay-point img {
    width: 100%;
    height: 100%;
    transition: transform 0.20s ease-in-out;
    transform-origin: inherit;
}

.overlay-svg {
    width: 100%;
    height: auto;
}

.button-svg {
    width: 30% !important;
    height: auto !important;
    position: absolute;
    right: 0;
}

.button-mensch-maschine {
    bottom: 3%;
    right: 3%;
}

.button-robot {
    bottom: 3%;
    right:37%;
}

.point-label {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: clamp(0.5rem, 1vw, 0.75rem) clamp(0.75rem, 1.5vw, 1rem);
    min-width: clamp(100px, 15vw, 200px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.2s ease;
}

.label-text {
    display: block;
    font-family: 'Fira Sans', sans-serif;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    font-weight: 500;
    color: #333;
    margin-bottom: clamp(0.25rem, 0.5vw, 0.5rem);
}

.label-subtext {
    display: block;
    font-family: 'Fira Sans', sans-serif;
    font-size: clamp(0.7rem, 1.2vw, 0.8rem);
    color: #666;
    line-height: 1.2;
}

/* Hover effects for non-touch devices */
@media (hover: hover) {
    .overlay-point:hover {
        /*transform: scale(1.01);*/
    }
}

/* Touch interaction effects */
/*.overlay-point:active {
    transform: scale(0.96);
}*/

.overlay-point.clickable:active .overlay-svg, .button-svg.clickable:active {
    transform: scale(0.99);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;

}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: transparent;
}

/* Two-column layout */
.modal-columns {
    display: flex;
    flex: 1;
    height: 85vh;
    max-height: 85vh;
    overflow: hidden;
    border-radius: 20px;
}

.modal-column-left {
    flex: 0 0 40%;
    background-image: url('images/popup-bild-test-01.jpg');
    background-size: cover;
    background-position: center;
    /*border-radius: 8px 0 0 8px;*/
    margin-right: 0;
    position: relative;
}

.modal-column-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,1));
    pointer-events: none;
}

.modal-column-right {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    background-color: white;
}

.modal-header {
    position: relative;
    display: flex;
    align-items: center;
    margin: 25px 50px 20px 50px;
    padding-right: 50px; /* Make space for the close button */
    height: 70px; /* Match height of close button */
    flex-shrink: 0;
}

.modal-title {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.modal-inner {
    flex: 1;
    overflow-y: auto;
    padding: 0 50px 50px 50px;
    height: calc(100% - 80px); /* Adjust this value based on your header height */
    position: relative;
}

.modal-inner h2 {
    color: #333;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
}

.modal-inner h3 {
    color: #444;
    font-size: 18px;
    margin: 20px 0 10px;
}

.modal-inner p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-inner strong {
    color: #444;
}

.modal-inner ul {
    list-style-type: none;
    padding: 0;
    line-height: 1.6;
    margin: 0 0 20px;
}

.modal-inner li {
    color: #666;
    padding: 8px 0;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.modal-inner li:before {
    content: "•";
    color: #009cff;
    position: absolute;
    left: 0;
}

.content {
    padding-right: 10px;
}

#popup-content {
    display: none;
}

.close-modal {
    position: absolute;
    top: 35px;
    right: 35px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background-color: #f1f1f1;
    border-radius: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    line-height: 1;
    color: #555;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.close-modal:hover {
    background-color: #e0e0e0;
    color: #333;
    /*transform: scale(1.05);*/
}

.close-modal:active {
    transform: scale(0.95); /* Shrink effect on touch/click */
    background-color: #e0e0e0;
    color: #333;
}

.modal-text {
    line-height: 1.6;
    color: #666;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Move all positioning styles to the container */
.overlay-container[data-location="nextgen"] {
    left: 54.32%;
    top: 11.73%;
    width: 41.41%;
    height: 26.78%;
}

.overlay-container[data-location="digitale-prozesskette"] {
    left: 67.20%;
    top: 24.54%;
    width: 28.54%;
    height: 9.40%;
}

.overlay-container[data-location="resilienz"] {
    left: 84.91%;
    top: 38.09%;
    width: 10.80%;
    height: 4.18%;
}

.overlay-container[data-location="robot-service"] {
    left: 56.21%;
    top: 52.81%;
    width: 29.39%;
    height: 32.84%;
}

.overlay-container[data-location="ki-inspektor"] {
    left: 44.46%;
    top: 57.55%;
    width: 17.59%;
    height: 28.03%;
}

.overlay-container[data-location="amr"] {
    left: 3.91%;
    top: 52.57%;
    width: 34.46%;
    height: 15.73%;
}

.overlay-container[data-location="werkerassistenz"] {
    left: 3.91%;
    top: 39.70%;
    width: 24.59%;
    height: 7.19%;
}

.overlay-container[data-location="digitaler-zwilling"] {
    left: 3.91%;
    top: 27.25%;
    width: 40.39%;
    height: 17.61%;
}

.overlay-container[data-location="co-creation"] {
    left: 84.86%;
    top: 48.09%;
    width: 10.80%;
    height: 4.18%;
}

/* Add transform-origin to each overlay point to match its container */
.overlay-container[data-location="nextgen"] .overlay-point {
    transform-origin: bottom left;
}

.overlay-container[data-location="digitale-prozesskette"] .overlay-point {
    transform-origin: bottom left;
}

.overlay-container[data-location="resilienz"] .overlay-point {
    transform-origin: center;
}

.overlay-container[data-location="robot-service"] .overlay-point {
    transform-origin: top left;
}

.overlay-container[data-location="ki-inspektor"] .overlay-point {
    transform-origin: top left;
}

.overlay-container[data-location="amr"] .overlay-point {
    transform-origin: bottom right;
}

.overlay-container[data-location="werkerassistenz"] .overlay-point {
    transform-origin: center right;
}

.overlay-container[data-location="digitaler-zwilling"] .overlay-point {
    transform-origin: bottom right;
}

.overlay-container[data-location="co-creation"] .overlay-point {
    transform-origin: center;
}





/* Media Queries for SVG sizing */


/*

@media screen and (max-width: 1200px) {
    .overlay-svg {
        width: clamp(150px, 18vw, 200px);
    }
}

@media screen and (max-width: 768px) {
    .main-title h1 {
        font-size: clamp(1.75rem, 3.5vw, 2rem);
    }

    .main-title h2 {
        font-size: clamp(1rem, 1.8vw, 1.25rem);
    }

    .overlay-svg {
        width: clamp(120px, 15vw, 150px);
    }

    .label-text {
        font-size: clamp(0.7rem, 1.3vw, 0.8rem);
    }

    .label-subtext {
        font-size: clamp(0.65rem, 1.1vw, 0.75rem);
    }
}

@media screen and (max-width: 480px) {
    .main-title h1 {
        font-size: clamp(1.5rem, 3vw, 1.75rem);
    }

    .main-title h2 {
        font-size: clamp(0.875rem, 1.6vw, 1rem);
    }

    .overlay-svg {
        width: clamp(100px, 12vw, 120px);
    }

    .label-text {
        font-size: clamp(0.65rem, 1.2vw, 0.75rem);
    }

    .label-subtext {
        font-size: clamp(0.6rem, 1vw, 0.7rem);
    }
}

*/

/* Add styles for the connecting lines */
/*.overlay-point::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 40px;
    background-color: #333;
    transform-origin: bottom;
}*/

/*
.overlay-point[data-location="digitale-prozesskette"]::after {
    transform: rotate(-45deg);
}

.overlay-point[data-location="digitaler-zwilling"]::after {
    transform: rotate(45deg);
}

.overlay-point[data-location="ki-inspektor"]::after {
    transform: rotate(0deg);
}

.overlay-point[data-location="amr"]::after {
    transform: rotate(45deg);
}

.overlay-point[data-location="werkerassistenz"]::after {
    transform: rotate(45deg);
}

.overlay-point[data-location="co-creation"]::after {
    transform: rotate(45deg);
}

.overlay-point[data-location="resilienz"]::after {
    transform: rotate(-45deg);
}

.overlay-point[data-location="robot-service"]::after {
    transform: rotate(-45deg);
}

.overlay-point[data-location="nextgen"]::after {
    transform: rotate(-45deg);
} 
    */

.content-image {
    width: 80%;
    display: block;
    margin: 20px auto;
}

/* Responsive layout for mobile devices */
@media (max-width: 768px) {
    .modal-columns {
        flex-direction: column;
        height: 85vh;
        max-height: 85vh;
    }
    
    .modal-column-left {
        flex: 0 0 200px;
        border-radius: 8px 8px 0 0;
        margin-bottom: 0;
    }
    
    .modal-column-left::after {
        width: 100%;
        height: 80px;
        top: auto;
        bottom: 0;
        background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,1));
    }
    
    .modal-column-right {
        flex: 1;
        padding: 0;
    }
    
    .modal-inner {
        padding: 0 30px 30px 30px;
    }
}

/* Responsive media query was moved up with other modal styles */