/* ==========================================
   AutoLotto
   Global Styles
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2F6BFF;
    --primary-hover: #1F5AFF;
    --background: #07111F;
    --background-2: #0E1A2D;
    --card: #131F33;
    --card-2: #111827;
    --border: #22324E;
    --text: #FFFFFF;
    --text-light: #C5D0E5;
    --success: #2ECC71;
    --danger: #FF4D4F;
    --warning: #FFB020;
    --radius: 18px;
    --radius-lg: 24px;
    --shadow: 0 15px 40px rgba(0, 0, 0, .35);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family:
    Inter,
    Arial,
    "Segoe UI",
    sans-serif;
    line-height: 1.5;
}

.container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    outline: none;
}

::selection {
    background: rgba(47, 107, 255, .35);
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 14px;
    font-weight: 700;
    transition: .30s ease;
    text-align: center;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: scale(.97);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    border: 1px solid var(--border);
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    background: var(--card);
}

/* =======================================
   HERO
======================================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 120px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(47, 107, 255, .28), transparent 45%),
        radial-gradient(circle at bottom right, rgba(0, 230, 255, .15), transparent 35%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 100px;
    background: #13233D;
    color: #BFD3FF;
    margin-bottom: 25px;
    font-size: 15px;
    font-weight: 700;
}

.hero h1 {
    font-size: 65px;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -0.03em;
}

.hero h1 span {
    color: var(--primary);
}

.hero h1 strong {
    color: #FFD95A;
}

.hero p {
    color: var(--text-light);
    font-size: 20px;
    line-height: 1.8;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.stat-card {
    background: rgba(19, 31, 51, .85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    padding: 35px;
    box-shadow: var(--shadow);
    transition: .35s;
}

.stat-card:hover {
    transform: translateY(-8px);
}

.stat-card span {
    font-size: 42px;
}

.stat-card h2 {
    margin: 18px 0 10px;
    font-size: 38px;
}

.stat-card p {
    color: var(--text-light);
}

/* ==========================================
   SECTION HEADER
========================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    background: #13233D;
    color: #9FC4FF;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 44px;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-light);
    max-width: 650px;
    line-height: 1.7;
}

/* ==========================================
   FEATURED VEHICLES / RAFFLES
========================================== */

.featured-raffles {
    padding: 90px 0;
}

.raffle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 35px;
}

.raffle-card {
    background: var(--card-2);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 24px;
    overflow: hidden;
    transition: .35s;
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeCard .8s forwards;
}

.raffle-card:hover {
    transform: translateY(-12px) scale(1.01);
    border-color: #3b82f6;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, .35),
        0 0 40px rgba(37, 99, 235, .20);
}

.raffle-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #0f172a;
}

.raffle-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.raffle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.raffle-card:hover img {
    transform: scale(1.06);
}

