/* ═══════════════════════════════════════════
   BEMA AUTOMOBILE – Premium Dark Theme
   Colors: Black + Red + White/Silver
   ═══════════════════════════════════════════ */

:root {
    --black: #0a0a0a;
    --black-900: #111111;
    --black-800: #1a1a1a;
    --black-700: #222222;
    --black-600: #2a2a2a;
    --black-500: #333333;
    --red-600: #b91c1c;
    --red-500: #dc2626;
    --red-400: #ef4444;
    --red-300: #f87171;
    --silver: #c0c0c0;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 12px;
    --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--black); color: var(--white); overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── NAV ───────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 18px 0; transition: all .4s var(--ease); }
.nav--scrolled { background: rgba(10,10,10,.92); backdrop-filter: blur(20px); padding: 10px 0; box-shadow: 0 1px 40px rgba(0,0,0,.5); }
.nav__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav__logo img { height: 48px; width: auto; transition: height .3s; }
.nav--scrolled .nav__logo img { height: 38px; }
.nav__links { display: flex; list-style: none; gap: 32px; }
.nav__links a { color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 500; letter-spacing: .02em; transition: color .3s; }
.nav__links a:hover { color: var(--red-400); }
.nav__cta { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--red-500); color: var(--white); font-weight: 600; font-size: .85rem; border-radius: 8px; transition: all .3s; }
.nav__cta:hover { background: var(--red-400); transform: translateY(-1px); }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s; }
.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── HERO ──────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 100px 24px 80px; }
.hero__video { position: absolute; inset: 0; z-index: 0; }
.hero__video video { width: 100%; height: 100%; object-fit: cover; }
.hero__video::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,.6) 0%, rgba(10,10,10,.3) 40%, rgba(10,10,10,.85) 100%), linear-gradient(135deg, rgba(10,10,10,.5) 0%, transparent 60%); }
.hero__content { position: relative; z-index: 2; text-align: center; max-width: 780px; }
.hero__logo { height: 120px; width: auto; margin: 0 auto 32px; filter: drop-shadow(0 4px 30px rgba(0,0,0,.5)); }
.hero__title { font-family: var(--font-display); line-height: 1.1; margin-bottom: 20px; }
.hero__line1 { display: block; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -.02em; }
.hero__line2 { display: block; font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 400; color: var(--red-400); margin-top: 8px; letter-spacing: .02em; }
.hero__sub { color: rgba(255,255,255,.6); font-size: clamp(.95rem, 1.3vw, 1.1rem); line-height: 1.7; margin-bottom: 36px; max-width: 550px; margin-left: auto; margin-right: auto; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero__trust { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.trust-pill { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 100px; color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 500; }
.trust-pill svg { color: var(--red-400); }

/* ── BUTTONS ───────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: .95rem; transition: all .3s var(--ease); white-space: nowrap; }
.btn--red { background: var(--red-500); color: var(--white); box-shadow: 0 4px 20px rgba(220,38,38,.3); }
.btn--red:hover { background: var(--red-400); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(220,38,38,.4); }
.btn--glass { border: 1.5px solid rgba(255,255,255,.2); color: var(--white); background: rgba(255,255,255,.05); backdrop-filter: blur(10px); }
.btn--glass:hover { border-color: var(--red-400); background: rgba(220,38,38,.1); }
.btn--full { width: 100%; justify-content: center; }

/* ── SECTION COMMON ────────────────────── */
.section-head { text-align: center; margin-bottom: 56px; }
.label { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red-400); margin-bottom: 12px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: 12px; }
.section-desc { color: var(--gray-400); font-size: 1rem; max-width: 540px; margin: 0 auto; }
.section-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.section-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .06; }

/* ── ABOUT ──────────────────────────────── */
.about { position: relative; padding: 120px 0; }
.about__layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about__text h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 20px; line-height: 1.3; }
.about__text p { color: var(--gray-400); font-size: .95rem; line-height: 1.8; margin-bottom: 16px; }
.about__highlights { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.highlight { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); transition: all .3s; }
.highlight:hover { background: rgba(255,255,255,.06); border-color: rgba(220,38,38,.2); }
.highlight__icon { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(220,38,38,.1); color: var(--red-400); border-radius: 10px; }
.highlight strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.highlight p { color: var(--gray-400); font-size: .85rem; line-height: 1.6; }

@media (max-width: 768px) {
    .about__layout { grid-template-columns: 1fr; gap: 36px; }
}

/* ── LEISTUNGEN ────────────────────────── */
.leistungen { position: relative; padding: 120px 0; }
.leistungen > .container { position: relative; z-index: 1; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { padding: 32px 24px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); transition: all .4s var(--ease); position: relative; overflow: hidden; }
.card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red-500), var(--red-300)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.card:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); transform: translateY(-4px); }
.card:hover::after { transform: scaleX(1); }
.card__icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(220,38,38,.1); color: var(--red-400); border-radius: var(--radius); margin-bottom: 18px; }
.card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--gray-400); font-size: .88rem; line-height: 1.6; }

/* ── FAHRZEUGE ─────────────────────────── */
.fahrzeuge { position: relative; padding: 120px 0; }
.fahrzeuge > .container { position: relative; z-index: 1; }
.fahrzeuge__info { max-width: 800px; margin: 0 auto 40px; }
.fahrzeuge__info p { color: var(--gray-400); font-size: .95rem; line-height: 1.8; margin-bottom: 14px; text-align: center; }
.fahrzeuge__cta { margin-top: 20px; }
.fahrzeuge__cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 40px; background: linear-gradient(135deg, var(--black-700), var(--black-600)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); }
.fahrzeuge__cta-inner h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 6px; }
.fahrzeuge__cta-inner p { color: var(--gray-400); font-size: .9rem; }

