/* ==========================================================================
   Moldovan Detailing Xpert — Stylesheet
   --------------------------------------------------------------------------
   Design system locked to brand brief:
     · Palette  Black · Electric Blue · Metallic Silver · White (no other hues)
     · Type     Exo 2 (display, 700, 0.12em) · Montserrat (body, 400, 0.04em)
     · Voice    Cinematic · Luxury · Futuristic · Minimal · Premium
     · Influences  Tesla · Porsche · AMG · Luxury detailing studios

   Sections:
     1.  Design tokens
     2.  Reset & base
     3.  Layout primitives
     4.  Typography
     5.  Buttons
     6.  Cards (glassmorphism)
     7.  Header & navigation
     8.  Hero (cinematic split + atmosphere)
     9.  Services
    10.  Gallery
    11.  Pricing
    12.  About
    13.  Testimonials
    14.  Contact
    15.  Footer
    16.  Animations & utilities
    17.  Responsive
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */
:root {
    /* ---- Brand palette (locked) -------------------------------------- */
    --c-blue:        #1E88E5;   /* primary */
    --c-blue-2:      #42A5F5;   /* secondary */
    --c-blue-deep:   #1976D2;   /* dark */
    --c-black:       #000000;
    --c-black-2:     #0A0A0A;
    --c-gray-dark:   #111111;
    --c-silver:      #D9D9D9;
    --c-silver-2:    #BFC5CC;
    --c-white:       #FFFFFF;
    --c-text:        #CFCFCF;

    /* Surface borders / glass */
    --c-border:        rgba(255, 255, 255, 0.08);
    --c-border-soft:   rgba(255, 255, 255, 0.04);
    --c-border-strong: rgba(255, 255, 255, 0.16);
    --c-glass:         rgba(255, 255, 255, 0.03);
    --c-glass-2:       rgba(255, 255, 255, 0.05);

    /* ---- Gradients (locked) ------------------------------------------ */
    --grad-blue:     linear-gradient(135deg, #1E88E5 0%, #42A5F5 100%);
    --grad-blue-3:   linear-gradient(135deg, #1976D2 0%, #1E88E5 50%, #42A5F5 100%);
    --grad-bg:       linear-gradient(180deg, #000000 0%, #0A0A0A 50%, #111111 100%);
    --grad-metal:    linear-gradient(135deg, #FFFFFF 0%, #D9D9D9 50%, #BFC5CC 100%);
    --grad-text-metal: linear-gradient(180deg, #FFFFFF 0%, #D9D9D9 60%, #9aa0a6 100%);

    /* ---- Glows -------------------------------------------------------- */
    --glow-blue:        0 0 10px rgba(30, 136, 229, 0.40),
                        0 0 25px rgba(30, 136, 229, 0.25);
    --glow-blue-strong: 0 0 20px rgba(30, 136, 229, 0.60),
                        0 0 40px rgba(30, 136, 229, 0.35),
                        0 0 80px rgba(30, 136, 229, 0.15);
    --glow-blue-soft:   0 0 30px rgba(30, 136, 229, 0.18);

    /* ---- Typography --------------------------------------------------- */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body:    'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --tracking-tight:  -0.005em;
    --tracking-body:    0.04em;
    --tracking-wide:    0.12em;
    --tracking-x-wide:  0.18em;
    --tracking-logo:    0.45em;

    /* ---- Spacing scale (8pt grid) ------------------------------------ */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.5rem;
    --space-6:  2rem;
    --space-7:  3rem;
    --space-8:  4rem;
    --space-9:  6rem;
    --space-10: 8rem;

    /* ---- Geometry ---------------------------------------------------- */
    --radius-sm:  4px;
    --radius-md:  12px;   /* button standard */
    --radius-lg:  20px;   /* card standard */
    --radius-xl:  28px;

    --container-max: 1280px;
    --header-height: 92px;

    /* ---- Motion ------------------------------------------------------ */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration:    280ms;
    --duration-fast: 180ms;
}


/* 2. Reset & base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: var(--tracking-body);
    color: var(--c-text);
    background-color: var(--c-black);
    background-image: var(--grad-bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Atmospheric body scrim — very subtle blue hint in upper-right */
body::before {
    content: '';
    position: fixed;
    top: -20vh;
    right: -20vw;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.05) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

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

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

a:hover { color: var(--c-blue-2); }

ul { list-style: none; }

button {
    font: inherit;
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--c-blue);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

::selection {
    background-color: var(--c-blue);
    color: var(--c-white);
}


/* 3. Layout primitives
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-5);
    position: relative;
}

.section {
    position: relative;
    padding-block: var(--space-10);
    isolation: isolate;
}

/* Subtle accent glow on alternate sections */
.section-dark {
    background-color: var(--c-black);
    position: relative;
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    transform: translateY(-50%);
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.08) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.section-head {
    max-width: 720px;
    margin: 0 auto var(--space-8);
    text-align: center;
}

.section-head p {
    color: var(--c-text);
    opacity: 0.75;
    font-size: 1.0625rem;
    margin-top: var(--space-4);
    line-height: 1.7;
}


/* 4. Typography
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: var(--c-white);
    text-transform: uppercase;
}

h1 {
    font-size: clamp(1.75rem, 4.2vw, 3.5rem);
    letter-spacing: 0.01em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.375rem, 2.8vw, 2.125rem);
    letter-spacing: 0.02em;
}

h3 {
    font-size: 1rem;
    letter-spacing: 0.06em;
}

h4 {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: var(--c-white);
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-blue-2);
    margin-bottom: var(--space-4);
    position: relative;
    padding-left: 28px;
}

.eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 1px;
    background: var(--grad-blue);
}

.section-head .eyebrow { padding-left: 28px; padding-right: 28px; }
.section-head .eyebrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 1px;
    background: var(--grad-blue);
}

.accent-blue { color: var(--c-blue-2); }

/* Metallic gradient text — used for hero punch words */
.text-metal {
    background: var(--grad-text-metal);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* 5. Buttons
   ========================================================================== */
.btn {
    --btn-py: 0.85rem;
    --btn-px: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--btn-py) var(--btn-px);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out),
                color var(--duration) var(--ease-out);
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
}

.btn-primary {
    background: var(--grad-blue);
    color: var(--c-white);
    box-shadow: var(--glow-blue);
}

.btn-primary:hover {
    background: var(--grad-blue-3);
    box-shadow: var(--glow-blue-strong);
    color: var(--c-white);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.02);
    color: var(--c-white);
    border-color: var(--c-border-strong);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(30, 136, 229, 0.08);
    border-color: var(--c-blue);
    color: var(--c-white);
    box-shadow: var(--glow-blue-soft);
}

.btn-sm { --btn-py: 0.55rem; --btn-px: 1rem; font-size: 0.6875rem; letter-spacing: 0.1em; }
.btn-block { width: 100%; }


/* 6. Cards (glassmorphism)
   ========================================================================== */
.card,
.service-card,
.pricing-card,
.testimonial,
.contact-form {
    background: var(--c-glass);
    border: 1px solid var(--c-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    transition: transform var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out),
                background-color var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
    position: relative;
    overflow: hidden;
}

/* Specular highlight strip — gives glass a gloss edge */
.service-card::after,
.pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
    pointer-events: none;
}


/* 7. Header & navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background-color var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out);
}

.header.is-scrolled {
    background-color: rgba(0, 0, 0, 0.78);
    border-bottom-color: var(--c-border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--c-white);
    transition: filter var(--duration) var(--ease-out);
}

.logo:hover { color: var(--c-white); filter: drop-shadow(0 0 8px rgba(30, 136, 229, 0.5)); }

/* Logo — desktop wordmark (img/logo-large.png) shows ≥640px,
   mobile mark (img/icon-white.svg) shows below. */
.logo-desktop,
.logo-mobile {
    width: auto;
    display: block;
    transition: filter var(--duration) var(--ease-out);
}

.logo-desktop {
    height: 60px;
    max-height: 68px;
}

.logo-mobile {
    height: 44px;
    display: none;
}

/* Footer logo can sit a touch larger since it has more vertical room */
.footer .logo-desktop { height: 72px; }

@media (max-width: 960px) {
    .logo-desktop { height: 52px; }
}

@media (max-width: 640px) {
    .logo-desktop { display: none; }
    .logo-mobile  { display: block; }
    .footer .logo-mobile { height: 56px; }
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-link {
    position: relative;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-text);
    padding-block: var(--space-3);
    transition: color var(--duration-fast) var(--ease-out);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 8px;
    height: 1px;
    width: 0;
    background: var(--grad-blue);
    box-shadow: 0 0 8px rgba(30, 136, 229, 0.6);
    transition: width var(--duration) var(--ease-out);
}

.nav-link:hover { color: var(--c-white); }
.nav-link:hover::after { width: 100%; }

.nav-cta { margin-left: var(--space-3); }

/* Mobile-only quick-action links inside the nav drawer */
.nav-social { display: none; }

.nav-social-link {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    transition: background var(--duration) var(--ease-out),
                transform var(--duration) var(--ease-out);
}

.nav-social-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-social-link svg,
.nav-social-link img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    padding: 2px;
}

.nav-toggle span {
    display: block;
    height: 1.5px;
    width: 100%;
    background-color: var(--c-white);
    border-radius: 2px;
    transition: transform var(--duration) var(--ease-out),
                opacity var(--duration) var(--ease-out);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* 8. Hero — cinematic split layout + atmosphere
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding-block: calc(var(--header-height) + var(--space-8)) var(--space-9);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--c-black);
}

