/* =========================================
   GLOBAL SETTINGS & TYPOGRAPHY
   ========================================= */
:root {
    --primary-color: #ff0000;
    --text-light: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.4);
    --text-grey: #aaa;
    --bg-dark: #000000;
    --bg-card: #0a0a0a;
    --bg-card-hover: #0f0f0f;
    --border-color: #1a1a1a;
}

/* Browser-sicherer Reset, iOS Text-Zoom Fix */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 0;
    height: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

/* Verstecke Scrollbalken für Chrome, Safari und Opera */
html::-webkit-scrollbar {
    display: none;
}

/* Spezifische Klasse für die Hauptseite */
html.snap-enabled {
    overflow-y: scroll;
}

/* Content Section für mobiles Snapping optimieren */
.content-section {
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Sicherstellen, dass der Body nicht das Snapping bricht */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none;
}

h1 { 
    font-size: clamp(32px, 8vw, 60px); 
    margin-bottom: 20px; 
    line-height: 1.2;
}
h2 { 
    font-size: clamp(28px, 6vw, 45px); 
    margin-bottom: 15px; 
    line-height: 1.2;
}
h3 { 
    font-size: clamp(22px, 4vw, 35px); 
    margin-bottom: 10px; 
}

/* =========================================
   HEADER (DESKTOP) - Sauberer, transparenter Look
   ========================================= */
.hamburger { 
    display: none;
} 

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 9999;
    padding: 0px 50px;
    background: transparent !important;
    border-bottom: none !important;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-logo-link {
    grid-column: 1;
    justify-self: start; 
    display: flex;
    align-items: center; 
    z-index: 10000; 
    position: relative;
}

.header-logo-link img, #smart-logo {
    display: block !important;
    height: 175px !important;
    width: auto !important;
    max-height: 175px !important;
    object-fit: contain !important;
}

/* Flexbox für Text-Links und Icons nebeneinander auf Desktop */
.nav-block {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 50px; 
}

.nav-block ul {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dim);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px; 
    position: relative;
    transition: color 0.3s ease;
}

