/* =========================================
   GRUND-LAYOUT & RESET
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f5f7;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Sorgt dafür, dass der Footer immer ganz unten klebt */
}

main {
    flex-grow: 1; /* Der Hauptbereich füllt den leeren Platz aus */
}

/* =========================================
   KOPFZEILE (HEADER)
========================================= */
header {
    background-color: #5a0014;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: 900;
    font-style: italic;
    text-decoration: none;
}

.top-search input {
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    width: 300px;
    outline: none;
}

/* =========================================
   HERO SEKTION (STARTSEITE)
========================================= */
.hero {
    background: linear-gradient(135deg, #8b0000 0%, #d32f2f 100%);
    color: white;
    text-align: center;
    padding: 60px 20px 120px 20px;
    position: relative;
}

.hero h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    font-weight: bold;
}

/* =========================================
   ZENTRALE SUCHLEISTE
========================================= */
.action-bar {
    background-color: white;
    border-radius: 50px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    border: 4px solid #ffcc00;
}

.action-bar select {
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    flex-grow: 1;
    background: transparent;
    outline: none;
    color: #333;
    cursor: pointer;
}

.action-bar button {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.action-bar button:hover {
    background-color: #004c99;
}

/* =========================================
   KACHEL-GRID (VERGLEICHE)
========================================= */
.kachel-bereich {
    padding: 80px 5% 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.kachel-grid {
    display: grid;
    /* Wir erzwingen hier strikt 3 Spalten auf dem Desktop */
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
}

.kachel {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.kachel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.kachel-text {
    padding: 20px;
    font-size: 16px;
    font-weight: bold;
    flex-grow: 1;
}

.kachel-bild {
    width: 100%;
    height: 160px;
}

.kachel-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
    background-color: #222;
    color: #f1f1f1;
    padding: 60px 5% 20px 5%;
    margin-top: 60px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ffcc00;
}

.footer-column p {
    line-height: 1.6;
    color: #ccc;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background-color: #ffcc00;
    color: #222;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
}
/* =========================================
   HERO SLIDER SEKTION (STARTSEITE)
========================================= */
.hero-slider-wrapper {
    position: relative;
    overflow: hidden; /* Schneidet alles ab, was über den Rand hinausragt */
    background: linear-gradient(135deg, #8b0000 0%, #d32f2f 100%);
    color: white;
}

.hero-slider-track {
    display: flex; /* Legt alle Slides nebeneinander */
    transition: transform 0.5s ease-in-out; /* Weiche Rutsch-Animation */
    width: 100%;
}

.hero-slide {
    flex: 0 0 100%; /* Jeder Slide nimmt exakt 100% der Bildschirmbreite ein */
    box-sizing: border-box;
    text-align: center;
    padding: 60px 20px 120px 20px;
    position: relative;
}

.hero-slide h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-slide p {
    font-size: 20px;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Container für Affiliate-Formulare im Slider */
.hero-form-container {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    max-width: 700px;
    margin: 0 auto; /* Zentriert die Box */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: #333;
}

/* Die manuellen Pfeile < und > */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2); /* Leicht transparentes Weiß */
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, transform 0.3s;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1); /* Wird beim Hovern etwas größer */
}

.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }


/* =========================================
   MOBILE ANPASSUNGEN (Handy)
========================================= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    .top-search input {
        width: 100%;
    }
    .hero h1 {
        font-size: 32px;
    }
    .action-bar {
        flex-direction: column;
        border-radius: 20px;
        bottom: -60px;
        border-width: 2px;
    }
    .action-bar button {
        width: 100%;
        border-radius: 15px;
        margin-top: 5px;
    }
    .hero {
        padding-bottom: 100px;
    }
.kachel-grid {
        /* Auf dem Handy zwingen wir es auf 1 Spalte */
        grid-template-columns: 1fr; 
    }
/* Auf Handys Pfeile etwas kleiner machen */

    .slider-nav { width: 40px; height: 40px; font-size: 18px; }
    .slider-nav.prev { left: 10px; }
    .slider-nav.next { right: 10px; }
    .hero-slide h1 { font-size: 32px; }

}