/* === ESTILOS GLOBALES Y BASE PARA TODA LA HERRAMIENTA === */

/* Aseguramos que el contenedor principal ocupe el ancho y tenga un padding base */
body #marburg-tool-app {
    width: 100%;
    box-sizing: border-box;
    padding: 0px 0px;
    /* Padding vertical y un poco horizontal */
    font-family: 'Montserrat', sans-serif;
    /* Forzamos la fuente correcta */
}

/* Reglas generales para los textos dentro de la herramienta */
body #marburg-tool-app .app-view h1,
body #marburg-tool-app .app-view h2,
body #marburg-tool-app .app-view h3,
body #marburg-tool-app .app-view h4 {
    color: #ffffff;
    /* Todos los títulos serán blancos */
    text-align: center;
}

body #marburg-tool-app .app-view p,
body #marburg-tool-app .app-view li,
body #marburg-tool-app .app-view dd {
    color: rgba(255, 255, 255, 0.85);
    /* Textos generales con ligera transparencia */
    text-align: left;
    /* Párrafos alineados a la izquierda por defecto */
    line-height: 1.6;
}

body #marburg-tool-app .app-view .subtitle {
    text-align: center;
    /* Subtítulos sí van centrados */
}

/* Estilos para las listas, que suelen dar problemas de formato */
body #marburg-tool-app .app-view ul,
body #marburg-tool-app .app-view ol {
    padding-left: 25px;
    /* Espaciado interno para las viñetas */
    margin-top: 20px;
}

/* Contenedor interno de cada vista para que no sea excesivamente ancho en pantallas grandes */
body #marburg-tool-app .app-view-inner-content {
    max-width: 1200px;
    margin: 0 auto;
}


/* Importar la fuente Montserrat de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* **SOBREESCRITURAS AGRESIVAS PARA ELEMENTOR Y TEMAS DE WORDPRESS** */
/* Esto intentará anular cualquier limitación de ancho o padding de Elementor y del tema */
body,
html {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    /* Changed from 100vw to avoid scrollbar horizontal overflow */
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    overflow-y: auto !important;
    /* Force scroll capability */
    height: auto !important;
    /* Allow growing */
    min-height: 100vh !important;
}

/* Ocultar elementos del tema de WordPress si no son necesarios */
/* Ajusta estos selectores si tu tema usa clases diferentes para el header, footer, etc. */
#page,
#content,
.site-main,
.entry-content,
.elementor-section-wrap,
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-column-wrap,
.elementor-widget-container,
.elementor-widget-custom-html,
.elementor-widget-text-editor,
.elementor-inner-section,
.elementor-inner-column {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Oculta los elementos del tema que no quieres ver */
.site-header,
.site-footer,
.comments-area,
#secondary,
#masthead,
#colophon,
#primary {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    line-height: 0 !important;
}

/* Asegura que el contenedor de Elementor para la sección full width no restrinja el ancho */
.elementor-section.elementor-section-stretched,
.elementor-section.elementor-section-stretched>.elementor-container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Contenedor principal de la aplicación */
#marburg-tool-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* Changed from 100vw */
    /* flex-grow: 1; Removed */
    padding: 0;
    /* Added some vertical padding */
    margin-top: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
    background-color: #0b1a38;
    /* Move background color here to scope it to the tool */
    color: #fff;
    /* Move text color here */
}

/* FIX: Hide Ghost Paragraphs from WP autop */
#marburg-tool-app>p,
#app-main-content>br,
#app-main-content>p {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    content: none !important;
}

/* Estilos del encabezado de la APP */
/* Header styles removed as per request */

/* Contenido principal de la aplicación que albergará las vistas */
#app-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Aligns views to the top to prevent scrolling issues */
    /* flex-grow: 1; REMOVED to prevent unwanted expansion */
    width: 100%;
    /* Asegura que ocupe todo el ancho */
}

/* Estilos para las VISTAS (pantallas de la SPA) */
.app-view {
    background-color: #1a2b4b;
    /* Fondo de la vista, que se estirará de borde a borde */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    width: calc(100vw - 40px);
    /* Ocupa todo el ancho del viewport menos un padding visual */
    max-width: 1400px;
    /* Opcional: para que no sea demasiado ancho en pantallas muy grandes */
    box-sizing: border-box;
    margin: 0 auto;
    /* Centra la vista horizontalmente */
    display: none;
    animation: fadeIn 0.5s ease-out;
    position: relative;
    z-index: 10;
    /* Asegura que la vista activa esté por encima de otros elementos */
    flex-shrink: 0;
    /* Evita que la vista se encoja si hay poco espacio */
}

.app-view.active {
    display: block;
}

