/* ==========================================================================
   Arbeitszeit - Premium Adaptive Design System (Vanilla CSS)
   ========================================================================== */

:root {
    /* Color Tokens (Navy / Vibrant Teal / Glass Palette) */
    --bg-dark: #070b19;
    --bg-card: rgba(13, 27, 42, 0.7);
    --bg-card-hover: rgba(27, 38, 59, 0.85);
    --primary-navy: #0d1b2a;
    --accent-teal: #00b4d8;
    --accent-teal-hover: #48cae4;
    --accent-blue: #0077b6;
    --text-main: #f8f9fa;
    --text-muted: #a9becf;
    --border-glass: rgba(0, 180, 216, 0.2);
    --shadow-glow: 0 0 25px rgba(0, 180, 216, 0.25);
    
    /* Typography Tokens */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Responsive Layout Spacing */
    --container-max: 1200px;
    --space-sm: 0.75rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
}

/* Reset & Global Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Background Glowing Blobs */
.glow-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
    animation: floatBlob 15s infinite alternate ease-in-out;
}

.glow-blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    top: -100px;
    left: -100px;
}

.glow-blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-teal);
    bottom: 10%;
    right: -150px;
    animation-delay: -5s;
}

.glow-blob-3 {
    width: 350px;
    height: 350px;
    background: #480077;
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 80px) scale(1.15); }
}

/* Layout Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Glassmorphic Card Utilities */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 180, 216, 0.5);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* Typography Utilities */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.highlight-text {
    background: linear-gradient(135deg, #00b4d8, #48cae4, #90e0ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center { text-align: center; }

/* Buttons & CTAs */
.primary-btn, .secondary-btn, .play-store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.primary-btn:hover {
    background: linear-gradient(135deg, var(--accent-teal-hover), var(--accent-teal));
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.5);
    transform: translateY(-2px);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-teal);
    color: #fff;
}

.full-width { width: 100%; }

/* Play Store Badge CTA */
.play-store-btn {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.6rem 1.4rem;
    gap: 0.75rem;
    border-radius: 14px;
}

.play-store-btn:hover {
    background: #111;
    border-color: var(--accent-teal);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.4);
    transform: translateY(-2px);
}

.play-store-btn .play-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-teal);
}

.play-store-btn .btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.play-store-btn .btn-text .sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaa;
}

.play-store-btn .btn-text .main {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* ==========================================================================
   Navigation Bar (Adaptive Header)
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 11, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 180, 216, 0.3);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

