/* === SVDL - Schustereit & Von der Linde === */
/* === GRUNDEINSTELLUNGEN === */

:root {
    --primary-blue: #62b5e5;
    --text-dark: #333333;
    --text-grey: #666666;
    --footer-bg: #4a4a4a;
    --footer-text: #cccccc;
    --link-blue: #5BB5E6;
    --font-stack: 'Montserrat', sans-serif;
    --flip-duration: 0.9s;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-stack);
    font-weight: 300;
    color: #444;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Platz für fixed Header */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #ffffff;
}

/* === HEADER === */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
    transition: all 0.3s ease;
}

/* Header beim Scrollen */
header.scrolled {
    padding: 12px 40px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header.scrolled .logo-nav img {
    height: 32px !important;
}

header.scrolled nav a {
    font-size: 12px;
}

.logo-nav {
    display: flex;
    align-items: center;
    max-width: 200px;
    height: 50px;
}

.logo-nav img {
    height: 38px !important;
    width: auto !important;
    object-fit: contain;
    display: block;
    transition: height 0.3s ease;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    position: relative;
}

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

/* Aktiver Link Unterstrich */
nav a.active {
    color: var(--primary-blue);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
}

/* === MAIN === */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    text-align: center;
}

/* === HERO TEXT === */
.hero-text {
    max-width: 700px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.hero-text .highlight {
    color: var(--primary-blue);
    font-weight: 600;
}

.hero-text p {
    font-size: 1.05rem;
    color: var(--text-grey);
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
}

/* === 3D BUSINESS CARD (DESKTOP) === */
.business-card-container {
    perspective: 2000px;
    margin-bottom: 60px;
    width: 500px;
    height: 300px;
    position: relative;
    transform: translateZ(0);
}

.card-tilt {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transform: rotateX(2deg) rotateY(-2deg);
}

.card-lift {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform 220ms ease;
    cursor: pointer;
    background: transparent !important;
}

.card-lift.is-lifted {
    transform: translateY(-10px);
}

.card-lift::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.35),
        0 10px 30px rgba(0,0,0,0.25),
        0 5px 15px rgba(0,0,0,0.2),
        0 2px 5px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 220ms ease;
    z-index: -1;
    transform: translateZ(-2px);
}

.card-lift.is-lifted::after { opacity: 1; }
.card-lift.is-animating::after { opacity: 0 !important; visibility: hidden !important; transition: none !important; }

.business-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform var(--flip-duration) cubic-bezier(0.4, 0.0, 0.2, 1);
}

.business-card.flipped { transform: rotateY(180deg); }

/* === CARD FACE DESIGN === */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    padding: 30px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.15),
        inset 2px 0 2px rgba(0,0,0,0.08),
        inset -2px 0 2px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.1);
}

.card-face *,
.card-face::before,
.card-face::after {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-face::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.1) 0%,
        transparent 50%,
        rgba(0,0,0,0.05) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.card-face::after {
    content: '';
    position: absolute;
    top: 3px; left: 0; right: 0; bottom: -3px;
    background: rgba(0,0,0,0.4);
    transform: translateZ(-2px);
    filter: blur(3px);
    z-index: -1;
}

/* === CARD FRONT (GREY) === */
.card-front {
    background: #4a4a4a;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3CfeColorMatrix values='0 0 0 0 0, 0 0 0 0 0, 0 0 0 0 0, 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0,0,0,0.02) 0%, transparent 50%);
    justify-content: flex-end;
    align-items: flex-end;
}

.card-front::before {
    background: linear-gradient(
        125deg,
        rgba(255,255,255,0.12) 0%,
        rgba(255,255,255,0.03) 30%,
        transparent 50%,
        rgba(0,0,0,0.03) 100%
    );
    z-index: 1;
}

.card-front img {
    max-width: 200px;
    height: auto;
    position: relative;
    z-index: 2;
    filter:
        drop-shadow(3px 3px 0px rgba(0,0,0,0.4))
        drop-shadow(6px 6px 12px rgba(0,0,0,0.5))
        drop-shadow(1px 1px 0px rgba(255,255,255,0.1));
}

/* === CARD BACK (WHITE) === */
.card-back {
    background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' /%3E%3CfeColorMatrix values='0 0 0 0 0, 0 0 0 0 0, 0 0 0 0 0, 0 0 0 0.015 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
        linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
    transform: rotateY(180deg);
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.card-back::before {
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.4) 0%,
        rgba(255,255,255,0.1) 30%,
        transparent 50%,
        rgba(0,0,0,0.02) 100%
    );
    z-index: 1;
}

