/* ============================================
   AeV Factoring GmbH - Warm Amber Dark Theme
   ============================================ */

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

:root {
    --bg-primary: #0c0a09;
    --bg-secondary: #1c1917;
    --bg-card: #292524;
    --bg-dark: #0a0908;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --white: #ffffff;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --border-light: rgba(255, 255, 255, 0.05);
    --border-amber: rgba(245, 158, 11, 0.4);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.1;
}

h1 { font-size: clamp(3rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--amber-500);
    color: var(--bg-primary);
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--stone-600);
    color: var(--stone-300);
}

.btn-outline:hover {
    border-color: var(--amber-500);
    color: var(--amber-500);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--amber-600);
}

.btn-light:hover {
    background: #f5f5f4;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.btn-nav {
    display: none;
}

@media (min-width: 1024px) {
    .btn-nav {
        display: inline-flex;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-amber);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
    }
}

.cookie-content p {
    flex: 1;
    color: var(--stone-400);
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 10, 9, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--bg-primary);
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 40px;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-size: 14px;
    color: var(--stone-400);
}

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

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

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 999;
    padding: 96px 24px 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.show {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.mobile-nav-links a {
    font-size: 24px;
    font-weight: 500;
}

.mobile-nav-links a:hover {
    color: var(--amber-400);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-primary), rgba(12, 10, 9, 0.9), rgba(12, 10, 9, 0.6));
}

.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary), transparent, transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 80px 0;
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 9999px;
    color: var(--amber-400);
    font-size: 14px;
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--amber-400);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    margin-bottom: 24px;
}

.hero-title span {
    background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--stone-400);
    max-width: 560px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
    max-width: 500px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--amber-400);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--stone-500);
}

/* Section Styles */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--amber-400);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 24px;
}

.section-header p {
    color: var(--stone-400);
    font-size: 18px;
}

/* Services Section */
.services {
    padding: 96px 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.5s ease;
}

.service-card:hover {
    border-color: var(--border-amber);
}

.service-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.service-content {
    padding: 32px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-content > p {
    color: var(--stone-400);
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--stone-300);
}

.service-features svg {
    width: 20px;
    height: 20px;
    color: var(--amber-400);
    flex-shrink: 0;
}

/* Why Us Section */
.why-us {
    padding: 96px 0;
    background: var(--bg-primary);
    position: relative;
}

.why-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(245, 158, 11, 0.05), transparent);
}

.why-us-grid {
    display: grid;
    gap: 64px;
    align-items: center;
    position: relative;
}

@media (min-width: 1024px) {
    .why-us-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.why-us-content .section-badge {
    margin-bottom: 16px;
}

.why-us-content h2 {
    margin-bottom: 24px;
}

.why-us-content > p {
    color: var(--stone-400);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.advantage-card {
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.advantage-card:hover {
    border-color: var(--border-amber);
}

.advantage-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(245, 158, 11, 0.3);
    margin-bottom: 12px;
}

.advantage-card h4 {
    margin-bottom: 8px;
}

.advantage-card p {
    color: var(--stone-500);
    font-size: 14px;
}

.why-us-image {
    position: relative;
}

.why-us-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
}

.experience-badge {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    color: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.exp-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

.exp-text {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

/* Process Section */
.process {
    padding: 96px 0;
    background: var(--bg-secondary);
}

.process-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.process-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.process-card:hover {
    border-color: var(--border-amber);
}

.process-icon {
    width: 56px;
    height: 56px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background 0.3s ease;
}

.process-card:hover .process-icon {
    background: rgba(245, 158, 11, 0.2);
}

.process-icon svg {
    width: 28px;
    height: 28px;
    color: var(--amber-400);
}

.process-num {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(245, 158, 11, 0.1);
}

.process-card h3 {
    margin-bottom: 12px;
}

.process-card p {
    color: var(--stone-400);
}

.process-connector {
    display: none;
}

@media (min-width: 768px) {
    .process-connector {
        display: block;
        position: absolute;
        top: 50%;
        right: -12px;
        width: 24px;
        height: 2px;
        background: rgba(245, 158, 11, 0.3);
    }
    
    .process-card:last-child .process-connector {
        display: none;
    }
}

/* CTA Section */
.cta {
    padding: 96px 0;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600), var(--amber-600));
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
}

.cta-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.cta .btn-outline-light {
    border-color: var(--white);
    color: var(--white);
}

.cta .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Contact Section */
.contact {
    padding: 96px 0;
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    gap: 64px;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info .section-badge {
    margin-bottom: 16px;
}

.contact-info h2 {
    margin-bottom: 24px;
}

.contact-info > p {
    color: var(--stone-400);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--amber-400);
}

.contact-text h4 {
    margin-bottom: 4px;
}

.contact-text p {
    color: var(--stone-400);
}

.contact-text a {
    color: var(--amber-400);
}

.contact-text a:hover {
    color: var(--amber-400);
    opacity: 0.8;
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .contact-form-wrapper {
        padding: 40px;
    }
}

.contact-form-wrapper h3 {
    margin-bottom: 24px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--stone-400);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--stone-500);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--amber-500);
}

.form-group textarea {
    resize: none;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 64px 0;
}

.footer-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-brand p {
    color: var(--stone-500);
    max-width: 400px;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--stone-500);
}

.footer-links a:hover {
    color: var(--amber-400);
}

.footer-contact address {
    font-style: normal;
    color: var(--stone-500);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact a {
    color: var(--amber-400);
}

.footer-contact a:hover {
    opacity: 0.8;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    color: var(--stone-600);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--stone-600);
    font-size: 14px;
}

.footer-legal a:hover {
    color: var(--amber-400);
}