/* Layer 1: deep base gradient — kept mostly black with a very subtle blue hint */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -5;
    background:
        radial-gradient(ellipse 70% 50% at 80% 50%, rgba(30, 136, 229, 0.10) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(25, 118, 210, 0.06) 0%, transparent 65%),
        linear-gradient(180deg, #000000 0%, #000000 50%, #050507 100%);
}

/* Layer 2: technical grid */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -4;
    background-image:
        linear-gradient(rgba(207, 207, 207, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(207, 207, 207, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
    opacity: 0.7;
}

/* Layer 3: cinematic light beams from above — toned down */
.hero-beams {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 120vw;
    height: 80vh;
    z-index: -3;
    background:
        conic-gradient(from 200deg at 50% 0%,
            transparent 0deg,
            rgba(30, 136, 229, 0.05) 18deg,
            transparent 30deg,
            transparent 50deg,
            rgba(66, 165, 245, 0.04) 60deg,
            transparent 70deg,
            transparent 100deg,
            rgba(30, 136, 229, 0.03) 110deg,
            transparent 120deg
        );
    filter: blur(20px);
    opacity: 0.6;
    pointer-events: none;
}

/* Layer 4: floating fog — quieter */
.hero-fog {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 40% 25% at 30% 85%, rgba(30, 136, 229, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 35% 20% at 80% 75%, rgba(66, 165, 245, 0.04) 0%, transparent 70%);
    filter: blur(40px);
    animation: fogDrift 18s var(--ease-in-out) infinite alternate;
    pointer-events: none;
}

@keyframes fogDrift {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-3%, 2%, 0); }
}

/* Layer 5: vignette */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

.hero-inner {
    display: block;
    width: 100%;
    position: relative;
    z-index: 5;
}

.hero-text {
    max-width: min(48%, 560px);
    position: relative;
    z-index: 5;
}

.hero-title {
    margin-bottom: var(--space-5);
    text-shadow: 0 0 40px rgba(30, 136, 229, 0.15);
}

.hero-title .accent {
    display: block;
    background: var(--grad-blue);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 24px rgba(30, 136, 229, 0.35));
}