.card-back-top, .card-back-bottom {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
    transform: translateZ(1px);
}

.card-back-top img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1))
            drop-shadow(0 1px 2px rgba(0,0,0,0.06));
}

.card-back-bottom a {
    font-size: 0.95rem;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 1px rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.card-back-bottom a:hover {
    color: var(--primary-blue);
}

/* === INTRO TEXT === */
.intro-text {
    max-width: 850px;
    margin-top: 20px;
}

.intro-text p.lead {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
}

.intro-text p.sub {
    font-size: 0.9rem;
    color: #888;
    font-weight: 300;
}

/* === FOOTER === */
footer {
    background-color: var(--footer-bg);
    padding: 50px 40px;
    font-size: 0.85rem;
    color: var(--footer-text);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-col { line-height: 1.8; }
.footer-col a { color: var(--link-blue); text-decoration: none; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 0.8; text-decoration: underline; }

.impressum-link {
    display: block;
    margin-top: 10px;
    color: #fff !important;
    font-weight: 600;
}

/* === MOBILE MENU === */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: #fff;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #fff;
}

/* === FULLSCREEN MOBILE MENU === */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    background: #4a4a4a;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3CfeColorMatrix values='0 0 0 0 0, 0 0 0 0 0, 0 0 0 0 0, 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0,0,0,0.02) 0%, transparent 50%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        125deg,
        rgba(255,255,255,0.1) 0%,
        rgba(255,255,255,0.02) 30%,
        transparent 50%,
        rgba(0,0,0,0.03) 100%
    );
    pointer-events: none;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu nav {
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-menu li {
    margin: 18px 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mobile-menu.active li {
    opacity: 1;
}

.mobile-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: block;
    text-shadow:
        0 2px 4px rgba(0,0,0,0.3),
        0 1px 0 rgba(255,255,255,0.1);
}

.mobile-menu a:hover {
    color: var(--primary-blue);
}

/* === MOBILE MENU LOGO === */
.mobile-menu-logo {
    position: absolute;
    bottom: 45px;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-decoration: none;
}

.mobile-menu.active .mobile-menu-logo {
    opacity: 1;
}

.mobile-menu-logo img {
    height: 25px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(68%) sepia(31%) saturate(617%) hue-rotate(166deg) brightness(95%) contrast(89%);
    transition: filter 0.3s ease;
}

.mobile-menu-logo:hover img {
    filter: brightness(0) saturate(100%) invert(100%);
}

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

/* === TABLET & MOBILE (max 1400px - inkl. iPad Pro 13") === */
@media (max-width: 1400px) {
    /* Body padding für kleineren Header */
    body {
        padding-top: 70px;
    }

    main.svdl-subpage {
        margin-top: -70px;
    }

    .hero-banner,
    .hero-splash {
        padding-top: 70px;
    }

    .footer-container { flex-direction: column; gap: 30px; text-align: center; align-items: center; }
    .footer-col { text-align: center !important; }
    .intro-text p.lead { font-size: 1.1rem; }

    /* Header Layout */
    header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 18px 20px;
        transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    }

    header nav {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
        order: 2;
    }

    header .logo-nav {
        order: 1;
        flex: 0 0 auto;
        height: 50px;
        transition: height 0.3s ease;
    }

    header .logo-nav img {
        height: 35px !important;
        transition: height 0.3s ease;
    }

    /* Shrinking Header */
    header.scrolled {
        padding: 10px 20px;
        background-color: rgba(255, 255, 255, 0.97);
        box-shadow:
            0 2px 8px rgba(0,0,0,0.12),
            0 4px 20px rgba(0,0,0,0.08);
    }

    header.scrolled .logo-nav {
        height: 40px;
    }

    header.scrolled .logo-nav img {
        height: 28px !important;
    }

    header.scrolled .hamburger {
        height: 18px;
        width: 26px;
    }

    /* === MOBILE CARD: Fade statt 3D-Flip === */
    .business-card-container {
        perspective: none;
    }

    .card-tilt {
        transform: none;
    }

    .card-lift {
        transform: none;
    }

    .card-lift.is-lifted {
        transform: scale(1.02);
    }

    .card-lift::after {
        display: none;
    }

    .business-card {
        transform-style: flat;
        transform: none !important;
    }

    .card-face {
        backface-visibility: visible;
        -webkit-backface-visibility: visible;
        transition: opacity 0.4s ease;
    }

    .card-front {
        opacity: 1;
        z-index: 2;
        background: #5a5a5a;
    }

    .card-front::before {
        background: linear-gradient(
            125deg,
            rgba(255,255,255,0.18) 0%,
            rgba(255,255,255,0.05) 30%,
            transparent 50%,
            rgba(0,0,0,0.02) 100%
        );
    }

    .card-back {
        opacity: 0;
        z-index: 1;
        transform: rotateY(0deg);
    }

    .card-back-bottom a {
        pointer-events: none;
        color: #888;
    }

    .business-card.flipped .card-front {
        opacity: 0;
        z-index: 1;
    }

    .business-card.flipped .card-back {
        opacity: 1;
        z-index: 2;
    }
}

