/* =========================================
   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;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Hält beim Scrollen zu Ankern Abstand nach oben */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* NEU: Standardgrößen für PC/Desktop */
h1 {
    font-size: 60px; 
    margin-bottom: 20px;
}

h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

h3 {
    font-size: 30px;
    margin-bottom: 10px;
}

/* =========================================
   HEADER (LOGO, NAV, ICONS)
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 10px 1px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-block {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo {
    display: block !important;
    height: 45px !important;
    width: auto !important;
    max-width: 250px !important;
    object-fit: contain !important;
}

.nav-block ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dim);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 15px;
    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: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #0000ff);
}

.icon-block {
    display: flex;
    flex-shrink: 0;
}

.icon-block a {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon-block a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* =========================================
   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);
}

/* =========================================
   SECTIONS & FOOTER
   ========================================= */
.content-section {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.hero-content p {
    font-size: clamp(14px, 2vw, 20px);
    letter-spacing: 5px;
    color: var(--text-grey);
    margin-top: 10px;
}

.mini-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    font-size: 12px;
    color: #ffffff;
}

.contact-grid-section { position: relative; }
.contact-grid-section .mini-footer { position: absolute; bottom: 20px; left: 0; }
.subpage-body .mini-footer { display: block; }
.footer-links a { color: #fff; text-decoration: none; margin-right: 20px; }

/* =========================================
   COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    padding: 20px 30px;
    border-radius: 8px;
    z-index: 999999;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 90%;
    max-width: 600px;
    font-family: 'Montserrat', sans-serif;
}

.cookie-banner p {
    color: var(--text-grey);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

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

.cookie-btn {
    padding: 12px 25px;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
}

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

/* =========================================
   RESPONSIVE DESIGN (Handy)
   ========================================= */
#kontakt {
    scroll-margin-top: 100px; 
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column !important;
        padding: 15px 0 10px 0 !important;
        height: auto !important;
        gap: 15px !important;
    }
    .main-header > a { justify-content: center !important; width: 100% !important; }
    .main-header img { height: 50px !important; max-height: 50px !important; }
    .nav-block { width: 100%; border-top: 1px solid #222 !important; border-bottom: 1px solid #222 !important; }
    .nav-block ul { flex-wrap: wrap !important; justify-content: center !important; gap: 15px 25px !important; padding: 12px 0 !important; }
    .nav-link { font-size: 13px !important; letter-spacing: 1px !important; }
    .icon-block { justify-content: center !important; width: 100% !important; gap: 25px !important; }

    #kontakt {
        padding-top: 50px !important;
        height: auto !important; 
        min-height: 100vh;
        scroll-margin-top: 220px;
    }

    .n9-contact-info { 
        text-align: center !important; 
        align-items: center !important; 
    }

    /* NEU: Angepasste Größen und Zentrierung für das Handy */
    h1 {
        font-size: 32px !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    h2 {
        font-size: 28px !important;
        text-align: center !important;
        justify-content: center !important;
    }

    h3 {
        font-size: 22px !important;
        text-align: center !important;
        justify-content: center !important;
    }

    div[style*="width: 50px; height: 3px; background: #ff0000"] {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    p {
        text-align: center !important;
    }
}