.hero-sub {
    font-size: clamp(1rem, 1.3vw, 1.1875rem);
    color: var(--c-text);
    max-width: 520px;
    margin-bottom: var(--space-7);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

.hero-stats {
    display: flex;
    gap: var(--space-7);
    flex-wrap: wrap;
    padding-top: var(--space-6);
    border-top: 1px solid var(--c-border-soft);
    position: relative;
}

.hero-stats::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--grad-blue);
    box-shadow: var(--glow-blue);
}

.stat { display: flex; flex-direction: column; gap: var(--space-1); }

.stat strong {
    font-family: var(--font-display);
    font-size: 1.375rem;
    color: var(--c-white);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.stat span {
    font-family: var(--font-display);
    font-size: 0.5625rem;
    color: var(--c-text);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
}

/* Hero visual — absolutely anchored to the right edge of the viewport
   so the car bleeds off-screen (the image is cropped on its right side intentionally). */
.hero-visual {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: clamp(640px, 60vw, 1150px);
    height: auto;
    z-index: 2;
    pointer-events: none;
}

/* Halo behind car */
.hero-glow {
    position: absolute;
    top: 10%;
    left: 5%;
    right: 0;
    bottom: 10%;
    background: radial-gradient(ellipse at 60% 50%, rgba(30, 136, 229, 0.28) 0%, rgba(30, 136, 229, 0.08) 45%, transparent 75%);
    filter: blur(60px);
    z-index: 1;
}

.hero-car {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    object-position: right center;
    display: block;
    filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.8))
            drop-shadow(0 0 60px rgba(30, 136, 229, 0.22));
    z-index: 3;
    position: relative;
}

/* Floor reflection plate */
.hero-platform {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 28px;
    background:
        radial-gradient(ellipse at center, rgba(30, 136, 229, 0.55) 0%, transparent 65%);
    filter: blur(14px);
    z-index: 2;
}

/* Floor scan ring */
.hero-platform::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 4px;
    border-radius: 50%;
    border: 1px solid rgba(30, 136, 229, 0.5);
    box-shadow: 0 0 16px rgba(30, 136, 229, 0.6);
    opacity: 0.8;
}

/* Scroll cue */
.hero-scroll {
    position: absolute;
    bottom: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 36px;
    border: 1px solid var(--c-border-strong);
    border-radius: 12px;
    display: grid;
    place-items: center;
    z-index: 2;
}

.hero-scroll span {
    width: 2px;
    height: 8px;
    background: var(--c-blue-2);
    border-radius: 2px;
    animation: scrollHint 1.8s var(--ease-in-out) infinite;
    box-shadow: 0 0 8px rgba(30, 136, 229, 0.7);
}

@keyframes scrollHint {
    0%   { transform: translateY(-6px); opacity: 0; }
    50%  { opacity: 1; }
    100% { transform: translateY(6px);  opacity: 0; }
}


/* 9. Services
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-5);
}

.service-card {
    padding: var(--space-7) var(--space-6);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.10) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--duration) var(--ease-out);
    pointer-events: none;
    border-radius: inherit;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(30, 136, 229, 0.35);
    background: var(--c-glass-2);
    box-shadow: var(--glow-blue-soft), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before { opacity: 1; }

/* Optional photo header on service cards (same pattern as specialty cards).
   Negative margins extend the image to the card's edges. */
.service-media {
    position: relative;
    margin: calc(var(--space-7) * -1) calc(var(--space-6) * -1) var(--space-3);
    height: 150px;
    overflow: hidden;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration) var(--ease-out);
}

.service-card:hover .service-media img {
    transform: scale(1.04);
}

.service-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.25) 45%,
        rgba(10, 10, 14, 0.85) 85%,
        rgba(10, 10, 14, 1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Komplettaufbereitung — two images side by side with a thin blue divider */
.service-media-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(30, 136, 229, 0.45);
}

.service-media-split img {
    grid-row: 1;
}

/* When a card has a photo header, float the icon over the gradient
   transition as a glass badge — same look as the specialty cards. */
.service-card:has(.service-media) .service-icon {
    margin-top: calc(var(--space-7) * -1);
    background: rgba(10, 10, 14, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
                inset 0 0 0 1px rgba(30, 136, 229, 0.25);
    position: relative;
    z-index: 2;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(30, 136, 229, 0.08);
    border: 1px solid rgba(30, 136, 229, 0.2);
    color: var(--c-blue);
    margin-bottom: var(--space-5);
    transition: background var(--duration) var(--ease-out),
                color var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out),
                transform var(--duration) var(--ease-out);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    background: var(--grad-blue);
    color: var(--c-white);
    box-shadow: var(--glow-blue);
    transform: scale(1.05);
}

.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
    margin-bottom: var(--space-3);
    color: var(--c-white);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--c-text);
    opacity: 0.8;
    font-size: 0.9375rem;
    margin-bottom: var(--space-5);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-blue-2);
    position: relative;
    z-index: 1;
}

.service-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--duration) var(--ease-out);
}

.service-link:hover svg { transform: translateX(4px); }


/* 10. Gallery
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-4);
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-glass);
    border: 1px solid var(--c-border);
    cursor: pointer;
    transition: transform var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}

/* Decorative gradient placeholders — replace with real <img> when assets are ready */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(30, 136, 229, 0.4) 0%, transparent 60%),
        linear-gradient(135deg, var(--c-gray-dark) 0%, #1a2540 50%, var(--c-black-2) 100%);
    transition: transform 600ms var(--ease-out);
}