/* Contenedor para el contenido INTERNO de cada vista */
.app-view-inner-content {
    max-width: 1200px;
    /* Limita el ancho del contenido para legibilidad */
    margin: 0 auto;
    /* Centra el contenido dentro de la vista */
    /* Centra el contenido dentro de la vista */
    padding: 10px 20px;
    /* Reduced from 20px 20px */
    box-sizing: border-box;
    width: 100%;
    /* Ocupa el 100% del max-width */
    min-height: 300px;
    /* Mínima altura para las vistas si el contenido es corto */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Aligns content to top */
    align-items: center;
    /* Ensures horizontal centering for all children */
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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


/* Estilos comunes para títulos y subtítulos */
.app-view h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
}

.app-view .subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 40px;
}

/* Botón "Zurück zur Übersicht" */
.back-button {
    background-color: #3b4d6b;
    /* Fondo azul oscuro */
    color: #fff;
    /* Texto blanco */
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    /* Asegura que no tenga subrayado */
    display: inline-flex;
    /* Para centrar contenido y permitir padding */
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
    min-width: 180px;
    /* Ancho mínimo para que se vea bien */
    margin-bottom: 25px;
    /* Espacio debajo del botón */
}

.back-button:hover {
    background-color: #00bcd4;
    /* Azul vibrante al hover */
    color: #0b1a38;
    /* Texto muy oscuro al hover */
    transform: translateY(-2px);
    /* Pequeño efecto de elevación */
}

/* HOME VIEW STYLES */
/* === PASO 2: ESTILOS DEL LABORATORIO DE CALIDAD === */

/* Fondo general de la herramienta con un gradiente sutil */
#marburg-tool-app {
    background: #0b1a38;
    background-image: radial-gradient(circle at top left, rgba(20, 49, 99, 0.6), transparent 40%);
}

#home-view .subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
    opacity: 0.8;
}

.lab-dashboard {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 50px;
}

.test-station-card {
    background-color: rgba(26, 43, 75, 0.8);
    /* Fondo semi-transparente */
    border: 1px solid #3b4d6b;
    border-radius: 12px;
    padding: 25px;
    width: calc(33.333% - 20px);
    min-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    /* Efecto cristal esmerilado */
    position: relative;
    overflow: hidden;
}

.test-station-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.2), transparent);
    transform: skewX(-25deg) translateX(-250%);
    transition: transform 0.6s ease;
}

.test-station-card:hover {
    transform: translateY(-10px);
    border-color: #00bcd4;
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.2);
}

.test-station-card:hover::before {
    transform: skewX(-25deg) translateX(250%);
}

