/* ================================================================
TINTE15 - CSS MASTER STRUCTURE (VERSION 5)
================================================================

1.  ROOT & VARIABLES ....... (Zentrale Steuerung)
2.  RESET & BASE ........... (Grundgerüst)
3.  HEADER (SLIDER-MODE) ... (Logo, Slogan & Top-Icon)
4.  STICKY NAV (CONTENT) ... (Die Navigation im Inhaltsbereich)
5.  SIDE-NAV (RIGHT) ....... (Kategorietexte im Slider)
6.  SLIDER SYSTEM .......... (Parallax & Ebenen)
7.  SLIDER TEXTS ........... (Headlines & Overlays)
8.  UI ELEMENTS ............ (Pfeile & Back-to-Top)
9.  RESPONSIVE ............. (Mobile Anpassungen)

================================================================
*/

/* --- 1. ROOT & VARIABLES --- */
:root {
    --tinte-blue: #c0c0c0;
    --theme-color: var(--tinte-blue);
    --title-color: var(--theme-color);
    --icon-color: var(--title-color);
    
    --nav-height: 110px;           /* Höhe der Sticky-Nav */
    --massive: 9.5vw;              /* Größe der Slider-Headlines */
    --icon-size: 18vw;             /* Größe des Icons oben rechts */
    --side-gap: 3%;                /* Seitlicher Abstand */
    --transition-speed: 1.2s;      /* Slider-Geschwindigkeit */
}

/* --- 2. RESET & BASE --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height); 
}

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

body {
    background: #000;
    color: white;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* --- 3. HEADER (SLIDER-MODE) --- */
header {
    position: fixed; top: 0; width: 100%; height: 160px;
    display: grid; grid-template-columns: 1.5fr 2fr 1.5fr; align-items: start;
    padding: 40px var(--side-gap); z-index: 9000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    transition: opacity 0.5s;
}

.logo img { height: 65px; width: auto; }

.header-center { text-align: center; }
.header-right{
  display: flex;
  justify-content: flex-end; /* ganz rechts in seiner Spalte */
  align-items: flex-start;   /* oben ausrichten */
  padding-right: 0;          /* optional */
}

.slogan { font-weight: 700; font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 8px; }

.phone-box {
    color: var(--tinte-blue); font-weight: 900; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    text-decoration: none; transition: color 0.3s;
}
.phone-box:hover { color: white; }
.phone-box svg { width: 28px; height: 28px; fill: currentColor; }

#active-icon-top {
    height: var(--icon-size); width: var(--icon-size);
    opacity: 0; transition: 0.8s; display: flex; align-items: center; justify-content: center;
    color: var(--icon-color);
}
#active-icon-top.show { opacity: 1; }
#active-icon-top svg { height: 100%; width: 100%; fill: currentColor; }

/* Zuverlässige Färbung für importierte SVGs */
#active-icon-top svg *, .sticky-svg svg * {
    fill: currentColor !important;
    stroke: currentColor !important;
}

/* --- 4. STICKY NAV (CONTENT) --- */
/* --- 4. STICKY NAV (CONTENT) - NEUE ANORDNUNG --- */
.sticky-icon-nav {
    display: none; /* Steuerung via JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px; /* Etwas kompakter */
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    z-index: 13000 !important;
    padding: 0 5%;
    
    /* Flex-Layout für die 3 Bereiche */
    display: none; /* Initial aus, wird durch .visible zu flex */
    align-items: center;
    justify-content: space-between; 
}

.sticky-icon-nav.visible {
    display: flex !important;
}

/* Links: Logo */
.sticky-icon-nav .logo {
    flex: 1; /* Nimmt 1/3 des Platzes ein */
    display: flex;
    justify-content: flex-start;
}
.sticky-icon-nav .logo img {
    height: 40px;
    width: auto;
}

/* Mitte: Slogan & Telefon */
.sticky-icon-nav .header-center {
    flex: 1; /* Nimmt 1/3 des Platzes ein */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Rechts: Icons */
.sticky-icon-nav #stickyIconContainer {
    flex: 1; /* Nimmt 1/3 des Platzes ein */
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

/* Icon-Style innerhalb der Nav */
.sticky-icon-nav .nav-icon-link {
    width: 35px;
    height: 35px;
    fill: #fff;
    transition: transform 0.3s ease;
}
.sticky-icon-nav .nav-icon-link:hover {
    transform: scale(1.1);
    fill: var(--accent);
}

.sticky-icon-nav .header-center { display: flex; flex-direction: column; align-items: center; }
.slogan-sticky { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,0.6); }

