/* ============================================
   MediaKonkret Template - Main Stylesheet
   Refactored & Optimized
   ============================================ */

/* ============================================
   1. CSS VARIABLES & FONTS
   ============================================ */
:root {
    /* Main Colors */
    --color-background: rgba(122, 20, 20, 0.05);
    --color-text-primary: white;
    --color-text-secondary: beige;
    --color-accent: rgb(199, 24, 24);
    --color-accent-glow: #ff0000;

    /* Footer Colors */
    --color-footer-background: rgba(122, 20, 20, 0.05);
    --color-footer-links: #ffffff;
    --color-social-icon-background: rgba(122, 20, 20, 0.05);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Typography */
    --font-family-base: 'Kumbh Sans', sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;

    /* Borders */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.2);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

@font-face {
    font-family: 'Kumbh Sans';
    src: url('../font/KumbhSans-Regular.woff2') format('woff2'),
        url('../font/KumbhSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kumbh Sans';
    src: url('../font/KumbhSans-Bold.woff2') format('woff2'),
        url('../font/KumbhSans-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   2. BASE STYLES & RESET
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-family-base);
    height: 100%;
    width: 100%;
}

/* ============================================
   3. LAYOUT & CONTAINER SYSTEM
   ============================================ */
.container {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 5%;
    padding-right: 5%;
}

/* WBCE Standard Layout Classes */
.c100 { width: 100%; }
.c70 { width: 70%; }
.c30 { width: 30%; }
.t50 { width: 50%; }
.m100 { width: 100%; }

aside {
    font-size: 85%;
}

/* ============================================
   4. BACKGROUND VIDEO
   ============================================ */
.background-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

#background-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

/* ============================================
   5. HERO SECTION
   ============================================ */
.hero-image {
    width: 100%;
    position: relative;
    background-color: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 320px;
    object-fit: cover;
    object-position: center top;
}

.hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text-primary);
    z-index: 1;
}

/* ============================================
   6. NAVIGATION
   ============================================ */
.stellarnav {
    /* StellarNav wird per JavaScript initialisiert */
}

.highlight-nav {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.8);
    text-align: center;
    padding: 15px 0;
    border-radius: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
}

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

/* Hamburger Animation - Active State */
.highlight-nav.menu-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.highlight-nav.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.highlight-nav.menu-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.highlight-nav .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.highlight-nav .nav-menu li {
    margin: 0;
}

.highlight-nav .nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
    transition: background var(--transition-base), color var(--transition-base);
    border-radius: 4px;
    display: block;
}

.highlight-nav .nav-menu li a:hover {
    background-color: #2a4cff;
    color: #fff;
}

/* ============================================
   7. HIGHLIGHT AREA (One-Page Sections)
   ============================================ */
.highlight-area {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 40px 0;
    margin-top: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.highlight-content {
    max-width: 1200px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin: 0 auto;
    justify-content: center;
    padding: 20px;
}

.highlight-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 220px;
    align-items: center;
}

.highlight-right {
    flex: 1;
    display: flex;
    border-radius: var(--border-radius-lg);
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.highlight-right.leistungen-right {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* ============================================
   8. ONEPAGE SECTIONS
   ============================================ */
.onepage-section {
    width: 100%;
    margin-bottom: 40px;
    scroll-margin-top: 80px; /* Offset for sticky navigation */
}

/* Ensure all section IDs are scrollable */
#section-1,
#section-4,
#section-5,
#section-6,
#section-7,
#section-8 {
    scroll-margin-top: 80px;
}

.firmenbild {
    max-width: 1100px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
    margin: 0 auto;
}

.highlight-right img.firmenbild {
    max-width: 1100px;
}

.highlight-right.leistungen-right .leistungen-img {
    width: 100%;
    max-width: 950px;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    margin: 10px auto;
    flex-shrink: 0;
}

.start-info-box {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 25px 30px;
    border-radius: var(--border-radius-lg);
    max-width: 700px;
    margin: 20px auto 0 auto;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   9. CAROUSEL
   ============================================ */
.carousel-container {
    margin-top: 40px;
    text-align: center;
}

.highlight-right .carousel {
    position: relative;
    max-width: 950px;
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius-md);
    margin: 20px auto;
    overflow: hidden;
}

.highlight-right .carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.highlight-right .carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    font-size: 2.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background var(--transition-base);
}

.highlight-right .carousel button:hover {
    background: rgba(0,0,0,0.6);
}

.highlight-right .carousel .prev {
    left: 10px;
}

.highlight-right .carousel .next {
    right: 10px;
}

/* ============================================
   10. CONTACT PAGE
   ============================================ */
.kontakt-page {
    padding: 40px 20px;
    background: transparent;
    color: #fff;
}

