/* improved-styles.css */
:root {
    --primary-color: #F9A800;
    --secondary-color: #3C4858;
    --accent-color: #2C3E50;
    --text-color: #333333;
    --light-color: #FFFFFF;
    --light-gray: #F5F5F5;
    --gray: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

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

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo a {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.tagline {
    font-size: 1.2rem; /* Increased font size from 1rem */
    display: block;
    text-align: center;
    flex-grow: 1;
    padding: 0 20px;
    font-weight: 600;
    line-height: 1.3;
}

.header-logo svg {
    width: 48px;
    height: 48px;
}

.mobile-menu-button {
    display: none;
}

/* Navigation */
.main-nav {
    background-color: var(--primary-color);
    padding: 10px 0;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
}

/* Banner */
.banner {
    background-color: var(--primary-color);
    background-image: url('../img/helmets-background.jpg'); /* Add your image path here */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Creates parallax effect on desktop */
    padding: 30px 0;
    text-align: center;
    position: relative;
    min-height: 200px; /* Ensure minimum height for better visual impact */
}

.banner .container {
    position: relative;
    z-index: 2;
}

.banner img {
    max-width: 200px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); /* Add shadow for better visibility */
}

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
    background-color: var(--light-color);
    border-bottom: 1px solid var(--gray);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.lead {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-content {
    padding: 25px;
    text-align: center;
}

.card-icon {
    margin-top: 15px;
}

.card-icon svg {
    fill: var(--primary-color);
}

h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--light-color);
    transition: var(--transition);
}

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

address {
    font-style: normal;
    line-height: 1.8;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Interior Pages Styling */
.page-header {
    background-color: var(--accent-color);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--light-color);
    padding: 60px 0;
    position: relative;
    min-height: 300px;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Page-specific background images */
.page-arbeitssicherheit .page-header {
    background-image: url('../img/arbeitsicherheit.jpg');
}

.page-brandschutz .page-header {
    background-image: url('../img/breandschutz.jpg');
}

.page-weitere-leistungen .page-header {
    background-image: url('../img/weitere_leistungen.jpg');
}


.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(60, 72, 88, 0.75) 0%, 
        rgba(44, 62, 80, 0.65) 100%
    );
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
}

/* Header Banner with Image */
.header-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.banner-content-centered {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.banner-logo {
    margin-top: 25px;
    text-align: center;
}

.banner-logo svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.banner-logo svg:hover {
    transform: scale(1.05);
}

.page-title {
    font-size: 2.8rem; /* Increased from 2.5rem */
    margin-bottom: 10px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.4rem; /* Increased from default */
    font-weight: 600;
    margin-top: 15px;
}

.content-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.service-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.service-list li {
    position: relative;
    padding: 15px 0 15px 50px;
    border-bottom: 1px solid var(--gray);
    list-style: none;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 15px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Contact Form */
.contact-section {
    background-color: var(--light-gray);
    padding: 60px 0;
    border-top: 1px solid var(--gray);
}

.contact-form {
    max-width: 600px;
    margin: 30px auto 0;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--accent-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    background-color: var(--light-color);
    color: var(--text-color);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 168, 0, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--light-color);
}

/* Responsive styles */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }
    
    #menu-toggle {
        background: none;
        border: none;
        color: var(--light-color);
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav li {
        margin: 10px 0;
    }
    
    .tagline {
       font-size: 0.9rem; /* Smaller font size for mobile */
        padding: 0 10px; /* Reduced padding */
        line-height: 1.2;
        max-width: 200px; /* Limit width to force better wrapping */
    }

    .header-flex {
        flex-wrap: wrap; /* Allow wrapping if needed */
        justify-content: space-between;
        align-items: center;
        gap: 10px; /* Add gap between elements */
    }
    
    .banner,
    .page-header {
        background-attachment: scroll;
        min-height: 150px;
    }
    
    .banner {
        padding: 20px 0;
    }
    
    .page-header {
        padding: 40px 0;
        min-height: 200px;
    }
    
    /* Adjust overlay opacity for better mobile visibility */

    .header-logo {
        display: none;
    }
    
    .banner-content-centered {
        padding: 0;
    }
    
    .banner-logo {
        margin-top: 15px;
    }
    
    .banner-logo img {
        max-height: 150px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1.2rem;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-logo img {
        max-height: 160px;
    }
}

/* Aktiver Menüpunkt */
.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--accent-color);
    font-weight: 700;
}

/* CTA Box */
.cta-box {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 40px 0;
    border-radius: 4px;
}

.cta-box p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}

/* Impressum Styling */
.impressum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 30px 0;
}

.impressum-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
}

.impressum-item p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.impressum-item a {
    color: var(--secondary-color);
}

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

/* Verbesserte Service-Liste */
.service-list li {
    font-size: 1.05rem;
}

/* Weitere Media Queries */
@media (max-width: 576px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .service-list li {
        padding-left: 40px;
    }
    
    .service-list li::before {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    .impressum-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

    /* Alternative: Stack layout for very small screens */
@media (max-width: 480px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
        
    .tagline {
        order: 2; /* Place tagline after logo */
        max-width: 100%;
        font-size: 0.85rem;
        padding: 0 15px;
    }
        
    .banner,
    .page-header {
        min-height: 120px;
    }
    
    .banner {
        padding: 15px 0;
    }
    
    .page-header {
        padding: 30px 0;
        min-height: 160px;
    }
    
    .banner img {
        max-width: 150px;
    }

    #logo {
        order: 1;
    }
        
    .mobile-menu-button {
        order: 3;
        align-self: flex-end;
        position: absolute;
        right: 15px;
        top: 15px;
    }
}


/* Optional: Make tagline even more compact with abbreviations on very small screens */
@media (max-width: 380px) {
    .tagline {
        font-size: 0.8rem;
    }
    
    /* You could also add a data attribute approach to show abbreviated text */
    .tagline[data-short]::after {
        content: attr(data-short);
    }
    
    .tagline[data-short] {
        font-size: 0;
    }
}