.phone-box-sticky {
    color: var(--theme-color); font-weight: 900; font-size: 1.1rem;
    text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.phone-box-sticky svg { width: 18px; height: 18px; fill: currentColor; }

.sticky-icons-wrapper { display: flex; justify-content: flex-end; gap: 20px; }
.sticky-icon-item { position: relative; cursor: pointer; color: white; }
.sticky-icon-item:hover { color: var(--hover-color); }

.sticky-icon-item span {
    position: absolute; bottom: -25px; left: 50%; transform: translateX(-50%);
    font-size: 0.7rem; font-weight: 900; opacity: 0; transition: 0.3s;
    white-space: nowrap; color: inherit;
}
.sticky-icon-item:hover span { opacity: 1; bottom: -15px; }

.sticky-svg { height: 35px; width: 35px; display: flex; align-items: center; justify-content: center; }
.sticky-svg svg { height: 100%; width: 100%; fill: currentColor; }

/* --- 5. SIDE-NAV (RIGHT) --- */
.side-nav-text {
    position: fixed; right: 2%; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 15px; z-index: 9500;
    text-align: right; transition: opacity 0.5s ease, visibility 0.5s;
}
.nav-text-item {
    font-size: 0.85rem; font-weight: 900; color: rgba(255,255,255,0.2);
    cursor: pointer; transition: 0.3s; text-transform: uppercase;
}
.nav-text-item:hover, .nav-text-item.active { color: var(--theme-color); }

/* --- 6. SLIDER SYSTEM --- */
#viewport { position: relative; width: 100vw; height: 100vh; overflow: hidden; z-index: 1000; }
#master-slider { position: absolute; width: 100%; height: 100%; transition: transform var(--transition-speed) cubic-bezier(0.7, 0, 0.3, 1); }
.slide { position: relative; width: 100vw; height: 100vh; overflow: hidden; cursor: pointer; }

.slide-bg {
    position: absolute; top: -10%; left: 0; width: 100%; height: 120%;
    background-size: cover; background-position: center;
    filter: brightness(0.65); z-index: 10;
    transition: transform var(--transition-speed) cubic-bezier(0.7, 0, 0.3, 1);
}

.parallax-layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.layer-mg { z-index: 20; }
.layer-fg { z-index: 30; }
.parallax-layer img { max-height: 80vh; max-width: 85%; opacity: 0; transition: opacity 1s, transform 0.5s ease-out; }
.active .parallax-layer img { opacity: 1; }

/* --- 7. SLIDER TEXTS --- */
.slide-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding-bottom: 120px; padding-left: var(--side-gap); z-index: 50; pointer-events: none;
}
#subHeadline {
    font-family: 'Bebas Neue'; font-size: var(--massive); color: var(--theme-color);
    line-height: 0.8; opacity: 0; transform: translateY(80px); transition: 1s ease 0.3s;
}
#mainHeadline {
    font-family: 'Bebas Neue'; font-size: var(--massive); line-height: 0.8;
    opacity: 0; transform: translateY(80px); transition: 1s ease 0.4s;
    color: var(--title-color); max-width: 60%;
}
.active #subHeadline, .active #mainHeadline { opacity: 1; transform: translateY(0); }

.extra-text-box {
    position: absolute; bottom: 120px; right: var(--side-gap); text-align: right;
    max-width: 35%; font-size: 1.4rem; font-weight: 300; z-index: 55; color: #eee;
    opacity: 0; transform: translateX(50px); transition: 1s ease 0.5s;
}
.active .extra-text-box { opacity: 1; transform: translateX(0); }

/* --- 8. UI ELEMENTS --- */
.scroll-arrow-wrapper {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 9000; text-align: center; cursor: pointer; color: white;
}
.scroll-arrow-wrapper span { display: block; font-size: 0.7rem; font-weight: 900; letter-spacing: 2px; margin-bottom: 5px; text-transform: uppercase; }

#backToTop {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background: var(--tinte-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    z-index: 11000; cursor: pointer; opacity: 0; transition: 0.5s;
}
#backToTop.show { opacity: 1; }