.station-icon-wrapper {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Aquí usamos CSS para crear los iconos, es más dinámico */
.station-icon-blueprint,
.station-icon-shield,
.station-icon-scope {
    width: 60px;
    height: 60px;
    border: 2px solid #00bcd4;
    border-radius: 50%;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.test-station-card:hover .station-icon-wrapper div {
    transform: rotate(360deg);
    background-color: rgba(0, 188, 212, 0.1);
}

/* Icono 1: Blueprint */
.station-icon-blueprint::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    border: 2px solid #00bcd4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Icono 2: Escudo */
.station-icon-shield::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid #00bcd4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
}

/* Icono 3: Lente/Mira */
.station-icon-scope::before,
.station-icon-scope::after {
    content: '';
    position: absolute;
    border: 2px solid #00bcd4;
    opacity: 0.6;
}

.station-icon-scope::before {
    width: 10px;
    height: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.station-icon-scope::after {
    width: 25px;
    height: 25px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.station-info h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 10px;
}

.station-info p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.station-status {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #3b4d6b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

.status-light {
    width: 8px;
    height: 8px;
    background-color: #00ffaa;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px #00ffaa;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* PRODUKTAUFBAU & DIFFERENZIERUNG VIEW STYLES */
.content-columns-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.components-column,
.products-standards-column {
    background-color: #2a3d5b;
    border-radius: 8px;
    padding: 25px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 380px;
}

.column-header {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
}

.components-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.component-category-box {
    background-color: #3b4d6b;
    border-radius: 6px;
    padding: 12px 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    grid-column: span 1;
}

.component-item {
    background-color: #4c5f7c;
    border-radius: 6px;
    padding: 12px 15px;
    text-align: center;
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.component-item.highlight {
    background-color: #00bcd4;
    color: #0b1a38;
    font-weight: 600;
    transform: scale(1.02);
    box-shadow: 0 0 15px #00bcd4;
}

.product-flow-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.arrow-down-group {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 15px;
}

.arrow {
    font-size: 30px;
    color: #00bcd4;
    font-weight: 700;
}

.product-cards-row {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.product-final-card {
    background-color: #00bcd4;
    color: #0b1a38;
    border-radius: 8px;
    padding: 15px 25px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-basis: 48%;
    max-width: 200px;
}

.product-final-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.product-standard-section {
    margin-bottom: 20px;
}

.product-standard-item {
    background-color: #3b4d6b;
    border-radius: 6px;
    padding: 12px 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.standards-detail-box {
    background-color: #4c5f7c;
    border-radius: 6px;
    padding: 15px 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.1);
}

.standards-detail-box strong {
    color: #00bcd4;
}

.special-features-section {
    background-color: #2a3d5b;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-top: 30px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.special-features-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.special-features-item {
    background-color: #4c5f7c;
    border-radius: 6px;
    padding: 12px 20px;
    display: inline-block;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* QUALITY CHECK VIEW STYLES */
#quality-check-view .tab-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

#quality-check-view .tab-button {
    background-color: #3b4d6b;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease, color 0.3s ease;
    min-width: 120px;
}

#quality-check-view .tab-button:hover {
    background-color: #00bcd4;
    /* Azul vibrante al hover */
    color: #0b1a38;
    /* Texto oscuro al hover */
    transform: translateY(-2px);
}

#quality-check-view .tab-button.active {
    background-color: #00bcd4;
    /* Azul vibrante al activo */
    color: #0b1a38;
    /* Texto oscuro al activo */
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
}

.tab-content-container {
    background-color: #2a3d5b;
    border-radius: 8px;
    padding: 30px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    /* Añadido para centrar el botón de descarga */
    flex-direction: column;
    /* Añadido para centrar el botón de descarga */
    align-items: center;
    /* Añadido para centrar el botón de descarga */
}

.tab-content.hidden {
    display: none;
}

.qualitaets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}

.qualitaets-card {
    background-color: #4c5f7c;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qualitaets-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.qualitaets-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00bcd4;
    border-radius: 50%;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.qualitaets-icon svg {
    width: 60%;
    height: 60%;
    /* stroke y fill ahora definidos inline en el SVG para máxima prioridad */
}

.qualitaets-card h4 {
    font-size: 19px;
    font-weight: 600;
    color: #fff;
    margin-top: 0;
    margin-bottom: 10px;
}

.qualitaets-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Common list styles for tab content */
.section-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    text-align: left;
}

.quality-list {
    list-style: none;
    /* Eliminar viñetas predeterminadas */
    padding: 0;
    margin: 0;
    width: 100%;
    /* Asegura que la lista ocupe todo el ancho disponible */
}

.quality-list li {
    background-color: #4c5f7c;
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.quality-list li strong {
    color: #00bcd4;
    font-weight: 600;
}

.quality-list.numbered {
    counter-reset: custom-counter;
}

.quality-list.numbered li {
    position: relative;
    padding-left: 35px;
    /* Espacio para el número */
}

.quality-list.numbered li::before {
    counter-increment: custom-counter;
    content: counter(custom-counter) ".";
    position: absolute;
    left: 10px;
    top: 15px;
    /* Alineación vertical */
    font-weight: 700;
    color: #00bcd4;
    font-size: 16px;
}

/* Download Button styles */
.download-button {
    background-color: #00bcd4;
    /* Azul vibrante */
    color: #0b1a38;
    /* Texto oscuro */
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    margin-top: 30px;
    /* Espacio superior */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
    display: inline-flex;
    /* Para que el padding se aplique correctamente */
    align-items: center;
    justify-content: center;
}

.download-button:hover {
    background-color: #fff;
    /* Blanco al hover */
    color: #0b1a38;
    /* Texto oscuro al hover */
    transform: translateY(-2px);
}


/* EINBLICKE: DER QUALITY BLOG VIEW STYLES */
.blog-options-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    /* Reduced gap to bring items closer */
    width: 100%;
}

.blog-option-card {
    background-color: #2a3d5b;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    width: 280px;
    /* Fixed width ensure uniform look and tight packing */
    flex-grow: 0;
    /* Do not grow, keep the tight size */
}

.blog-option-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.3);
    background-color: #00bcd4;
    /* Azul vibrante al hover */
    color: #0b1a38;
    /* Texto oscuro al hover */
}

.blog-option-card:hover .blog-icon-placeholder svg path,
.blog-option-card:hover .blog-icon-placeholder svg circle {
    stroke: #0b1a38;
    /* Icono oscuro al hover */
}

.blog-icon-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00bcd4;
    border-radius: 50%;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.blog-icon-placeholder svg {
    width: 65%;
    height: 65%;
    /* stroke y fill ahora definidos inline en el SVG para máxima prioridad */
}


.blog-option-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: inherit;
}

.blog-option-card p {
    font-size: 14px;
    color: inherit;
    line-height: 1.5;
}


/* DETAIL VIEW COMMON TEXT STYLES */
.section-text-intro,
.section-text-outro {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.6;
}

.section-text-outro {
    margin-top: 20px;
}


/* COMPARISON GAUGES (Standard/Marburg - Semicircles with needles) */
.comparison-section {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
    /* FIX: Align top so gauges are level */
}