.gallery-item:nth-child(2)::before { background: radial-gradient(ellipse at 70% 30%, rgba(66, 165, 245, 0.35) 0%, transparent 60%), linear-gradient(135deg, var(--c-gray-dark) 0%, #1a2236 50%, var(--c-black-2) 100%); }
.gallery-item:nth-child(3)::before { background: radial-gradient(ellipse at 50% 70%, rgba(25, 118, 210, 0.4) 0%, transparent 60%), linear-gradient(135deg, var(--c-gray-dark) 0%, #1d2745 50%, var(--c-black-2) 100%); }
.gallery-item:nth-child(4)::before { background: radial-gradient(ellipse at 20% 80%, rgba(217, 217, 217, 0.12) 0%, transparent 60%), linear-gradient(135deg, var(--c-gray-dark) 0%, #1a1d24 50%, var(--c-black-2) 100%); }
.gallery-item:nth-child(5)::before { background: radial-gradient(ellipse at 80% 50%, rgba(66, 165, 245, 0.3) 0%, transparent 60%), linear-gradient(135deg, var(--c-gray-dark) 0%, #19223a 50%, var(--c-black-2) 100%); }
.gallery-item:nth-child(6)::before { background: radial-gradient(ellipse at 50% 50%, rgba(30, 136, 229, 0.35) 0%, transparent 60%), linear-gradient(135deg, var(--c-gray-dark) 0%, #18233e 50%, var(--c-black-2) 100%); }

.gallery-item::after {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: var(--space-5);
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.85) 100%);
    color: var(--c-white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(30, 136, 229, 0.5);
    box-shadow: var(--glow-blue-soft);
}

.gallery-item:hover::before { transform: scale(1.06); }


/* 11. Pricing / Packages
   ========================================================================== */

/* Vehicle-size filter (Tesla-style toggle) */
.vehicle-filter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
    padding: var(--space-2);
    background: var(--c-glass);
    border: 1px solid var(--c-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-7);
    max-width: 760px;
    margin-inline: auto;
}

.vehicle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-3);
    border-radius: var(--radius-sm);
    transition: background var(--duration) var(--ease-out),
                color var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
    color: var(--c-text);
    text-align: center;
}

.vehicle-btn-img {
    width: auto;
    height: 70px;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.55;
    filter: brightness(0.9) grayscale(0.3);
    transition: opacity var(--duration) var(--ease-out),
                filter var(--duration) var(--ease-out),
                transform var(--duration) var(--ease-out);
}

.vehicle-btn:hover .vehicle-btn-img {
    opacity: 0.85;
    filter: brightness(1) grayscale(0);
}

.vehicle-btn.is-active .vehicle-btn-img {
    opacity: 1;
    filter: brightness(1.05) drop-shadow(0 6px 12px rgba(30, 136, 229, 0.4));
    transform: scale(1.05);
}

.vehicle-btn-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: inherit;
}

.vehicle-btn-hint {
    font-size: 0.6875rem;
    color: var(--c-text);
    opacity: 0.55;
    letter-spacing: 0.02em;
}

.vehicle-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--c-white);
}

.vehicle-btn.is-active {
    background: var(--grad-blue);
    color: var(--c-white);
    box-shadow: var(--glow-blue);
}

.vehicle-btn.is-active .vehicle-btn-hint {
    color: rgba(255, 255, 255, 0.75);
    opacity: 1;
}

/* Package grid — fixed 3×2 on desktop, collapses on smaller screens */
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    align-items: stretch;
}

.package-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-7) var(--space-6) var(--space-6);
    background: var(--c-glass);
    border: 1px solid var(--c-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: transform var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out),
                background var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}

.package-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
    pointer-events: none;
}

.package-card:hover {
    transform: translateY(-6px);
    border-color: rgba(30, 136, 229, 0.35);
    background: var(--c-glass-2);
    box-shadow: var(--glow-blue-soft), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.package-featured {
    background: linear-gradient(180deg, rgba(30, 136, 229, 0.08) 0%, var(--c-glass) 100%);
    border-color: rgba(30, 136, 229, 0.4);
    box-shadow: var(--glow-blue-soft);
}

.package-featured:hover {
    border-color: var(--c-blue);
    box-shadow: var(--glow-blue);
}

.package-featured-strong {
    background:
        linear-gradient(180deg, rgba(30, 136, 229, 0.15) 0%, rgba(30, 136, 229, 0.04) 100%);
    border-color: var(--c-blue);
    box-shadow: var(--glow-blue);
}

.package-featured-strong:hover {
    border-color: var(--c-blue-2);
    box-shadow: var(--glow-blue-strong);
}

.package-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-blue-2);
    padding: 0.3rem 0.7rem;
    background: rgba(30, 136, 229, 0.1);
    border: 1px solid rgba(30, 136, 229, 0.2);
    border-radius: 100px;
    align-self: flex-start;
    margin-bottom: var(--space-4);
}

.package-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-3);
    color: var(--c-white);
}

.package-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--c-border);
}

.package-price strong {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--c-white);
    line-height: 1;
    letter-spacing: -0.01em;
    transition: color var(--duration) var(--ease-out);
}

.package-price .currency,
.package-price .unit {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--c-text);
    opacity: 0.7;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.package-features { flex: 1; margin-bottom: var(--space-6); }

.package-features li {
    position: relative;
    padding: var(--space-2) 0 var(--space-2) var(--space-6);
    color: var(--c-text);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--c-border-soft);
    letter-spacing: 0.02em;
}

.package-features li:last-child { border-bottom: 0; }

.package-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M3 8l3.5 3.5L13 5' stroke='%2342A5F5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-note {
    text-align: center;
    color: var(--c-text);
    opacity: 0.5;
    font-size: 0.8125rem;
    margin-top: var(--space-7);
    letter-spacing: 0.04em;
    max-width: 640px;
    margin-inline: auto;
}

.badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--grad-blue);
    color: var(--c-white);
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    box-shadow: var(--glow-blue-soft);
    z-index: 2;
}

/* Brief animated highlight when prices change via filter */
.package-price strong.is-updating {
    animation: priceFlash 500ms var(--ease-out);
}

@keyframes priceFlash {
    0%   { color: var(--c-blue-2); transform: scale(1.08); }
    100% { color: var(--c-white); transform: scale(1); }
}


/* Specialty services (headlight, paint correction, scratch repair)
   ----------------------------------------------------------------- */
.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: var(--space-5);
    align-items: stretch;
}

.specialty-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-7) var(--space-6);
    background: var(--c-glass);
    border: 1px solid var(--c-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: transform var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}

