/* ==========================================================================
   1. SETUP & GLOBALS
   ========================================================================== */

/* 1.1. CSS Variables & Theming
   -------------------------------------------------------------------------- */
:root {
    --primary: #c20c0c;
    --primary-dark: #9d0000;
    --secondary: #333333;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --white: #ffffff;
    --gray: #6f6f6f;
    --accent-turkis: #c20c0c;

    /* Theme-spezifische Assets */
    --background-image: url('01white.png');
    --background-opacity: 0.5;
    --transition: all 0.3s ease;
}

.dark-mode {
    --primary: #ff5252;
    --primary-dark: #ff2a2a;
    --secondary: #f0f0f0;
    --dark: #ffffff;
    --light: #121212;
    --white: #1a1a1a;
    --gray: #9a9a9a;
    --accent-turkis: #2acccc;

    /* Theme-spezifische Assets für Dark-Mode */
    --background-image: url('1black-.png');
    --background-opacity: 0.7;
}

/* 1.2. Global Resets & Body
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary);
    line-height: 1.6;
    background-color: var(--white);
    transition: var(--transition);
    position: relative;
    z-index: 0;
}

body.mobile-nav-open {
    overflow: hidden;
}

/* 1.3. Global Background
   -------------------------------------------------------------------------- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: var(--background-image);
    background-repeat: repeat;
    opacity: var(--background-opacity);
    z-index: -1;
    overflow-x: hidden;
    /* Verhindert horizontales Scrollen */
    transition: opacity 0.3s ease;
    /* Sanfter Übergang für die Deckkraft */
}

/* ==========================================================================
   2. BASE & TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--dark);
    transition: var(--transition);
}

/* ==========================================================================
   3. LAYOUT HELPERS
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

/* Stil für Sektionsüberschriften */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: block;
    /* Geändert von inline-block, um den Untertitel-Umbruch zu ermöglichen */
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* Stil für den Untertitel in den Seitenüberschriften */
.page-header .section-title h2 .subtitle {
    display: block;
    font-size: 0.65em;
    font-weight: 500;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    letter-spacing: 0.5px;
    /* Abstand zwischen den Buchstaben */
    font-family: 'Poppins', sans-serif;
    /* Stellt sicher, dass die Schriftart konsistent ist */
    border-top: none;
    /* Entfernt die Linie über dem Untertitel */
}

.subsection-title {
    text-align: center;
    margin: 0 0 2rem 0;
    font-size: 2rem;
    color: var(--secondary);
}

/* ==========================================================================
   4. REUSABLE COMPONENTS
   ========================================================================== */

/* 4.1. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-light {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-light:hover {
    background-color: var(--white);
    color: var(--dark);
}

.dark-mode .btn:hover {
    border-color: var(--accent-turkis);
    color: var(--accent-turkis);
}

.dark-mode .btn-light {
    border: 2px solid var(--accent-turkis);
    color: var(--accent-turkis);
}

.dark-mode .btn-light:hover {
    background-color: var(--accent-turkis);
    color: #1a1a1a;
}

/* 4.2. Theme Toggle Switch
   -------------------------------------------------------------------------- */
.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: var(--primary);
}

input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

/* 4.3. Language Toggle
   -------------------------------------------------------------------------- */
.lang-toggle {
    background: none;
    border: 1px solid var(--gray);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 24px;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-size: cover;
    background-position: center;
}

.lang-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

/* 4.4. Dropdown Menu
   -------------------------------------------------------------------------- */
.dropdown-content {
    position: absolute;
    left: 0;
    top: 100%;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 6px;
    padding: 0.5rem 0;
    border-top: 2px solid var(--primary);
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dark-mode .dropdown-content {
    background-color: #1e1e1e;
}

.dropdown-content a {
    color: var(--secondary);
    padding: 9px 19px;
    margin: 0 5px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 4px;
}

.dropdown-content a:hover {
    background-color: var(--light);
    color: var(--primary);
}

.dark-mode .dropdown-content a:hover {
    background-color: transparent;
    color: var(--accent-turkis);
    border-color: var(--accent-turkis);
}

/* 4.5. Sliders (General)
   -------------------------------------------------------------------------- */
/* Pfeile für Projekt-Galerien */
.slider-container .slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 3rem;
    /* Große Pfeil-Icons */
    padding: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.slider-container .slider-nav button:hover {
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-container .slider-nav .prev-btn {
    left: 1rem;
}

.slider-container .slider-nav .next-btn {
    right: 1rem;
}

/* 4.6. Parallax Divider
   -------------------------------------------------------------------------- */
.parallax-divider {
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80');
    height: 200px;
    /* Höhe der Trennung */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.5);
    /* Dunkles Overlay für besseren Kontrast */
}

/* 4.7. Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    transition: opacity 0.4s ease;
    box-sizing: border-box;
    /* display: flex; wird per JS gesetzt */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 80vh;
    animation-name: zoom;
    animation-duration: 0.4s;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-caption {
    margin: 15px auto 0;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    font-size: 1.1rem;
}

/* 4.8. Timeline
   -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    opacity: 0.3;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 60px;
    /* Start from the left */
    transform: translateX(-50px);
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 60px;
    /* Start from the right */
    transform: translateX(50px);
}

