/* ===================================
   Virtueller Messestand und Showroom - Spezifische Styles
   =================================== */

.demo-preview {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-preview:hover {
    transform: scale(1.02);
}

.demo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 80px 120px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    text-align: center;
    min-width: 400px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-preview:hover .demo-overlay {
    background: rgba(227, 0, 27, 0.9);
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    background: white;
    transition: all 0.3s ease;
    border-radius: var(--radius-medium);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.advantage-item:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.advantage-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

/* Green Service Icons */
.service-icon-green {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.service-icon-green i {
    font-size: 2.5rem;
    color: white;
}

/* Legacy Service Items (fallback) */
.service-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
}

/* Legacy Examples Grid (fallback) */
.example-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-item:hover {
    transform: scale(1.02);
}

.example-item img {
    width: 100%;
}

/* Examples Two-Column Grid */
.examples-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .examples-two-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Example Card Wrapper */
.example-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}



.example-card-wrapper:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* Example Card Image Area */
.example-card {
    position: relative;
    width: 100%;
    border-radius: var(--radius-medium) var(--radius-medium) 0 0;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}

.example-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s ease;
}

.example-card:hover img {
    transform: scale(1.1);
}

/* Example Overlay */
.example-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--main-color), 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.example-card:hover .example-overlay {
    opacity: 1;
}

.example-overlay-content {
    text-align: center;
    color: white;
}

.example-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.example-subtitle {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    color: white;
}

/* Example Text Area */
.example-text {
    padding: 1.5rem;
    color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.example-text h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.example-text p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* WebRotate Player Styles */
.wr360_player {
    width: 100%;
    height: 600px;
}

.spinner_hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.spinner_hint_aligner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner_hint_item {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 80px 120px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    text-align: center;
    min-width: 400px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner_hint_item:hover {
    background: rgba(227, 0, 27, 0.9);
}

#helmetpreview {
    position: relative;
    cursor: pointer;
}

/* WebRotate Viewer Sizing - Original Design Values */
.wr360_player {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto;
    height: 720px !important; /* Original Design-Wert */
}

/* Ensure WebRotate container matches original dimensions */
#wr_02 {
    height: 720px !important; /* Original Design-Wert */
    width: 100% !important;
    max-width: 1400px !important;
}

/* Force internal WebRotate container to proper size */
.wr360_player .container {
    width: 1280px !important;
    height: 720px !important; /* Original Design-Wert */
    margin: 0 auto !important;
}

@media (max-width: 768px) {
    .wr360_player {
        min-height: 500px !important;
    }
}

@media (max-width: 576px) {
    .wr360_player {
        min-height: 400px !important;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    padding: 0;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Standard Modal-Content für Panorama/externe Projekte */
.modal-content {
    position: relative;
    width: 90vw !important;
    height: 90vh !important;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ausnahme: Bootstrap Modal-Formulare sollen normale Höhe haben */
.modal.fade .modal-content {
    height: unset !important;
    width: auto !important;
    max-width: none;
    background: white !important;
    overflow: visible;
    display: block;
}

/* WebRotate Modal-Content für externe 360° Projekte */
.modal-content.webrotate {
    width: 100vw;
    height: 100vh;
    max-width: 1280px;
    max-height: 720px;
    background: #323232;
}

/* WebRotate Modal-Content für lokale loadWR() Projekte (ursprüngliche Vollbild-Einstellungen) */
.modal-content.webrotate-local {
    width: 1280px !important;
    height: 720px !important;
    max-width: none;
    max-height: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spezifische Zentrierung für lokale WebRotate-Container */
.modal-content.webrotate-local #modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* WebRotate Player in lokalem Modal zentrieren */
.modal-content.webrotate-local .wr360_player {
    margin: 0 auto !important;
    display: block !important;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    color: white;
    border: 2px solid white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: rgba(227, 0, 27, 1.0);
    border-color: rgba(227, 0, 27, 1.0);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(227, 0, 27, 0.4);
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

#modal-body {
    width: 100%;
    height: 100%;
}

/* Full-bleed overrides for WebRotate inside modal */
.modal-overlay .wr360_player {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    margin: 0 !important;
    background: transparent !important;
}

.modal-overlay .wr360_player .container {
    width: 100vw !important;
    height: 100vh !important;
}