.specialty-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
    pointer-events: none;
}

.specialty-card:hover {
    transform: translateY(-6px);
    border-color: rgba(30, 136, 229, 0.4);
    box-shadow: var(--glow-blue-soft), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.specialty-featured {
    background: linear-gradient(180deg, rgba(30, 136, 229, 0.1) 0%, var(--c-glass) 100%);
    border-color: rgba(30, 136, 229, 0.4);
    box-shadow: var(--glow-blue-soft);
}

/* Image header on each specialty card — fades into the card via gradient.
   Negative margins extend the image to the card's edges (card has overflow: hidden
   so the border-radius clips it cleanly). */
.specialty-media {
    position: relative;
    margin: calc(var(--space-7) * -1) calc(var(--space-6) * -1) var(--space-3);
    height: 180px;
    overflow: hidden;
}

.specialty-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration) var(--ease-out);
}

.specialty-card:hover .specialty-media img {
    transform: scale(1.04);
}

.specialty-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.25) 45%,
        rgba(10, 10, 14, 0.85) 85%,
        rgba(10, 10, 14, 1) 100%
    );
    pointer-events: none;
}

.specialty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: rgba(30, 136, 229, 0.1);
    border: 1px solid rgba(30, 136, 229, 0.25);
    color: var(--c-blue);
    margin-top: calc(var(--space-7) * -1);  /* Float icon over the image fade */
    margin-bottom: var(--space-5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 10, 14, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
                inset 0 0 0 1px rgba(30, 136, 229, 0.25);
    position: relative;
    z-index: 2;
    transition: background var(--duration) var(--ease-out),
                color var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}

.specialty-card:hover .specialty-icon {
    background: var(--grad-blue);
    color: var(--c-white);
    box-shadow: var(--glow-blue);
}

.specialty-icon svg { width: 30px; height: 30px; }

.specialty-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-3);
}

.specialty-card > p {
    color: var(--c-text);
    opacity: 0.8;
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.specialty-features { margin-bottom: var(--space-5); }

.specialty-features li {
    position: relative;
    padding: var(--space-2) 0 var(--space-2) var(--space-5);
    color: var(--c-text);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.specialty-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M3 7l3 3 5-6' stroke='%2342A5F5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
}

.specialty-pricing {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-top: auto;
    margin-bottom: var(--space-5);
    padding-block: var(--space-4);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.specialty-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-white);
    letter-spacing: 0.01em;
}

.specialty-price-hint {
    font-size: 0.75rem;
    color: var(--c-text);
    opacity: 0.6;
    letter-spacing: 0.02em;
}


/* Additional services (Zusatzleistungen) — chip list
   ------------------------------------------------- */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-7);
}

.addon {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--c-glass);
    border: 1px solid var(--c-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    color: var(--c-white);
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    transition: background var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out),
                transform var(--duration) var(--ease-out);
}

.addon:hover {
    background: rgba(30, 136, 229, 0.06);
    border-color: rgba(30, 136, 229, 0.3);
    transform: translateY(-2px);
}

.addon svg {
    width: 18px;
    height: 18px;
    color: var(--c-blue);
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(30, 136, 229, 0.5));
}

.addons-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--c-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.addons-cta p {
    color: var(--c-text);
    font-size: 0.9375rem;
    margin: 0;
}


/* Heimservice section
   ------------------ */
.heimservice-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-9);
    align-items: center;
}

.heimservice-text h2 { margin-bottom: var(--space-5); }

.heimservice-text > p {
    color: var(--c-text);
    opacity: 0.85;
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.heim-list {
    margin-bottom: var(--space-6);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-2) var(--space-4);
}

.heim-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    color: var(--c-white);
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--c-border-soft);
}

.heim-list li svg {
    width: 18px;
    height: 18px;
    color: var(--c-blue);
    flex-shrink: 0;
}

.heim-note {
    margin-top: var(--space-4);
    color: var(--c-text);
    opacity: 0.55;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}

.heimservice-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    max-width: 560px;
    margin-inline: auto;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.heim-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 40px rgba(30, 136, 229, 0.2));
}

.heim-glow {
    position: absolute;
    inset: 10% 0 5% 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(30, 136, 229, 0.35) 0%, rgba(30, 136, 229, 0.08) 45%, transparent 75%);
    filter: blur(55px);
    z-index: 1;
}


/* 12. About
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-9);
    align-items: center;
}

.about-text h2 { margin-bottom: var(--space-5); }

.about-text p {
    color: var(--c-text);
    opacity: 0.85;
    margin-bottom: var(--space-4);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--c-white);
    font-weight: 600;
}

.usp-list { margin-top: var(--space-6); }

.usp-list li {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    color: var(--c-white);
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--c-border-soft);
    letter-spacing: 0.02em;
}

.usp-list li svg {
    width: 22px;
    height: 22px;
    color: var(--c-blue);
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(30, 136, 229, 0.5));
}

.about-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin-inline: auto;
}

.about-card-1,
.about-card-2 {
    position: absolute;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.about-card-1 {
    inset: 0 30% 30% 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(30, 136, 229, 0.4) 0%, transparent 60%),
        linear-gradient(135deg, var(--c-gray-dark) 0%, #1a2540 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), var(--glow-blue-soft);
}

.about-card-2 {
    inset: 30% 0 0 30%;
    background:
        radial-gradient(ellipse at 60% 60%, rgba(66, 165, 245, 0.35) 0%, transparent 60%),
        linear-gradient(135deg, var(--c-black-2) 0%, #1a2236 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.about-glow {
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.4) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}


/* About section — cinematic bg image with darkening overlay
   --------------------------------------------------------- */
#ueber-uns {
    background-image: url('img/Leidenschaft.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-color: var(--c-black);
}

/* Override the default section-dark blue blob with a dark scrim over the image */
#ueber-uns::before {
    content: '';
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    filter: none;
    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.85) 45%,
            rgba(0, 0, 0, 0.7) 100%
        ),
        rgba(0, 0, 0, 0.35);
    z-index: -1;
    pointer-events: none;
}