/* === SMALL MOBILE (max 600px) === */
@media (max-width: 600px) {
    .business-card-container { width: 340px; height: 204px; }
    .card-face { padding: 20px; }
    .card-front img { max-width: 130px; }
    .card-back-top img { max-width: 120px; }
    .card-back-bottom a { font-size: 0.8rem; }
    .hero-text h1 { font-size: 1.6rem; }
    .hero-text p { font-size: 0.95rem; }
}

/* === VERY SMALL MOBILE (max 400px) === */
@media (max-width: 400px) {
    .mobile-menu a {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }
    .mobile-menu li {
        margin: 15px 0;
    }
}

/* === TOUCH DEVICES (iPad, Tablets - unabhängig von Breite) === */
/* Exakt gleiche Styles wie mobile Version */
@media (hover: none) and (pointer: coarse) {
    .business-card-container {
        perspective: none !important;
    }

    .card-tilt {
        transform: none !important;
    }

    .card-lift {
        transform: none !important;
    }

    .card-lift.is-lifted {
        transform: none !important;
    }

    .card-lift::after {
        display: none !important;
    }

    .business-card {
        transform: none !important;
        -webkit-transform: none !important;
    }

    .card-face {
        transform: none !important;
        -webkit-transform: none !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
    }


    .card-front {
        display: flex;
    }

    .card-back {
        display: none !important;
    }

    .business-card.flipped .card-front {
        display: none !important;
    }

    .business-card.flipped .card-back {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-end;
    }

    .card-back-bottom a {
        pointer-events: none;
        color: #888;
    }
}

/* ============================================
   PAGE: CONTENT PAGES (SUBPAGES)
   Fix für Layout-Probleme & SVDL Style
   ============================================ */

/* 1. RESET FÜR UNTERSEITEN */
/* Überschreibt die "main"-Einstellungen der Startseite, die alles zentrieren */
main.svdl-subpage {
    display: block !important;    /* Verhindert Flex-Zentrierung */
    padding: 0 !important;        /* Banner soll ganz oben andocken */
    text-align: left;
    min-height: 60vh;
    margin-top: -80px;            /* Hero-Banner unter Header schieben */
}

/* Container für den eigentlichen Text-Inhalt (damit er nicht am Rand klebt) */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* === HERO BANNER (Bildstreifen) === */
.hero-banner {
    padding-top: 80px; /* Platz für transparenten Header */
    width: 100%;
    height: 280px;
    background-color: #555; /* Fallback Farbe */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Etwas dunkler für bessere Lesbarkeit */
}

.hero-banner h1 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin: 0;
    padding: 0 20px;
    text-align: center;
}

/* === SEKTION 1: Expertise & SVDL Card === */
.diag-top-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Oben bündig */
    gap: 60px;
    margin-bottom: 60px;
}

/* Textgruppe links (Expertise + Philosophie) */
.diag-text-group {
    flex: 1;
    display: flex;
    gap: 40px;
}

.diag-text-col {
    flex: 1;
}

.diag-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.circle-arrow {
    width: 28px;
    height: 28px;
    background-color: #4a4a4a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.diag-text-col h3 {
    margin: 0;
    font-weight: 400;
    font-size: 1.3rem;
    color: #333;
}

