﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@500,600,700&display=swap');

:root {
    --primary: #0f172a; /* Deep Navy */
    --secondary: #10b981; /* Emerald Green */
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3 {
    font-family: 'Clash Display', sans-serif;
    color: var(--primary);
}

/* Unique Animated Architectural Wireframe Background */
.wireframe-cube {
    position: fixed;
    top: -10vw;
    right: -10vw;
    width: 50vw;
    height: 50vw;
    border: 2px solid rgba(16, 185, 129, 0.1);
    transform-style: preserve-3d;
    animation: rotateCube 40s linear infinite;
    z-index: -1;
    pointer-events: none;
}
.wireframe-cube::before, .wireframe-cube::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border: 2px solid rgba(16, 185, 129, 0.1);
}
.wireframe-cube::before { transform: rotateX(60deg) rotateY(45deg); }
.wireframe-cube::after { transform: rotateX(-60deg) rotateY(-45deg); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Clash Display', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.logo img { height: 40px; }
nav ul { display: flex; list-style: none; gap: 2.5rem; }
nav a { text-decoration: none; color: var(--primary); font-weight: 500; transition: color 0.3s; }
nav a:hover { color: var(--secondary); }

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-family: 'Clash Display', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn:hover { background: var(--primary); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(16,185,129,0.2); }
.btn:disabled { background: var(--text-muted); cursor: not-allowed; transform: none; box-shadow: none; }

/* Sections */
section { padding: 8rem 5%; }

/* Hero */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    max-width: 1000px;
    letter-spacing: -0.02em;
}
.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 3rem;
}

/* Features (Asymmetric) */
.features {
    display: flex;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
    background: var(--white);
    border-radius: 20px;
    padding: 5rem;
    margin: 0 5%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}
.feat-img { flex: 1; min-width: 300px; position: relative; }
.feat-img img { width: 100%; border-radius: 12px; z-index: 2; position: relative; }
.feat-img::after {
    content: '';
    position: absolute;
    bottom: -20px; right: -20px;
    width: 100%; height: 100%;
    background: var(--secondary);
    border-radius: 12px;
    z-index: 1;
}
.feat-content { flex: 1; min-width: 300px; }
.feat-content h2 { font-size: 3.5rem; margin-bottom: 2rem; }
.feat-content ul { list-style: none; }
.feat-content li { display: flex; align-items: flex-start; gap: 1rem; font-size: 1.15rem; margin-bottom: 1.5rem; }
.feat-content i { color: var(--secondary); font-size: 1.5rem; margin-top: 4px; }

/* Random Section: Austrian Standard */
.austrian-standard {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    margin-top: 5rem;
}
.austrian-standard h2 { color: var(--secondary); font-size: 3.5rem; margin-bottom: 1.5rem; }
.austrian-standard p { font-size: 1.3rem; max-width: 800px; margin: 0 auto; color: #cbd5e1; }

/* About */
.about { text-align: center; }
.about h2 { font-size: 4rem; margin-bottom: 2rem; }
.about p { font-size: 1.25rem; max-width: 900px; margin: 0 auto 1.5rem auto; color: var(--text-muted); }

/* Form Section */
.form-section {
    background: var(--white);
    padding: 6rem 5%;
}
.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 4rem;
    border-radius: 16px;
    border-top: 6px solid var(--secondary);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1);
}
.form-wrapper h2 { font-size: 3rem; margin-bottom: 1rem; text-align: center; }
.form-wrapper p.subtitle { text-align: center; color: var(--text-muted); margin-bottom: 3rem; font-size: 1.1rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group input {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s;
}
.form-group input:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
.full-w { grid-column: 1 / -1; }

.checkbox-area { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; font-size: 0.9rem; color: var(--text-muted); }
.checkbox-area input { margin-top: 4px; }

#successMsg {
    display: none;
    text-align: center;
    background: #ecfdf5;
    border: 1px solid #10b981;
    padding: 3rem;
    border-radius: 12px;
    animation: fadeIn 0.5s ease;
}
#successMsg h3 { color: var(--secondary); font-size: 2rem; margin-bottom: 1rem; }
#successMsg p { font-size: 1.1rem; color: var(--primary); }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq h2 { font-size: 3.5rem; text-align: center; margin-bottom: 3rem; }
details { background: var(--white); border-radius: 8px; margin-bottom: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
summary { padding: 1.5rem; font-size: 1.2rem; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: '\f067'; font-family: 'FontAwesome'; color: var(--secondary); transition: transform 0.3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 1.5rem 1.5rem; color: var(--text-muted); }

/* Legal Pages */
.legal-page { padding: 4rem 5%; }
.legal-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.legal-card h1 { font-size: 3.5rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--bg-light); }
.legal-card h2 { font-size: 2rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-card p, .legal-card ul { margin-bottom: 1rem; font-size: 1.1rem; color: var(--text-dark); }
.legal-card ul { padding-left: 2rem; }

/* Footer */
footer { background: var(--primary); color: var(--white); padding: 4rem 5% 2rem; text-align: center; }
.footer-nav { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-nav a { color: #cbd5e1; text-decoration: none; font-weight: 500; transition: color 0.3s; }
.footer-nav a:hover { color: var(--secondary); }

/* Cookie Banner */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: var(--primary); color: var(--white);
    padding: 1.5rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-text { flex: 1; margin-right: 2rem; font-size: 0.95rem; color: #cbd5e1; }
.cookie-btn-group { display: flex; gap: 1rem; }
.btn-outline { background: transparent; border: 1px solid var(--secondary); color: var(--secondary); padding: 0.8rem 1.5rem; border-radius: 4px; cursor: pointer; transition: 0.3s; }
.btn-outline:hover { background: var(--secondary); color: var(--white); }

@media (max-width: 768px) {
    nav ul { display: none; }
    .hero h1 { font-size: 3.2rem; }
    .features { padding: 3rem 1.5rem; margin: 0; flex-direction: column; gap: 3rem; }
    .form-grid { grid-template-columns: 1fr; }
    .cookie-banner { flex-direction: column; text-align: center; gap: 1rem; }
    .cookie-text { margin-right: 0; }
    .legal-card { padding: 2.5rem 1.5rem; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