/* The image already carries the visual weight — hide the decorative cards. */
#ueber-uns .about-visual { display: none; }

/* Keep text constrained to the left half so the image breathes on the right */
#ueber-uns .about-grid {
    grid-template-columns: 1.2fr 1fr;
}

#ueber-uns .about-text {
    max-width: 560px;
    /* subtle text shadow for guaranteed legibility over the image */
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}


/* 13. Testimonials
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
}

.testimonial { padding: var(--space-7) var(--space-6); }

.testimonial:hover {
    transform: translateY(-4px);
    border-color: rgba(30, 136, 229, 0.3);
    box-shadow: var(--glow-blue-soft);
}

.stars {
    color: var(--c-blue-2);
    font-size: 1rem;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-4);
    text-shadow: 0 0 8px rgba(30, 136, 229, 0.5);
}

.testimonial p {
    color: var(--c-white);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: var(--space-5);
    letter-spacing: 0.02em;
}

.testimonial footer { display: flex; flex-direction: column; gap: var(--space-1); }

.testimonial footer strong {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--c-white);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.testimonial footer span {
    color: var(--c-text);
    opacity: 0.6;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* 14. Contact
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-8);
    align-items: start;
}

.contact-info h2 { margin-bottom: var(--space-4); }

.contact-info > p {
    color: var(--c-text);
    opacity: 0.8;
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

.contact-list li {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--c-border-soft);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.contact-list strong {
    font-family: var(--font-display);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--c-blue-2);
    font-weight: 600;
}

.contact-list a,
.contact-list span {
    color: var(--c-white);
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.contact-list a:hover { color: var(--c-blue-2); }

/* Contact CTA card — replaces the contact form */
.contact-cta {
    padding: var(--space-7);
    background: var(--c-glass);
    border: 1px solid var(--c-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
    pointer-events: none;
}

.contact-cta h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
}

.contact-cta > p {
    color: var(--c-text);
    opacity: 0.8;
    margin-bottom: var(--space-6);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.contact-cta-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.contact-cta-note {
    margin-top: var(--space-5);
    text-align: center;
    color: var(--c-text);
    opacity: 0.5;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}

/* Shared CTA action — used inside .contact-cta and inside the modal */
.cta-action {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: rgba(30, 136, 229, 0.08);
    border: 1px solid rgba(30, 136, 229, 0.25);
    border-radius: 4px;
    color: var(--c-white);
    transition: background var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}

.cta-action:hover {
    background: var(--grad-blue);
    border-color: var(--c-blue);
    color: var(--c-white);
    box-shadow: var(--glow-blue);
}

.cta-action-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: rgba(30, 136, 229, 0.15);
    color: var(--c-blue-2);
    flex-shrink: 0;
    transition: background var(--duration) var(--ease-out),
                color var(--duration) var(--ease-out);
}

.cta-action:hover .cta-action-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--c-white);
}

.cta-action-icon svg,
.cta-action-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.cta-action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cta-action-label {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-blue-2);
    transition: color var(--duration) var(--ease-out);
}

.cta-action:hover .cta-action-label { color: rgba(255, 255, 255, 0.85); }

.cta-action-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--c-white);
    letter-spacing: 0.01em;
}

/* WhatsApp tint */
.cta-action-whatsapp {
    background: rgba(37, 211, 102, 0.06);
    border-color: rgba(37, 211, 102, 0.25);
}

.cta-action-whatsapp .cta-action-icon {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
}

.cta-action-whatsapp .cta-action-label { color: #25D366; }

.cta-action-whatsapp:hover {
    background: linear-gradient(135deg, #25D366 0%, #1ebe5b 100%);
    border-color: #25D366;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.4),
                0 0 25px rgba(37, 211, 102, 0.25);
}


/* Modal
   ----- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: var(--space-5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease-out);
}

.modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: var(--space-8) var(--space-7);
    background: linear-gradient(180deg, #0E0E12 0%, #050507 100%);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6),
                var(--glow-blue-soft);
    transform: translateY(20px) scale(0.96);
    transition: transform var(--duration) var(--ease-out);
}

.modal[aria-hidden="false"] .modal-card {
    transform: translateY(0) scale(1);
}

.modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: var(--grad-blue);
    box-shadow: var(--glow-blue);
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--c-text);
    transition: background var(--duration) var(--ease-out),
                color var(--duration) var(--ease-out);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--c-white);
}

.modal-close svg { width: 18px; height: 18px; }

.modal-card h3 {
    font-size: 1.375rem;
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

.modal-sub {
    color: var(--c-text);
    opacity: 0.8;
    margin-bottom: var(--space-6);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Context badge shown when the modal is opened from a specific service card */
.modal-context {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-5);
    background: rgba(30, 136, 229, 0.08);
    border: 1px solid rgba(30, 136, 229, 0.25);
    border-radius: var(--radius-md);
}

.modal-context-label {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-blue-2);
    flex-shrink: 0;
}

.modal-context strong {
    color: var(--c-white);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.modal-foot {
    margin-top: var(--space-6);
    text-align: center;
    color: var(--c-text);
    opacity: 0.45;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Lock page scroll when modal is open */
body.modal-open {
    overflow: hidden;
}


/* Google Maps embed
   ----------------- */
.contact-map {
    margin-top: var(--space-7);
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--c-border);
    background: var(--c-glass);
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    /* Re-tint Google's bright map to fit the dark theme */
    filter: invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.8);
}

.contact-map::after {
    /* Top edge highlight to match other cards */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}


/* Floating WhatsApp button (FAB)
   ----------------------------- */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #25D366 0%, #1ebe5b 100%);
    color: #fff;
    border-radius: 50%;
    box-shadow:
        0 10px 28px rgba(37, 211, 102, 0.45),
        0 0 0 6px rgba(37, 211, 102, 0.12);
    z-index: 150;
    transition: box-shadow var(--duration) var(--ease-out),
                color var(--duration) var(--ease-out);
    animation: fabPulse 2.4s var(--ease-in-out) infinite;
}