.timeline-item.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   5. PAGE STRUCTURE
   ========================================================================== */

/* 5.1. Header & Navigation
   -------------------------------------------------------------------------- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    display: block;
    height: 40px;
    /* Passen Sie die Höhe nach Bedarf an */
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
}

.logo .logo-night {
    display: none;
}

.dark-mode .logo .logo-day {
    display: none;
}

.dark-mode .logo .logo-night {
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem;
}

.nav-links a:visited {
    color: var(--secondary);
}

.nav-links a:hover {
    color: var(--accent-turkis);
}

.nav-links .dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.nav-links .dropdown>a i {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s;
}

.nav-links .dropdown:hover>a i {
    transform: rotate(180deg);
}

/* Container für Navigations-Steuerelemente (Theme & Sprache) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.desktop-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* 5.2. Mobile Navigation
   -------------------------------------------------------------------------- */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    z-index: 1003;
    position: relative;
    width: 24px;
    height: 24px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--white);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0s 0.4s;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.mobile-nav-close {
    position: absolute;
    top: 1.7rem;
    right: 5%;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--secondary);
    cursor: pointer;
}

.mobile-nav-logo {
    height: 80px;
    /* 2x facher Größe */
    margin-bottom: 3rem;
    /* Abstand zu den Links */
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav-links>li>a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
}

.mobile-nav-links>li>a:visited {
    color: var(--secondary);
}

.mobile-nav-links li a:hover {
    color: var(--primary);
}

.mobile-nav-links .has-submenu>a i {
    transition: transform 0.3s ease;
    font-size: 1rem;
    margin-left: 10px;
}

.mobile-nav-links .has-submenu.active>a i {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.mobile-submenu a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gray);
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    margin: 2px 0;
    display: block;
    text-decoration: none;
    /* Unterstreichung entfernt */
}

.mobile-submenu a:hover {
    background-color: var(--light);
    color: var(--primary);
}

.dark-mode .mobile-submenu a:hover {
    background-color: transparent;
    color: var(--accent-turkis);
    border-color: var(--accent-turkis);
    /* Rahmen wiederhergestellt */
}

.mobile-nav .nav-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

/* 5.3. Footer
   -------------------------------------------------------------------------- */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 3rem 0 1rem;
    transition: var(--transition);
}

.dark-mode footer {
    background-color: #121212;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
    width: 200px;
    /* Breite angepasst für die Spalte */
    height: auto;
    /* Überschreibt die Höhe des Header-Logos */
}

.footer-about p {
    color: #ccc;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.dark-mode .social-links a {
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background-color: transparent;
    transform: translateY(-3px);
    color: var(--accent-turkis);
    border-color: var(--accent-turkis);
}

.footer-links h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #ffffff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.footer-links li span {
    color: #aaa;
}

.dark-mode .footer-links li span {
    color: #ccc;
}

.footer-links li i {
    margin-top: 5px;
    width: 16px;
    text-align: center;
    color: var(--primary);
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-turkis);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

.copyright p {
    transition: var(--transition);
}

.copyright p:hover {
    color: var(--primary);
}

/* ==========================================================================
   6. PAGE-SPECIFIC SECTIONS
   ========================================================================== */

/* 6.1. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    height: 80vh;
    /* Höhe reduziert */
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    color: #ffffff;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 26, 26, 0.6), rgba(26, 26, 26, 0.6));
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.slider-nav {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background-color: #ffffff;
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* 6.2. Services Section
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: transparent;
    /* Kein eigener Hintergrund für die Karte */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    /* Schatten verstärkt */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    /* Hover-Schatten verstärkt */
}

