/* =========================================
    0. Schrift ohne Google Cookies einbinden
    ========================================= */
@font-face {
  font-family: Montserrat;
  src: url(assets/fonts/Montserrat-VariableFont_wght.woff2);
  font-weight:100 900;
  font-display: swap;
}

/* =========================================
    1. CSS-Variablen (Neumann Farben)
    ========================================= */
:root {
    --color-green: #1b8900;
    --color-gray: #444444;
    --color-text: #121212;
    --color-bg: #fefefe;
    --font-main: 'Montserrat', sans-serif;
}
/* =========================================
    0. mobiles Menü
    ========================================= */
/* Grundstruktur des Nav-Containers */
nav {
    display: flex;
    justify-content: space-between; /* Logo links, Links rechts */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    width: 200px;
    height: 60px;
    background-image: url("Hauptlogo_Neumann Zelte und Plannen.svg");
    background-repeat: no-repeat;
    background-size: contain; /* Sorgt dafür, dass das Logo in den Container passt */
    background-position: center;
}

.logo-neg {
   width: 200px;
    height: 60px;
    background-image: url("Logo_Neumann_2022_Z+P_neg.png");
    background-repeat: no-repeat;
    background-size: contain; /* Sorgt dafür, dass das Logo in den Container passt */
    background-position: center; 
}

.logo a {
    display: block; /* Macht den Link so groß wie den Logo-Container */
    width: 100%;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

/* Burger Button Styling */
.menu-toggle {
    display: none; /* Auf Desktop unsichtbar */
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}                       

.sonnensegel-bild {
    width: 100%;
    height: auto;
    min-height: 400px; /* Semicolon ergänzt */
    object-fit: cover; /* Verhindert Verzerrung, schneidet das Bild perfekt zu */
    display: block; 
}

  .menu-toggle span {
    width: 100%;
    height: 4px;
    background-color: var(--color-green);
    border-radius: 4px;
    transition: 0.3s;
}

/* Mobile Ansicht (unter 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Button anzeigen */
    }

    .nav-links {
        display: none; /* Links verstecken */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Höhe des Headers */
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        padding: 20px;
        border-bottom: 1px solid #ddd;
        z-index: 1000;
        gap: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* Klasse, die per JS hinzugefügt wird */
    .nav-links.active {
        display: flex; 
    }

    /* Animation zum "X" wenn offen */
    .menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}
/* =========================================
    2. Grundlegendes Styling & Barrierefreiheit
    ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-weight: 300; 
    font-size: 16pt;
    line-height: 1.6;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 8px solid #e67e22; /* Kontrastreiches Orange */
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(230, 126, 34, 0.25); /* Zusätzlicher Glow-Effekt zur besseren Sichtbarkeit */
    border-radius: 4px;
}

h1 { font-size: 54pt; font-weight: 700; color: var(--color-green); line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 32pt; font-weight: 700; color: var(--color-gray); margin-bottom: 20px; white-space: nowrap; }
h3 { font-size: 32pt; font-weight: 600; color: var(--color-gray); margin-bottom: 15px; }
h4 { font-size: 16pt; font-weight: 400; color: var(--color-text); margin-bottom: 15px; }
h5, h6, p { font-size: 16pt; font-weight: 300; color: var(--color-text); margin-bottom: 15px; }
strong { font-family: var(--font-main);
    font-weight: 500; }

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

 .service-links {
    display: flex;
    flex-wrap: wrap; /* Erlaubt den Umbruch in neue Zeilen */
    gap: 12px;      /* Erzeugt Platz zwischen den Buttons (horizontal & vertikal) */
    margin-bottom: 40px;
    list-style: none;
}


.btn-ort {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
    border:rgba(68, 68, 68, 0.7) 2px solid;
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--color-gray);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2; /* Sorgt dafür, dass der Text im Button nicht zu viel Platz frisst */
}

.btn-ort:hover {
    background-color: var(--color-gray);
    color: var(--color-bg);
}


