/* ============================================
   PROFCAR - APPLE STYLE REDESIGN
   Modern, Minimalist KFZ-Betrieb Website
   ============================================ */

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#rechtliches,
section[id] {
    scroll-margin-top: 90px;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('Inter/web/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('Inter/web/Inter-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('Inter/web/Inter-SemiBold.woff2') format('woff2');
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

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

button, input, select, textarea {
    font: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    position: relative;
    padding: 0.5rem 0;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #dc3545;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-logo {
    padding: 0;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.nav-link-logo img {
    position: relative;
    height: 36px;
    width: auto;
    top: 4px;
    object-fit: contain;
    -webkit-object-fit: contain;
}

.nav-link-logo::after {
    bottom: 4px;
}

.cta-link {
    background: linear-gradient(135deg, #dc3545 0%, #ff5a6b 100%);
    color: #fff !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: 24px;
    font-weight: 600;
}

.cta-link::after {
    display: none;
}

.cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.3);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 0.85rem 1.8rem;
    border: none;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.3px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #dc3545 0%, #ff5a6b 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(220, 53, 69, 0.3);
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    background: linear-gradient(180deg, #050505 0%, #111111 100%);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    background: #000;
}

.hero-video--fallback {
    display: none;
}

.hero-fallback {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: min(90%, 420px);
    padding: 1rem 1.25rem;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.hero-video--fallback + .hero-fallback {
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-inner {
    animation: fadeInUp 0.8s ease-out;
}

.hero-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

.hero-title {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.3rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: clamp(12px, 4vh, 30px);
    left: 0;
    right: 0;
    z-index: 4;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0 1rem;
    pointer-events: none;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    margin: 0 auto;
    animation: bounce 2s infinite;
}

.scroll-indicator p {
    margin: 0;
}

@media (max-height: 700px), (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECTION LAYOUT
   ============================================ */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

section:nth-child(even) {
    background: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

/* ============================================
   VEHICLES SECTION
   ============================================ */

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.vehicle-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.vehicle-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f0f0f0;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #dc3545 0%, #ff5a6b 100%);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-info {
    padding: 1.5rem;
}

.vehicle-info h3 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.vehicle-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: #dc3545;
    font-weight: 600;
    font-size: 0.9rem;
}

.link-arrow:hover {
    color: #ff5a6b;
    transform: translateX(4px);
}

.vehicles-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 2rem;
}

.about-quote {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(255, 90, 107, 0.05) 100%);
    padding: 2rem;
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    margin: 2rem 0;
    font-style: italic;
}

.about-quote p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    margin: 0;
}

.about-quote footer {
    font-size: 0.9rem;
    color: #666;
    font-style: normal;
    font-weight: 600;
    margin-top: 1rem;
}

.about-text p {
    color: #666;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.about-stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.1);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.about-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.about-stat-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    line-height: 1.4;
}

/* Certificate layout: small image with description on the right */
.cert-wrapper {
    display: flex;
    gap: 16px;
    align-items: center;
}
.cert-image {
    width: 260px;
    height: auto;
    flex: 0 0 260px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    object-fit: cover;
}
.cert-note {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .cert-wrapper { flex-direction: column; align-items: flex-start; }
    .cert-image { width: 100%; flex: 0 0 auto; }
    .cert-note { margin-top: 0.75rem; }
}

/* ============================================
   REVIEWS SECTION
   ============================================ */

.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
}

.rating-summary {
    display: inline-block;
}

.rating-big {
    font-size: 2.5rem;
    font-weight: 700;
    color: #dc3545;
    display: block;
    margin-bottom: 0.5rem;
}

.rating-text {
    font-size: 0.95rem;
    color: #666;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.review-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.review-stars {
    color: #ffc107;
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}

.review-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.review-author {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

/* ============================================
   LOCATION SECTION
   ============================================ */

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.location-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.info-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-card h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-size: 1.1rem;
}

.info-details p {
    color: #666;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.info-note {
    color: #777;
    font-size: 0.88rem;
    margin-top: 0.5rem;
}

.info-details > a {
    color: #dc3545;
    font-weight: 600;
}

.info-details > a:hover {
    color: #ff5a6b;
}

.info-details .social-link {
    color: #333 !important;
}

.info-details .social-link:hover {
    color: #333;
}

.location-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    -webkit-mask-image: radial-gradient(circle, white 0%, white 100%);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
}

.location-content .info-card.full-width {
    grid-column: 1 / -1;
    padding: 2.5rem;
}

.location-content .info-card.full-width .info-details p {
    font-size: 1rem;
}