/* KORREKTUR: Selektor verallgemeinert, damit er auf index.html und hizmetlerimiz.html funktioniert */
.services-section .service-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;

    /* Glaseffekt für den Inhaltsbereich */
    background-color: rgba(255, 255, 255, 0.05);
    /* Transparenz maximiert */
    backdrop-filter: blur(15px);
    /* Unschärfe verstärkt */
    -webkit-backdrop-filter: blur(15px);
    /* Unschärfe verstärkt für Safari */
    border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.dark-mode .service-content {
    background-color: rgba(255, 255, 255, 0.1);
    /* Helleres Glas für besseren Kontrast im Dark-Mode */
    border-top-color: rgba(255, 255, 255, 0.15);
}

.service-content .text-content {
    flex-grow: 1;
}

.service-content h3 {
    margin-bottom: 0.5rem;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.dark-mode .service-icon {
    color: var(--primary);
    /* Standardfarbe im Dark-Mode auf Rot setzen */
}

.dark-mode .service-card:hover .service-icon {
    color: var(--accent-turkis);
    /* Hover-Farbe auf Türkis setzen */
}

.btn-service {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-service:hover {
    background-color: transparent;
    color: var(--primary);
}

.dark-mode .btn-service {
    background-color: var(--primary);
    color: #1a1a1a;
    border-color: var(--primary);
}

.dark-mode .btn-service:hover {
    background-color: transparent;
    color: var(--accent-turkis);
    border-color: var(--accent-turkis);
}

/* 6.3. Projects Section
   -------------------------------------------------------------------------- */
.projects-section {
    background-color: var(--light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(194, 12, 12, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s;
    padding: 1rem;
    text-align: center;
    color: #ffffff;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.dark-mode .project-filters button:hover,
.dark-mode .project-filters button.active {
    background-color: var(--accent-turkis);
    border-color: var(--accent-turkis);
    color: #1a1a1a !important;
}

/* 6.4. About Section
   -------------------------------------------------------------------------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* 6.5. Logo/References Slider
   -------------------------------------------------------------------------- */
.logo-slider-container {
    position: relative;
    padding: 0 50px;
    /* Space for arrows */
    overflow: hidden;
}

.logo-slider-wrapper {
    display: flex;
    align-items: center;
    transition: transform 0.5s ease-in-out;
}

.logo-item {
    flex: 0 0 20%;
    /* Show 5 logos on large screens */
    padding: 0 15px;
}

.logo-item img {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--light);
    border: 1px solid #ddd;
    color: var(--secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background-color: var(--primary);
    color: var(--white);
}

.slider-arrow.prev {
    left: 35px;
    position: absolute;
    left: 35px;
    right: auto;
    top: 50%;
}

.slider-arrow.next {
    right: 0;
}

.dark-mode .slider-arrow {
    background-color: #2a2a2a;
    border-color: #444;
    color: var(--secondary);
}

.dark-mode .slider-arrow:hover {
    background-color: var(--accent-turkis);
    color: #1a1a1a;
}

.dark-mode .logo-item img {
    filter: invert(80%) grayscale(100%);
    opacity: 0.5;
}

.dark-mode .logo-item:hover img {
    filter: invert(0%) grayscale(0%);
    opacity: 1;
}

/* 6.6. Contact Section
   -------------------------------------------------------------------------- */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-info-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.dark-mode .contact-info-card {
    background-color: #1e1e1e;
}

.contact-info-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.contact-info-card:hover i {
    color: var(--accent-turkis);
}

.contact-info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.contact-info-card p {
    color: var(--gray);
}

.contact-info-card a {
    color: var(--gray);
    text-decoration: none;
}

.contact-info-card a:hover {
    color: var(--primary);
}

.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.dark-mode .contact-form-container {
    background-color: #1e1e1e;
}

.contact-form-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background-color: var(--light);
    color: var(--secondary);
}

.dark-mode .contact-form input,
.dark-mode .contact-form textarea {
    background-color: #2a2a2a;
    border-color: #444;
    color: var(--secondary);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
}

.contact-form .btn.success {
    background-color: #28a745;
    /* Grüner Hintergrund für Erfolg */
    border-color: #28a745;
    cursor: default;
}

.contact-form .btn.success:hover {
    background-color: #28a745;
}

.map-container {
    margin-top: 5rem;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 8px;
}

.dark-mode .map-container iframe {
    filter: invert(100%) hue-rotate(180deg);
}

/* 6.7. References Section
   -------------------------------------------------------------------------- */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    align-items: center;
}

.reference-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    transition: var(--transition);
    cursor: pointer;
}

.dark-mode .reference-item {
    background-color: #1e1e1e;
}

.reference-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.reference-item img {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.reference-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.dark-mode .reference-item img {
    filter: invert(80%) grayscale(100%);
    opacity: 0.5;
}

.dark-mode .reference-item:hover img {
    filter: invert(0%) grayscale(0%);
    opacity: 1;
}

/* 6.8. Page-specific Content Styles
   -------------------------------------------------------------------------- */
.page-header {
    padding-top: 120px;
    /* Platz für den fixierten Header */
    padding-bottom: 4rem;
}

.page-content {
    background-color: var(--white);
}

.dark-mode .page-content {
    background-color: var(--light);
}

.page-content .container {
    max-width: 800px;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.image-placeholder {
    background-color: var(--light);
    border: 2px dashed var(--gray);
    border-radius: 8px;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--gray);
    font-style: italic;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.dark-mode .image-placeholder {
    background-color: var(--white);
}

.vision-content .container {
    max-width: 800px;
}

.vision-content h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.vision-content h3 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.vision-content h4 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.vision-content p {
    margin-bottom: 1.5rem;
}

.vision-content .final-text {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 4rem;
    color: var(--primary);
}

.content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 6.9. Split Screen
   -------------------------------------------------------------------------- */
.split-screen-container {
    display: flex;
    width: 100%;
    height: calc(100vh - 88px);
    /* Full height minus header */
    margin-top: 88px;
    /* Header height */
}

.split-panel {
    position: relative;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    transition: width 0.5s ease;
    overflow: hidden;
}

.split-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.5s ease;
}

.split-panel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Stellt sicher, dass das Bild den Bereich ausfüllt, ohne die Proportionen zu verzerren */
    z-index: 0;
    /* Stellt sicher, dass das Bild hinter dem Overlay und dem Inhalt liegt */
    transition: transform 0.5s ease;
}

.split-panel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.split-panel h2 {
    font-size: 3rem;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.split-screen-container:hover .split-panel {
    width: 45%;
}

.split-screen-container .split-panel:hover {
    width: 55%;
}

.split-panel:hover::before {
    background-color: rgba(0, 0, 0, 0.3);
}

.split-panel:hover .split-panel-img {
    transform: scale(1.05);
}

/* ==========================================================================
   7. UTILITY CLASSES
   ========================================================================== */

/* 7.1. Sticky WhatsApp Button
   -------------------------------------------------------------------------- */
.whatsapp-sticky-button {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: #25D366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: transform 0.3s ease;
}

.whatsapp-sticky-button:hover {
    transform: scale(1.1);
}

/* 7.2. Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: -100px;
    /* Start outside the screen */
    background-color: var(--primary);
    color: var(--white) !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: right 0.5s ease, transform 0.3s ease;
}

.back-to-top.show {
    right: 25px;
    /* Slide in */
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* 7.3. Back to Home Link
   -------------------------------------------------------------------------- */
.back-to-home {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    animation: fadeIn 0.8s ease-out forwards;
}

.back-to-home:hover {
    color: var(--primary);
}

/* 7.4. Animation Helpers
   -------------------------------------------------------------------------- */
.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ==========================================================================
   8. ANIMATIONS (@keyframes)
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoom {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   9. RESPONSIVE STYLES
   ========================================================================== */

/* 9.1. Medium devices (tablets, less than 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {

    /* Header & Nav */
    .nav-links {
        display: none;
    }

    .desktop-controls {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.2rem;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
    }

    /* Logo Slider */
    .logo-item {
        flex: 0 0 33.33%;
        /* 3 logos */
    }

    /* Contact */
    .contact-form-container {
        grid-template-columns: 1fr;
    }

    .contact-form-img {
        display: none;
    }
}

/* 9.2. Small devices (landscape phones, less than 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

    /* Split Screen */
    .split-screen-container {
        flex-direction: column;
        height: auto;
    }

    .split-panel {
        width: 100%;
        height: 50vh;
    }

    .split-screen-container:hover .split-panel,
    .split-screen-container .split-panel:hover {
        width: 100%;
    }

    .split-screen-container.three-panels .split-panel,
    .split-screen-container.three-panels:hover .split-panel,
    .split-screen-container.three-panels .split-panel:hover {
        width: 100%;
    }

    /* Timeline */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
        padding-left: 80px;
        transform: translateX(-30px);
    }

    .timeline-item.is-visible {
        transform: translateX(0);
    }
}

/* Zusätzliche Responsive-Regeln aus der alten Datei, die in einem separaten Block waren */
@media screen and (max-width: 768px) {
    .page-hero-content h1 {
        font-size: 2.5rem;
    }

    .process-step {
        flex-direction: column !important;
        text-align: center;
    }

    .step-number {
        margin: 0 auto 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}