.sub-caption {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.diag-text-col p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* === SVDL CARD STYLE (Dunkel & Edel) === */
.svdl-card-sidebar {
    flex: 0 0 260px; /* Breite einer Visitenkarte */
    background-color: #4a4a4a; /* Das SVDL Dunkelgrau */
    padding: 30px;
    color: #fff;
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.2), 
        0 5px 10px rgba(0,0,0,0.15); /* Tiefer Schatten wie bei der 3D Karte */
    position: relative;
    
    /* Subtile Textur wie auf der Startseite (optional) */
    background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.card-label {
    font-size: 0.7rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 15px;
}

.card-name {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
}

.card-line {
    width: 40px;
    height: 2px;
    background-color: var(--primary-blue); /* Das SVDL Blau */
    margin: 15px 0 25px 0;
}

.btn-card {
    display: inline-block;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--primary-blue);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-card:hover {
    background-color: var(--primary-blue);
    color: #fff;
    box-shadow: 0 0 10px rgba(98, 181, 229, 0.4);
}

/* Trennlinie */
hr.divider {
    border: 0;
    height: 1px;
    background: #e5e5e5;
    margin: 50px 0;
}

/* === SERVICES GRID === */
.diag-services-section {
    text-align: center;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.service-item {
    text-align: left;
}

.image-wrapper {
    height: 160px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f0f0f0;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover .image-wrapper img {
    transform: scale(1.05);
}

.service-item h5 {
    font-size: 0.9rem;
    color: #444;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    font-weight: 600;
}

.service-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.action-area .btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #666;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.action-area .btn-primary:hover {
    background-color: var(--primary-blue);
}

/* === RESPONSIVE ANPASSUNGEN (SUBPAGES) === */

/* Tablet */
@media (max-width: 1024px) {
    .diag-top-section {
        flex-direction: column; 
    }
    
    .diag-text-group {
        width: 100%;
    }

    .svdl-card-sidebar {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
    }
    
    .card-line { display: none; } /* Linie weg auf Tablet für Platz */
    .card-label { margin-bottom: 0; margin-right: 20px; }
    .card-name { margin-right: auto; }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 700px) {
    .diag-text-group {
        flex-direction: column;
        gap: 30px;
    }

    .svdl-card-sidebar {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .card-label { margin-bottom: 10px; }
    .card-name { margin-bottom: 20px; }
    .card-line { display: block; width: 100%; height: 1px; margin: 0 0 20px 0; }
    .btn-card { width: 100%; text-align: center; }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-banner h1 {
        font-size: 1.5rem;
    }
}
/* ============================================
   PAGE: DIAGNOSTIK DETAILS (Zick-Zack Layout)
   ============================================ */

/* Layout Zeile für Text + Box */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin: 40px 0;
}

/* Umkehrung für jede zweite Zeile (Box Links, Text Rechts) */
/* Wir nutzen row-reverse, damit im HTML der Text zuerst stehen kann (besser für Mobile) */
.detail-row.reverse {
    flex-direction: row-reverse;
}

/* Textbereich */
.detail-text {
    flex: 1;
}

.detail-text p {
    text-align: justify; /* Edler Look wie im Original */
    line-height: 1.8;
    color: #444;
}

/* Info Boxen Styles */
.detail-box {
    flex: 0 0 320px; /* Feste Breite für die Info-Boxen */
    padding: 30px;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 2px;
    position: relative;
    top: 10px; /* Leicht versetzt zum Text für Dynamik */
}

.detail-box h4 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.detail-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-box li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 300;
}

/* Eigene Bulletpoints */
.detail-box li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.7);
    font-weight: bold;
}

