html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* Login Button */
.login-button {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    cursor: not-allowed;
    z-index: 3;
    position: relative;
}

/* Tooltip */
.login-tooltip {
    position: relative;
    display: inline-block;
}

.login-tooltip .tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 3;
    top: 125%;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8em;
    line-height: 1.4;
}

.login-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 20px;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
}

.login-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Gemeinsamer Container für beide Switcher */
.header-controls {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

/* Theme Switcher im Container */
#theme-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 15px;
}

#theme-switcher button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-switcher button:hover {
    color: #00ffff;
}

#theme-switcher button.active {
    color: #00ffff;
}

/* Language Switcher im Container */
#lang-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

#lang-switcher button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: color 0.3s;
}

#lang-switcher button:hover {
    color: #00ffff;
}

#lang-switcher button.active {
    color: #00ffff;
    font-weight: bold;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 100%;
    box-sizing: border-box;
}

h1 {
    font-size: 2.2em;
    margin: 0;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    padding: 0 10px;
}

h2 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #00ffff;
}

.text-box {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
    max-width: 100%;
    margin: 20px auto;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .text-box {
        max-width: 600px;
    }
    
    h1 {
        font-size: 3em;
    }
}

.text-box p {
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Roadmap styles */
.roadmap-item {
    margin-bottom: 30px;
    text-align: left;
    border-left: 3px solid #00ffff;
    padding-left: 20px;
}

.roadmap-item:last-child {
    margin-bottom: 0;
}

.roadmap-item h2 {
    margin-top: 0;
}

.roadmap-item ul {
    padding-left: 20px;
}

.roadmap-item li {
    margin-bottom: 10px;
}

/* About page styles */
#values-list {
    text-align: left;
    padding-left: 20px;
}

#values-list li {
    margin-bottom: 15px;
}

/* CTA Buttons */
.cta-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    width: 100%;
    max-width: 320px;
}

@media (min-width: 768px) {
    .cta-container {
        flex-direction: row;
        max-width: 600px;
    }
}

.cta-button {
    background: rgba(0, 255, 255, 0.2);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #00ffff;
    flex: 1;
    text-align: center;
}

.cta-button:hover {
    background: rgba(0, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    bottom: 10px;
    font-size: 0.85em;
}

.nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    margin: 0 5px;
}

.nav a:hover {
    color: #00ffff;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Light Mode */
body.light-mode {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #333;
}

body.light-mode .text-box {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
}

body.light-mode h2 {
    color: #0066cc;
}

body.light-mode .nav a {
    color: #333;
}

body.light-mode .nav a:hover {
    color: #0066cc;
}

/* Floating Elements */
.floating-element {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.floating-element:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Form Styles */
.form-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.9em;
    color: #00ffff;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}

.submit-button {
    align-self: center;
    margin-top: 10px;
    cursor: pointer;
}

.form-success {
    padding: 15px;
    text-align: center;
    color: #00ffff;
}

.hidden {
    display: none;
}

/* FAQ Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #00ffff;
}

.faq-toggle {
    color: #00ffff;
    font-size: 1.5em;
    font-weight: bold;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 15px 15px;
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.badge span {
    font-size: 0.8em;
    color: #00ffff;
}

/* Tech Stack */
.tech-stack-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
    align-items: center;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.tech-icon {
    display: flex;
    justify-content: center;
    min-width: 80px;
}

.tech-icon img {
    border-radius: 8px;
    object-fit: contain;
    height: auto;
}

.tech-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-details h3 {
    margin: 0 0 10px 0;
    color: #00ffff;
    text-align: center;
}

.tech-details p {
    margin: 0;
    font-size: 0.9em;
    text-align: center;
}

/* API Docs */
.api-docs {
    margin: 30px 0;
}

.code-block {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.code-header {
    background: rgba(0, 0, 255, 0.2);
    padding: 10px 15px;
    font-weight: bold;
    color: #00ffff;
}

.code-block pre {
    margin: 0;
    padding: 15px;
    overflow-x: auto;
}

.code-block code {
    font-family: monospace;
    color: #e0e0e0;
}

/* Utility Classes */
.mt-medium {
    margin-top: 30px;
}

.mt-large {
    margin-top: 50px;
}

/* Mobile Responsiveness Improvements */
@media (min-width: 768px) {
    .tech-stack-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tech-item {
        width: calc(50% - 20px);
        max-width: 400px;
    }
    
    .security-badges {
        gap: 50px;
    }
}