/* =========================================
   1. GRUNDLAGEN & VARIABLEN (LIGHT MODE)
   ========================================= */
:root {
    --bg-color: #fcfcfc;
    --text-color: #111111;
    --text-muted: #555555; /* <--- Hier geändert für besseren Kontrast */
    --primary: #ddac4c; 
    --secondary: #2563eb;
    --gradient: linear-gradient(90deg, var(--primary), var(--secondary));
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

/* =========================================
   2. TYPOGRAFIE
   ========================================= */
h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(252, 252, 252, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo a, .logo a:visited, a:hover, a:active {
    text-decoration: none;
}

.logo a {
    color: inherit;
    text-transform: none;
    transition: var(--transition);
    display: flex;
}

.logo-img {
    height: 35px;
    width: auto;
    display: block;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-color);
}

.btn {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn:hover {
    background: var(--gradient);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(221, 172, 76, 0.3);
}

/* =========================================
   4. HERO SLIDER
   ========================================= */
.hero {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    background-size: 200% 200%;
    animation: gradientMove 8s ease-in-out infinite alternate;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide:nth-child(1) { background-image: linear-gradient(120deg, #fcfcfc, rgba(221, 172, 76, 0.08), #fcfcfc); }
.slide:nth-child(2) { background-image: linear-gradient(120deg, #fcfcfc, rgba(37, 99, 235, 0.08), #fcfcfc); }
.slide:nth-child(3) { background-image: linear-gradient(120deg, rgba(221, 172, 76, 0.05), #fcfcfc, rgba(37, 99, 235, 0.05)); }

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.slide p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-muted);
}

.slider-controls {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.15); 
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.slider-btn:hover {
    border-color: var(--primary);
    background: rgba(221, 172, 76, 0.08); 
    color: var(--primary);
    transform: scale(1.05);
}

/* =========================================
   5. SEKTIONS-LAYOUTS
   ========================================= */
.services, .about, .partners {
    padding: 100px 5%;
}

.services { background: #ffffff; }
.about { background: var(--bg-color); }
.partners { background: #f3f4f6; }

/* --- Dienstleistungen --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fcfcfc;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.service-card:hover {
    background: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--primary);
    background: rgba(221, 172, 76, 0.08); 
    padding: 10px;
    border-radius: 12px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-muted);
}

/* --- Über mich --- */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.about-image-wrapper {
    width: 100%;
    max-width: 250px; 
}

.about-profile-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px; 
}

.about-text {
    font-size: clamp(1.2rem, 3vw, 1.8rem); 
    line-height: 1.6;
    color: var(--text-muted);
}

.about-text span {
    color: var(--text-color);
    font-weight: 600;
}

/* --- Partner / Kunden --- */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.partner-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #eaeaea;
}

.partner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-name {
    padding: 20px 20px 5px; 
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-muted);
    text-align: center;
    transition: var(--transition);
}

.partner-work {
    padding: 0 20px 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    /* opacity: 0.8; <-- Diese Zeile einfach komplett löschen */
    transition: var(--transition);
}

.partner-card:hover {
    border-color: rgba(221, 172, 76, 0.3); 
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(221, 172, 76, 0.08); 
}

.partner-card:hover .partner-img img {
    transform: scale(1.05); 
}

.partner-card:hover .partner-name,
.partner-card:hover .partner-work {
    color: var(--text-color);
}

/* =========================================
   6. FOOTER & IMPRESSUM SEITE
   ========================================= */
.footer {
    padding: 80px 5% 40px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand h2 span {
    color: var(--secondary);
}

.contact-name {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.mail-link {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 900;
    position: relative;
    transition: var(--transition);
}

.mail-link:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

.impressum-page {
    padding: 150px 5% 100px;
    min-height: 80vh;
    background: var(--bg-color);
}

.impressum-content {
    max-width: 800px;
    color: var(--text-muted);
}

.impressum-content h3 {
    color: var(--text-color);
    margin: 30px 0 10px;
    font-size: 1.2rem;
}

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

/* =========================================
   7. COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111111;
    color: #ffffff;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    transform: translateY(100%); 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-btn {
    background: var(--primary);
    color: #111111; /* <--- Hier von #ffffff auf #111111 geändert */
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

.cookie-btn:hover {
    background: #c49640; 
    color: #111111; /* <--- Zur Sicherheit auch beim Hovern dunkel lassen */
    transform: scale(1.05);
}

/* --- CMS & Tools Sektion --- */
.tools {
    padding: 80px 5%;
    background: #ffffff;
    text-align: center;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 120px;
    transition: var(--transition);
}

.tool-item img {
    width: 165px; 
    height: auto;
    filter: grayscale(100%); 
    opacity: 0.6;
    transition: var(--transition);
}

.tool-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.tool-item:hover {
    transform: translateY(-5px);
}

.tool-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.tool-item:hover span {
    color: var(--primary);
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .tools-grid {
        gap: 20px;
    }
    .tool-item {
        width: 100px;
    }
}

/* =========================================
   8. MEDIA QUERIES
   ========================================= */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .about-container {
        flex-direction: row; 
        text-align: left;
        gap: 60px; 
    }
    
    .about-image-wrapper {
        flex: 1; 
        max-width: 300px;
    }
    
    .about-content {
        flex: 2; 
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .partner-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-btn {
        width: 100%;
    }
    .hero {
        height: 90vh;    
    }
}