/* Social media buttons (moved from inline <style> in HTML) */
.info-details .social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #333;
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    font-weight: 600;
    font-size: 1.05rem;
}
.info-details .social-link:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
    .social-media-container { gap: 0.75rem; }
    .social-media-container a { padding: 0.7rem 1rem; font-size: 0.9rem; gap: 0.5rem; }
    .social-media-container img { width: 24px; height: 24px; }
    .social-media-description { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .social-media-heading { font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .social-media-container { gap: 0.5rem; }
    .social-media-container a { padding: 0.6rem 0.8rem; font-size: 0.8rem; gap: 0.4rem; }
    .social-media-container img { width: 20px; height: 20px; }
    .social-media-description { font-size: 0.85rem; margin-bottom: 1rem; }
    .social-media-heading { font-size: 1.2rem; }
}

/* Map iframe and image helpers */
.map-iframe {
    border: 0;
    border-radius: 16px;
    display: block;
    -webkit-border-radius: 16px;
}
.modal-note { font-size: 0.85rem; color: #666; margin: 1rem 0; }
.img-contain { object-fit: contain; }
.img-rounded { border-radius: 8px; }

/* Social panel */
.social-panel {
    margin-top: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #cccccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.social-media-heading { font-size: 1.8rem; margin-bottom: 1rem; text-align: center; color: #333; }
.social-media-description { margin-bottom: 2rem; font-size: 1.1rem; text-align: center; color: #666; }
.social-media-container { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.cert-wrapper { margin-top: 2.5rem; }

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */

.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.cert-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.cert-card img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.cert-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: #c8ccd4;
    color: #111;
    padding: 100px 0;
}

.cta-content {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}

.cta-content h2 {
    color: #111;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: #2a2a2a;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-content button {
    min-width: 220px;
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.modal-content {
    background: #fff;
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    background: #fafafa;
}

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

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #dc3545;
}

.footer-section ul {
    list-style: none;
}

.footer-legal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-legal .popup-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    justify-content: center;
}

.footer-legal .impressum,
.footer-legal .footer-privacy {
    background: rgba(255, 255, 255, 0.04);
    padding: 1.5rem;
    border-radius: 16px;
}

.footer-privacy .cookie-edit-panel {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

.footer-privacy .cookie-edit-panel h5 {
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: 0.95rem;
}

.footer-privacy .cookie-edit-panel p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.footer-privacy .cookie-edit-panel button {
    width: 100%;
}

.footer-legal h4 {
    margin-bottom: 1rem;
}

.footer-privacy p,
.footer-privacy li {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    line-height: 1.75;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 2rem;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-container {
        padding: 0 1.5rem;
    }

    section {
        padding: 80px 0;
    }

    .vehicles-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    body {
        font-size: 15px;
    }

    .nav-menu {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.7rem;
        flex-basis: calc(50% - 0.4rem);
        text-align: center;
    }

    .nav-logo img {
        height: 40px;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .vehicles-grid,
    .services-grid,
    .certs-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .location-map iframe {
        height: 300px !important;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero {
        margin-top: 120px;
    }

    .modal-content {
        padding: 2rem;
        max-width: 95%;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-legal .popup-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-legal .popup-buttons .btn {
        width: 100%;
        pointer-events: auto !important;
        z-index: 10;
        padding: 0.9rem 1.2rem;
        font-size: 0.85rem;
    }

    .cta-section {
        padding: 60px 0;
    }

    #rechtliches,
    section[id] {
        scroll-margin-top: 140px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    body {
        font-size: 14px;
    }

    .nav-container {
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
    }

    .nav-menu {
        gap: 0.6rem;
        font-size: 0.65rem;
        flex-basis: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.65rem;
        flex-basis: calc(50% - 0.3rem);
        text-align: center;
        padding: 0.3rem 0;
    }

    .nav-logo img {
        height: 35px;
    }

    .cta-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }

    section {
        padding: 40px 0;
    }

    .section-container {
        padding: 0 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .hero {
        height: 100vh;
        margin-top: 130px;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .hero-label {
        font-size: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.85rem;
    }

    .btn-large {
        padding: 0.8rem 2rem;
    }

    .hero-cta {
        gap: 1rem;
        flex-direction: column;
        width: 100%;
    }

    .btn-secondary {
        width: 100%;
    }

    .vehicle-image {
        height: 220px;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .service-icon {
        font-size: 2.2rem;
    }

    .about-quote {
        padding: 1.5rem;
        font-size: 0.95rem;
    }

    .review-card {
        padding: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
    }

    .cta-section {
        padding: 40px 0;
    }

    .cta-content h2 {
        font-size: 1.3rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .footer-legal .popup-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-legal .popup-buttons .btn {
        width: 100%;
        pointer-events: auto !important;
        z-index: 10;
        padding: 0.9rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   ANIMATIONS - GSAP Integration
   ============================================ */

.cookie-overlay {
    position: fixed;
    inset: auto 20px 20px;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
}

.cookie-overlay__panel {
    width: min(100%, 1120px);
    background: rgba(18, 18, 18, 0.96);
    border-radius: 20px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(20px);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    pointer-events: all;
}

.cookie-overlay__text p {
    margin: 0;
    color: #f0f0f0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-overlay__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-overlay__info {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

.cookie-overlay__link {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-overlay__link:hover {
    color: #ffb4b4;
}
.cookie-overlay__link {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cookie-overlay--hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.cookie-overlay:not(.cookie-overlay--hidden) {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

@media (max-width: 768px) {
    .cookie-overlay {
        inset: auto 16px 16px;
    }

    .cookie-overlay__panel {
        grid-template-columns: 1fr;
    }

    .cookie-overlay__info {
        text-align: left;
    }
}

.fade-in {
    opacity: 0;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
}

.section-card {
    opacity: 0;
    transform: translateY(20px);
}

/* ============================================
   POPUP MODAL STYLES FOR LEGAL INFORMATION
   ============================================ */

.popup-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}

.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
}

.popup-modal.active {
    display: flex;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.popup-content {
    position: relative;
    background: white;
    color: #1a1a1a;
    border-radius: 16px;
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    animation: slideUp 0.3s ease;
}

.popup-modal .btn-secondary {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.popup-modal .btn-secondary:hover {
    background: #333;
    border-color: #333;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 1rem;
}

.popup-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #333;
}

.popup-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.popup-content li {
    margin-bottom: 0.5rem;
}

.popup-content a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popup-content a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    padding: 0.5rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #1a1a1a;
}

.cookie-edit-panel {
    background: #f5f5f5;
    border-left: 4px solid #d0d0d0;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.cookie-edit-panel h5 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .popup-content {
        max-width: 95%;
        padding: 1.5rem;
    }

    .popup-content h3 {
        font-size: 1.2rem;
    }

    .popup-buttons {
        flex-direction: column;
    }

    .popup-buttons .btn {
        width: 100%;
    }
}