.whatsapp-fab:hover {
    color: #fff;
    box-shadow:
        0 14px 36px rgba(37, 211, 102, 0.6),
        0 0 0 10px rgba(37, 211, 102, 0.15);
}

.whatsapp-fab svg,
.whatsapp-fab img {
    width: 32px;
    height: 32px;
    color: #fff;
    object-fit: contain;
}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 0 6px rgba(37, 211, 102, 0.12); }
    50%      { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55), 0 0 0 14px rgba(37, 211, 102, 0.06); }
}

/* Don't let the FAB sit on top of the open modal */
body.modal-open .whatsapp-fab { opacity: 0; pointer-events: none; }


/* 15. Footer
   ========================================================================== */
.footer {
    background-color: var(--c-black);
    border-top: 1px solid var(--c-border);
    padding-top: var(--space-9);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 1px;
    background: var(--grad-blue);
    box-shadow: var(--glow-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: var(--space-7);
    padding-bottom: var(--space-8);
}

.footer-tag {
    color: var(--c-text);
    opacity: 0.6;
    font-size: 0.875rem;
    margin-top: var(--space-4);
    max-width: 280px;
    line-height: 1.7;
    letter-spacing: 0.04em;
}

.social-links {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-5);
}

.social-link {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--c-border);
    color: var(--c-text);
    transition: background var(--duration) var(--ease-out),
                color var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}

.social-link:hover {
    background: var(--c-white);
    border-color: var(--c-white);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35),
                0 0 28px rgba(255, 255, 255, 0.15);
}

.social-link svg,
.social-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    stroke-width: 1.75;
}

.footer h4 {
    margin-bottom: var(--space-5);
    color: var(--c-white);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
}

.footer ul li {
    padding: var(--space-2) 0;
    color: var(--c-text);
    opacity: 0.75;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
}

.footer ul li a:hover { color: var(--c-blue-2); }

.footer-bottom {
    padding-block: var(--space-5);
    border-top: 1px solid var(--c-border-soft);
    text-align: center;
    color: var(--c-text);
    opacity: 0.5;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-bottom a {
    color: var(--c-blue-2);
    text-decoration: none;
    transition: color var(--duration) var(--ease-out);
}

.footer-bottom a:hover {
    color: var(--c-white);
}


/* 16. Animations & utilities
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--c-border-strong) 50%, transparent 100%);
    margin-block: var(--space-8);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-fog { animation: none; }
}


/* 17. Responsive
   ========================================================================== */
@media (max-width: 960px) {
    /* Strip backdrop-filter on mobile: it creates a stacking context that
       confines the fixed .nav drawer to the header's 92px height, hiding it.
       Use a solid dark bg instead — visually similar at small sizes. */
    .header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: rgba(0, 0, 0, 0.92);
    }

    .header.is-scrolled {
        background-color: rgba(0, 0, 0, 0.96);
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        width: min(340px, 85vw);
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
        padding: var(--space-7) var(--space-6);
        background-color: rgba(8, 8, 10, 0.98);
        border-left: 1px solid var(--c-border);
        transform: translateX(100%);
        transition: transform var(--duration) var(--ease-out);
        overflow-y: auto;
        z-index: 99;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
    }

    .nav.is-open { transform: translateX(0); }
    .nav-link { padding: var(--space-4) 0; font-size: 0.8125rem; }
    .nav-link::after { display: none; }
    .nav-cta { margin-left: 0; margin-top: var(--space-4); }
    .nav-toggle { display: flex; position: relative; z-index: 101; }

    /* Reveal social/quick links in the mobile drawer, below the CTA */
    .nav-social {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: var(--space-4);
        margin-top: var(--space-6);
        padding-top: var(--space-5);
        border-top: 1px solid var(--c-border);
    }

    /* Hero on mobile: image stays anchored as a background layer behind
       the text (not stacked below). Container + text live on top with a
       dark gradient ensuring legibility. */
    .hero-text {
        max-width: none;
        margin-inline: auto;
        text-align: center;
    }

    .eyebrow,
    .section-head .eyebrow { padding-left: 28px; padding-right: 28px; }
    .hero-sub { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-stats::before { left: 50%; transform: translateX(-50%); }

    /* Visual: car as full-bleed background, anchored bottom-right */
    .hero-visual {
        position: absolute !important;
        inset: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        transform: none !important;
        opacity: 0.7;
        z-index: 0;
        pointer-events: none;
    }

    .hero-car {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: 75% 65%;
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
    }

    .hero-glow {
        top: auto;
        bottom: 0;
        left: 10%;
        right: -10%;
        height: 60%;
        opacity: 0.5;
    }

    /* Container above the image */
    .hero > .container { position: relative; z-index: 5; }

    /* Extra darkening scrim on top of the image for text legibility */
    .hero::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.8) 100%
        );
        pointer-events: none;
    }

    .about-grid,
    .contact-grid,
    .heimservice-grid {
        grid-template-columns: 1fr;
        gap: var(--space-7);
    }

    /* Stronger overlay on mobile since text sits over the full image */
    #ueber-uns { background-position: center; }
    #ueber-uns::before {
        background:
            linear-gradient(180deg,
                rgba(0, 0, 0, 0.6) 0%,
                rgba(0, 0, 0, 0.85) 60%,
                rgba(0, 0, 0, 0.92) 100%
            );
    }
    #ueber-uns .about-grid { grid-template-columns: 1fr; }
    #ueber-uns .about-text { max-width: none; }

    .heimservice-visual { max-width: 360px; order: 2; }
    .heimservice-text { order: 1; }

    .vehicle-filter { grid-template-columns: repeat(2, 1fr); }
    .package-grid   { grid-template-columns: repeat(2, 1fr); }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .section { padding-block: var(--space-9); }
    .section-head { margin-bottom: var(--space-7); }

    .hero { min-height: auto; padding-block: calc(var(--header-height) + var(--space-7)) var(--space-8); }

    .hero-stats { gap: var(--space-5); }
    .stat strong { font-size: 1.5rem; }

    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }

    .form-row { grid-template-columns: 1fr; }

    .contact-form { padding: var(--space-5); }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .vehicle-btn { padding: var(--space-3) var(--space-2); gap: var(--space-1); }
    .vehicle-btn-img { height: 48px; }
    .vehicle-btn-hint { display: none; }

    .package-grid { grid-template-columns: 1fr; }
    .addons-grid  { grid-template-columns: 1fr; }

    .contact-map { height: 320px; }

    .whatsapp-fab {
        width: 54px;
        height: 54px;
        bottom: 18px;
        right: 18px;
    }
    .whatsapp-fab svg,
    .whatsapp-fab img { width: 28px; height: 28px; }
}


