/* ==============================================================================
   ZEROO Landing Page Design System & Tokens
   Minimalist, Ultra-Clean, High-End Dark Obsidian Aesthetic
   ============================================================================== */

:root {
    --bg-base: #070a12;
    --bg-surface: #0e1424;
    --bg-surface-elevated: rgba(30, 41, 59, 0.65);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(57, 255, 20, 0.35);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-accent: #39FF14;
    --color-accent-glow: rgba(57, 255, 20, 0.35);
    --color-accent-hover: #32e012;
    --color-cyan: #38bdf8;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 35px -5px var(--color-accent-glow);
    
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Background Lighting */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    animation: pulse 9s ease-in-out infinite alternate;
}

.glow-1 {
    top: 15%;
    left: 25%;
    width: 550px;
    height: 450px;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.12) 0%, rgba(56, 189, 248, 0.08) 60%, transparent 100%);
}

.glow-2 {
    bottom: 15%;
    right: 20%;
    width: 500px;
    height: 450px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.10) 0%, rgba(99, 102, 241, 0.06) 70%, transparent 100%);
    animation-delay: -4.5s;
}

@keyframes pulse {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.12) translateY(18px); }
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* Layout Wrapper */
.page-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 1.5rem 1.75rem 1.5rem;
}

/* Main Content: Centered Zeroo Brand Logo */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 0;
}

.logo-container {
    width: 100%;
    max-width: 620px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo-frame {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-frame:hover {
    transform: translateY(-3px) scale(1.01);
    filter: drop-shadow(0 25px 50px rgba(57, 255, 20, 0.18));
}

.zeroo-svg-logo {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
}

.grid-line {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
}

.accent-line {
    stroke: var(--color-accent);
    stroke-width: 4.5;
    stroke-linecap: round;
}

.text-zeroo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 64px;
    fill: #ffffff;
    letter-spacing: 0.12em;
}

.text-sub {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    fill: #64748b;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

/* ==============================================================================
   Sitemap & Footer
   ============================================================================== */

.site-footer {
    width: 100%;
    max-width: 800px;
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
}

.sitemap-nav {
    width: 100%;
}

.sitemap-list {
    display: flex;
    list-style: none;
    gap: 1rem 1.75rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.sitemap-link,
.sitemap-btn {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sitemap-link:hover,
.sitemap-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.highlight-link {
    color: var(--color-accent);
    font-weight: 600;
}

.highlight-link:hover {
    color: #ffffff;
    background: rgba(57, 255, 20, 0.12);
}

.link-icon {
    font-size: 0.95rem;
}

.footer-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-mail-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-mail-link:hover {
    color: var(--color-accent);
}

/* ==============================================================================
   Buttons & Links
   ============================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: #050811;
    box-shadow: 0 4px 18px rgba(57, 255, 20, 0.28);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(57, 255, 20, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.link-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid var(--border-highlight);
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    transition: var(--transition);
}

.link-action-btn:hover {
    background: var(--color-accent);
    color: #050811;
    transform: translateX(2px);
}

/* ==============================================================================
   Modals (Impressum & Kontakt)
   ============================================================================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 13, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(57, 255, 20, 0.08);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.modal-body {
    padding: 1.75rem;
    overflow-y: auto;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.modal-footer {
    padding: 1.2rem 1.75rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.02);
}

/* Legal Content Sections */
.legal-section h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

.legal-section h3:first-child {
    margin-top: 0;
}

.legal-section p {
    margin-bottom: 0.85rem;
}

.legal-section a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover {
    text-decoration: underline;
}

.modal-divider {
    border: 0;
    height: 1px;
    background: var(--border-subtle);
    margin: 1.5rem 0;
}

/* ==============================================================================
   Kontaktformular Styling
   ============================================================================== */

.form-intro {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-form .form-group {
    margin-bottom: 1.15rem;
}

.contact-form label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #090e1a;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.15);
    background: #0c1222;
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.btn-submit-contact {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Contact Success State */
.contact-success {
    text-align: center;
    padding: 1.5rem 0.5rem;
}

.success-icon-badge {
    width: 58px;
    height: 58px;
    background: rgba(57, 255, 20, 0.15);
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0 auto 1.25rem auto;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
}

.contact-success h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.contact-success p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.contact-help-text {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.success-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ==============================================================================
   Responsive Adjustments
   ============================================================================== */

@media (max-width: 640px) {
    .page-wrapper {
        padding: 1.5rem 1rem 1.25rem 1rem;
    }

    .brand-logo-frame {
        max-width: 95vw;
    }

    .sitemap-list {
        gap: 0.65rem 1rem;
    }

    .modal-card {
        width: 95%;
        max-height: 94vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.2rem;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
    }
}