/* ── ANKAUF ─────────────────────────────── */
.ankauf { position: relative; padding: 120px 0; }
.ankauf > .container { position: relative; z-index: 1; }
.ankauf__layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.ankauf__text h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.ankauf__text > p { color: var(--gray-400); font-size: 1rem; line-height: 1.7; margin-bottom: 32px; }
.ankauf__steps { display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step__num { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--red-500); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1rem; border-radius: 50%; }
.step strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.step p { color: var(--gray-400); font-size: .85rem; }

/* ── FORM ───────────────────────────────── */
.ankauf__form { background: var(--black-800); padding: 36px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.08); }
.ankauf__form h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 24px; text-align: center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-400); margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.04); color: var(--white); outline: none; transition: all .3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red-400); background: rgba(220,38,38,.05); box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray-600); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23737373' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-group select option { background: var(--black-800); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-upload { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; border: 2px dashed rgba(255,255,255,.12); border-radius: var(--radius); cursor: pointer; transition: all .3s; position: relative; color: var(--gray-500); }
.form-upload:hover, .form-upload.dragover { border-color: var(--red-400); background: rgba(220,38,38,.05); }
.form-upload svg { color: var(--red-400); }
.form-upload span { font-size: .85rem; }
.form-upload__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.form-upload__preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.form-upload__thumb { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid rgba(255,255,255,.1); }
.form-upload__thumb img { width: 100%; height: 100%; object-fit: cover; }
.form-upload__thumb button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; background: rgba(0,0,0,.7); color: var(--white); border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* ── KONTAKT ────────────────────────────── */
.kontakt { position: relative; padding: 120px 0; }
.kontakt__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.kontakt__card { background: var(--black-800); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 32px; }
.kontakt__logo { height: 60px; width: auto; margin-bottom: 24px; }
.kontakt__details { display: flex; flex-direction: column; gap: 18px; }
.kontakt__item { display: flex; gap: 14px; }
.kontakt__item svg { color: var(--red-400); flex-shrink: 0; margin-top: 2px; }
.kontakt__item strong { display: block; font-size: .78rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.kontakt__item p { font-size: .9rem; color: rgba(255,255,255,.8); }
.kontakt__item a { transition: color .3s; }
.kontakt__item a:hover { color: var(--red-400); }
.kontakt__map { border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; border: 1px solid rgba(255,255,255,.08); }
.kontakt__map iframe { width: 100%; height: 100%; min-height: 420px; }

/* ── FOOTER ─────────────────────────────── */
.footer { padding: 48px 0 0; border-top: 1px solid rgba(255,255,255,.06); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 32px; flex-wrap: wrap; }
.footer__logo { height: 50px; margin-bottom: 12px; }
.footer__brand p { color: var(--gray-500); font-size: .85rem; }
.footer__links, .footer__contact, .footer__legal { display: flex; flex-direction: column; gap: 8px; }
.footer__links a, .footer__contact a, .footer__legal a { color: var(--gray-500); font-size: .85rem; transition: color .3s; }
.footer__links a:hover, .footer__contact a:hover, .footer__legal a:hover { color: var(--red-400); }
.footer__bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.06); text-align: center; }
.footer__bottom p { color: var(--gray-600); font-size: .78rem; }

/* ── PHONE FLOAT ────────────────────────── */
.phone-float { position: fixed; bottom: 28px; right: 28px; width: 56px; height: 56px; background: var(--red-500); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(220,38,38,.4); z-index: 900; transition: all .3s; animation: phoneFloat 3s ease-in-out infinite; }
.phone-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(220,38,38,.5); }
@keyframes phoneFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ── MODAL ──────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.7); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: all .3s; padding: 24px; }
.modal.active { opacity: 1; visibility: visible; }
.modal__content { background: var(--black-800); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 40px; max-width: 640px; width: 100%; max-height: 80vh; overflow-y: auto; position: relative; transform: translateY(20px); transition: transform .3s var(--ease); }
.modal.active .modal__content { transform: translateY(0); }
.modal__close { position: absolute; top: 16px; right: 20px; font-size: 28px; color: var(--gray-500); transition: color .3s; }
.modal__close:hover { color: var(--white); }
.modal__content h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 20px; }
.modal__content h3 { font-size: 1rem; color: var(--red-400); margin: 20px 0 8px; }
.modal__content p { color: var(--gray-400); font-size: .9rem; line-height: 1.7; margin-bottom: 10px; }

/* ── TOAST ──────────────────────────────── */
.toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px); display: flex; align-items: center; gap: 10px; padding: 14px 22px; background: var(--red-500); color: var(--white); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(220,38,38,.4); font-weight: 500; font-size: .9rem; z-index: 3000; opacity: 0; visibility: hidden; transition: all .4s var(--ease); }
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .ankauf__layout { grid-template-columns: 1fr; gap: 40px; }
    .kontakt__grid { grid-template-columns: 1fr; }
    .fahrzeuge__cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .nav__links { position: fixed; top: 0; right: -100%; width: 260px; height: 100vh; flex-direction: column; background: var(--black-900); padding: 80px 28px; gap: 24px; transition: right .4s var(--ease); box-shadow: -10px 0 40px rgba(0,0,0,.5); }
    .nav__links.open { right: 0; }
    .nav__cta { display: none; }
    .nav__burger { display: flex; }
    .hero { min-height: 90vh; padding: 100px 20px 60px; }
    .hero__logo { height: 80px; }
    .hero__actions { flex-direction: column; align-items: center; }
    .hero__trust { flex-direction: column; align-items: center; gap: 10px; }
    .cards { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .ankauf__form { padding: 24px; }
    .footer__inner { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
    .hero__line1 { font-size: 1.8rem; }
    .hero__line2 { font-size: 1.1rem; }
    .phone-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
}
