:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --dark-bg: rgba(15, 23, 42, 0.8);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0f172a;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(2px);
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.nav-brand h1 {
    font-size: 24px;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--primary-color);
}

/* Floating Card */
.floating-card {
    padding: 30px;
    animation: float 6s ease-in-out infinite;
    position: relative;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.level-indicator {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.level {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--glass-bg);
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.level.active {
    opacity: 1;
    background: var(--gradient-primary);
}

.preview-text p {
    margin: 8px 0;
    color: var(--text-secondary);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Interpreter Section */
.interpreter-section {
    padding: 100px 0;
}

.interpreter-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.input-section {
    padding: 40px;
}

.input-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.input-header p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* START: Added Style for Select Options */
.form-group select option {
    background: var(--dark-bg);
    color: var(--text-primary);
}
/* END: Added Style for Select Options */

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}




.interpret-btn {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    margin-top: 20px;
}

.interpret-btn .btn-loading {
    display: none;
}

.interpret-btn.loading .btn-text {
    display: none;
}

.interpret-btn.loading .btn-loading {
    display: inline;
}

/* Results Section */
.results-section {
    padding: 40px;
}

.results-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.analysis-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.results-content {
    margin-bottom: 30px;
}

.analysis-level {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

.analysis-level h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.analysis-content {
    line-height: 1.8;
    color: var(--text-secondary);
}

.analysis-content strong {
    color: var(--text-primary);
}

.analysis-content p {
    margin-bottom: 16px;
}

.results-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.methodology-list {
    list-style: none;
    margin-top: 30px;
}

.methodology-list li {
    padding: 12px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.methodology-diagram {
    padding: 40px;
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.center-node {
    position: absolute;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.method-node {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    top: 50%;
    left: 50%;
    transform-origin: center;
    animation: counter-rotate 20s linear infinite;
    z-index: 3;
}

.method-node:nth-child(1) {
    transform: translate(-50%, -50%) rotate(0deg) translateY(-125px);
    animation-delay: 0s;
    z-index: 6;
}
.method-node:nth-child(2) {
    transform: translate(-50%, -50%) rotate(60deg) translateY(-125px);
    animation-delay: -3.33s;
    z-index: 5;
}
.method-node:nth-child(3) {
    transform: translate(-50%, -50%) rotate(120deg) translateY(-125px);
    animation-delay: -6.66s;
    z-index: 4;
}
.method-node:nth-child(4) {
    transform: translate(-50%, -50%) rotate(180deg) translateY(-125px);
    animation-delay: -10s;
    z-index: 3;
}
.method-node:nth-child(5) {
    transform: translate(-50%, -50%) rotate(240deg) translateY(-125px);
    animation-delay: -13.33s;
    z-index: 2;
}
.method-node:nth-child(6) {
    transform: translate(-50%, -50%) rotate(300deg) translateY(-125px);
    animation-delay: -16.66s;
    z-index: 1;
}

@keyframes counter-rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateY(-125px) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateY(-125px) rotate(-360deg);
    }
}

/* Responsive fixes */
@media (max-width: 768px) {
    .methodology-diagram {
        height: 250px;
    }

    .outer-nodes {
        width: 200px;
        height: 200px;
    }

    .center-node {
        width: 60px;
        height: 60px;
        font-size: 12px;
    }

    .method-node {
        width: 45px;
        height: 45px;
        font-size: 10px;
    }

    .method-node:nth-child(1) {
        transform: translate(-50%, -50%) rotate(0deg) translateY(-100px);
    }
    .method-node:nth-child(2) {
        transform: translate(-50%, -50%) rotate(60deg) translateY(-100px);
    }
    .method-node:nth-child(3) {
        transform: translate(-50%, -50%) rotate(120deg) translateY(-100px);
    }
    .method-node:nth-child(4) {
        transform: translate(-50%, -50%) rotate(180deg) translateY(-100px);
    }
    .method-node:nth-child(5) {
        transform: translate(-50%, -50%) rotate(240deg) translateY(-100px);
    }
    .method-node:nth-child(6) {
        transform: translate(-50%, -50%) rotate(300deg) translateY(-100px);
    }

    @keyframes counter-rotate {
        0% {
            transform: translate(-50%, -50%) rotate(0deg) translateY(-100px) rotate(0deg);
        }
        100% {
            transform: translate(-50%, -50%) rotate(360deg) translateY(-100px) rotate(-360deg);
        }
    }
}

/* Footer */
.footer {
    margin: 20px;
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    padding: 40px;
}

.loading-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.dream-bubble {
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 5px;
    animation: bubble 1.4s ease-in-out infinite both;
}

.dream-bubble:nth-child(1) { animation-delay: -0.32s; }
.dream-bubble:nth-child(2) { animation-delay: -0.16s; }

@keyframes bubble {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .results-actions {
        flex-direction: column;
    }

    .methodology-diagram {
        height: 250px;
    }

    .outer-nodes {
        width: 200px;
        height: 200px;
    }

}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Ergänze dies zu deiner bestehenden styles.css */

/* Video Demo Popup */
.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.video-popup {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--glass-border);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.video-popup video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    max-height: 70vh;
}

.video-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.video-popup-title {
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Share popup styles */
.share-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90vw;
    z-index: 10001;
    display: none;
    animation: popupSlideIn 0.3s ease-out;
}

.share-popup h3 {
    margin-bottom: 20px;
    text-align: center;
}

.share-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
}

.share-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 10000;
}

/* Responsive video popup */
@media (max-width: 768px) {
    .video-popup {
        max-width: 95vw;
        padding: 15px;
    }

    .video-popup video {
        max-height: 60vh;
    }

    .share-popup {
        padding: 20px;
        max-width: 95vw;
    }

    .share-content {
        font-size: 12px;
        max-height: 200px;
    }
}