/* ==========================================================================
   18. Legal pages (impressum / datenschutz / cookies)
   ========================================================================== */
.legal-page {
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-9);
    position: relative;
    isolation: isolate;
}

.legal-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.08) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.legal-page .container { max-width: 880px; }

.legal-header {
    text-align: center;
    margin-bottom: var(--space-9);
    padding-bottom: var(--space-7);
    border-bottom: 1px solid var(--c-border);
    position: relative;
}

.legal-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: var(--grad-blue);
    box-shadow: var(--glow-blue);
}

.legal-header h1 {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    margin-bottom: var(--space-3);
}

.legal-lead {
    color: var(--c-text);
    opacity: 0.7;
    font-size: 1rem;
    max-width: 540px;
    margin-inline: auto;
}

.legal-section {
    margin-bottom: var(--space-8);
}

.legal-section h2 {
    font-size: 1.125rem;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-4);
    color: var(--c-white);
    padding-left: var(--space-4);
    border-left: 2px solid var(--c-blue);
}

.legal-section h3 {
    font-size: 0.9375rem;
    color: var(--c-blue-2);
    margin-top: var(--space-5);
    margin-bottom: var(--space-3);
    letter-spacing: 0.08em;
}

.legal-section p {
    color: var(--c-text);
    line-height: 1.75;
    margin-bottom: var(--space-4);
    font-size: 0.9375rem;
}

.legal-section a {
    color: var(--c-blue-2);
    text-decoration: underline;
    text-decoration-color: rgba(66, 165, 245, 0.35);
    text-underline-offset: 3px;
    transition: color var(--duration) var(--ease-out),
                text-decoration-color var(--duration) var(--ease-out);
}

.legal-section a:hover {
    color: var(--c-white);
    text-decoration-color: var(--c-blue-2);
}

.legal-section ul {
    margin-bottom: var(--space-4);
    padding-left: var(--space-5);
    list-style: disc;
    color: var(--c-text);
}

.legal-section ul li {
    padding-block: var(--space-2);
    list-style-position: outside;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.legal-section ul li::marker {
    color: var(--c-blue);
}

.legal-section strong {
    color: var(--c-white);
    font-weight: 600;
}

.legal-dl {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-3) var(--space-5);
    padding: var(--space-5) var(--space-6);
    background: var(--c-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.legal-dl dt {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-blue-2);
    align-self: start;
    padding-top: 4px;
}

.legal-dl dd {
    color: var(--c-white);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.legal-dl dd a { color: var(--c-blue-2); text-decoration: none; }
.legal-dl dd a:hover { color: var(--c-white); }

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-block: var(--space-4);
    background: var(--c-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--c-border);
    color: var(--c-text);
    vertical-align: top;
}

.legal-table thead th {
    background: rgba(30, 136, 229, 0.08);
    color: var(--c-white);
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.legal-table tbody tr:last-child td { border-bottom: 0; }

.legal-meta {
    font-size: 0.8125rem;
    opacity: 0.5;
    margin-top: var(--space-4);
}

.legal-footer-link {
    text-align: center;
    margin-top: var(--space-9);
    padding-top: var(--space-7);
    border-top: 1px solid var(--c-border-soft);
}

.legal-footer-link a {
    color: var(--c-blue-2);
    font-family: var(--font-display);
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}

.legal-footer-link a:hover { color: var(--c-white); }

@media (max-width: 640px) {
    .legal-dl {
        grid-template-columns: 1fr;
        gap: var(--space-2) 0;
        padding: var(--space-4);
    }
    .legal-dl dt { padding-top: var(--space-3); }
    .legal-dl dt:first-of-type { padding-top: 0; }

    .legal-table { font-size: 0.8125rem; }
    .legal-table th,
    .legal-table td { padding: var(--space-2) var(--space-3); }
}


/* ==========================================================================
   19. Cookie consent banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 180;
    max-width: 720px;
    margin-inline: auto;
    background: rgba(8, 8, 10, 0.96);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5),
                var(--glow-blue-soft);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 320ms var(--ease-out),
                transform 320ms var(--ease-out);
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-5);
    align-items: center;
    padding: var(--space-5) var(--space-6);
}

.cookie-banner-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--c-text);
}

.cookie-banner-text strong {
    color: var(--c-white);
    font-family: var(--font-display);
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cookie-banner-text a {
    color: var(--c-blue-2);
    text-decoration: underline;
    text-decoration-color: rgba(66, 165, 245, 0.4);
    text-underline-offset: 2px;
}

.cookie-banner-text a:hover { color: var(--c-white); }

.cookie-banner-actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

/* Move FAB up so the banner doesn't sit underneath it */
.cookie-banner.is-visible ~ .whatsapp-fab,
.whatsapp-fab.is-shifted {
    transform: translateY(-90px);
    transition: transform 320ms var(--ease-out);
}

@media (max-width: 640px) {
    .cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }

    .cookie-banner-inner {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        padding: var(--space-4) var(--space-5);
    }

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-banner-actions .btn {
        flex: 1;
    }
}