.nav-link.active, .nav-link:hover {
    color: var(--text-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #0000ff);
}

/* =========================================
   NAVIGATION ICONS (Desktop)
   ========================================= */
.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-icons a {
    color: var(--text-light);
    font-size: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* =========================================
   DYNAMIC BACKGROUND
   ========================================= */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: background-image 0.8s ease-in-out;
    background-image: url('Bilder/home-bg.webp');
}

.overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

/* =========================================
   FOOTER
   ========================================= */
.footer-links a {
    transition: 0.3s;
}
.footer-links a:hover { color: #ff0000 !important; }

/* =========================================
   COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f0f0f;
    border: 1px solid #222;
    box-shadow: 0 15px 50px rgba(0,0,0,0.9);
    padding: 25px;
    border-radius: 12px;
    z-index: 1000000;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: calc(100% - 40px);
    max-width: 550px;
    font-family: 'Montserrat', sans-serif;
}

.cookie-banner p { 
    color: #ccc;
    font-size: 13px; 
    margin-bottom: 20px; 
    line-height: 1.6;
}

.cookie-buttons { 
    display: flex; 
    gap: 15px; 
    width: 100%; 
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-btn { 
    flex: 1;
    min-width: 160px;
    padding: 12px 20px; 
    font-family: 'Oswald', sans-serif; 
    font-weight: bold; 
    border: none; 
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s; 
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-accept { background: var(--primary-color); color: #fff; }
.btn-accept:hover { background: #cc0000; transform: translateY(-2px); }
.btn-reject { background: #222; color: #fff; border: 1px solid #444; }
.btn-reject:hover { background: #333; transform: translateY(-2px); }

/* =========================================
   SUBPAGE STYLES (Extracted from HTML)
   ========================================= */
.subpage-body {
    background-color: var(--bg-dark);
}

.subpage-header-section {
    padding-top: 150px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.subpage-header-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1;
}

.subpage-header-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-label {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.subpage-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(40px, 8vw, 70px);
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.subpage-description {
    font-size: 18px;
    color: var(--text-grey);
    line-height: 1.6;
}

/* --- Detailing & Techzentrum Specifics --- */
.content-grid-section {
    padding: 80px 20px;
    background-color: #050505;
}

.content-grid-container {
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    flex: 1;
    min-width: 300px;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.accent-line {
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin-bottom: 25px;
}

.card-text {
    color: #888;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

.image-container {
    flex: 1;
    min-width: 300px;
    background-color: #111;
    height: 450px;
    border-radius: 8px;
    border: 1px solid #222;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-list-section {
    padding: 100px 20px;
    background-color: var(--bg-card);
    border-top: 1px solid #111;
}

.service-item {
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.service-item h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
    display: flex;
    align-items: center;
}

.service-item h3 i {
    color: var(--primary-color);
    margin-right: 15px;
}

.service-item p {
    color: #777;
    line-height: 1.8;
    font-size: 14px;
    padding-left: 35px;
}

/* --- Kontakt Page --- */
.kontakt-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: flex-start; 
    justify-content: center;
    padding: 150px 20px 60px;
    background-image: url('Bilder/kontakt-bg.webp');
    background-size: cover;
    background-position: center;
    position: relative;
}

.kontakt-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1;
}

.n9-contact-container { 
    position: relative;
    z-index: 2;
    display: flex; 
    flex-direction: row; 
    background: var(--bg-card); 
    width: 100%; 
    max-width: 1100px; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8); 
}

.n9-contact-info { flex: 1; padding: 60px 50px; text-align: left; }
.n9-contact-info h2 { font-family: 'Oswald', sans-serif; font-size: 40px; color: #fff; margin-bottom: 5px; letter-spacing: 2px; }
.n9-contact-info p { color: #888; font-size: 15px; margin-bottom: 30px; }

.n9-contact-form { display: flex; flex-direction: column; gap: 15px; }
.n9-contact-form input, .n9-contact-form textarea { 
    background: #111;
    border: 1px solid #222; color: #fff; padding: 16px; 
    border-radius: 6px; outline: none; transition: 0.3s;
}
.n9-contact-form input:focus, .n9-contact-form textarea:focus { border-color: var(--primary-color); }

.n9-btn-send { 
    background: #fff;
    color: #000; border: none; padding: 16px; 
    font-weight: bold; font-family: 'Oswald', sans-serif; text-transform: uppercase; 
    border-radius: 6px; cursor: pointer; transition: 0.3s;
}
.n9-btn-send:hover { background: var(--primary-color); color: #fff; }

.n9-contact-map { flex: 1; min-height: 450px; border-left: 1px solid var(--border-color); }
.n9-contact-map iframe { width: 100%; height: 100%; border: none; filter: grayscale(100%) invert(92%); }

/* --- Responsive Subpages --- */
@media (max-width: 992px) {
    .n9-contact-container { max-width: 90%; }
}

@media (max-width: 768px) {
    .n9-contact-container { flex-direction: column; width: 95%; }
    .n9-contact-map { border-left: none; border-top: 1px solid var(--border-color); min-height: 350px; width: 100%; }
    .n9-contact-info { padding: 40px 25px; text-align: left; }
    .n9-contact-info h2 { font-size: 32px; text-align: center; }
    .n9-contact-info p { text-align: center; margin-bottom: 25px; }
    .kontakt-page-wrapper { align-items: center; padding: 100px 10px 40px; }
    
    .n9-contact-form input, .n9-contact-form textarea { font-size: 16px; } /* Verhindert automatisches Zoomen auf iOS */
    
    .info-card { padding: 30px 20px; }
    .card-title { font-size: 26px; }
    .image-container { height: 300px; }
}

@media (max-width: 480px) {
    .n9-contact-info { padding: 30px 15px; }
    .n9-contact-map { min-height: 250px; }
    .n9-contact-info h2 { font-size: 28px; }
}
@media (max-width: 768px) {
    .main-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important; 
        align-items: center !important;
        height: calc(80px + env(safe-area-inset-top)) !important;
        padding: env(safe-area-inset-top) 15px 0 15px !important; 
        position: fixed !important; 
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: transparent !important;
        z-index: 9999 !important;
    }
    
    .header-logo-link {
        position: relative !important;
        left: -60px !important; 
        top: 0 !important;
        transform: none !important; 
        display: flex !important;
        align-items: center !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .header-logo-link img, #smart-logo {
        width: 250px !important; 
        height: auto !important;
        max-height: none !important; 
    }

    .content-section {
        padding-top: 0 !important; 
    }

    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 10000; 
    }
    
    .hamburger span {
        width: 26px;
        height: 3px; 
        background: #fff; 
        transition: 0.3s ease; 
        border-radius: 2px;
    }

    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-block { 
        position: fixed;
        top: 0; 
        right: -100%;
        width: 100%; 
        height: 100vh;
        background: rgba(0,0,0,0.95); 
        display: flex; 
        flex-direction: column !important; 
        justify-content: center; 
        align-items: center;
        gap: 50px !important; 
        transition: 0.4s ease-in-out;
        z-index: 9999;
        border: none !important;
    }
    
    .nav-block.open { 
        right: 0;
    }
    
    .nav-block ul { 
        flex-direction: column !important;
        align-items: center !important;
        gap: 35px !important; 
        padding: 0 !important;
    }
    
    .nav-link { 
        font-size: 22px !important;
        letter-spacing: 2px !important; 
    }

    .nav-icons {
        margin-top: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-icons a {
        font-size: 28px !important; 
        margin: 0 15px !important; 
    }

    .mini-footer {
        flex-direction: column !important;
        align-items: center;
        gap: 15px;
        padding: 30px 20px !important;
        text-align: center;
    }
    
    .footer-links { margin-bottom: 0; }
    .footer-links a { margin: 0 10px !important; }

    h1 { font-size: clamp(28px, 7vw, 36px) !important; } 
    h2 { font-size: 28px !important; }
    h3 { font-size: 22px !important; }
}

/* =========================================
   MODERN FOOTER V2
   ========================================= */
.main-footer-v2 {
    background-color: #050505;
    padding: 80px 20px 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 40px;
}

.footer-col h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--text-light);
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-col p {
    color: #888;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col.contact p {
    display: flex;
    align-items: flex-start;
}

.footer-col.contact i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 4px;
    width: 20px;
    text-align: center;
}

.footer-col.social .social-links {
    display: flex;
    gap: 15px;
}

.footer-col.social .social-links a {
    color: var(--text-light);
    background: #111;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid #222;
    font-size: 18px;
    text-decoration: none;
}

.footer-col.social .social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #777;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    .footer-col.contact p {
        justify-content: center;
    }
    .footer-col.social .social-links {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-legal {
        justify-content: center;
    }
}