/* ════════════════════════════════════════════════════════════
   Autohaus E. Zielenbach GmbH & Co. KG — Design System
   Cormorant + Montserrat | Warm Neutrals + Opel Neon Yellow
════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --font-display: 'Cormorant', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;

    --bg: #fafaf9;
    --bg-warm: #f5f3f0;
    --bg-dark: #141414;
    --surface: #ffffff;
    --surface-elevated: #ffffff;

    --text-primary: #1a1a1a;
    --text-secondary: #6b6b6b;
    --text-tertiary: #999999;
    --text-on-dark: #ffffff;
    --text-on-accent: #1a1a1a;

    --accent: #F7FF14;
    --accent-hover: #e0e610;
    --accent-muted: #d4da00;
    --accent-subtle: rgba(247, 255, 20, 0.10);
    --accent-glow: rgba(247, 255, 20, 0.25);

    --border: rgba(0,0,0,0.06);
    --border-strong: rgba(0,0,0,0.12);

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 24px 80px rgba(0,0,0,0.12);

    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    --max-width: 1200px;
    --side-pad: clamp(20px, 4vw, 48px);
}

/* ═══ RESET ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); }

/* ════════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════════ */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 var(--side-pad);
    height: 72px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(250,250,249,0.72);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s ease;
}
.site-nav.scrolled {
    background: rgba(250,250,249,0.95);
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}
.nav-brand {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.nav-links {
    display: flex; gap: 4px; align-items: center;
    position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-link {
    padding: 8px 18px;
    background: transparent; border: none;
    font-size: 14px; font-weight: 500;
    color: var(--text-secondary);
    border-radius: 100px;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); background: rgba(0,0,0,0.03); }
.nav-link.active { color: var(--text-primary); font-weight: 600; }
.nav-cta {
    padding: 10px 22px;
    background: var(--bg-dark);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 14px; font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-left: 8px;
}
.nav-cta:hover { background: #333; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Mobile burger */
.nav-burger {
    display: none;
    width: 44px; height: 44px;
    background: none; border: none;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-burger span {
    display: block; width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile-menu {
    display: none;
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(250,250,249,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 32px var(--side-pad);
    flex-direction: column; gap: 8px;
    z-index: 99;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
    font-size: 20px; font-weight: 500;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 64px var(--side-pad) 32px;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 24px; font-weight: 600;
    color: white;
    margin-bottom: 12px;
}
.footer-brand-text {
    font-size: 14px; line-height: 1.7;
    color: rgba(255,255,255,0.5);
    max-width: 300px;
}
.footer-col-title {
    font-size: 13px; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    padding: 4px 0;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-legal-link { margin-top: 8px; font-size: 12px !important; color: rgba(255,255,255,0.45) !important; }
.footer-bottom {
    max-width: var(--max-width);
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: rgba(255,255,255,0.35);
}
.footer-opel {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: rgba(255,255,255,0.3);
}

/* ════════════════════════════════════════════════════════════
   SHARED COMPONENTS
════════════════════════════════════════════════════════════ */

.section { padding: 80px var(--side-pad); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-label {
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--accent-muted);
    margin-bottom: 8px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    border: none; border-radius: 100px;
    font-family: var(--font-body);
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--bg-dark);
    color: white;
}
.btn-primary:hover { background: #333; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-accent {
    background: var(--accent);
    color: var(--text-on-accent);
}
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--text-primary); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }

/* Status indicator */
.status-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px; font-weight: 600;
}
.status-badge.open { background: rgba(22,163,74,0.1); color: #16a34a; }
.status-badge.closed { background: rgba(220,38,38,0.08); color: #dc2626; }
.status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}
.status-badge.open .status-dot { background: #16a34a; }
.status-badge.closed .status-dot { background: #dc2626; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Opening hours */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table td { padding: 10px 0; font-size: 14px; }
.hours-table td:first-child { font-weight: 500; color: var(--text-primary); }
.hours-table td:last-child { text-align: right; color: var(--text-secondary); }
.hours-table tr.today td { font-weight: 600; color: var(--text-primary); }
.hours-table tr.today td:last-child { color: var(--text-primary); }

/* Shimmer */
.shimmer-bg {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer { to { background-position-x: -200%; } }

/* ═══ RESPONSIVE ═══ */

/* Tablet landscape — compact nav */
@media (max-width: 1024px) {
    .nav-link { padding: 8px 12px; font-size: 13px; }
}

/* Tablet portrait & phones */
@media (max-width: 768px) {
    .site-nav { height: 60px; padding: 0 16px; }
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .section { padding: 56px 16px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .nav-mobile-menu a { font-size: 18px; padding: 14px 0; }
    .btn { padding: 12px 22px; font-size: 14px; }
    .site-footer { padding-bottom: 80px; }
}

/* Small phones */
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .nav-mobile-menu a { font-size: 17px; padding: 13px 0; }
    .section-title { font-size: clamp(26px, 7vw, 36px); }
    .section-subtitle { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