.kontakt-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.kontakt-card {
    display: flex;
    gap: 30px;
    align-items: stretch;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.kontakt-image {
    flex: 0 0 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kontakt-image .kontakt-foto {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.kontakt-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6px;
}

.kontakt-title {
    font-size: 2rem;
    margin: 0 0 6px 0;
    font-weight: 700;
    color: #fff;
}

.kontakt-sub {
    margin: 0 0 16px 0;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.kontakt-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kontakt-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.95);
}

.kontakt-list li .icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(42, 76, 255, 0.4);
    padding: 8px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.kontakt-list li .icon:hover {
    transform: scale(1.15);
    background: rgba(42, 76, 255, 1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.55);
}

.kontakt-list a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-base);
}

.kontakt-list a:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* ============================================
   11. ANFAHRT (Directions)
   ============================================ */
.anfahrt-container {
    width: 100%;
    display: block;
    text-align: center;
}

.anfahrt-container iframe {
    width: 100%;
    height: 450px;
    margin-bottom: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    border: 0;
}

.anfahrt-adresse {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    font-weight: bold;
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 40px;
}

/* ============================================
   12. JOBS & BEWERTUNGEN
   ============================================ */
.jobs-page,
.bewertungen-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: rgba(0,0,0,0.05);
    border-radius: var(--border-radius-md);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    color: #FFF;
}

.jobs-page h2,
.bewertungen-page h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

.jobs-page .kontakt-sub,
.bewertungen-page .kontakt-sub {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 15px;
}

.jobs-page ul.kontakt-list,
.bewertungen-page .bewertungen-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jobs-page ul.kontakt-list li {
    background-color: rgba(0,0,0,0.4);
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    transition: background var(--transition-base);
}

.jobs-page ul.kontakt-list li:hover {
    background-color: rgba(42,76,255,0.25);
}

.bewertungen-page .bewertungen-list p {
    background-color: rgba(0,0,0,0.4);
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 1.05rem;
    color: #fff;
}

.bewertungen-page .bewertungen-list p strong {
    color: #2a4cff;
}

.bewerbung-email {
    background-color: rgba(0,0,0,0.4);
    padding: 16px 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    display: inline-block;
}

.bewerbung-email p {
    margin: 0 0 8px 0;
    font-weight: 500;
    color: #fff;
    font-size: 1.1rem;
}

.bewerbung-email a {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    border-bottom: 2px solid #fff;
    transition: all var(--transition-base);
}

.bewerbung-email a:hover {
    background-color: #fff;
    color: #2a4cff;
    padding: 4px 8px;
    border-radius: 6px;
}

/* ============================================
   13. BUTTONS
   ============================================ */
.hl-btn {
    display: block;
    padding: 14px 25px;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(90deg, #2a4cff, #687aff);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-fast), background var(--transition-base);
}

.hl-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(90deg, #4a6cff, #8aa2ff);
}

/* ============================================
   14. FOOTER
   ============================================ */
footer,
.footerbox {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
    background-color: var(--color-footer-background);
    text-align: center;
}

.footer-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 960px;
}

.footer-links {
    margin-bottom: 15px;
    width: 100%;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-footer-links);
    margin: 0 10px;
    font-size: 0.9em;
    transition: text-decoration var(--transition-base);
}

.footer-links a:hover {
    text-decoration: underline;
}

.social-media-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.social-icon {
    text-decoration: none;
    border: 0;
    width: 36px;
    height: 36px;
    padding: 2px;
    margin: 5px;
    border-radius: 35%;
    background-color: var(--color-social-icon-background);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition-fast);
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icon.active {
    opacity: 1;
    filter: none;
}

.footer-left,
.footer-center,
.footer-right {
    margin: 10px 0;
}

/* ============================================
   15. UTILITIES
   ============================================ */
#gototopswitch {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-base);
    text-decoration: none;
}

#gototopswitch:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#gototopswitch img {
    width: 60%;
    height: auto;
}

.page-content {
    color: white;
    font-size: 1.1rem;
    line-height: var(--line-height-base);
}

.opening-hours {
    position: relative;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    text-align: center;
    font-weight: bold;
    color: #000;
    z-index: 10;
}

/* ============================================
   16. RESPONSIVE STYLES
   ============================================ */

/* ============================================
   MOBILE FIRST - Base Styles (0-479px)
   ============================================ */
/* Base styles are defined above without media queries */

/* ============================================
   SMALL MOBILE (480px+)
   ============================================ */
@media (min-width: 480px) {
    .highlight-nav .nav-menu {
        gap: 20px;
    }
}

/* ============================================
   TABLET PORTRAIT (768px+)
   ============================================ */
@media (min-width: 768px) {
    /* Hide mobile menu toggle on tablet+ */
    .mobile-menu-toggle {
        display: none;
    }

    .highlight-nav {
        flex-direction: row;
        justify-content: center;
    }

    .highlight-nav .nav-menu {
        display: flex;
        flex-direction: row;
        max-height: none;
        opacity: 1;
        padding: 0;
        background-color: transparent;
    }

    .highlight-content {
        flex-direction: row;
    }

    .highlight-left {
        flex: 0 0 220px;
    }

    .kontakt-card {
        flex-direction: row;
    }

    .kontakt-image {
        flex: 0 0 550px;
    }
}

