@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@400;500;600&display=swap');

/* ==============================================================================
   ADEN V2 DESIGN SYSTEM - ROOT VARIABLES
   ============================================================================== */
:root {
    /* TYPOGRAPHY */
    --font-heading: 'Cormorant', serif;
    --font-body: 'Montserrat', sans-serif;

    /* COLOR PALETTE - LUXURY SOFT */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F8F9FA;
    /* Off-white for section separation */
    --color-bg-dark: #0F172A;
    /* Deep Night Blue */

    --color-text-primary: #111827;
    /* Near Black */
    --color-text-muted: #4B5563;
    /* Medium Gray */
    --color-text-light: #F9FAFB;
    /* Off-white text for dark backgrounds */

    --color-accent: #D4AF37;
    /* Champagne Gold */
    --color-accent-hover: #C5A028;

    /* SYSTEM COLORS */
    --color-error: #EF4444;
    --color-success: #10B981;
    --color-border: #E5E7EB;

    /* SPACING SYSTEM (8pt grid basis) */
    --space-1: 0.5rem;
    /* 8px */
    --space-2: 1rem;
    /* 16px */
    --space-3: 1.5rem;
    /* 24px */
    --space-4: 2rem;
    /* 32px */
    --space-8: 4rem;
    /* 64px */
    --space-12: 6rem;
    /* 96px */

    /* RADII & EFFECTS */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-reveal: 800ms cubic-bezier(0.16, 1, 0.3, 1);

    /* LAYOUT BOUNDARIES */
    --container-max-width: 1200px;
    --header-height: 72px;
}

/* ==============================================================================
   RESET & MOBILE-FIRST BASE
   ============================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* CRITICAL FOR MOBILE - No horizontal scrolling */
    width: 100%;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    /* To prevent iOS Zoom on input focus, font-size must be at least 16px */
    font-size: 16px;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* Accessibility Focus Ring */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==============================================================================
   TYPOGRAPHY ARCHITECTURE (FLUID)
   ============================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

h1 {
    /* Fluid from 40px to 80px */
    font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
    letter-spacing: -0.02em;
}

h2 {
    /* Fluid from 32px to 56px */
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
}

p {
    margin-bottom: var(--space-2);
    color: var(--color-text-muted);
}

.text-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
    text-transform: uppercase;
}

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}

/* ==============================================================================
   LAYOUT CONTAINERS (MOBILE FIRST)
   ============================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-inline: auto;
    padding-inline: var(--space-3);
    /* Base padding for mobile */
}

.section {
    padding-block: var(--space-8);
    /* 64px vertical padding on mobile */
}

.section-bg-alt {
    background-color: var(--color-bg-secondary);
}

.section-bg-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3 {
    color: var(--color-text-light);
}

.section-bg-dark p {
    color: rgba(255, 255, 255, 0.8);
}

/* ==============================================================================
   UI COMPONENTS
   ============================================================================== */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    /* Full width on mobile */
}

.btn-primary {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.btn-outline:hover {
    border-color: var(--color-bg-dark);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.btn-google {
    background-color: white;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 0.875rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-google:hover {
    background-color: #f8fafc;
    box-shadow: var(--shadow-md);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* Forms */
.form-card {
    background-color: var(--color-bg-primary);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    width: 100%;
    max-width: 500px;
    margin-inline: auto;
}

.form-group {
    margin-bottom: var(--space-3);
    width: 100%;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    transition: var(--transition-fast);
    font-size: 16px;
    /* Prevent iOS Zoom */
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-bg-primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-input::placeholder {
    color: #9CA3AF;
}

/* Anti-IA Security Box */
.security-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-bg-secondary);
    margin-bottom: var(--space-3);
}

.security-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.security-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.security-label .title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.security-label .subtitle {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.security-icon {
    color: var(--color-text-muted);
}

/* ==============================================================================
   NAVIGATION (MOBILE FIRST)
   ============================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-menu {
    display: none;
    /* Hidden on mobile */
}

.menu-toggle {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    /* Visible on mobile */
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

/* ==============================================================================
   GRID ARCHITECTURES (MOBILE FIRST = 1 Column)
   ============================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column on mobile */
    gap: var(--space-3);
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column on mobile */
    gap: var(--space-4);
}

/* ==============================================================================
   VIEWPORT & FULL-SCREEN UTILITIES
   ============================================================================== */
.vh-100 {
    min-height: 100vh;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95)),
        url('hero_luxury.png') center/cover no-repeat;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2);
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-reveal);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================================================
   MEDIA QUERIES (SCALING UP TO TABLET / DESKTOP)
   ============================================================================== */
@media (min-width: 768px) {

    /* Tablet & Small Desktop Anpassungen */
    .section {
        padding-block: var(--space-12);
        /* 96px */
    }

    .btn {
        width: auto;
        /* Reset full width */
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
}

@media (min-width: 1024px) {

    /* Large Desktop Anpassungen */
    .nav-menu {
        display: flex;
        align-items: center;
        gap: var(--space-4);
    }

    .nav-link {
        color: var(--color-text-primary);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        transition: var(--transition-fast);
    }

    .nav-link:hover {
        color: var(--color-accent);
    }

    .menu-toggle {
        display: none;
    }

    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .split-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: var(--space-8);
    }
}