/* Showroom Page Styles */

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0px;
    width: 3px;
    height: 100vh;

    z-index: 999;
    pointer-events: none;
    z-index: 9999;
}

[data-theme="dark"] .scroll-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

.scroll-progress-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--primary-color), #00B3FF);
    transition: height 0.1s ease-out;
}

/* Main Content */
.showroom-main {
    min-height: calc(100vh - 5rem);
}

/* Hero Section */
.showroom-hero {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.video-container-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 17rem;
    height: calc(100vh - 10rem);
    /* Ensure controls are always visible */
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px #0000004d;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    margin: 0 auto;
    /* Center if smaller than container */
    aspect-ratio: 16 / 9;
    /* Maintain 16:9 aspect ratio */
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    /* Fill wrapper height */
    background: #000;
    overflow: hidden;
    border-radius: 16px;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 16 / 9) {
    .video-container-wrapper {
        aspect-ratio: none;
    }

    .video-container {
        padding-bottom: 56.25%;
        /* 16:9 aspect ratio fallback */
        height: auto;
    }
}

.showroom-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay Container */
.overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 1400px;
    /* Reference width for 16:9 format */
    height: 787.5px;
    /* Reference height (1400 * 9/16) */
    pointer-events: none;
    z-index: 10;
    transform-origin: 0 0;
    /* Top-left origin for scaling */
}

/* Loading Spinner */
.video-loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
}

.video-loading-spinner.visible {
    opacity: 1 !important;
    display: flex !important;
}

.video-loading-spinner .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
    flex-shrink: 0;
    display: block !important;
    visibility: visible !important;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Initial Muted Overlay */
.video-muted-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 20;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-muted-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.muted-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 120px;
    height: 120px;
    transition: transform 0.2s ease;
    transform-origin: center center;
    --icon-scale: 1;
}

.video-muted-overlay:hover .muted-icon {
    transform: scale(calc(var(--icon-scale) * 1.05));
}

.muted-icon svg {
    width: 64px;
    height: 64px;
    display: block;
}

.muted-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    white-space: nowrap;
    margin-top: -0.5rem;
}

/* Action Feedback Icons */
.video-action-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-action-feedback.visible {
    opacity: 1;
}

.action-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    --action-icon-scale: 1;
    /* Default scale, will be overridden by JS */
    --action-icon-mobile-scale: 0.3;
    /* Default scaling factor, will be overridden by JS on mobile */
    transform: translate(-50%, -50%) scale(calc(var(--action-icon-mobile-scale) * var(--action-icon-scale)));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(0, 0, 0, 0.9);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    padding: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    width: 80px;
    height: 80px;
    opacity: 0;
    animation: zoomInFade 0.4s ease-out forwards;
}

.action-icon svg {
    width: 48px;
    height: 48px;
    display: block;
}

.action-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
    text-align: center;
    margin-top: -0.25rem;
}

.action-icon.hidden {
    display: none;
    animation: none;
}

@keyframes zoomInFade {
    0% {
        transform: translate(-50%, -50%) scale(calc(0.2 * var(--action-icon-scale)));
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(calc(1.3 * var(--action-icon-scale)));
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(calc(0.7 * var(--action-icon-scale)));
        opacity: 0.60;
    }
}

.overlay-item {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 11;
    will-change: opacity, transform;
}

.overlay-item.overlay-button {
    pointer-events: auto;
}

.overlay-item:not(.overlay-button):not([data-custom-transform]) {
    transform: scale(0.9) translateY(10px);
}

.overlay-item.visible:not(.overlay-button):not([data-custom-transform]) {
    transform: scale(1) translateY(0);
}

.overlay-item.visible {
    opacity: 1;
}

.overlay-item.exiting:not(.overlay-button):not([data-custom-transform]) {
    transform: scale(0.95) translateY(-10px);
}

.overlay-item.exiting {
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay Types */
.overlay-text {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    color: white;
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.6;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 450px;
    font-weight: 500;
}

.overlay-text.overlay-title {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 156, 221, 0.9), rgba(0, 179, 255, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 156, 221, 0.4);
}

.overlay-button {
    background: var(--primary-color);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 156, 221, 0.4);
    border: none;
    cursor: pointer;
}

.overlay-button:hover {
    background: #0088cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 156, 221, 0.5);
}

.overlay-image {
    max-width: 200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 0.75rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
    overflow: visible;
}

.video-controls.visible {
    opacity: 1;
}

.video-controls-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.video-controls-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.video-controls-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.control-btn:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.95);
}

.play-pause-btn {
    width: 48px;
    height: 48px;
}

/* Progress Bar */
.video-progress-container {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 0.75rem;
    width: 100%;
    overflow: visible;
}

.video-progress-bar {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: visible;
    z-index: 1;
}

.video-progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 156, 221, 0.5);
}