/* Farb-Varianten */
.box-blue {
    background-color: #8fbcdb; /* Helleres Blau basierend auf Screenshot */
    /* Alternativ das SVDL Primary Blue nutzen, falls gewünscht: var(--primary-blue) */
    background: linear-gradient(135deg, #8fbcdb 0%, #7aa8c9 100%);
}

.box-dark {
    background-color: #4a4a4a;
    background: linear-gradient(135deg, #4a4a4a 0%, #333333 100%);
}

/* Kleine Trennlinie zwischen den Sektionen */
.divider-short {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 60px auto;
    width: 50%; /* Nicht volle Breite, wirkt eleganter */
}

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

@media (max-width: 900px) {
    .detail-row, 
    .detail-row.reverse {
        flex-direction: column; /* Auf Handy immer untereinander */
        gap: 30px;
    }

    .detail-box {
        width: 100%; /* Volle Breite auf Handy */
        flex: none;
        top: 0;
    }

    .detail-text p {
        text-align: left; /* Blocksatz auf Handy ausschalten */
    }
    
    .divider-short {
        width: 80%;
    }
}
/* ============================================
   PAGE: TRAINING & LEADERSHIP
   ============================================ */

/* Hilfsklasse für vertikale Zentrierung in Sektionen */
.align-center {
    align-items: center;
}

/* === ORGANIGRAMM BEREICH === */
.organigram-container {
    flex: 1; /* Nimmt gleich viel Platz wie der Text links */
    display: flex;
    justify-content: center; /* Zentriert das Bild im rechten Bereich */
    padding-left: 40px; /* Abstand zum Text */
}

.organigram-container img {
    max-width: 100%; /* Passt sich der Box an */
    height: auto;
    max-height: 400px; /* Verhindert, dass es riesig wird */
    object-fit: contain; /* Verhältnis bleibt erhalten */
    
    /* Optional: Leichter Schatten für das Diagramm */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

/* === TRAINING GRID (3 Spalten statt 4) === */
.training-grid {
    display: grid;
    /* Hier 3 Spalten definieren */
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* Etwas mehr Abstand als bei den kleinen Icons */
    margin-bottom: 60px;
}

.training-item {
    text-align: left;
    background: #fff;
}

/* Spezielles Image-Wrapper Verhältnis für Trainingsbilder (etwas breiter) */
.training-item .image-wrapper {
    height: 200px; /* Etwas höher für bessere Sichtbarkeit */
    margin-bottom: 25px;
}

.training-item h5 {
    font-size: 1.1rem; /* Etwas größer */
    font-weight: 500;
    margin: 0 0 15px 0;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.training-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    text-align: justify; /* Wirkt sauberer bei längeren Texten */
}

/* === RESPONSIVE ANPASSUNGEN TRAINING === */

/* Tablet */
@media (max-width: 1024px) {
    .training-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten */
    }
    
    .organigram-container {
        padding-left: 20px;
    }
}

/* Mobile */
@media (max-width: 700px) {
    /* Organigramm unter den Text schieben */
    .organigram-container {
        padding-left: 0;
        margin-top: 30px;
        justify-content: flex-start; /* Links ausrichten oder center lassen */
    }

    .training-grid {
        grid-template-columns: 1fr; /* 1 Spalte */
        gap: 50px;
    }
    
    .training-item p {
        text-align: left; /* Auf Mobile besser lesbar */
    }
}
/* ============================================
   ERGÄNZUNG: LISTEN IN GRID-CARDS
   (für Organisationsentwicklung)
   ============================================ */

.service-list {
    padding-left: 15px;
    margin: 0;
    list-style: none; /* Standard Bullets weg */
}

.service-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    text-align: left; /* Listen immer linksbündig */
}

/* Eigener, feiner Bulletpoint */
.service-list li::before {
    content: "▪"; /* Kleines Quadrat oder "•" */
    position: absolute;
    left: 0;
    color: var(--primary-blue); /* Blaue Bullets */
    font-size: 1.2em;
    line-height: 1.2;
}
/* ============================================
   PAGE: TEAM (SPLASH PAGE)
   ============================================ */

/* Der große, bildschirmfüllende Banner */
.hero-splash {
    width: 100%;
    /* Nimmt ca 75% der Bildschirmhöhe ein, damit Header+Footer+Bild genau 100% ergeben könnten */
    min-height: 75vh;
    padding-top: 80px; /* Platz für transparenten Header */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #2c3e50; /* Dunkles Fallback-Blau */
}

/* Dunklerer Overlay für bessere Lesbarkeit des weißen Textes */
.splash-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* 40% Abdunklung */
    transition: background 0.5s ease;
}

/* Hover-Effekt: Bild wird etwas heller wenn man drüber fährt */
.hero-splash:hover .splash-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.splash-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.splash-content h1 {
    font-size: 4rem; /* Sehr groß und plakativ */
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Der One-Pager Button */
.onepager-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.6); /* Transparenter schwarzer Kasten */
    padding: 15px 30px;
    border-radius: 50px; /* Pillenform */
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* Milchglas-Effekt (modern!) */
}

.onepager-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: scale(1.02);
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: #666;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.3s;
}

/* Wenn man die ganze Fläche hovert, wird der Kreis auch blau */
.onepager-btn:hover .icon-circle {
    background: #fff;
    color: var(--primary-blue);
}

