/* ==========================================
   FARBVARIABLEN & GLOBALE EINSTELLUNGEN
   ========================================== */
* {
    box-sizing: border-box; /* Wichtig für korrekte Abstände */
}

:root {
    --firmenfarbe-haupt: #FFD700;
    --akzentfarbe: #1a1a1a;
    --hintergrundfarbe: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: var(--akzentfarbe);
    line-height: 1.6;
    overflow-x: hidden; /* Verhindert seitliches Wackeln auf Mobilgeräten */
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
header {
    background-color: var(--firmenfarbe-haupt);
    color: var(--akzentfarbe);
    padding: 40px 0; /* Auf 30px ändern, falls es dir zu hoch ist */
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-header, header img {
    max-height: 125px;
    width: auto;
    display: block;
    margin: 0 auto 15px;
    max-width: 90%;
}

header h1 {
    margin: 0;
    font-size: clamp(1.5rem, 8vw, 3rem); /* Passt sich automatisch der Bildschirmgröße an */
    letter-spacing: 2px;
    font-weight: 700;
}

header p {
    font-size: 1.2em;
    font-weight: 500;
}

nav {
    background-color: var(--akzentfarbe);
    padding: 15px 0;
    text-align: center;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 25px;
    margin: 0 10px;
    font-weight: 600;
    font-size: 1.05em;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 4px;
    display: inline-block;
}

nav a:hover {
    background-color: var(--firmenfarbe-haupt);
    color: var(--akzentfarbe);
}


/* Markiert die aktuell ausgewählte Seite dauerhaft gelb */
nav a.active {
    background-color: var(--firmenfarbe-haupt);
    color: var(--akzentfarbe);
}





/* ==========================================
   ALLGEMEINES LAYOUT
   ========================================== */
.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
}

h2 {
    color: var(--firmenfarbe-haupt);
    border-bottom: 2px solid var(--firmenfarbe-haupt);
    padding-bottom: 5px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

h3 {
    color: var(--akzentfarbe);
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 20px;
}

/* ==========================================
   STARTSEITE (INDEX) SPEZIFISCH
   ========================================== */
.hero {
    text-align: center;
    padding: 60px 40px;
    background: var(--hintergrundfarbe);
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--firmenfarbe-haupt);
}

.hero h2 {
    font-size: 2.5em;
    color: var(--akzentfarbe);
    border-bottom: none;
}

.hero-subtext {
    font-weight: bold;
    margin-top: 20px;
    color: var(--firmenfarbe-haupt);
}

.features {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-box {
    background: var(--hintergrundfarbe);
    padding: 30px;
    width: 33%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-top: 5px solid var(--firmenfarbe-haupt);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.image-section {
    text-align: center;
    padding: 30px;
    background: var(--hintergrundfarbe);
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 5px solid var(--firmenfarbe-haupt);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ==========================================
   PRODUKTSEITE SPEZIFISCH
   ========================================== */
.main-product-section {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.product-card-main {
    background: var(--hintergrundfarbe);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    width: 70%;
    max-width: 600px;
    text-align: center;
    border-top: 8px solid var(--firmenfarbe-haupt);
}

.product-card-main ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.product-card-main li {
    padding: 8px 0;
    font-size: 1.1em;
    border-bottom: 1px dotted #ccc;
}

.product-card-main li:before {
    content: "✅"; 
    margin-right: 10px;
    font-size: 1.1em;
}

.karotten-section {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.karotten-card {
    background: var(--hintergrundfarbe);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 50%;
    border-left: 5px solid var(--firmenfarbe-haupt);
}

.secondary-products {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-left: 5px solid var(--firmenfarbe-haupt);
}

.secondary-item {
    display: flex;
    gap: 30px;
    padding: 20px;
}

.secondary-icon {
    font-size: 3em;
    color: var(--firmenfarbe-haupt);
    flex-shrink: 0;
    line-height: 1;
}

/* ==========================================
   NEWS BEREICH
   ========================================== */
.news-item {
    background: var(--hintergrundfarbe);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 5px solid var(--firmenfarbe-haupt);
}

.news-item h3 {
    margin-top: 0;
    color: var(--akzentfarbe);
    font-size: 1.4em;
}

.news-date {
    font-style: italic;
    color: #666;
    display: block;
    margin-bottom: 10px;
    font-size: 0.9em;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background-color: var(--akzentfarbe);
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9em;
}

footer a {
    color: var(--firmenfarbe-haupt);
}

/* ==========================================
   CUSTOM CURSOR (Das Ei)
   ========================================== */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 10000;
    display: none;
    user-select: none;
    transition: transform 0.05s linear;
}

#egg-content {
    font-size: 32px;
    display: block;
}

.egg-fried {
    width: 35px;
    height: 30px;
    background: white;
    border-radius: 50% 60% 50% 40%;
    position: relative;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.egg-yolk {
    width: 15px;
    height: 15px;
    background: var(--firmenfarbe-haupt);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ==========================================
   RESPONSIVE DESIGN (MOBIL) - Alle Anpassungen hier unten!
   ========================================== */
@media (max-width: 768px) {
    nav {
        display: flex;
        flex-direction: column;
        padding: 5px 0;
    }

    nav a {
        margin: 5px 0;
        display: block;
    }

    .container {
        width: 92%;
    }

    /* Startseite Mobil */
    .features {
        flex-direction: column;
        gap: 15px;
    }

    .feature-box {
        width: 100%;
        box-sizing: border-box;
    }

    .hero h2 {
        font-size: 1.8em;
    }

    /* Produkte Mobil */
    .main-product-section, .karotten-section, .secondary-item {
        flex-direction: column;
        align-items: center;
    }

    .product-card-main, .karotten-card {
        width: 100% !important;
    }
}