:root {
    --bg: #1a1a1a;
    --bg-alt: #212121;
    --bg-card: #262626;
    --bg-card-hover: #2c2c2c;
    --border: #3a3a3a;
    --text: #f2f2f2;
    --text-muted: #a8a8a8;
    --red: #c8102e;
    --red-dark: #7a0d1a;
    --red-light: #ff4d5e;
    --silver: #d8d8d8;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --font-head: 'Rajdhani', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    background-image:
        radial-gradient(circle at 20% 0%, rgba(200, 16, 46, 0.08), transparent 40%),
        repeating-linear-gradient(120deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 60px);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0 0 0.5em;
}

a { color: var(--red-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 60px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
}
.brand-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
    color: #fff;
    border-bottom-color: var(--red);
    text-decoration: none;
}
.nav-cta {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 6px;
    border: none !important;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-head);
    letter-spacing: 0.03em;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover { border-color: var(--red); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 56px 0 70px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 75% 30%, rgba(200,16,46,0.16), transparent 55%);
    pointer-events: none;
    z-index: 0;
}
.hero-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    color: var(--red-light);
    font-weight: 600;
    margin-bottom: 14px;
}
.hero h1 { font-size: 3rem; line-height: 1.08; margin-bottom: 18px; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.45); }
.hero p.lead { color: var(--text-muted); font-size: 1.1rem; max-width: 52ch; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.hero-stat strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: #fff; }
.hero-stat span { color: var(--text-muted); font-size: 0.85rem; }


/* ---------- Logo-Intro (Rad rollt ein, Schriftzug erscheint, Rad dreht dauerhaft) ---------- */
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-copy { margin-top: 28px; }
.logo-stage {
    position: relative;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    aspect-ratio: 1800 / 528;
    user-select: none;
}
.logo-stage img { display: block; -webkit-user-drag: none; }
.ls-text { position: absolute; inset: 0; width: 100%; height: 100%; }
.ls-wheel { position: absolute; inset: 0; z-index: 2; will-change: transform; }
.ls-static { position: absolute; left: 0; top: 0; width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,0.55)); }
.ls-spinner {
    position: absolute;
    left: 12.8889%;
    top: 50.5682%;
    width: 19.7778%;
    height: auto;
    translate: -50% -50%;
    transform: rotate(7.8deg) scaleX(0.7584);
    will-change: transform;
}
.logo-stage.anim-prep .ls-text { opacity: 0; }
.logo-stage.anim-prep .ls-wheel { transform: translateX(130vw); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: 2.1rem; }
.section-head p { color: var(--text-muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.feature-card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 12px;
    color: var(--red-light);
    background: linear-gradient(135deg, rgba(200,16,46,0.2), rgba(200,16,46,0.06));
    border: 1px solid rgba(200,16,46,0.35);
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

.cta-band {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 22px; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.15); }

.kleinanzeigen-note {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
}
.kleinanzeigen-note .badge-ka {
    background: #ffe600;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ---------- Tire grid / cards ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 32px;
}
.filter-bar select, .filter-bar input {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 12px;
    border-radius: 6px;
    font-family: var(--font-body);
}
.filter-bar .btn { padding: 9px 20px; }

.tire-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tire-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.tire-card:hover { transform: translateY(-3px); border-color: var(--red); }
.tire-card-img {
    aspect-ratio: 4/3;
    background: var(--bg-alt) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
}
.tire-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tire-card-body h3 { font-size: 1.1rem; margin: 0; }
.tire-size { color: var(--red-light); font-weight: 600; font-family: var(--font-head); font-size: 1.05rem; }
.tire-meta { color: var(--text-muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.tire-price { font-family: var(--font-head); font-size: 1.25rem; color: #fff; margin-top: auto; }
.tire-card-footer { padding: 0 18px 18px; display: flex; gap: 10px; }

.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 20px;
    position: absolute;
    top: 12px;
    left: 12px;
}
.badge-verfuegbar { background: #1f7a3f; color: #d9ffe6; }
.badge-reserviert { background: #8a6d1a; color: #fff3d0; }
.badge-verkauft { background: #6b6b6b; color: #eee; }

/* ---------- Detail page ---------- */
.detail-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
.gallery-main {
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs img {
    width: 76px; height: 76px; object-fit: cover; border-radius: 6px;
    border: 2px solid var(--border); cursor: pointer;
}
.gallery-thumbs img:hover { border-color: var(--red); }

.detail-info h1 { font-size: 2rem; }
.detail-price { font-family: var(--font-head); font-size: 2rem; color: #fff; margin: 14px 0; }
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 10px 0; }
.spec-table td:first-child { color: var(--text-muted); width: 45%; }
.spec-table td:last-child { color: #fff; font-weight: 500; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 14px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--red);
}
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-alert { padding: 14px 16px; border-radius: 6px; margin-bottom: 20px; }
.form-alert-error { background: rgba(200,16,46,0.15); border: 1px solid var(--red); color: #ffb3bb; }
.form-alert-success { background: rgba(31,122,63,0.18); border: 1px solid #1f7a3f; color: #b9f5cd; }
.card-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: #161616; padding: 50px 0 0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.footer-col h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 12px; }
.footer-col p { margin: 6px 0; font-size: 0.9rem; }
.footer-brand { font-size: 1.2rem; }
.footer-tagline { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---------- Legal pages ---------- */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { margin-top: 32px; font-size: 1.3rem; }
.legal-content p, .legal-content li { color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
            .feature-grid, .tire-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #161616;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        display: none;
        gap: 16px;
    }
    .main-nav.open { display: flex; }
    .nav-toggle { display: flex; }
    .hero h1 { font-size: 2.1rem; }
    .feature-grid, .tire-grid { grid-template-columns: 1fr; }
    .form-row, .form-row-2 { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Schwebender Anrufen-Button ---------- */
.call-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.call-fab:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.12); }
.call-fab svg { flex-shrink: 0; }
@media (max-width: 640px) {
    .call-fab { right: 14px; bottom: 14px; padding: 15px 20px; }
}
@media (prefers-reduced-motion: no-preference) {
    .call-fab::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.55);
        animation: fab-pulse 2.6s ease-out infinite;
        pointer-events: none;
    }
}
@keyframes fab-pulse {
    0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.55); }
    70%, 100% { box-shadow: 0 0 0 16px rgba(200, 16, 46, 0); }
}

/* ---------- Einblendung des Hero-Inhalts nach dem Logo-Intro ---------- */
.intro-prep .hero-copy > * { opacity: 0; transform: translateY(22px); }
.intro-prep.intro-go .hero-copy > * {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.intro-prep.intro-go .hero-copy > *:nth-child(2) { transition-delay: 0.12s; }
.intro-prep.intro-go .hero-copy > *:nth-child(3) { transition-delay: 0.24s; }
.intro-prep.intro-go .hero-copy > *:nth-child(4) { transition-delay: 0.36s; }
.intro-prep.intro-go .hero-copy > *:nth-child(5) { transition-delay: 0.52s; }

/* ---------- Einblendung beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--reveal-delay, 0s);
}