.nav-link:hover { color: var(--accent-teal); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: rgba(0, 180, 216, 0.2);
    border-color: var(--accent-teal);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: var(--space-xl) 0 var(--space-lg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid rgba(0, 180, 216, 0.4);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-teal-hover);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

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

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 100%;
    max-width: 340px;
    border-radius: 40px;
    padding: 10px;
    background: linear-gradient(145deg, #1f2d40, #0a1118);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.device-screen {
    width: 100%;
    border-radius: 32px;
    display: block;
}

.floating-card {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: rgba(13, 27, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--accent-teal);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    animation: floatCard 6s infinite ease-in-out;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-icon { font-size: 1.8rem; }
.stat-info { display: flex; flex-direction: column; font-size: 0.85rem; }
.stat-info strong { color: #fff; font-size: 1rem; }
.stat-info span { color: var(--accent-teal); font-weight: 600; }

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    padding: var(--space-xl) 0;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
}

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

.feature-card {
    padding: 2.25rem;
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(0, 180, 216, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 180, 216, 0.3);
}

.feature-icon { font-size: 1.75rem; }
.feature-heading { font-size: 1.35rem; margin-bottom: 0.75rem; }
.feature-desc { color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   Interactive Arbeitszeitgesetz Calculator
   ========================================================================== */
.calculator-section {
    padding: var(--space-lg) 0 var(--space-xl);
}

.calculator-wrapper {
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    border-color: rgba(0, 180, 216, 0.3);
}

.calc-badge {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-teal);
    background: rgba(0, 180, 216, 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.calc-title { font-size: 2.2rem; margin-bottom: 0.5rem; }
.calc-subtitle { color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem; }

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.calc-inputs {
    background: rgba(7, 11, 25, 0.5);
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #0d1b2a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

.calc-results {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.result-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
}

.result-value {
    color: var(--accent-teal);
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

.compliance-status {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid;
    transition: all 0.3s ease;
}

.status-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    color: #d1ffe6;
}

.status-warning {
    background: rgba(255, 170, 0, 0.15);
    border-color: #ffaa00;
    color: #fff3d1;
}

.status-error {
    background: rgba(255, 77, 77, 0.15);
    border-color: #ff4d4d;
    color: #ffd1d1;
}

.status-icon { font-size: 1.75rem; }
.status-text h4 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.status-text p { font-size: 0.85rem; line-height: 1.4; opacity: 0.9; }

.arbzg-rules-box {
    background: rgba(7, 11, 25, 0.6);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

.arbzg-rules-box h5 {
    color: var(--text-main);
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.arbzg-rules-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--text-muted);
}

.arbzg-rules-box strong { color: var(--accent-teal); }

/* ==========================================================================
   Multi-Device Showcase Section
   ========================================================================== */
.showcase-section {
    padding: var(--space-xl) 0;
}

.device-tabs {
    display: inline-flex;
    background: rgba(13, 27, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem;
    border-radius: 50px;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 1.25rem;
    border-radius: 40px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover { color: #fff; }

.tab-btn.active {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.gallery-container {
    margin-top: 3rem;
}

.gallery-grid {
    display: none;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

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

.gallery-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.gallery-item:hover { transform: translateY(-6px); }

.phone-mockup img {
    width: 100%;
    max-width: 280px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tablet-mockup img {
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tablet-landscape-mockup img {
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-caption {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    padding: var(--space-xl) 0;
}

.accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s;
}

.accordion-header:hover { color: var(--accent-teal); }

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--accent-teal);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    padding-bottom: 1.5rem;
}

.accordion-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Download Banner
   ========================================================================== */
.download-section {
    padding: var(--space-lg) 0 var(--space-xl);
}

.download-banner {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.9), rgba(0, 119, 182, 0.3));
    border-color: var(--accent-teal);
    box-shadow: 0 0 50px rgba(0, 180, 216, 0.2);
}

.download-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.download-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #040711;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-desc {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 350px;
}

.footer-links h4, .footer-legal h4 {
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: 1.05rem;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a, .footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    color: #66788a;
    font-size: 0.85rem;
}

/* ==========================================================================
   Adaptive Device Responsiveness (Media Queries)
   ========================================================================== */

/* Tablets & Medium Screens (< 992px) */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3.5rem;
    }
    
    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-cta-group { justify-content: center; }
    .hero-trust { justify-content: center; }
    
    .floating-card {
        left: 5%;
        bottom: -15px;
    }
    
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Phones (< 768px) */
@media (max-width: 768px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 3.5rem;
    }
    
    /* Mobile Menu Navigation Drawer */
    .nav-links {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background: rgba(7, 11, 25, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.35s ease-in-out;
    }
    
    .nav-links.open {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hide desktop download CTA inside nav on very small screens to save space */
    .nav-actions .cta-btn {
        display: none;
    }
    
    .calculator-wrapper {
        padding: 1.5rem;
    }
    
    .device-tabs {
        flex-direction: column;
        width: 100%;
        border-radius: 16px;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-desc { margin: 1rem auto 0; }
}

/* Small Foldable & Mini Phones (< 480px) */
@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .hero-cta-group { flex-direction: column; width: 100%; }
    .play-store-btn, .secondary-btn { width: 100%; }
    
    .floating-card {
        position: static;
        margin-top: 1.5rem;
        width: 100%;
        justify-content: center;
    }
}
