/* Allgemeine Styles */

* {
    box-sizing: border-box;
    font-family: 'Helvetica', 'Arial', sans-serif;
}

:root {
    --primary-color: #e12624;
    --secondary-color: #e1a724;
    --accent-color: #a21a20;
    --background-color: #f4f4f4;
    --text-color: #333;
}

html,
body {
    margin: 0 auto;
    padding: 0;
    background-color: var(--background-color);

    height: 100%;
}

p {
    margin: 0;
}

main {
    margin-top: 100px;
}

h1{
    color: var(--primary-color);
    text-align: center;
}

.banner {
    position: relative;
    

}

.banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Header */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    height: 100px;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 40px;
    margin-right: 40px;
    padding: 16px;
    height: 100%;

}

.header-logo {
    height: 100%;
}

.header-logo img {
    height: 100%;
}

.header-links>a {
    text-decoration: none;
    margin-left: 16px;
    color: var(--accent-color);
    font-weight: bold;
}

.header-links a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}


/* Startseite */



.willkommenstext {
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translate(50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 50px;

}


/* Team */



.firmen-info {
    margin: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.6;
    margin-bottom: 40px;
}

.firmen-info h2, .firmen-info h3 {
    color: #e12624;
    margin-bottom: 10px;
}

.firmen-info-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.firmen-info-column {
    flex: 0 1 calc(50% - 20px);
    margin-bottom: 20px;
}

.firmen-info p, .firmen-info ul {
    margin-bottom: 15px;
}

.firmen-info ul {
    list-style-type: disc;
    padding-left: 20px;
}

.firmen-info strong {
    color: #e12624;
}


.teamfilter {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.teamfilter-btn {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

.teamfilter-btn:hover {
    background-color: var(--accent-color);
}

.team {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px;
}

.teammember {
    flex: 0 1 calc(33.333% - 10px);
    margin: 5px;
    position: relative;
    overflow: hidden;
    height: 350px;
    
}

.teammember img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.teammember-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.teammember:hover .teammember-overlay {
    opacity: 1;
}

.teammember-text {
    font-size: 16px;
    line-height: 1.4;
}

/* Standardmäßig alle Teammitglieder anzeigen */
.teammember.all {
    display: block;
}

/* Für Filterklassen - JavaScript steuert die Anzeige */
.teammember.geschaeftsleitung {
    display: block;
}

.teammember.administration {
    display: block;
}

.teammember.disposition {
    display: block;
}

.teammember.magazin {
    display: block;
}

.teammember.elektro-installation {
    display: block;
}

.teammember.kommunikation {
    display: block;
}

/* Footer */

footer {
    background-color: #333;
    color: #f2f2f2;
    padding: 20px 0;
    width: 100%;
    z-index: 1000;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    padding: 10px;

}

.footer-section h2 {
    margin-top: 0;
}

.footer-section p {
    margin: 10px 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section ul li a {
    color: #f2f2f2;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: 10px;
    background-color: #222;
}

.footer-section a {
    color: #f2f2f2;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}