/* =========================================================
   floorXfactory – Haupt-Stylesheet
   Version 3.1
   ========================================================= */

/* CSS Variablen & Grunddesign */
:root {
    --bg-color: #0b0f19;
    --card-bg: #111827;
    --card-border: #1f2937;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --accent-glow: rgba(6, 182, 212, 0.15);
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hilfsklassen */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: var(--bg-color);
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.navbar nav {
    display: flex;
    gap: 2rem;
}

.navbar nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar nav a:hover {
    color: var(--accent);
}

/* Sprachwechsler */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 4px 8px;
    border-radius: 6px;
}

.language-switcher a, .languages a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.language-switcher a[aria-current="page"],
.languages a[aria-current="page"],
.language-switcher a:hover,
.languages a:hover {
    background: var(--accent);
    color: var(--bg-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================================
   HERO SEKTION
   ========================================================= */
.hero {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content h1 span {
    display: block;
}

.hero-content h1 span:last-child {
    color: var(--accent);
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-trust {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border);
    padding-top: 1.5rem;
}

/* Dashboard Mockup in Hero */
.dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-3px);
}

.card-large {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.dashboard-label {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dashboard-header h3 {
    font-size: 1.1rem;
    margin-top: 4px;
}

.status-indicator {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

.gauge {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge svg {
    width: 100%;
    height: 100%;
}

.gauge span {
    position: absolute;
    font-weight: 700;
    font-size: 1.2rem;
}

.chart svg {
    width: 100%;
    height: 60px;
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================================
   SEKTIONEN & GRIDS (Allgemein)
   ========================================================= */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-label {
    display: block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.2s;
}

.feature:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.1);
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Branchen Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.tags span {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tags span:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* =========================================================
   LIZENZMODELLE
   ========================================================= */
.licensing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.license-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s;
}

.license-card:hover {
    transform: translateY(-5px);
}

.license-featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(17, 24, 39, 1) 0%, rgba(15, 23, 42, 1) 100%);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.1);
}

.license-type {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.license-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.license-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    min-height: 50px;
}

.license-card ul {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.license-card li {
    padding: 0.5rem 0;
    color: var(--text-main);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.license-card li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
}

.licensing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================================
   KONTAKT / CTA BEREICH
   ========================================================= */
.cta {
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(17, 24, 39, 0.6) 100%);
    text-align: center;
}

.contact-form-wrapper {
    max-width: 650px;
    margin: 3rem auto 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 3rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-honeypot {
    display: none;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.form-status {
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

/* Product CTA Box im Shopxboard Bereich */
.product-cta {
    margin-top: 4rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, var(--card-bg) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.product-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.product-cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--card-border);
    padding: 4rem 0 2rem;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.languages {
    display: flex;
    gap: 0.75rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--card-border);
    width: 100%;
    padding-top: 2rem;
}

/* =========================================================
   SCROLL REVEAL ANIMATIONEN
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVES DESIGN (Mobile)
   ========================================================= */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .navbar nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        border-bottom: 1px solid var(--card-border);
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    .navbar nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

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