/* Global Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header .logo img {
    height: 100px;
    width: auto;
}

#burger-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    color: #372F7C;
    background: none;
    border: none;
    position: absolute;
    top: 15px;
    right: 15px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    font-weight: bold;
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

nav a.active {
    background-color: #372F7C;
    color: white;
}

nav a:hover {
    background-color: #ddd;
}

nav a img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    #burger-icon {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 0;
        background: white;
        width: 200px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        padding: 10px;
        border-radius: 5px;
        z-index: 999;
    }

    nav.show {
        display: flex;
    }

    nav a {
        padding: 10px;
        text-align: center;
    }
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f8f9fa;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.angebote {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px auto;
}

.angebot-box {
    background-color: #372F7C;
    color: white;
    width: 220px;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Styling for Top Ausschreibungen */
.top-ausschreibungen .angebot-box {
    background-color: #AA6C39;
    color: black;
}

/* Styling for Top Ausschreibungen heading */
.top-ausschreibungen h1 {
    font-size: 20px;
    color: #000000;
    margin-bottom: 15px;
}

.angebot-box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.angebot-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin: 0 auto;
}

.angebot-box h2 {
    font-size: 16px;
    margin: 10px 0 5px;
    font-weight: bold;
    text-transform: uppercase;
}

.angebot-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
    margin-top: 10px;
}

.angebot-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #e0e0e0;
}

.icon {
    width: 20px;
    height: auto;
}

footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
    padding: 10px;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
}

section {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

section h1 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #372F7C;
}

.ausschreibungen-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.ausschreibungen-container div {
    background-color: #372F7C;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.ausschreibungen-container div:hover {
    background-color: #333;
    transform: scale(1.05);
}

/* Links allgemein */
a {
    text-decoration: none;
    /* Unterstrich entfernen */
    color: inherit;
    /* Übernimmt die Schriftfarbe vom Elterncontainer */
    font-weight: bold;
    /* Optional: Schrift fett machen */
}

/* Links in Angebot-Boxen */
.angebot-box a {
    display: block;
    /* Der Link deckt die gesamte Box ab */
    color: inherit;
    /* Schriftfarbe bleibt gleich */
    text-align: center;
}

@media (max-width: 768px) {
    #burger-icon {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 0;
        background: white;
        width: 200px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        padding: 10px;
        border-radius: 5px;
        z-index: 999;
    }

    nav.show {
        display: flex;
    }

    nav a {
        padding: 10px;
        text-align: center;
    }

    .angebote {
        justify-content: center;
    }

    .angebot-box {
        width: 90%;
    }
}

/* 🔹 Suchformular linksbündig zum Titel */
.suchformular {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Abstand zwischen Eingabefeld & Button */
    margin-top: 10px;
}

/* 🔹 Eingabefeld */
.suchformular input {
    width: 200px;
    height: 40px;
    padding: 5px;
    border: 2px solid #372F7C;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

/* 🔹 Such-Button */
.suchformular button {
    height: 42px;
    padding: 8px 18px;
    background-color: #372F7C;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

/* 🔹 Button Hover Effekt */
.suchformular button:hover {
    background-color: #5c5c5c;
}

/* 🔹 Die gesamte Sektion links ausrichten */
.manuelle-ausschreibungen {
    text-align: left;
}

/* Container für den Header von "Top Ausschreibungen" */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 10px;
}

/* Plus-Symbol für Top-Ausschreibungen */
.top-plus-icon {
    position: absolute;
    right: 15px;
    top: 10px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.top-plus-icon img {
    width: 30px;
    height: 30px;
}

.top-plus-icon:hover {
    transform: scale(1.1);
}

/* Angebotsboxen in "Ausschreibungen in deiner Nähe" und "Ausschreibungen in 8200" */
.local-ausschreibungen .angebot-box,
.manuelle-ausschreibungen .angebot-box {
    background-color: #372F7C !important;
    /* Hintergrund wieder auf Dunkelblau setzen */
    color: white !important;
    /* Textfarbe weiß für Lesbarkeit */
}

/* Top-Ausschreibungen bleiben Braun */
.top-ausschreibungen .angebot-box {
    background-color: #AA6C39;
    color: black;
}

/* Mehr Abstand zwischen Suchleiste und den Angebotsboxen */
.manuelle-ausschreibungen .suchformular {
    margin-bottom: 15px;
    /* Fügt Abstand nach unten hinzu */
}

.manuelle-ausschreibungen .scroll-container {
    margin-top: 10px;
    /* Sicherstellen, dass nach der Suchleiste Platz ist */
}

.layout-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 20px;
}

/* Werbung links und rechts */
.ad-left,
.ad-right {
    width: 160px;
    height: 600px;
    position: sticky;
    top: 100px;
    display: block;
}

/* Hauptbereich in der Mitte */
.main-content {
    max-width: 1200px;
    flex-grow: 1;
}

/* Auf mobilen Geräten ausblenden */
@media (max-width: 1024px) {

    .ad-left,
    .ad-right {
        display: none;
    }

    .layout-wrapper {
        flex-direction: column;
        padding: 0 10px;
    }

    .main-content {
        width: 100%;
    }
}


header .logo img {
    height: 100px;
    width: auto;
}

header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-bottom: 2px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo img {
    height: 100px;
    width: auto;
}