/* --- 9. RESPONSIVE --- */
@media (max-width: 768px) {
    header { height: 100px; padding: 20px var(--side-gap); grid-template-columns: 1fr 1fr; }
    .header-center, .header-right, .side-nav-text { display: none; }
    :root { --massive: 14vw; }
    .extra-text-box { display: none; }
}

/* --- FIX: Content liegt über Slider-UI (Skip-Pfeil etc.) --- */
#content-page{
  position: relative;
  z-index: 12000; /* höher als .scroll-arrow-wrapper (z-index 9000) */
  background: #ffffff;
  color: #000000;
}

/* NACH OBEN BUTTON + FESTE NAVIGATON */
#backToTop {
    display: none; /* Initial verstecken */
    position: fixed !important;
    z-index: 15000 !important; /* Sicherstellen, dass er ganz oben liegt */
    opacity: 1 !important;     /* Wir steuern über display, nicht opacity */
}

/* Erhöhe den Z-Index der Nav, damit sie ÜBER dem Content (12000) liegt */
.sticky-icon-nav {
    display: none; /* Initial aus */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 13000 !important; /* WICHTIG: Höher als Content-Page */
    background: rgba(0,0,0,0.8); /* Optional: Hintergrund damit man Text liest */
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.sticky-icon-nav.visible {
    display: flex !important;
    opacity: 1;
}

/* Dein bisheriger Fix am Ende der Datei - lass den Z-Index für Content ruhig so */
#content-page {
    position: relative;
    z-index: 12000; 
}

