/* ==========================================================================
   Rode Calitate Dienstleistungs GmbH - Custom Style Sheet (Identical Mirror)
   ========================================================================== */

/* Theme Variables */
:root {
    --primary: #ce1b28;
    /* Original Red */
    --primary-hover: #a1141e;

    --bg-dark: #0d0d0d;
    --bg-light: #ffffff;
    --bg-gray: #f9f9f9;

    --text-dark: #222222;
    --text-muted: #555555;
    --text-light: #ffffff;
    --text-gray: #888888;

    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    color: var(--text-dark);
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Red text helper matching the original */
.red_text {
    color: var(--primary) !important;
}

/* Top Utility Header Bar */
.top-utility-bar {
    background: var(--bg-dark);
    color: #aeaeae;
    font-size: 0.8rem;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1a1a1a;
    z-index: 1001;
    position: relative;
}

.top-utility-bar .contact-info span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 100px;
}

.top-utility-bar .contact-info a {
    color: #ffffff;
}

.top-utility-bar .contact-info a:hover {
    color: var(--primary);
}

/* Main Sticky Header */
header.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-light);
    border-bottom: 1px solid #eaeaea;
    transition: var(--transition-smooth);
}

.navbar {
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 15px 5%;
    background: var(--bg-light);
    transition: var(--transition-smooth);
}

/* Sticky Class Scroll Effect */
header.main-header.scrolled {
    background: var(--bg-dark);
    border-bottom: 1px solid #222222;
}

header.main-header.scrolled .navbar {
    padding: 10px 5%;
    background: var(--bg-dark);
}

header.main-header.scrolled .nav-link {
    color: #ffffff;
}

header.main-header.scrolled .menu-toggle span {
    background-color: #ffffff;
}

/* Logo container & logo swapping on scroll */
.logo-container a {
    display: block;
}

.logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    padding-left: 90px;
}

.logo-sticky {
    display: none;
}

header.main-header.scrolled .logo-default {
    display: none;
}

header.main-header.scrolled .logo-sticky {
    display: block;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #333333;
    padding: 8px 0;
}

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

/* Hamburger menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1010;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 1px;
    transition: var(--transition-smooth);
}

/* Hero Section (Replicating Slider) */
.hero-section {
    position: relative;
    min-height: 620px;
    background-image: url('../images/slider3-1.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    padding: 60px 5%;
    overflow: hidden;
}

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

.slide-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 70px;
}

.slide-content {
    width: 50%;
    max-width: 600px;
    text-align: left;
    margin-left: 40px;
}

/* Initial hidden state */
.slide_heading,
.slide-text p {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}
/* Animate header */
.slide_heading.animate {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s; /* header appears after 1 second */
}

/* Animate body paragraphs */
.slide-text p.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger paragraphs */
.slide-text p:nth-child(1).animate {
    transition-delay: 1.2s;
}
.slide-text p:nth-child(2).animate {
    transition-delay: 1.4s;
}
.slide-text p:nth-child(3).animate {
    transition-delay: 1.6s;
}

.slide_heading {
    font-size: 38px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    line-height: 1.25;
}

.slide-text p {
    font-size: 15px;
    line-height: 1.8;
    color: white;
    margin-bottom: 15px;
}

.slide-text p:last-child {
    margin-bottom: 0;
}

/* Legal & Inner Pages Styling */
.legal-content-section {
    padding: 60px 5%;
    background-color: var(--bg-gray);
    min-height: calc(100vh - 300px);
}

.legal-container {
    padding-left: 50px;
    margin-left: 70px;
}

.legal-container h1 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px;
}

.legal-container h2 {
    font-size: 18px;
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 12px;
}

.legal-container p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 15px;
}

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

.legal-container a:hover {
    text-decoration: underline;
}

.legal-container em {
    display: block;
    font-style: italic;
    background-color: var(--bg-gray);
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid var(--primary);
    margin: 20px 0;
    color: var(--text-dark);
}

/* Footer layout matching the original */
footer.main-footer {
    background-color: #181818;
    color: #aeaeae;
    padding: 50px 5% 30px 5%;
    font-size: 14px;
    border-top: 3px solid var(--primary);
}

.footer-widgets {
    max-width: 1200px;
    margin: 20px 60px;
    border-bottom: 1px solid #282828;
    padding-bottom: 30px;
}

.footer-logo {
    height: 100px;
    width: auto;
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-bottom a {
    color: #ffffff;
}

.footer-bottom a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.gdpr-badge {
    width: 32px;
    height: auto;
    display: block;
    margin: 5px auto;
}

.copyright-text {
    color: #777777;
    font-size: 13px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: -60px;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    transition: var(--transition-smooth);
    border: none;
    font-size: 1rem;
}

.back-to-top.show {
    right: 30px;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .navbar {
        justify-content: space-between;
        }   

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        z-index: 1005;
        transition: var(--transition-smooth);
        gap: 20px;
    }

    body.nav-open .nav-menu {
        right: 0;
    }

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

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

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

    header.main-header.scrolled .nav-menu {
        background-color: var(--bg-dark);
    }
}

@media (max-width: 768px) {
    .navbar {
     justify-content: space-between;
    }   
    .top-utility-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .top-utility-bar .contact-info span {
        margin: 0 10px;
        padding-left: 0;
    }

    .hero-section {
        min-height: 500px;
        padding: 40px 20px;
    }

    .slide-content {
        width: 100%;
        padding: 25px;
        margin-left: 0;
    }

    .slide_heading {
        font-size: 28px;
    }

    .legal-container {
        padding: 25px;
        margin-left: 0;
    }
    .slide-content-wrapper {
        margin: auto;
    }
    /* Hide menu by default on mobile */
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }

    /* Show menu when active */

    /* Optional: style the hamburger when active */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }


}