/* =======================================
 * FARBDEFINITIONEN & GRUNDSTYL
 * ======================================= */
 :root {
    --violett: #5927A3; /* Hauptfarbe */
    --beige: #E4C88C; /* Akzentfarbe */
    --schwarz-hell: #222222;
    --weiss-hell: #f5f5f5;
    --font-family: 'Inter', sans-serif;
}

/* Global Reset und Typografie */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--weiss-hell);
    color: var(--schwarz-hell);
    overflow-x: hidden; 
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

/* =======================================
 * HEADER & NAVIGATION (Alternative 1: VIOLETTER HINTERGRUND, Logo-Block)
 * ======================================= */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--violett); 
    color: var(--weiss-hell); 
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
}

/* Styling für das eingebundene Logobild - Klarer Block */
.header-logo {
    width: 35px;
    height: 35px;
    margin-right: 10px;
    background-color: white; 
    padding: 5px; 
    border-radius: 4px; 
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); 
}

.main-header h1 {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--weiss-hell); 
}

/* NEU: Hamburger Icon Button (Wird auf Desktop ausgeblendet) */
.menu-toggle {
    background: none;
    border: none;
    color: var(--weiss-hell);
    font-size: 1.5em;
    cursor: pointer;
    display: none; /* Standardmäßig auf Desktop ausgeblendet, nur in @media sichtbar */
    padding: 10px;
}

/* --- DESKTOP NAVIGATION: NEBENEINANDER (Standard) --- */
.main-nav {
    display: block; 
    flex-grow: 1; 
    text-align: right;
    min-width: 0;
}

.main-nav ul {
    list-style: none;
    display: flex; /* Links NEBENEINANDER auf dem Desktop */
    margin: 0;
    padding: 0;
    justify-content: flex-end; 
    flex-wrap: nowrap; /* Verhindert, dass Links auf dem Desktop umbrechen */
}

.main-nav li {
    margin-left: 15px; 
    flex-shrink: 1; 
    white-space: nowrap; 
}

.main-nav a {
    text-decoration: none;
    color: var(--weiss-hell); 
    padding: 5px 10px;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 4px;
}

.main-nav a:hover {
    color: var(--violett); 
    background-color: var(--beige);
}

/* =======================================
 * HERO-SEKTION (Kontrast optimiert - Einheitlich Violett)
 * ======================================= */
.hero-section {
    position: relative;
    height: 70vh; 
    display: flex;
    align-items: center;
    padding: 0 5%; 
    background-color: var(--violett); 
    color: var(--weiss-hell);
}

.hero-content {
    position: relative;
    z-index: 10; 
    max-width: 600px;
    color: var(--weiss-hell); 
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 900;
    color: var(--weiss-hell);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--beige);
    color: var(--violett);
    text-decoration: none;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #d1b47c; 
    transform: translateY(-2px);
}

/* =======================================
 * PROJEKTE SEKTION
 * ======================================= */
.projekt-sektion {
    padding: 80px 5%;
    background-color: var(--weiss-hell);
    text-align: center;
}

.projekt-sektion h2 {
    color: var(--violett);
    font-size: 2.5em;
    margin-bottom: 50px;
}

.projekt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Stil der einzelnen klickbaren Projekt-Karte */
.projekt-karte {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background-color: white; 
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none; 
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 5px solid var(--beige); 
}

/* Hover-Effekt: Künstlerisch & Dynamisch */
.projekt-karte:hover {
    transform: translateY(-8px); 
    background-color: var(--violett); 
    box-shadow: 0 12px 25px rgba(89, 39, 163, 0.4); 
    border-bottom-color: var(--weiss-hell);
}

.projekt-karte i {
    font-size: 3.5em;
    color: var(--violett); 
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

/* Text- und Icon-Farben auf Hover invertieren */
.projekt-karte:hover i,
.projekt-karte:hover .button-label {
    color: var(--beige); 
}

.projekt-karte h3 {
    color: var(--violett);
    font-size: 1.4em;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.projekt-karte:hover h3,
.projekt-karte:hover p {
    color: var(--weiss-hell); 
}

.projekt-karte p {
    color: var(--schwarz-hell);
    flex-grow: 1; 
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.button-label {
    display: inline-block;
    font-weight: 700;
    color: var(--beige); 
    padding: 8px 0;
}

/* =======================================
 * FOOTER
 * ======================================= */
.main-footer {
    background-color: var(--violett);
    color: var(--weiss-hell);
    padding: 30px 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links a {
    color: var(--beige);
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--weiss-hell);
}

.legal-links a {
    color: var(--weiss-hell);
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9em;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--beige);
}

.main-footer p {
    margin: 10px 0;
}

/* =======================================
 * RESPONSIVENESS (Mobile-Logik)
 * ======================================= */
@media (max-width: 768px) {
    
    /* Hamburger Icon anzeigen */
    .menu-toggle {
        display: block; 
        flex-grow: 1; 
        text-align: right;
        margin-right: -10px; 
    }
    
    /* Desktop Navigation auf Mobile ausblenden (wird später über JS eingeblendet) */
    .main-nav {
        /* NEU: Menü ist rechts ausgerichtet und nur so breit wie nötig */
        position: absolute; 
        top: 100%; 
        right: 5%; 
        left: auto; 
        width: auto; 
        min-width: 180px; 
        height: 0; /* Menü verstecken */
        overflow: hidden;
        background-color: var(--violett);
        transition: height 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
        border-radius: 0 0 8px 8px; 
    }

    /* Menü anzeigen, wenn die JS-Klasse 'open' gesetzt wird */
    .main-nav.open {
        height: 200px; 
        padding-bottom: 5px;
    }

    /* Links vertikal und rechtsbündig anordnen */
    .main-nav ul {
        flex-direction: column; /* UNTEREINANDER */
        text-align: right; 
        padding: 10px 0;
        align-items: flex-end; /* Ordnet die Links an der rechten Kante des Dropdowns an */
        flex-wrap: wrap;
    }

    .main-nav li {
        margin: 10px 10px; 
        margin-left: 0; 
    }
    
    /* Sicherstellen, dass die Hero-Sektion auf Mobile gut aussieht */
    .hero-content h1 {
        font-size: 2.5em;
    }
}