.comparison-item {
    text-align: center;
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comparison-item p {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 600;
}

.comparison-gauge-container {
    width: 140px;
    height: 70px;
    overflow: hidden;
    position: relative;
    border-radius: 70px 70px 0 0;
    border: 2px solid;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Colores específicos para Standard y Marburg */
.standard-gauge {
    background-color: #D3D3D3;
    border-color: #A9A9A9;
}

.marburg-gauge {
    background-color: #00bcd4;
    border-color: #00a4bb;
}

.gauge-needle {
    width: 2px;
    height: 60px;
    background-color: #0b1a38;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-90deg);
    /* Estado inicial: apuntando completamente a la izquierda */
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    z-index: 2;
}

.marburg-gauge .gauge-needle {
    background-color: #fff;
}

/* Posiciones finales animadas para las agujas */
.standard-gauge .gauge-needle.active-needle {
    transform: translateX(-50%) rotate(-60deg);
    /* Menos calidad (ej: 30 grados desde la izquierda) */
}

.marburg-gauge .gauge-needle.active-needle {
    transform: translateX(-50%) rotate(80deg);
    /* Más calidad (ej: 170 grados desde la izquierda) */
}


/* HEISSPRÄGETAPETE DETAIL VIEW STYLES */
.steckbrief-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    background-color: #2a3d5b;
    border-radius: 8px;
    padding: 25px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.steckbrief-list dt {
    font-weight: 600;
    color: #00bcd4;
    text-align: right;
    padding-right: 10px;
    grid-column: 1;
}

.steckbrief-list dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    grid-column: 2;
}


/* LICHTECHTHEIT & WASCHBESTÄNDIGKEIT DETAIL VIEWS (reusing gauge styles) */
.lightfastness-gauge-group,
.wash-resistance-icons .lightfastness-gauge-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.lightfastness-gauge-group .gauge-label-std,
.lightfastness-gauge-group .gauge-label-mt {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.lightfastness-gauge-group .arrow-up-down {
    font-size: 25px;
    color: #00bcd4;
    margin: 0 5px;
}

.lightfastness-icons,
.wash-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.light-icon-item,
.light-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #2a3d5b;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 120px;
    min-height: 120px;
    justify-content: center;
}

.wash-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
    /* WHITE BACKGROUND as requested */
    border-radius: 8px;
    padding: 15px 5px;
    /* Reduced side padding, increased vertical is fine */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 145px;
    /* Widened from 120px to fit long text */
    min-height: 120px;
    justify-content: center;
    border: 1px solid #e0e0e0;
    /* Subtle border for white on white */
}

.light-icon-item svg,
.wash-icon-item svg,
.wash-icon-item img {
    width: 40px;
    height: 40px;
    display: block;
    margin-bottom: 10px;
}

.light-icon-item span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

.wash-icon-item span {
    font-size: 13px;
    color: #0b1a38;
    /* BLUE TEXT as requested */
    line-height: 1.3;
    font-weight: 600;
}

.light-icon-item.active {
    background-color: #00bcd4;
}

.wash-icon-item.active {
    background-color: #ffffff;
    /* Keep white to blend image bg */
    border: 2px solid #00bcd4;
    /* Active indicator */
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.4);
    transform: translateY(-3px);
}

.light-icon-item.active svg {
    stroke: #0b1a38;
}

.light-icon-item.active span {
    color: #0b1a38;
    font-weight: 600;
}

.wash-icon-item.active span {
    color: #0b1a38;
    font-weight: 800;
}

.ral-gutezeichen-placeholder {
    text-align: center;
    margin-top: 30px;
}

.ral-gutezeichen-placeholder img {
    max-width: 150px;
    height: auto;
}