/* ============================================
   TABLET LANDSCAPE / SMALL DESKTOP (992px+)
   ============================================ */
@media (min-width: 992px) {
    .container {
        padding-left: 5%;
        padding-right: 5%;
    }

    .highlight-nav .nav-menu {
        gap: 30px;
    }
}

/* ============================================
   DESKTOP (1200px+)
   ============================================ */
@media (min-width: 1200px) {
    .highlight-content {
        max-width: 1200px;
    }
}

/* ============================================
   MAX-WIDTH BREAKPOINTS (Mobile/Tablet Overrides)
   ============================================ */

/* Mobile (bis 767px) */
@media (max-width: 767.98px) {
    /* Background Video - Performance Optimization */
    .background-video-container {
        position: absolute;
    }

    /* Hero Banner - dynamic height on mobile */
    .hero-image img {
        max-height: none;
        min-height: 0;
    }

    /* Container */
    .container,
    .row {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        margin: 0 auto;
    }

    /* Highlight Area */
    .highlight-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 10px;
    }

    .highlight-left,
    .highlight-right {
        flex: 1 1 auto;
        max-width: 100%;
        align-items: center;
    }

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .highlight-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
    }

    .highlight-nav .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 15px;
        padding: 0;
        background-color: rgba(0,0,0,0.9);
        border-radius: var(--border-radius-md);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height var(--transition-base), opacity var(--transition-base), padding var(--transition-base);
    }

    .highlight-nav .nav-menu.active {
        display: flex;
        max-height: 500px;
        opacity: 1;
        padding: 10px 0;
    }

    .highlight-nav .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .highlight-nav .nav-menu li:last-child {
        border-bottom: none;
    }

    .highlight-nav .nav-menu li a {
        display: block;
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }

    .highlight-nav .nav-menu li a:hover {
        background-color: #2a4cff;
        color: #fff;
    }

    /* Adjust scroll offset for mobile navigation */
    .onepage-section,
    #section-1,
    #section-4,
    #section-5,
    #section-6,
    #section-7,
    #section-8 {
        scroll-margin-top: 100px; /* More space on mobile for expanded menu */
    }

    /* Start Info Box */
    .start-info-box {
        width: 95%;
        max-width: 95%;
        margin: 15px auto;
        padding: 15px 20px;
        font-size: 0.95rem;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }

    /* Images */
    .highlight-right img.firmenbild,
    .highlight-right .leistungen-img,
    .kontakt-image .kontakt-foto {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
        display: block;
    }

    /* Carousel */
    .highlight-right .carousel {
        width: 95%;
        height: 250px;
        aspect-ratio: 16/9;
        margin: 15px auto;
    }

    .highlight-right .carousel button {
        font-size: 1.5rem;
        padding: 0.3rem 0.6rem;
    }

    /* Contact Card */
    .kontakt-card {
        flex-direction: column;
        padding: 12px;
    }

    .kontakt-image {
        flex: none;
        width: 100%;
        margin-bottom: 12px;
    }

    .kontakt-info {
        padding-top: 12px;
        text-align: center;
    }

    .kontakt-title {
        font-size: 1.5rem;
    }

    .kontakt-sub {
        font-size: 1rem;
    }

    /* Anfahrt */
    .anfahrt-container iframe {
        height: 250px;
    }

    .anfahrt-adresse {
        width: 95%;
        font-size: 1rem;
        padding: 10px 15px;
        margin: 10px auto 20px auto;
    }

    /* Jobs & Bewertungen */
    .jobs-page,
    .bewertungen-page {
        padding: 15px;
        font-size: 0.95rem;
    }

    .jobs-page h2,
    .bewertungen-page h2 {
        font-size: 1.5rem;
    }

    .bewerbung-email {
        width: 95%;
        padding: 12px 15px;
        font-size: 0.9rem;
        margin: 15px auto;
    }

    .bewerbung-email a {
        font-size: 1rem;
        padding: 3px 6px;
    }

    /* Buttons */
    .hl-btn {
        width: 90%;
        max-width: 250px;
        margin: 10px auto;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Tablet (bis 991px) */
@media (max-width: 991.98px) {
    .highlight-content {
        padding: 15px;
    }

    .kontakt-card {
        gap: 20px;
    }

    /* Tablet Navigation - Show hamburger if needed */
    @media (max-width: 767.98px) {
        .mobile-menu-toggle {
            display: flex;
        }

        .highlight-nav {
            flex-direction: column;
            align-items: flex-start;
        }

        .highlight-nav .nav-menu {
            display: none;
        }

        .highlight-nav .nav-menu.active {
            display: flex;
        }
    }
}

/* ============================================
   END OF STYLESHEET
   ============================================ */
