﻿body {
    font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
    background: #42413C;
    margin: 0;
    padding: 0;
    color: #000;
}

.container {
    width: 960px;
    background: #ac9772;
    margin: 0 auto;
}

.content {
    padding: 10px 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #AC9772;
    padding: 20px;
}

.logo {
    float: left;
    height: 165px;
    width: 613px;
}

.quali {
    height: 165px;
    width: 250px;
}

.navigation {
    background-color: #FFFFFF;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333333;
}

.main-menu a:hover {
    color: #c55a22;
}

.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    display: none;
    background-color: #c55a22;
    min-width: 150px;
    z-index: 1000;
}

.submenu li {
    position: relative;
}

.submenu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #FFFFFF;
}

.submenu a:hover {
    background-color: #ffffff;
    color: #c55a22;
}

.main-menu li:hover .submenu {
    display: block;
}

.arrow {
    float: right;
    align-self: center;
}

.company-content {
    background-image: url('data/bfirma.gif');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-color: #FFFFFF;
    padding: 20px;
    min-height: 650px; /* Beibehalten oder anpassen der Mindesthöhe */
    padding-bottom: 20px; /* Optional: Zusätzlicher Innenabstand unten */
    display: flex; /* Für die vertikale Ausrichtung des Textes */
    flex-direction: column; /* Elemente untereinander anordnen */
    justify-content: flex-end; /* Text am unteren Ende ausrichten */
}

.company-text {
    padding: 20px; /* Reduziert auf einen normalen Wert */
    font-size: smaller;
    color: #4B4B4B;
    max-width: 850px;
    margin-bottom: -30px; /* Fügt Abstand zum unteren Rand des Containers hinzu */
}

.company-text .highlight {
    color: #C65C22;
}

.footer {
    text-align: center;
    background-color: #c65c22;
    padding: 10px;
}

.yps-bild {
    width: 880px;
    height: 100px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 100%;
    }

    .header {
        flex-direction: column;
        align-items: center;
    }

    .logo, .quali {
        width: 100%;
        height: auto;
    }

    .main-menu {
        flex-direction: column;
        align-items: center;
    }

    .company-content {
        height: auto; /* Entfernen Sie die feste Höhe für kleinere Bildschirme */
        min-height: auto; /* Entfernen Sie die Mindesthöhe für kleinere Bildschirme */
        display: block; /* Zurück zum Standard-Block-Layout */
    }

    .company-text {
        padding: 20px; /* Beibehalten des Paddings */
        margin-top: 0; /* Entfernen Sie den oberen Margin, da Flexbox nicht aktiv ist */
        margin-bottom: 0; /* Entfernen Sie den unteren Margin, da Flexbox nicht aktiv ist */
    }
}