.raffle-status {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

.status-live {
    background: #22c55e;
}

.status-soldout {
    background: #ef4444;
}

.status-ended {
    background: #64748b;
}

.badge-new {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #2563eb;
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
}

.badge-warning {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: #f59e0b;
    color: #111827;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
}

.raffle-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.raffle-content h3 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.raffle-subtitle {
    color: #94a3b8;
    margin-bottom: 28px;
}

.raffle-info {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.raffle-info small {
    display: block;
    color: #64748b;
    margin-bottom: 6px;
}

.raffle-info strong {
    color: #fff;
    font-size: 18px;
}

.progress {
    width: 100%;
    height: 10px;
    border-radius: 50px;
    background: #1e293b;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 50px;
    transition: width 1.2s ease;
}

.progress-text {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 28px;
}

.raffle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: auto;
    flex-wrap: wrap;
}

.raffle-footer span {
    color: #D7E1F3;
    font-weight: 600;
}

.countdown {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.no-raffles {
    width: 100%;
    padding: 80px;
    border-radius: 20px;
    background: #111827;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .06);
}

.no-raffles h3 {
    color: #fff;
    margin-bottom: 10px;
}

.no-raffles p {
    color: #94a3b8;
}

@keyframes fadeCard {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================
   ANIMATION UTILITIES
========================================== */

.animate {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.animate.show {
    opacity: 1;
    transform: none;
}

/* ==========================================
   VEHICLE DETAIL PAGE
========================================== */

.vehicle-page {
    padding: 80px 0;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 60px;
    align-items: start;
}

.vehicle-left {
    min-width: 0;
}

.main-image {
    background: #111827;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .06);
}

.main-image img,
.main-vehicle-image {
    width: 100%;
    display: block;
}

.main-vehicle-image {
    transition: opacity .25s ease, transform .25s ease;
}

.main-vehicle-image.fade {
    animation: vehicleFade .25s ease;
}

@keyframes vehicleFade {
    from {
        opacity: .4;
        transform: scale(.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.thumbnail {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    transition: .25s ease;
    border: 3px solid transparent;
    opacity: .75;
    aspect-ratio: 1 / .72;
    object-fit: cover;
    background: #0f172a;
}

.thumbnail:hover {
    transform: scale(1.05);
    opacity: 1;
}

.thumbnail.active {
    border-color: #2563eb;
    opacity: 1;
}

.vehicle-right h1 {
    font-size: 42px;
    margin-bottom: 15px;
    line-height: 1.15;
}

.vehicle-short {
    color: #94a3b8;
    margin-bottom: 18px;
    line-height: 1.9;
}

.vehicle-right h2 {
    font-size: 48px;
    margin: 30px 0 0;
    line-height: 1.15;
}

.vehicle-right h2 span {
    font-size: 18px;
    color: #94a3b8;
    font-weight: 400;
    display: inline-block;
    margin-left: 8px;
}

.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 35px 0;
}

.spec {
    background: #111827;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .06);
}

.spec small {
    display: block;
    color: #94a3b8;
    margin-bottom: 8px;
    font-size: 13px;
}

.spec strong {
    font-size: 18px;
    color: #fff;
    line-height: 1.35;
}

.vehicle-progress {
    margin: 35px 0;
}

.vehicle-progress .progress {
    height: 14px;
    background: #1e293b;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0;
}

.vehicle-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.vehicle-progress p {
    margin-top: 12px;
    color: #94a3b8;
}

.ticket-box {
    margin-top: 35px;
    background: #111827;
    border-radius: 18px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: var(--shadow);
}

.ticket-box h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.ticket-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ticket-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: .25s;
    flex: 0 0 auto;
}

.ticket-btn:hover {
    background: #1d4ed8;
}

.ticket-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

#ticketQuantity {
    width: 90px;
    text-align: center;
    font-size: 22px;
    border: none;
    background: #1e293b;
    color: #fff;
    border-radius: 12px;
    padding: 10px;
}

.ticket-total {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    font-size: 20px;
    flex-wrap: wrap;
}

.ticket-total strong {
    font-size: 30px;
    color: #3b82f6;
}

.vehicle-description {
    margin-top: 40px;
    background: #111827;
    border-radius: 18px;
    padding: 28px;
    line-height: 1.8;
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, .06);
}

.vehicle-description p {
    color: #d1d5db;
}

.buy-form {
    margin-top: 30px;
}

.btn-buy {
    width: 100%;
    padding: 18px;
    font-size: 18px;
}

.btn-buy:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   COUNTDOWN
========================================== */

.countdown {
    margin: 25px 0;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
}

/* ==========================================
   FEATURE TEXT HELPERS
========================================== */

.progress-text {
    margin-top: 10px;
    font-size: .9rem;
    color: #9ca3af;
}

/* ==========================================
   HEADER / FOOTER SUPPORT
   (falls bereits im Projekt vorhanden, greifen diese Basisstile)
========================================== */

.site-header,
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
}

.footer,
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: rgba(7, 17, 31, .95);
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 56px;
    }

    .vehicle-grid {
        gap: 40px;
    }
}

@media (max-width: 1000px) {
    .hero-grid,
    .vehicle-grid {
        grid-template-columns: 1fr;
    }

    .hero-right {
        grid-template-columns: 1fr 1fr;
    }

    .vehicle-specs {
        grid-template-columns: 1fr;
    }

    .vehicle-right h1 {
        font-size: 34px;
    }

    .vehicle-right h2 {
        font-size: 38px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .raffle-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .hero {
        padding: 70px 0 90px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-right {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 34px;
    }

    .raffle-content {
        padding: 22px;
    }

    .raffle-content h3 {
        font-size: 22px;
    }

    .raffle-info {
        flex-direction: column;
        gap: 16px;
    }

    .raffle-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .countdown {
        margin-bottom: 15px;
        font-size: 20px;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ticket-selector {
        gap: 10px;
    }

    .ticket-total {
        font-size: 18px;
    }

    .ticket-total strong {
        font-size: 24px;
    }

    .vehicle-description,
    .ticket-box {
        padding: 22px;
    }
}

@media (max-width: 500px) {
    .container {
        width: 92%;
    }

    .hero h1 {
        font-size: 36px;
    }

    .vehicle-right h1 {
        font-size: 30px;
    }

    .vehicle-right h2 {
        font-size: 32px;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ticket-selector {
        flex-wrap: wrap;
    }

    #ticketQuantity {
        width: 100%;
        order: 3;
    }

    .ticket-btn {
        width: 46px;
        height: 46px;
    }

    .btn-buy {
        font-size: 16px;
    }

    .no-raffles {
        padding: 45px 22px;
    }
}