/* Timeline Preview */
.timeline-preview {
    position: absolute;
    bottom: 100%;
    left: 0;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    will-change: opacity, transform;
    margin-bottom: 12px;
    /* Ensure preview stays within video container bounds */
    max-width: calc(100vw - 2rem);
}

.timeline-preview.visible {
    opacity: 1;
}

.timeline-preview-image {
    width: 160px;
    height: 90px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.timeline-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.timeline-preview-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 32;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
}

.timeline-preview-spinner.visible {
    opacity: 1;
}

.timeline-preview-spinner .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
    flex-shrink: 0;
    display: block !important;
    visibility: visible !important;
}

.timeline-preview-time {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-preview::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.9);
}

/* Timeline Markers */
.timeline-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}

.timeline-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 7;
    box-shadow: 0 2px 8px rgba(0, 156, 221, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
    outline: none;
}

.timeline-marker:hover,
.timeline-marker:focus {
    transform: translate(-50%, -50%) scale(1.6);
    box-shadow: 0 4px 20px rgba(0, 156, 221, 0.7), 0 0 0 4px rgba(255, 255, 255, 0.5);
    animation: none;
    background: var(--primary-color);
    border-color: white;
}

.timeline-marker.marker-active {
    transform: translate(-50%, -50%) scale(1.8);
    box-shadow: 0 6px 24px rgba(0, 156, 221, 0.9), 0 0 0 6px rgba(255, 255, 255, 0.6);
    background: var(--primary-color);
    border-color: white;
    animation: markerPulse 0.5s ease-out;
}

.timeline-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(0, 156, 221, 0.2);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.3s ease;
}

.timeline-marker:hover::before,
.timeline-marker:focus::before {
    width: 30px;
    height: 30px;
    background: rgba(0, 156, 221, 0.3);
}




/* Time Display */
.time-display {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
    white-space: nowrap;
    /* Prevent breaking into new line */
    flex-shrink: 0;
    /* Prevent shrinking */
}