/* ================================================================
   MOBILE OPTIMIERUNG T15 – NUR HANDY/TABLET
   Desktop bleibt unberührt
================================================================ */
.mobile-menu-toggle,
.mobile-phone-btn,
.sticky-mobile-menu-toggle,
.sticky-mobile-phone-btn,
.mobile-drawer,
.mobile-menu-backdrop {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --nav-height: 74px;
        --massive: clamp(2.7rem, 11vw, 4.4rem);
        --side-gap: 18px;
    }

    header#mainHeader {
        height: 74px;
        padding: 14px 18px;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        background: rgba(0,0,0,0.72);
        backdrop-filter: blur(8px);
    }

    #mainHeader .logo {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #mainHeader .logo img {
        height: 40px;
    }

    #mainHeader .header-center,
    #mainHeader .header-right,
    .side-nav-text {
        display: none !important;
    }

    .mobile-menu-toggle,
    .mobile-phone-btn,
    .sticky-mobile-menu-toggle,
    .sticky-mobile-phone-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        color: #fff;
        z-index: 15020;
    }

    .mobile-menu-toggle {
        justify-self: start;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
        background: #fff;
        display: block;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-phone-btn {
        justify-self: end;
        text-decoration: none;
        color: #fff;
    }

    .mobile-phone-btn svg,
    .sticky-mobile-phone-btn svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }

    .sticky-icon-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 74px;
        padding: 14px 18px;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        background: rgba(0,0,0,0.72);
        backdrop-filter: blur(8px);
        z-index: 15010 !important;
        box-sizing: border-box;
    }

    .sticky-icon-nav.visible {
        display: grid !important;
        opacity: 1;
    }

    .sticky-icon-nav .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .sticky-icon-nav .logo img {
        height: 40px;
        width: auto;
    }

    .sticky-icon-nav .header-center,
    .sticky-icon-nav #stickyIconContainer {
        display: none !important;
    }

    .sticky-mobile-menu-toggle {
        justify-self: start;
        display: inline-flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        border: 0;
        background: transparent;
        color: #fff;
        padding: 0;
    }

    .sticky-mobile-menu-toggle span {
        width: 22px;
        height: 2px;
        background: #fff;
        display: block;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    body.mobile-menu-open .sticky-mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.mobile-menu-open .sticky-mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.mobile-menu-open .sticky-mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .sticky-mobile-phone-btn {
        justify-self: end;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #fff;
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        border: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 15030;
    }

    .mobile-drawer {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: min(88vw, 360px);
        height: 100vh;
        background: #111;
        color: #fff;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        z-index: 15040;
        box-shadow: 8px 0 24px rgba(0,0,0,0.28);
        overflow-y: auto;
    }

    .mobile-drawer-header {
        min-height: 74px;
        padding: 0 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        font-family: 'Bebas Neue', sans-serif;
        letter-spacing: 1px;
        font-size: 1.35rem;
        text-transform: uppercase;
    }

    .mobile-drawer-close {
        width: 42px;
        height: 42px;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-drawer-list {
        padding: 8px 0 18px;
    }

    .mobile-drawer-link {
        display: flex;
        align-items: center;
        gap: 14px;
        min-height: 62px;
        padding: 0 18px;
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .mobile-drawer-link:active,
    .mobile-drawer-link:hover {
        background: rgba(255,255,255,0.05);
        color: var(--theme-color);
    }

    .mobile-drawer-icon {
        width: 28px;
        height: 28px;
        display: flex;
        flex: 0 0 28px;
        align-items: center;
        justify-content: center;
        color: inherit;
    }

    .mobile-drawer-icon svg,
    .mobile-drawer-icon svg * {
        width: 100%;
        height: 100%;
        fill: currentColor !important;
        stroke: currentColor !important;
    }

    .mobile-drawer-label {
        font-size: 0.98rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .mobile-drawer-footer {
        padding: 16px 18px 28px;
        border-top: 1px solid rgba(255,255,255,0.12);
        display: grid;
        gap: 10px;
        background: rgba(255,255,255,0.02);
    }

    .mobile-drawer-footer-link {
        display: block;
        color: rgba(255,255,255,0.9);
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 600;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .mobile-drawer-footer-link:last-child {
        border-bottom: 0;
    }

    .mobile-slider-hint {
        display: none;
        align-items: center;
        justify-content: center;
        gap: 12px;
        position: absolute;
        left: 50%;
        bottom: 18px;
        transform: translateX(-50%);
        z-index: 9500;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(0,0,0,0.38);
        backdrop-filter: blur(8px);
    }

    .mobile-slider-arrow {
        width: 38px;
        height: 38px;
        border: 1px solid rgba(255,255,255,0.28);
        border-radius: 50%;
        background: rgba(255,255,255,0.1);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        line-height: 1;
        padding: 0;
        cursor: pointer;
    }

    .mobile-slider-arrow span {
        transform: translateY(-1px);
    }

    .mobile-slider-arrow[disabled] {
        opacity: 0.35;
        cursor: default;
    }

    .mobile-slider-dots {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-slider-dot {
        width: 8px;
        height: 8px;
        border: 0;
        border-radius: 50%;
        background: rgba(255,255,255,0.45);
        transition: transform 0.2s ease, background-color 0.2s ease;
        padding: 0;
    }

    .mobile-slider-dot.active {
        background: #fff;
        transform: scale(1.35);
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    body.mobile-menu-open .mobile-menu-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    body.mobile-menu-open .mobile-drawer {
        transform: translateX(0);
    }

    #viewport {
        height: 100svh;
    }

    .mobile-slider-hint {
        display: flex;
    }

    #master-slider {
        display: flex;
        height: 100%;
        will-change: transform;
        transition: transform 0.45s ease;
    }

    .slide {
        flex: 0 0 100vw;
        width: 100vw;
        height: 100%;
    }

    .slide-bg {
        top: 0;
        height: 100%;
        background-size: cover;
        background-position: center center;
        transform: scale(1.08);
        transition: transform 0.45s ease;
    }

    .parallax-layer {
        display: flex !important;
        inset: 0;
        align-items: center;
        justify-content: center;
    }

    .layer-mg {
        z-index: 24;
    }

    .layer-fg {
        z-index: 34;
    }

    .layer-mg img,
    .layer-fg img {
        opacity: 1 !important;
        max-width: none;
        max-height: none;
        width: auto;
        height: auto;
        object-fit: contain;
        transform: none !important;
    }

    .layer-mg img {
        width: min(125vw, 980px);
        max-width: min(125vw, 980px);
    }

    .layer-fg img {
        width: min(138vw, 1080px);
        max-width: min(138vw, 1080px);
    }

    .parallax-layer img[src="none"] {
        display: none !important;
    }

    .slide-overlay {
        padding-left: 18px;
        padding-right: 18px;
        padding-bottom: 105px;
        justify-content: flex-end;
    }

    #subHeadline,
    #mainHeadline {
        max-width: 100%;
        line-height: 0.9;
    }

    .extra-text-box {
        display: none !important;
    }

    .scroll-arrow-wrapper {
        bottom: 18px;
    }

    #backToTop {
        right: 18px;
        bottom: 18px;
    }
}

/* "Überspringen"-Button nur auf Mobile ausblenden */
@media (max-width: 768px) {
  #skipButton {
    display: none;
  }
}