.btn {
    display: inline-block;
    background-color: var(--color-green);
    color: #ffffff;
    font-weight: 700;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-size: 16pt;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn:hover { background-color: var(--color-gray); } /* Farbe Grau beim Hover */

.btn-neg {
    display: inline-block;
    background-color: var(--color-bg);
    color: var(--color-green);
    font-weight: 700;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-size: 16pt;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn-neg:hover { background-color: var(--color-green); color: var(--color-bg);} /* Hover */

/* =========================================
    3. Sektionen
    ========================================= */

/* Navigation */
header { background-color: var(--color-bg); border-bottom: 1px solid #ddd; padding: 20px; }
nav a { text-decoration: none; color: var(--color-text); font-weight: 700; font-size: 14pt; }
nav a:hover { color: var(--color-green); }

/* Hero Bereich */
.hero {
    background: linear-gradient(to right, rgba(254, 254, 254, 0.9), rgba(254, 254, 254, 0.3)), 
                url('Neumann Sonnensegel Garten höhenverstellbar luftdurchlässig robust.webp') no-repeat center center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    /* Richtet den Text am Gitter aus, lässt aber links immer mind. 20px Platz */
    margin-left: max(20px, calc((100% - 1200px) / 2));
    padding-right: 20px; /* Platz nach rechts, falls der Text umbricht */
}

.hero-content p {
    margin-bottom: 40px; /* Deutlicher Abstand zum Button in allen Ansichten */
}

/* Produkt Slider */
.slider-wrapper { position: relative; display: flex; align-items: center; }

.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    scrollbar-width: none; 
    width: 100%;
    list-style: none;
}
.slider-container::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
    .slider-container { scroll-behavior: auto; }
}

.slider-item {
    flex: 0 0 320px; 
    aspect-ratio: 3 / 4; 
    padding: 40px;
    text-align: left;
    border-radius: 8px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

/* Hintergrundbilder Slider */
#item1 {
    background: linear-gradient(rgba(68, 68, 68, 0.7), rgba(68, 68, 68, 0.7)), url('Neumann Sonnensegel Spielplatz Kindergarten Fröbel Münster.jpg') no-repeat center center/cover;
}
#item2 {
    background: linear-gradient(rgba(68, 68, 68, 0.7), rgba(68, 68, 68, 0.7)), url('Neumann-rollbares-Sonnensegel-höhenverstellbar-Sunfurl-_3_.webp') no-repeat center center/cover;
}
#item3 {
    background: linear-gradient(rgba(68, 68, 68, 0.7), rgba(68, 68, 68, 0.7)), url('Neumann-Sonnenschirm-Bahama-Jumbrella-XL-für-die-Berufsschule-Schulhof-BBS-im-Marienheim-_11_.webp') no-repeat center center/cover;
}
#item4 {
    background: linear-gradient(rgba(68, 68, 68, 0.7), rgba(68, 68, 68, 0.7)), url('Neumann-Schirmersatzbespannung-Sonnenschirm-Blick-in-die-Produktion-am-Standort-Osnabrück.webp') no-repeat center center/cover;
}
#item5 {
    background: linear-gradient(rgba(68, 68, 68, 0.7), rgba(68, 68, 68, 0.7)), url('Neumann-Planen-Blick-in-die-Produktion-am-Standort-Osnabrück.webp') no-repeat center center/cover;
}
#item6 {
    background: linear-gradient(rgba(68, 68, 68, 0.7), rgba(68, 68, 68, 0.7)), url('Label von Neumann Sonnensegel Osnabrück auf Sonnensegel.webp') no-repeat center center/cover;
}

.slider-item h3, .slider-item p { color: #ffffff; }
.slider-item h3 { font-size: 20pt; line-height: 1.3; min-height: 60px; margin-bottom: 10px; }
.slider-item p { font-size: 14pt; flex-grow: 1; margin-bottom: 20px; }
.slider-item .btn { width: 100%; margin-top: auto; font-size: 14pt; }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20pt;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.slider-arrow:hover { box-shadow: 0 6px 12px rgba(0,0,0,0.2); }
.slider-arrow:focus-visible { outline-offset: 2px; }
.slider-arrow.left { left: -25px; }
.slider-arrow.right { right: -25px; }

/* Über Uns Bild*/
.about-us { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }

.about-image {
    flex: 1 1 350px;
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
}
.about-text { flex: 1 1 350px; }

/* Warum Wir */
.why-us-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-top: 20px; 
    list-style: none;
}
.icon-item { display: flex; align-items: center; gap: 15px; }
.icon-item i { font-size: 24pt; color: var(--color-green); flex-shrink: 0; }
.icon-item p { margin: 0; }

/* Einsatzbereiche */
details { margin-bottom: 10px; border-radius: 5px; overflow: hidden; border: 1px solid #ddd; }
summary {
    background-color: #f5f5f5;
    padding: 20px;
    font-weight: 700;
    color: var(--color-gray);
    cursor: pointer;
    list-style: none; 
    position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '\f078'; 
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
}
details[open] summary::after { transform: rotate(180deg); }
.details-content { background-color: var(--color-bg); padding: 20px; }
.details-content p { margin: 0; }

/* =========================================
    4. Footer
    ========================================= */
footer {
    background-color: var(--color-gray);
    color: #ffffff;
    padding: 40px 20px 20px 20px;
    margin-top: 30px;
}
.footer-container {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
}
.footer-column {
    flex: 1;
    font-size: 11pt;
    line-height: 1.5;            
}
.footer-column p {
    color: #dddddd; /* Etwas helleres Grau für bessere Lesbarkeit auf dem dunklen Hintergrund */
    margin-bottom: 5px;
}
/* Überschriften im Footer anpassen */
.footer-column h3 {
    color: #ffffff;
    font-size: 14pt;
    margin-bottom: 20px;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #dddddd;
    text-decoration: none;
    font-size: 14pt;
    transition: color 0.3s ease;
}
.footer-links a:hover, .footer-links a:focus-visible {
    font-weight: 600;
}

/* Copyright / Unterer Footer Rand */
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 12pt;
    color: #aaaaaa;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    h1 { font-size: 36pt; }
    h2, h3 { font-size: 24pt; white-space: normal; }
    .hero-content { margin-left: 20px; } /* Festgelegter linker Abstand auf Mobilgeräten */
    .slider-arrow { display: none; }
    .footer-container { flex-direction: column; }
    .why-us-grid { grid-template-columns: 1fr; } /* Icons auf Mobilgeräten untereinander */

    .slider-item {
        flex: 0 0 80vw;
        padding: 25px; /* Weniger Innenabstand auf kleinen Screens */
    }
    .slider-item h3 { font-size: 18pt; }
    .slider-item p { font-size: 13pt; }
}