.btn-text {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === RESPONSIVE ANPASSUNGEN TEAM === */

@media (max-width: 700px) {
    .splash-content h1 {
        font-size: 2.5rem; /* Kleiner auf Handy */
    }

    .onepager-btn {
        flex-direction: column; /* Icon über Text auf Handy */
        padding: 20px;
        border-radius: 10px;
        text-align: center;
    }

    .btn-text {
        text-align: center;
    }
}
/* ============================================
   PAGE: MEDIA & PUBLICATIONS
   ============================================ */

/* === SOCIAL MEDIA SECTION === */
.social-section {
    text-align: center;
    margin-bottom: 50px;
}

.social-section h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 25px;
    color: #333;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-link img {
    width: 60px; /* Größe der Icons */
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%); /* Startet Schwarz-Weiß (edel) */
    opacity: 0.8;
}

.social-link:hover img {
    transform: scale(1.1);
    filter: grayscale(0%); /* Farbe beim Hover */
    opacity: 1;
}

/* === BOOKS GRID === */
.books-grid {
    display: grid;
    /* 3 Spalten, die sich automatisch anpassen */
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px; /* Vertikaler Abstand 60px, Horizontal 40px */
    margin-bottom: 60px;
}

.book-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Alles zentrieren */
    text-align: center;
}

.book-cover-wrapper {
    width: 100%;
    max-width: 240px; /* Maximale Breite eines Buches */
    margin-bottom: 20px;
    /* Schatten hinter dem Buch für 3D Effekt */
    box-shadow: 
        5px 5px 15px rgba(0,0,0,0.15),
        2px 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.book-item:hover .book-cover-wrapper {
    transform: translateY(-5px); /* Leichtes Schweben beim Hover */
    box-shadow: 
        8px 8px 20px rgba(0,0,0,0.2),
        3px 3px 8px rgba(0,0,0,0.15);
}

.book-cover-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.book-title {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin: 0 0 15px 0;
    max-width: 240px;
    line-height: 1.4;
    min-height: 2.8em; /* Platzhalter für 2 Zeilen Text, damit Buttons auf gleicher Höhe bleiben */
}

/* === AMAZON BUTTON === */
.amazon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #3b4d61; /* Ein dunkles Graublau, ähnlich Screenshot */
    color: #fff;
    text-decoration: none;
    padding: 8px 20px;
    width: 100%;
    max-width: 240px; /* Sollte so breit sein wie das Buch */
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 2px;
    transition: background 0.3s ease;
    text-transform: lowercase; /* "kaufen bei amazon" sieht oft lowercase aus in Buttons */
    font-family: sans-serif; /* Neutraler Font für den Button */
}

.amazon-btn:hover {
    background-color: #2c3e50;
}

/* Kleines 'a' Icon im Button (simuliert Amazon Logo Stil) */
.amazon-icon {
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 8px;
    padding-bottom: 2px;
}

/* === RESPONSIVE ANPASSUNGEN MEDIA === */

/* Tablet */
@media (max-width: 900px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten */
    }
}

/* Mobile */
@media (max-width: 600px) {
    .books-grid {
        grid-template-columns: 1fr; /* 1 Spalte */
        gap: 50px;
    }

    .book-title {
        min-height: auto; /* Auf Handy ist gleiche Höhe egal */
    }
}
/* ============================================
   PAGE: ABOUT SVDL / TEAM
   ============================================ */

/* === ABOUT HERO BANNER (Weiß, ohne Overlay) === */
.hero-banner-about {
    width: 100%;
    padding-top: 80px; /* Platz für fixed Header */
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.hero-banner-about img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
}

