/* 
   Project: ihr-autoankauf-wiesbaden.de
   Theme: Professional, Trustworthy, "German Aesthetic"
   Colors: Dark Navy, Anthrazit, Silver, Rich Blue 
*/

:root {
    /* Color Palette */
    --color-primary: #0a192f;
    /* Marineblau - Deep Navy */
    --color-secondary: #112240;
    /* Anthrazit/Light Navy */
    --color-tertiary: #233554;
    /* Lighter Navy for cards */
    --color-background: #020c1b;
    /* Almost Black */

    --color-accent: #0056b3;
    /* Rich Trust Blue */
    --color-accent-hover: #004494;

    --color-text-main: #e6f1ff;
    /* Off-white */
    --color-text-muted: #a0abd0;
    /* Improved Slate Grey for better contrast */

    --color-silver: #c0c0c0;
    /* Metallic Accent */
    --color-white: #ffffff;

    /* WhatsApp Green */
    --color-whatsapp: #25D366;

    /* Typography */
    --font-main: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-standard: all 0.3s ease-in-out;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-background);
    color: var(--color-text-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-silver);
    outline-offset: 3px;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-white);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--spacing-md);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

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

.text-accent {
    color: var(--color-accent);
}

.text-silver {
    color: var(--color-silver);
}

/* Components: Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: var(--transition-standard);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

/* Glossy Blue Button Effect */
.btn-glossy {
    background: linear-gradient(to bottom, #4facfe 0%, #00f2fe 100%);
    /* Fallback */
    background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #004494 51%, #003366 100%);
    background-size: 200% auto;
    color: white;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid #004494;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-glossy:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: white;
}

/* Shine animation */
.btn-glossy::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    transition: all 0.5s;
    opacity: 0;
}

.btn-glossy:hover::after {
    opacity: 1;
    left: 100%;
    transition: left 0.7s ease-in-out;
}

.btn-wide {
    min-width: 300px;
    font-size: 1.2rem;
    padding: 16px 32px;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-silver);
    color: var(--color-silver);
}

.btn-secondary:hover {
    background-color: rgba(192, 192, 192, 0.1);
    color: var(--color-white);
    border-color: var(--color-white);
}

/* Components: Cards */
.card {
    background-color: var(--color-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    transition: var(--transition-standard);
}

.card:hover {
    transform: translateY(-5px);
    background-color: var(--color-tertiary);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-white);
}

.form-control {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.1);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
}


/* Header & Nav */
.header {
    background: linear-gradient(135deg, #0056b3 0%, #0a192f 100%);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glossy effect overlay */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.5px;
    z-index: 1;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    z-index: 1;
}

.nav-links a {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-links a:hover {
    color: var(--color-silver);
}

/* Sub-Navigation */
.sub-nav {
    background-color: rgba(2, 12, 27, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
    display: block;
}

.sub-nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sub-nav a {
    font-size: 0.85rem;
    color: var(--color-silver);
    font-weight: 500;
}

.sub-nav a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-white);
    transition: var(--transition-standard);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: linear-gradient(to right,
            rgba(2, 12, 27, 0.9),
            rgba(0, 86, 179, 0.2)), url('../images/hero-car-bg.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 0px;
    padding-top: 120px;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-silver);
    margin-bottom: var(--spacing-lg);
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

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

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: -40px;
    display: block;
    z-index: 0;
    position: relative;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    border-top: 1px solid rgba(192, 192, 192, 0.1);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.footer ul li {
    margin-bottom: var(--spacing-sm);
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
}

/* Floating Phone Button */
.phone-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.4);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    font-size: 1rem;
    border: 2px solid white;
    animation: pulse-blue 2s infinite;
}

.phone-float:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    transform: scale(1.05);
    color: white;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 86, 179, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0);
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-whatsapp);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    font-size: 1rem;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.05);
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        height: calc(100vh - 80px);
        background-color: var(--color-primary);
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding-top: var(--spacing-xl);
        transition: 0.3s;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

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

    .section {
        padding: var(--spacing-lg) 0;
    }

    .sub-nav {
        display: none;
    }

    /* Professional Mobile Action Bar */
    .phone-float,
    .whatsapp-float {
        position: fixed;
        bottom: 0;
        width: 50% !important;
        max-width: none;
        height: 65px;
        /* Slightly taller for better ergonomics */
        left: auto;
        right: auto;
        border-radius: 0;
        margin: 0;
        padding: 0;
        justify-content: center;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        animation: none;
        font-size: 1rem;
        z-index: 9999;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .phone-float {
        left: 0;
        background: rgba(0, 86, 179, 0.9);
    }

    .whatsapp-float {
        right: 0;
        background-color: rgba(37, 211, 102, 0.9);
    }

    .whatsapp-float span:first-child,
    .phone-float span:first-child {
        font-size: 1.2rem !important;
    }

    .whatsapp-float span,
    .phone-float span {
        display: inline;
        font-weight: 700;
        letter-spacing: 0.2px;
    }

    /* Padding for page content to not be hidden behind bar */
    body {
        padding-bottom: 65px;
    }
}