/* V-SCHNITT TECHNOLOGIE DETAIL VIEW STYLES */
.v-schnitt-diagram-placeholder {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.v-schnitt-box {
    width: 100px;
    height: 50px;
    background-color: #3b4d6b;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.v-schnitt-box.std {
    /* box-shadow: 0 0 0 rgba(0,0,0,0); /* Sin efecto especial */
}

.v-schnitt-box.mt-overlap {
    position: relative;
    background-color: #00bcd4;
    width: 120px;
    /* Un poco más ancho para el solapamiento visual */
    left: -10px;
    /* Desplazar para solapamiento */
    z-index: 1;
    /* Para que se vea por encima del anterior */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Opcional: una flecha que indique el corte en V */
.v-schnitt-box.mt-overlap::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    /* Ajusta la posición de la "V" */
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 50px solid #00bcd4;
    /* Color de la "V" */
    transform: rotate(180deg);
    transform-origin: top center;
    display: none;
    /* Hide for now, can be activated for visual effect */
}


/* Quiz styles */
.quiz-container {
    background-color: #3b4d6b;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.quiz-container h2 {
    color: #00bcd4;
    margin-bottom: 15px;
    font-size: 24px;
}

.quiz-container p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.start-quiz-button,
.submit-quiz-button,
.retry-quiz-button {
    background-color: #00bcd4;
    color: #0b1a38;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease, color 0.3s ease;
    margin-top: 20px;
}

.start-quiz-button:hover,
.submit-quiz-button:hover,
.retry-quiz-button:hover {
    background-color: #fff;
    transform: translateY(-3px);
}

.quiz-questions {
    text-align: left;
    margin-top: 30px;
}

.quiz-question-item {
    background-color: #4c5f7c;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.quiz-question-item p {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 15px;
}

.quiz-options label {
    display: block;
    background-color: #3b4d6b;
    padding: 12px 15px;
    margin-bottom: 10px;


    /* === PASO 3: ESTILOS DE LA ESTACIÓN DE ANÁLISIS ESTRUCTURAL === */

    body #product-differentiation-view h1 {
        font-size: 32px;
    }

    body .analysis-lab-container {
        display: flex;
        gap: 30px;
        margin-top: 40px;
        background-color: #0b1a38;
        padding: 30px;
        border-radius: 12px;
        border: 1px solid #3b4d6b;
        min-height: 400px;
    }

    body .analysis-screen {
        flex: 3;
        background-color: #000;
        border-radius: 8px;
        position: relative;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        border: 2px solid #2a3d5b;
        box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    }

    body .screen-prompt {
        font-size: 20px;
        color: rgba(0, 188, 212, 0.4);
        letter-spacing: 2px;
        text-transform: uppercase;
        z-index: 1;
        transition: opacity 0.5s ease;
    }

    body .analysis-screen.active .screen-prompt {
        opacity: 0;
    }

    body .scan-line {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: #00bcd4;
        box-shadow: 0 0 15px #00bcd4;
        z-index: 5;
        animation: scan 4s linear infinite;
        opacity: 0.5;
    }

    @keyframes scan {
        0% {
            transform: translateY(-10px);
        }

        50% {
            transform: translateY(100%);
        }

        100% {
            transform: translateY(-10px);
        }
    }

    body .component-layer {
        position: absolute;
        width: 250px;
        height: 150px;
        border: 1px solid;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px;
        font-weight: 600;
        border-radius: 8px;
        opacity: 0;
        transform: scale(0.8) perspective(500px) rotateX(45deg);
        transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.8s ease;
        z-index: 2;
    }

    body .layer-base {
        background-color: rgba(200, 200, 200, 0.2);
        border-color: #ffffff;
        color: #ffffff;
    }

    body .layer-coating {
        background-color: rgba(0, 188, 212, 0.3);
        border-color: #00bcd4;
        color: #00bcd4;
    }

    /* ESTADOS ACTIVOS DE LAS CAPAS (LA MAGIA DE LA ANIMACIÓN) */
    body #layer-tapetenpapier.active,
    body #layer-tapetenvlies.active {
        opacity: 1;
        transform: translateY(60px) scale(1) perspective(500px) rotateX(0deg);
    }

    body #layer-wasserbasis.active,
    body #layer-pvc-basis.active {
        opacity: 1;
        transform: translateY(-60px) scale(1) perspective(500px) rotateX(0deg);
    }


    body .control-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    body .control-panel h3 {
        color: #fff;
        border-bottom: 1px solid #3b4d6b;
        padding-bottom: 10px;
    }

    body .product-button {
        background-color: #3b4d6b;
        color: #fff;
        text-align: center;
        padding: 15px;
        border-radius: 6px;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.1s ease;
    }

    body .product-button:hover {
        background-color: #00bcd4;
        color: #0b1a38;
        transform: scale(1.02);
    }

    body #reset-analysis {
        background-color: #5a2d38;
    }

    body #reset-analysis:hover {
        background-color: #d81b60;
    }


    /* === FIX: ESTILOS PARA LA VISTA "DER QUALITÄTS-CHECK" === */

    body #quality-check-view .qualitaets-grid {
        display: grid;
        /* Crea columnas automáticas de mínimo 300px, adaptándose al espacio */
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        /* Espacio uniforme entre tarjetas */
        width: 100%;
        margin-top: 30px;
    }

    body #quality-check-view .qualitaets-card {
        background-color: #1a2b4b;
        /* Fondo más oscuro y coherente */
        border: 1px solid #3b4d6b;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Alinea el contenido arriba */
        padding: 25px;
        border-radius: 8px;
        transition: transform 0.3s ease, border-color 0.3s ease;
    }

    body #quality-check-view .qualitaets-card:hover {
        transform: translateY(-5px);
        border-color: #00bcd4;
    }

    body #quality-check-view .qualitaets-card h4 {
        text-align: left;
        /* Título de la tarjeta a la izquierda */
        margin-top: 15px;
    }

    /* === FIX: ESTILOS PARA LA VISTA "EINBLICKE: DER QUALITY-BLOG" === */

    body #quality-blog-view .blog-options-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        /* Espacio uniforme */
        width: 100%;
        margin-top: 30px;
    }

    body #quality-blog-view .blog-option-card {
        background-color: #1a2b4b;
        border: 1px solid #3b4d6b;
        text-align: center;
        /* Centramos el contenido de estas tarjetas */
        transition: transform 0.3s ease, border-color 0.3s ease;
        flex: 1 1 300px;
        max-width: 350px;
    }

    body #quality-blog-view .blog-option-card:hover {
        transform: translateY(-5px);
        border-color: #00bcd4;
        background-color: #2a3d5b;
        /* Un poco más claro al pasar el ratón */
    }

    body #quality-blog-view .blog-option-card h3 {
        color: #00bcd4;
        /* Títulos en el color destacado */
    }

    /* === FIX: ESTILOS PARA LAS VISTAS DE DETALLE DEL BLOG === */

    body .section-text-intro,
    body .section-text-outro {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        margin-bottom: 30px;
        font-size: 16px;
    }

    body .section-text-outro {
        margin-top: 30px;
        border-top: 1px solid #3b4d6b;
        padding-top: 30px;
    }

    body .steckbrief-list {
        display: grid;
        grid-template-columns: 150px 1fr;
        /* Columna fija para el término, el resto para la descripción */
        gap: 15px 20px;
        background-color: #1a2b4b;
        border: 1px solid #3b4d6b;
        border-radius: 8px;
        padding: 30px;
        max-width: 900px;
        margin: 20px auto;
        /* Centra la lista */
    }

    body .steckbrief-list dt {
        font-weight: 600;
        color: #00bcd4;
        /* Término en color destacado */
        text-align: right;
    }

    body .steckbrief-list dd {
        margin: 0;
        text-align: left;
    }

    /* === PASO 2.2: ESTILOS PARA MEDIDORES INTERACTIVOS === */

    body .comparison-section {
        display: flex;
        justify-content: center;
        gap: 30px;
        /* Un poco más de espacio */
        margin: 20px auto;
        /* Center margin */
        flex-wrap: wrap;
        align-items: flex-end;
        max-width: 900px;
        /* Limit width to align with other content */
    }

    body .comparison-item {
        text-align: center;
        width: 150px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body .comparison-item p {
        margin-top: 15px;
        font-size: 18px;
        font-weight: 600;
        color: #fff;
    }

    body .comparison-gauge-container {
        width: 150px;
        height: 75px;
        /* Mitad del ancho para un semicírculo perfecto */
        position: relative;
        border-radius: 150px 150px 0 0;
        border: 2px solid #3b4d6b;
        box-sizing: border-box;
        overflow: hidden;
        /* Oculta la parte inferior del círculo */
    }

    /* Colores específicos */
    body .standard-gauge {
        background-color: rgba(211, 211, 211, 0.2);
    }

    body .marburg-gauge {
        background-color: rgba(0, 188, 212, 0.3);
        border-color: #00bcd4;
    }

    body .gauge-needle {
        width: 3px;
        height: 65px;
        background-color: #ffffff;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform-origin: bottom center;
        /* Rota desde la base */
        transform: translateX(-50%) rotate(-90deg);
        /* Estado inicial: apuntando a la izquierda */
        transition: transform 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        /* Transición con "rebote" */
        border-radius: 3px;
    }

    body .standard-gauge .gauge-needle {
        background-color: #a9a9a9;
    }

    /* ESTADOS FINALES DE LA ANIMACIÓN */
    body .standard-gauge .gauge-needle.active-needle {
        transform: translateX(-50%) rotate(-65deg);
        /* Aguja débil, no llega lejos */
    }

    body .marburg-gauge .gauge-needle.active-needle {
        transform: translateX(-50%) rotate(70deg);
        /* Aguja potente, llega muy lejos */
    }

    /* Textos de descripción debajo de los medidores */
    body .description-texts {
        max-width: 700px;
        margin: 30px auto 0 auto;
        text-align: center;
        font-style: italic;
        color: rgba(255, 255, 255, 0.7);
    }

    body .description-texts p {
        text-align: center;
        margin-bottom: 15px;
    }

    /* === New Video Demo Styles === */
    /* === HERO BACKGROUND VIDEO LAYOUT === */
    body #marburg-tool-app .video-hero-section {
        position: relative;
        width: 100%;
        max-width: 1000px;
        /* Limit max width for professional look */
        margin: 20px auto;
        /* Center the block itself */
        height: 50vh;
        /* Fixed height relative to viewport */
        min-height: 400px;
        background-color: #000;
        overflow: hidden;
        border-radius: 12px;
        margin-top: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        /* Center content vertically */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    body #marburg-tool-app .hero-video-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    body #marburg-tool-app .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Crucial: Covers the area without distortion */
        opacity: 0.8;
        /* Slight dimming */
    }

    body #marburg-tool-app .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(11, 26, 56, 1) 10%, rgba(11, 26, 56, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
        z-index: 2;
    }

    /* Content Overlay */
    body #marburg-tool-app .hero-content {
        position: relative;
        z-index: 3;
        width: 100%;
        max-width: 900px;
        padding: 20px;
        text-align: center;
        color: #fff;
    }

    body #marburg-tool-app .hero-content h3 {
        font-size: 2.2em;
        margin-bottom: 10px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        color: #fff;
        /* Ensure white text */
    }

    body #marburg-tool-app .hero-content p.video-intro-text {
        font-size: 1.2em;
        margin-bottom: 30px;
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    /* Hero Control Tabs */
    body #marburg-tool-app .hero-controls-row {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    body #marburg-tool-app .hero-control-btn {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 12px 25px;
        border-radius: 30px;
        /* Pill shape */
        color: #fff;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 140px;
    }

    body #marburg-tool-app .hero-control-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    body #marburg-tool-app .hero-control-btn.active {
        background: #00bcd4;
        border-color: #00bcd4;
        color: #0b1a38;
        font-weight: bold;
        box-shadow: 0 0 20px rgba(0, 188, 212, 0.4);
    }

    body #marburg-tool-app .hero-control-btn .btn-label {
        font-weight: 800;
        text-transform: uppercase;
        font-size: 0.9em;
    }

    body #marburg-tool-app .hero-control-btn .btn-sub {
        font-size: 0.9em;
        opacity: 0.8;
    }

    body #marburg-tool-app .hero-control-btn.active .btn-sub {
        opacity: 1;
        /* Make sure subtext is visible on active */
    }

    /* === DASHBOARD LAYOUT STYLES === */
    body #marburg-tool-app .video-dashboard-container {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        background-color: #2a3d5b;
        border-radius: 12px;
        padding: 30px;
        margin-top: 40px;
        align-items: stretch;
        /* Aligns items to fill height */
    }

    /* Left Side: Controls */
    body #marburg-tool-app .dashboard-controls-panel {
        flex: 1;
        min-width: 250px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    body #marburg-tool-app .dashboard-controls-panel h3 {
        text-align: left;
        margin-top: 0;
        color: #00bcd4;
    }

    body #marburg-tool-app .dashboard-controls-panel .video-intro-text {
        text-align: left;
        margin-bottom: 25px;
    }

    body #marburg-tool-app .video-controls-vertical {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Right Side: Video */
    body #marburg-tool-app .dashboard-video-panel {
        flex: 1.5;
        /* Takes up more space */
        min-width: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* FIXED ASPECT RATIO FRAMES */
    body #marburg-tool-app .video-player-frame {
        width: 100%;
        max-width: 500px;
        /* Limit absolute max size */
        aspect-ratio: 4 / 3;
        /* FIXED ASPECT RATIO - Crucial! */
        background-color: #000;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border: 2px solid #3b4d6b;
        position: relative;
    }

    body #marburg-tool-app #opacity-video-player {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        /* ensures video is never cropped */
        display: block;
    }


    /* Updated Button Styles for Vertical List */
    body #marburg-tool-app .video-control-btn {
        flex-direction: row;
        /* Horizontal layout */
        justify-content: space-between;
        align-items: center;
        text-align: left;
        width: 100%;
        padding: 15px 20px;
        min-width: unset;
        /* Remove old min-width */
    }

    body #marburg-tool-app .video-control-btn .btn-content {
        display: flex;
        flex-direction: column;
    }

    body #marburg-tool-app .video-control-btn .btn-icon {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.3);
        transition: all 0.3s;
    }

    body #marburg-tool-app .video-control-btn.active .btn-icon {
        color: #0b1a38;
        transform: scale(1.2);
    }

    /* === Hero Video Controls === */
    body #marburg-tool-app .hero-controls-row {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
        flex-wrap: wrap;
        z-index: 10;
        position: relative;
    }

    body #marburg-tool-app .hero-btn-v2 {
        appearance: none;
        background: rgba(0, 0, 0, 0.4);
        /* Darker semi-transparent background */
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        /* Modern soft rounded corners */
        padding: 14px 24px;
        min-width: 160px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        display: flex;
        flex-direction: column;
        /* Stack text vertical */
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        text-align: center;
    }

    body #marburg-tool-app .hero-btn-v2:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }

    body #marburg-tool-app .hero-btn-v2.active {
        background: #00bcd4;
        /* Brand Cyan */
        border-color: #00bcd4;
        box-shadow: 0 0 25px rgba(0, 188, 212, 0.5);
        transform: scale(1.05);
    }

    body #marburg-tool-app .hero-btn-v2 .btn-label {
        display: block;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 4px;
        transition: color 0.3s;
    }

    body #marburg-tool-app .hero-btn-v2.active .btn-label {
        color: #0b1a38;
        /* Dark text on Cyan */
    }

    body #marburg-tool-app .hero-btn-v2 .btn-sub {
        display: block;
        color: rgba(255, 255, 255, 0.6);
        font-size: 13px;
        font-weight: 400;
    }

    body #marburg-tool-app .hero-btn-v2.active .btn-sub {
        color: rgba(11, 26, 56, 0.8);
        /* Dark text on Cyan */
        font-weight: 600;
    }

    /* === Hero Video Controls - Overrides === */
    body #marburg-tool-app .hero-controls-row {
        display: flex !important;
        flex-direction: row !important;
        /* Horizontal layout */
        justify-content: center !important;
        gap: 20px !important;
        margin-top: 20px !important;
        flex-wrap: wrap !important;
        z-index: 10;
        position: relative;
        width: auto !important;
        width: auto !important;
    }

    body #marburg-tool-app .hero-btn-v2 {
        appearance: none !important;
        background: rgba(0, 0, 0, 0.4) !important;
        /* Background Style */
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 12px !important;
        padding: 14px 24px !important;
        min-width: 160px !important;
        width: auto !important;
        /* Prevent full width */
        cursor: pointer !important;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        text-align: center !important;
        margin: 5px !important;
        /* Add explicit margin */

        /* Reset Conflicts */
        color: #fff !important;
        /* Force white text */
        text-decoration: none !important;
        background-image: none !important;
        line-height: normal !important;
    }

    body #marburg-tool-app .hero-btn-v2:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
        color: #fff !important;
    }

    body #marburg-tool-app .hero-btn-v2.active {
        background: #00bcd4 !important;
        /* Brand Cyan */
        border-color: #00bcd4 !important;
        box-shadow: 0 0 25px rgba(0, 188, 212, 0.5) !important;
        transform: scale(1.05);
        color: #0b1a38 !important;
        /* Dark text on Cyan */
    }

    body #marburg-tool-app .hero-btn-v2 .btn-label {
        display: block !important;
        color: inherit !important;
        /* Inherit from parent */
        font-size: 14px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        margin-bottom: 4px !important;
        line-height: 1.2 !important;
        border: none !important;
    }

    body #marburg-tool-app .hero-btn-v2 .btn-sub {
        display: block !important;
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        border: none !important;
    }

    body #marburg-tool-app .hero-btn-v2.active .btn-sub {
        color: rgba(11, 26, 56, 0.8) !important;
        font-weight: 600 !important;
    }

    /* ========================================= */
    /* === CRITICAL FIXES FOR WORDPRESS DEPLOY === */
    /* ========================================= */

    /* 1. Language Selector Visibility */
    #marburg-tool-app .lang-selector-floating {
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 99999 !important;
        /* Force on top of everything */
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        background: rgba(11, 26, 56, 0.8);
        padding: 8px 15px;
        border-radius: 25px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        display: flex !important;
        /* Force display */
        gap: 10px;
    }

    #marburg-tool-app .lang-btn {
        cursor: pointer;
        color: rgba(255, 255, 255, 0.6);
        transition: color 0.3s ease;
        text-transform: uppercase;
        font-weight: 500;
    }

    #marburg-tool-app .lang-btn:hover,
    #marburg-tool-app .lang-btn.active {
        color: #fff;
        font-weight: 700;
    }

    /* 2. Controls Row (Containers for Buttons) */
    #marburg-tool-app .hero-controls-row {
        display: flex !important;
        gap: 20px !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        margin-top: 30px !important;
        width: 100% !important;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        /* Ensure it has dimension so buttons render */
        min-height: 50px;
    }

    /* 3. Hero Buttons (Fixing Fuchsia issue) */
    /* Scoping strictly to #marburg-tool-app to override theme defaults */
    #marburg-tool-app .mqe-custom-btn {
        all: unset;
        /* Reset everything first */
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;

        appearance: none !important;
        background-color: #0b1a38 !important;
        /* Dark Blue Default */
        background-image: none !important;
        /* No gradients */

        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 12px !important;
        padding: 15px 25px !important;
        min-width: 140px !important;

        font-family: 'Montserrat', sans-serif !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;

        margin: 5px !important;
    }

    #marburg-tool-app .mqe-custom-btn:hover {
        background-color: #1a2b4b !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        transform: translateY(-3px);
    }

    #marburg-tool-app .mqe-custom-btn.active {
        background-color: #00bcd4 !important;
        /* Cyan Active */
        color: #0b1a38 !important;
        /* Dark Text */
        border-color: #00bcd4 !important;
        box-shadow: 0 0 20px rgba(0, 188, 212, 0.4) !important;
        transform: scale(1.05);
    }

    /* Button Internal Text */
    #marburg-tool-app .mqe-custom-btn .btn-label {
        display: block !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #fff !important;
        margin-bottom: 3px !important;
    }

    #marburg-tool-app .mqe-custom-btn.active .btn-label {
        color: #0b1a38 !important;
    }

    #marburg-tool-app .mqe-custom-btn .btn-sub {
        display: block !important;
        font-size: 12px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        font-weight: 400 !important;
    }

    #marburg-tool-app .mqe-custom-btn.active .btn-sub {
        color: rgba(11, 26, 56, 0.8) !important;
        font-weight: 600 !important;
    }

    /* 4. Fix Height/overflow issues */
    #marburg-tool-app .app-view-inner-content {
        /* Ensure content can grow */
        height: auto !important;
        min-height: unset !important;
        padding-bottom: 50px !important;
    }