/* ===================================================================
   FILTROTECH Website - Clean CSS Architecture
   Saubere, moderne Styles ohne Konflikte
   =================================================================== */

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(135deg,
        #585a59 0%,
        #353a40 25%,
        #242833 70%,
        #353a40 100%
    );
    background-attachment: fixed;
}

/* Alle Elemente nutzen Nunito */
h1, h2, h3, h4, h5, h6,
p, a, button, input, textarea, select,
li, span, div, label {
    font-family: 'Nunito', sans-serif;
}

/* === NAVBAR === */
.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(69, 74, 82, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.container-fluid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.10rem 5%;
}

/* Logo-Bereich (links) */
.nav-brand {
    justify-self: start;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 350px;
    display: block;
}

/* Zentral-Bereich (Haus + Nav-Items) */
.nav-center {
    justify-self: center;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.5rem;
}

.nav-list li {
    display: inline-block;
}

/* Navigation Links - nur Text */
.nav-list a,
.dropbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background-color: transparent;
    color: #e8eaed;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.425rem;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    min-height: 44px; /* Touch-Target */
}

.nav-list a:hover,
.dropbtn:hover {
    background-color: transparent;
    color: #7cb8f0;
}

/* Font Awesome Icons */
.nav-list i,
.nav-lang i {
    font-size: 1.25rem;
    line-height: 1;
}

/* Sprach-Bereich (rechts) */
.nav-lang {
    justify-self: end;
}

/* Dropdowns */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #252830;
    border-radius: 0.75rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.5rem 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.dropdown:hover .dropdown-content,
.dropdown.open .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #e8eaed;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: background-color 0.15s ease;
}

.dropdown-content a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #7cb8f0;
}

.nav-lang .dropdown-content {
    right: 0;
    left: auto;
}

/* Breadcrumbs */
.breadcrumb2 {
    padding: 1rem 5%;
}

.breadcrumb2 ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.breadcrumb2 li {
    display: inline;
}

.breadcrumb2 li:not(:last-child)::after {
    content: " › ";
    margin-left: 0.5rem;
    color: rgba(255,255,255,0.4);
}

.breadcrumb2 a {
    color: #e8eaed;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb2 a:hover {
    color: #7cb8f0;
}

/* === MAIN CONTENT === */
main.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

section {
    display: block;
}

/* Welcome & General Sections */
.welcome-section,
.general-section,
.welcome2-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.welcome-text,
.welcome2-text,
.general-text {
    flex: 1;
}

.welcome-image,
.brand-image {
    max-width: 100%;
    height: auto;
}

.welcome-image {
    width: 50%;
}

.brand-image {
    width: 30%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    color: #e8eaed;
    margin-bottom: 1rem;
}

em {
    font-style: italic;
    color: rgba(255,255,255,0.9);
}

a {
    color: #7cb8f0;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #9fcbf7;
}

/* Buttons */
button,
[type="submit"],
input[type="submit"] {
    font-family: 'Nunito', sans-serif;
    background-color: rgba(255,255,255,0.15);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover,
[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: rgba(124,184,240,0.3);
    border-color: #7cb8f0;
    transform: translateY(-1px);
}

/* Forms */
form {
    max-width: 600px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 600;
}

input,
textarea,
select {
    font-family: 'Nunito', sans-serif;
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #7cb8f0;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

/* Slideshow */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;
    animation-name: fadeIn;
    animation-duration: 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* FAQ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.question {
    margin-bottom: 1rem;
}

.question h2 {
    cursor: pointer;
    background-color: rgba(255,255,255,0.08);
    color: #ffffff;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: background-color 0.2s;
}

.question h2:hover {
    background-color: rgba(255,255,255,0.12);
}

.answer {
    display: none;
    padding: 1rem;
    color: #e8eaed;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Contact page */
.contact h4 {
    margin-bottom: 2rem;
}

#map {
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 2rem 0;
}

/* === FOOTER === */
footer {
    border-top: 1px solid rgba(255,255,255,0.15);
    background-color: rgba(15,20,25,0.6);
    padding: 2rem 5%;
    text-align: center;
    color: rgba(255,255,255,0.8);
}

footer.container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer a {
    color: #e8eaed;
    margin: 0 0.5rem;
    transition: color 0.2s;
}

footer a:hover {
    color: #7cb8f0;
}

footer .copyright {
    font-size: 0.875rem;
    margin-top: 1rem;
    color: rgba(255,255,255,0.6);
}

/* === UTILITY CLASSES === */
.divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 2rem 0;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

/* === SWIPER SLIDER === */
.swiper {
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.swiper-button-next,
.swiper-button-prev {
    color: #ffffff;
    background-color: rgba(0,0,0,0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(124,184,240,0.6);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.25rem;
}

.swiper-pagination-bullet {
    background-color: rgba(255,255,255,0.5);
}

.swiper-pagination-bullet-active {
    background-color: #7cb8f0;
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .container-fluid {
        grid-template-columns: 1fr;
        padding: 0.5rem 5%;
        gap: 0.75rem;
    }
    
    .nav-brand,
    .nav-center,
    .nav-lang {
        justify-self: center;
    }
    
    .logo {
        height: 40px;
        max-width: 180px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }
    
    .nav-list a,
    .dropbtn {
        padding: 0.4rem 0.8rem;
        font-size: 1.1rem;
    }

    .dropdown-content a {
        font-size: 1rem;
    }

    main.container {
        padding: 1rem 5%;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .welcome-section,
    .general-section,
    .welcome2-section {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-image,
    .brand-image {
        width: 100%;
        max-width: 400px;
    }

    .dropdown-content {
        min-width: 180px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container-fluid {
        padding: 0.75rem 8%;
    }
    
    main.container {
        padding: 1.5rem 8%;
    }
}

/* === IMAGES === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === LINKS IN CONTENT === */
main.container a:not(.nav-list a):not(.dropbtn) {
    color: #7cb8f0;
    text-decoration: underline;
    text-decoration-color: rgba(124,184,240,0.3);
    text-underline-offset: 3px;
}

main.container a:not(.nav-list a):not(.dropbtn):hover {
    text-decoration-color: #7cb8f0;
}

/* === SPECIAL PAGE ELEMENTS === */
.danke,
.contact {
    text-align: center;
}

small {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
}

hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 2rem 0;
}

/* === PRINT STYLES === */
@media print {
    .fixed-top,
    .nav-lang,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
        padding-top: 0;
    }
}
