/* ========================================
   OCESysteme UG – MAIN STYLESHEET
   Font: Barlow Condensed 300
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;600;700&display=swap');

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

:root {
    --primary-blue:   #1e3b8a;
    --footer-blue:    #6f8ad6;
    --light-blue:     #76a4f0;
    --accent-yellow:  #fbbf24;
    --header-line:    #bfdbfe;   /* hellblau */
    --emergency-red:  #dc2626;
    --success-green:  #22c55e;
    --bg-light:       #f8fafc;
    --text-dark:      #333;
    --text-gray:      #666;
    --dark-orange:    #d97706;   /* alle Icons */
}

body {
    font-family: 'Barlow Condensed', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300;
    font-size: large;
    line-height: 1.9;
    color: var(--text-dark);
    background: var(--bg-light);
}

.paragraph {
    margin-top: 25px;
    margin-bottom: 25px;
}

/* ========================================
   EMERGENCY BAR
   ======================================== */

.emergency-bar {
    background: var(--emergency-red);
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.95em;
    font-weight: 600;
}

.emergency-bar a {
    color: var(--accent-yellow);
    text-decoration: none;
    margin-left: 10px;
    font-size: 1.1em;
}

.emergency-bar a:hover {
    text-decoration: underline;
}

/* ========================================
   HEADER LINE (Telefon-Leiste)
   grüner Text auf hellblauem Hintergrund
   Telefonnummer: orange + fett
   ======================================== */

.css-header-line {
    color: #16a34a;                        /* grün */
    background-color: var(--header-line);  /* hellblau */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    font-size: 0.95em;
    font-weight: 400;
    height: 55px;
}

.css-header-line .header-phone-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--dark-orange);
    display: block;
}

.css-header-line .header-phone-number {
    color: var(--dark-orange);
    font-weight: 700;
    font-size: 1.05em;
    text-decoration: none;
}

.css-header-line .header-phone-number:hover {
    text-decoration: underline;
}

/* ========================================
   NAVIGATION
   ======================================== */

.main-navigation {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-icon {
    height: 80px;
    width: auto;
    max-width: none;
    display: block;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .company-name {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

.logo-text .tagline {
    font-size: 0.75em;
    color: var(--text-gray);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.nav-menu li a:hover {
    background: #eff6ff;
    color: var(--light-blue);
}

.nav-menu li a.active {
    background: var(--light-blue);
    color: white;
}

.nav-cta {
    background: var(--accent-yellow) !important;
    color: var(--primary-blue) !important;
    padding: 12px 25px !important;
    border-radius: 8px;
    font-weight: 600;
    margin-left: 15px;
}

.nav-cta:hover {
    background: #f59e0b !important;
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--primary-blue);
    cursor: pointer;
}

/* ========================================
   DROPDOWN MENU
   ======================================== */

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    border-bottom: none;
}

.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-menu li a:hover {
    background: #eff6ff;
    color: var(--light-blue);
    padding-left: 25px;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5em; 
    color: var(--primary-blue);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

/* ========================================
   INLINE SVG ICONS (allgemein)
   ======================================== */

.icon-svg {
    display: inline-block;
    vertical-align: middle;
}

.icon-svg svg {
    fill: var(--dark-orange);
    display: block;
}

.service-icon svg {
    fill: var(--dark-orange);
    width: 48px;
    height: 48px;
}

.contact-icon svg {
    fill: var(--dark-orange);
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 15px 35px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: var(--accent-yellow);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* ========================================
   SECONDARY PAGES / HERO
   ======================================== */

.sec-hero {
    background: linear-gradient(
        rgba(30, 58, 138, 0.9),
        rgba(59, 130, 246, 0.9)
    ),
    url('_imgs_/background/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero {
    background: linear-gradient(
        rgba(30, 58, 138, 0.9),
        rgba(59, 130, 246, 0.9)
    ),
    url('_imgs_/background/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* ========================================
   CARDS & BOXES
   ======================================== */

.service-card, .project-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-card:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.15);
}

.highlight-box {
    background: #eff6ff;
    border-left: 4px solid var(--light-blue);
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid var(--accent-yellow);
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: var(--footer-blue);
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent-yellow);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    opacity: 0.8;
}

/* ========================================
   COOKIE BANNER
   ======================================== */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    padding: 25px 20px;
    z-index: 10000;
    display: none;
}

#cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.cookie-text p {
    color: var(--text-gray);
    font-size: 0.95em;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.cookie-accept {
    background: var(--success-green);
    color: white;
}

.cookie-accept:hover {
    background: #16a34a;
}

.cookie-decline {
    background: #e5e7eb;
    color: var(--text-dark);
}

.cookie-decline:hover {
    background: #d1d5db;
}

.cookie-settings {
    background: transparent;
    color: var(--light-blue);
    border: 2px solid var(--light-blue);
}

.cookie-settings:hover {
    background: var(--light-blue);
    color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 968px) {

    body { font-size: 18px; }       /* ← Basis hochsetzen */
    
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 0;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-menu li a {
        padding: 18px 20px;
        width: 100%;
        border-radius: 0;
    }

    .nav-cta {
        margin: 20px 20px 10px 20px !important;
        display: inline-block;
        width: calc(100% - 40px);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
        padding: 10px 0;
    }

    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }

    .dropdown-arrow {
        margin-left: auto;
    }

    .dropdown-menu li a {
        padding-left: 40px;
        font-size: 0.95em;
    }

    .dropdown-menu li a:hover {
        padding-left: 45px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 100px;
    }

    .logo-icon {
        height: 50px;
        width: auto;
    }

    .logo-text .company-name {
        font-size: 1em;
    }

    .logo-text .tagline {
        display: none;
    }

    .emergency-bar {
        font-size: 0.85em;
        padding: 10px;
    }
}