.time-separator {
    margin: 0 0.25rem;
    opacity: 0.6;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.volume-control:hover .volume-slider {
    width: 80px;
    opacity: 1;
}

.volume-slider {
    width: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    overflow: hidden;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Playback Speed Control */
.playback-speed-control {
    position: relative;
}

.speed-btn {
    min-width: 40px;
    font-size: 0.875rem;
    font-weight: 500;
}

.speed-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 80px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 30;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.speed-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.speed-option {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.speed-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.speed-option.active {
    background: rgba(0, 156, 221, 0.2);
    color: var(--primary-color);
    font-weight: 600;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Header Section */
.showroom-header-section {
    padding: 6rem 1rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.header-section-wrapper {
    text-align: center;
}

.header-section-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Breadcrumb Navigation Above Video */
.breadcrumb-nav-video {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    animation: fadeInDown 0.5s ease-out 0.3s both;
}

.breadcrumb-link-video {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    opacity: 0.7;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.breadcrumb-link-video:hover {
    color: var(--primary-color);
    opacity: 1;
    background: rgba(0, 156, 221, 0.1);
}

.breadcrumb-arrow-icon {
    transition: transform 0.2s ease;
}

.breadcrumb-link-video:hover .breadcrumb-arrow-icon {
    transform: translateX(-2px);
}

.breadcrumb-separator-video {
    color: var(--text-secondary);
    opacity: 0.5;
}

.breadcrumb-current-video {
    color: var(--text-primary);
    font-weight: 600;
    opacity: 1;
}

.header-section-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-color), #00B3FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-section-description {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.header-section-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Two Row Bento Grid Section */
.showroom-bento-section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.bento-section-wrapper {
    width: 100%;
}

.bento-grid-two-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

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

/* Left Side: Project Description */
.bento-card-left {
    background: var(--background);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 100%;
    min-width: 0;
    max-width: 600px;
}

[data-theme="dark"] .bento-card-left {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bento-card-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #00B3FF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.bento-card-left:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

[data-theme="dark"] .bento-card-left:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.bento-card-left:hover::before {
    transform: scaleX(1);
}

.bento-project-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-color), #00B3FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bento-project-description {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.bento-project-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.bento-project-logo-wrap {
    margin-top: 2rem;
}

.bento-project-logo {
    display: block;
    max-width: 240px;
    width: 100%;
    height: auto;
}

/* White logo for dark backgrounds, black inverted logo for light backgrounds */
.okl-logo--light-bg {
    display: none;
}

.okl-logo--dark-bg {
    display: block;
}

@media (prefers-color-scheme: light) {
    html:not([data-theme="dark"]) .okl-logo--light-bg {
        display: block;
    }

    html:not([data-theme="dark"]) .okl-logo--dark-bg {
        display: none;
    }
}

[data-theme="light"] .okl-logo--dark-bg {
    display: none;
}

[data-theme="light"] .okl-logo--light-bg {
    display: block;
}

[data-theme="dark"] .okl-logo--light-bg {
    display: none;
}

[data-theme="dark"] .okl-logo--dark-bg {
    display: block;
}

/* Right Side: Leistungen Grid */
.bento-card-right {
    width: 100%;
}

.bento-leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    grid-auto-rows: minmax(200px, auto);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    grid-auto-rows: minmax(200px, auto);
}

.bento-card {
    background: var(--background);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .bento-card {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #00B3FF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

[data-theme="dark"] .bento-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.bento-card:hover::before {
    transform: scaleX(1);
}

.bento-card-large {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-card-full {
    grid-column: 1 / -1;
    grid-row: span 1;
}

.bento-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.bento-card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.bento-card-year {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
}

.bento-card-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #00B3FF);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 156, 221, 0.3);
}

.bento-card-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    padding-left: 0;
}

.bento-card-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.bento-card-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Copyright */
.video-copyright {
    color: rgba(170, 170, 170, 0.8);
    text-align: right;
    margin-top: 1rem;
    margin-right: 1rem;
    font-size: 0.875rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .video-copyright {
    color: rgba(170, 170, 170, 0.6);
}

.video-copyright p {
    margin: 0;
}

.video-copyright-link {
    color: rgba(170, 170, 170, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
}

[data-theme="dark"] .video-copyright-link {
    color: rgba(170, 170, 170, 0.6);
}

.video-copyright-link:hover {
    color: var(--primary-color);
    opacity: 1;
    text-decoration: underline;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

@keyframes markerPulse {
    0% {
        transform: translate(-50%, -50%) scale(1.8);
        box-shadow: 0 6px 24px rgba(0, 156, 221, 0.9), 0 0 0 6px rgba(255, 255, 255, 0.6);
    }

    50% {
        transform: translate(-50%, -50%) scale(2);
        box-shadow: 0 8px 32px rgba(0, 156, 221, 1), 0 0 0 8px rgba(255, 255, 255, 0.8);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        box-shadow: 0 6px 24px rgba(0, 156, 221, 0.9), 0 0 0 6px rgba(255, 255, 255, 0.6);
    }
}

/* Responsive Design */
@media (max-width: 768px) {

    .bento-grid-two-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bento-card-left {
        padding: 2rem;
    }

    .bento-project-title {
        font-size: 2.5rem;
    }

    .bento-project-description {
        font-size: 1.25rem;
    }

    .bento-project-text {
        font-size: 1rem;
    }

    .bento-leistungen-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .video-controls-footer {
        flex-wrap: nowrap;
        /* Keep controls in one line */
        gap: 0.5rem;
    }

    .video-controls-left {
        flex-wrap: nowrap;
        /* Keep controls in one line */
        flex: 1;
        min-width: 0;
        /* Allow shrinking */
    }

    .time-display {
        font-size: 0.8125rem;
        /* Slightly smaller on mobile */
        min-width: auto;
        /* Remove fixed min-width */
        white-space: nowrap;
        /* Prevent breaking */
        flex-shrink: 0;
        /* Prevent shrinking */
    }

    .video-progress-container {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .video-container-wrapper {
        height: calc(100vh - 8rem);
        /* More space for controls on mobile */
    }

    .volume-slider {
        width: 60px !important;
    }

    /* Hide preview on mobile */
    .timeline-preview {
        display: none !important;
    }

    .breadcrumb-nav-video {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }

    .header-section-title {
        font-size: 2.5rem;
    }

    .header-section-description {
        font-size: 1.25rem;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .bento-card-large {
        grid-column: span 2;
    }

    .bento-card-full {
        grid-column: 1 / -1;
    }

    .overlay-text {
        max-width: 90%;
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .showroom-hero {
        padding: 1rem 0.5rem;
    }

    .video-controls {
        padding: 0.75rem;
    }

    .video-container-wrapper {
        height: calc(100vh - 7rem);
        /* Even more space for controls on small screens */
    }

    .time-display {
        font-size: 0.75rem;
        /* Even smaller on very small screens */
    }

    .showroom-header-section {
        padding: 4rem 0.5rem 2rem;
    }

    .breadcrumb-nav-video {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .breadcrumb-link-video {
        padding: 0.375rem 0.5rem;
    }

    .header-section-title {
        font-size: 2rem;
    }

    .header-section-description {
        font-size: 1.125rem;
    }

    .header-section-text {
        font-size: 1rem;
    }

    .showroom-features {
        padding: 2rem 0.5rem;
    }

    .features-section-title {
        font-size: 1.75rem;
    }

    .features-section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bento-card-large {
        grid-column: span 1;
    }

    .bento-card-full {
        grid-column: span 1;
    }

    .bento-card {
        padding: 1.5rem;
    }

    .bento-card-title {
        font-size: 1.25rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-primary {
    color: var(--primary-color);
}