/* === PAGE TITLE SECTION (Das Team) === */
.page-title-section {
    text-align: center;
    padding: 50px 20px 40px;
    background: linear-gradient(to bottom, #f9f9f9 0%, #fff 100%);
}

.page-title-section h1 {
    font-size: 2.2rem;
    font-weight: 300;
    color: #333;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
}

.title-line {
    width: 80px;
    height: 3px;
    background: var(--primary-blue);
    margin: 0 auto;
}

/* Responsive About Banner */
@media (max-width: 900px) {
    /* Banner-Bild auf Mobile ausblenden */
    .hero-banner-about {
        padding-top: 70px;
        background: linear-gradient(135deg, #4a4a4a 0%, #333 100%);
        min-height: 180px;
    }

    .hero-banner-about img {
        display: none;
    }

    /* Titel-Section wird Teil des Banners */
    .page-title-section {
        background: linear-gradient(135deg, #4a4a4a 0%, #333 100%);
        padding: 0 20px 40px;
        margin-top: -1px; /* Nahtloser Übergang */
    }

    .page-title-section h1 {
        font-size: 1.6rem;
        letter-spacing: 2px;
        color: #fff;
    }

    .title-line {
        background: var(--primary-blue);
        width: 60px;
    }
}

/* Intro Bereich zentriert */
.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.team-intro h2 {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.sub-caption-center {
    display: block;
    font-size: 0.9rem;
    color: #999;
    font-weight: 400;
}

/* === TEAM ROW LAYOUT (Zig-Zag) === */
.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    margin: 50px 0;
}

/* Umkehrung für jede zweite Person */
.team-row.reverse {
    flex-direction: row-reverse;
}

.team-text {
    flex: 1;
}

/* Titel / Rolle unter dem Namen */
.role-title {
    display: block;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    margin-top: -5px;
    font-weight: 500;
}

/* Textformatierung */
.team-text p {
    text-align: justify;
    line-height: 1.8;
    color: #444;
    font-size: 0.95rem;
}

/* === TEAM IMAGE (Schwarz-Weiß Effekt) === */
.team-image-wrapper {
    flex: 0 0 300px; /* Feste Breite für Bilder */
    height: 300px;   /* Quadratisch oder Rechteckig */
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 2px;
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild füllt Box aus */
    
    /* Der SVDL Schwarz-Weiß Look */
    filter: grayscale(100%) contrast(1.1); 
    transition: filter 0.5s ease, transform 0.5s ease;
}

/* Hover Effekt: Bild wird farbig und zoomt leicht */
.team-image-wrapper:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.03);
}

/* === RESPONSIVE ANPASSUNGEN TEAM === */

@media (max-width: 900px) {
    .team-intro h2 {
        font-size: 1.2rem;
    }

    .team-row, 
    .team-row.reverse {
        flex-direction: column-reverse; /* Bild zuerst (oben), dann Text */
        gap: 30px;
        align-items: center;
        text-align: center;
    }

    /* Auf Handy Bild über Text */
    .team-image-wrapper {
        width: 100%;
        max-width: 350px; /* Nicht zu riesig */
        height: auto;
        aspect-ratio: 1 / 1; /* Quadratisch halten */
        margin-bottom: 20px;
    }

    .team-text {
        text-align: left;
    }

    .team-text p {
        text-align: left; /* Kein Blocksatz auf Handy */
    }
    
    /* Header (Pfeil + Name) auf Handy auch linksbündig */
    .diag-header {
        justify-content: flex-start;
    }
}

/* ============================================
   MOBILE DIAGNOSTIK KACHELN (max-width: 900px)
   ============================================ */

/* Mobile Content standardmäßig versteckt (Desktop) */
.service-item .mobile-content,
.training-item .mobile-content {
    display: none;
}

@media (max-width: 900px) {
    /* === SCHRITT 2: Top-Section Layout === */
    .diag-top-section {
        flex-direction: column;
        text-align: left;
    }

    .diag-text-group {
        text-align: left;
    }

    .diag-text-col p {
        text-align: left;
    }

    /* Kontaktbox rutscht automatisch unter den Text durch column-Layout */
    .svdl-card-sidebar {
        order: 2;
    }

    /* === SCHRITT 3: Service-Kacheln Mobile Styles === */

    /* Desktop-Text verstecken */
    .service-item .desktop-text {
        display: none;
    }

    /* Mobile-Content anzeigen */
    .service-item .mobile-content {
        display: block;
    }

    /* Grid auf 1 Spalte */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Service Item als Kachel */
    .service-item {
        margin-bottom: 20px;
    }

    /* Bild volle Breite */
    .service-item .image-wrapper {
        width: 100%;
        height: 200px;
        margin-bottom: 0;
    }

    /* Überschrift farbig */
    .service-item h5 {
        background: #8faab9;
        color: #fff;
        padding: 15px;
        margin: 0;
        font-size: 1rem;
    }

    /* Bulletpoint-Liste farbig */
    .mobile-content ul {
        background: #9ebcd0;
        color: #fff;
        padding: 20px;
        padding-left: 40px;
        margin: 0;
        list-style-position: inside;
        list-style-type: disc;
    }

    .mobile-content ul li {
        margin-bottom: 8px;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Mehr erfahren Button */
    .btn-more {
        display: block;
        background: #666;
        color: #fff;
        text-align: center;
        padding: 15px;
        text-transform: uppercase;
        text-decoration: none;
        font-size: 0.85rem;
        letter-spacing: 1px;
        font-weight: 500;
    }

    .btn-more:hover {
        background: #555;
    }

    /* Action Area auf Mobile verstecken (Button ist jetzt in jeder Kachel) */
    .diag-services-section .action-area {
        display: none;
    }

    /* === TRAINING PAGE MOBILE STYLES === */

    /* Organigramm unter den Text */
    .organigram-container {
        width: 100%;
        order: 2;
        margin-top: 30px;
        padding-left: 0;
    }

    .organigram-container img {
        width: 100%;
        height: auto;
    }

    /* Training Grid auf 1 Spalte */
    .training-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    /* Training Items */
    .training-item {
        text-align: left;
        margin-bottom: 40px;
    }

    .training-item .image-wrapper {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .training-item .image-wrapper img {
        height: auto;
    }

    .training-item h5 {
        font-size: 1.3rem;
        color: #333;
        margin-bottom: 15px;
    }

    /* Content Switch für Training Items */
    .training-item .desktop-text {
        display: none;
    }

    .training-item .mobile-content {
        display: block;
    }

    .training-item .mobile-content p {
        text-align: left;
        font-size: 0.95rem;
        line-height: 1.7;
        color: #555;
    }

    /* Service-Liste Mobile Anpassungen */
    .service-list {
        padding-left: 5px;
        margin-top: 15px;
    }

    .service-list li {
        padding-left: 20px;
        margin-bottom: 14px;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .service-list li::before {
        content: "▪";
        color: var(--primary-blue);
        font-size: 0.9em;
        top: 0;
        line-height: 1.6;
    }

    .training-item h5 {
        margin-bottom: 10px;
    }

    /* Hero-Banner Text auf Mobile/Tablet anpassen */
    .hero-banner h1 {
        font-size: 1.3rem;
        padding: 0 15px;
    }
}
/* --- REFERENZ MARQUEE (FIXED) --- */
        .marquee-container {
            width: 100vw;
            max-width: 100%;
            margin-top: 80px;
            margin-bottom: -40px;
            overflow: hidden;
            position: relative;
            background: linear-gradient(to right, #fff, transparent 10%, transparent 90%, #fff);
            /* Stellt sicher, dass der Container über dem Footer liegt, falls nötig */
            z-index: 10; 
        }

        .marquee-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #ccc;
            margin-bottom: 20px;
            font-weight: 500;
        }

        .marquee-track {
            display: flex;
            /* WICHTIG: max-content berechnet die exakte Pixelbreite aller Bilder */
            width: max-content; 
            animation: scroll 120s linear infinite;
        }

        /* Hover-Pause optional - falls es stört, einfach löschen */
        .marquee-container:hover .marquee-track {
            animation-play-state: paused;
        }

        .marquee-content {
            display: flex;
            align-items: center;
            /* WICHTIG: Keine feste Breite (50%), sondern natürliche Breite */
            flex-shrink: 0; 
        }

        .marquee-content img {
            height: 35px;
            width: auto;
            /* Margins definieren den Abstand: 40px links + 40px rechts = 80px Lücke */
            margin: 0 40px; 
            
            /* Edel-Effekt */
            filter: grayscale(100%); 
            opacity: 0.3; 
            transition: all 0.4s ease;
            cursor: pointer;
            /* Verhindert, dass Bilder verzerrt werden */
            flex-shrink: 0; 
        }

        .marquee-content img:hover {
            opacity: 1;
            filter: grayscale(0%);
            transform: scale(1.05);
        }

        @keyframes scroll {
            0% { transform: translateX(0); }
            /* Bewegt den Track exakt um die Breite eines .marquee-content Sets (-50% des Gesamttracks) */
            100% { transform: translateX(-50%); } 
        }

        /* Mobile Anpassung */
        @media (max-width: 600px) {
            .marquee-content img {
                height: 25px;
                margin: 0 20px;
            }
            .marquee-track {
                animation-duration: 25s;
            }
        }