/* Allgemeine Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; /* Stellt sicher, dass der Container die gesamte Breite des Bildschirms nutzt */
    max-width: 1200px; /* Maximale Breite f�r gr��ere Bildschirme */
    margin: 0 auto; /* Zentriert den Container */
    padding: 0 10px; /* F�gt seitlichen Abstand hinzu */
    box-sizing: border-box; /* Verhindert, dass Padding das Layout beeinflusst */
}

.logo-title {
    display: flex;
    align-items: center;
    justify-content: center; /* Zentriert das Logo und den Text */
}

.logo {
    height: 40px; /* Gr��e des Logos anpassen */
    margin-right: 10px; /* Abstand zwischen Logo und Text */
}

header {
    background: #f4f4f4;
    padding: 20px; /* Hier 20px für alle Seiten */
    text-align: center;
    display: flex;
    justify-content: space-between; /* Stellt sicher, dass nichts abgeschnitten wird */
    align-items: center;
    width: 100%;
    box-sizing: border-box; /* Verhindert Überlaufprobleme */
}
header h1 {
    margin: 0;
    font-size: 2rem;
}

@media (max-width: 768px) { /* Für Handy */
    .mobile-header {
        padding: 0 15px; /* Abstand links & rechts */
        box-sizing: border-box;
    }
}

    .container {
        display: flex !important; /* Sicherstellen, dass Flex aktiv ist */
        flex-direction: row !important; /* Elemente bleiben nebeneinander */
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important; /* Verhindert Umbruch */
        gap: 5px !important; /* Falls n�tig, Abstand verringern */
    }

    .logo {
        height: 20px !important; /* Logo kleiner machen */
        margin-right: 5px !important;
    }

    header h1 {
        font-size: 1.1rem !important; /* Noch kleinere Schriftgr��e */
        white-space: nowrap !important; /* Verhindert Zeilenumbruch */
    }
}


nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
}

nav a:hover {
    color: #96a0aa;
}

.section {
    padding: 50px 20px;
    text-align: center;
}

.section h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

/* Portfolio Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px; /* Mehr Abstand zwischen den Bildern */
    justify-items: center;
}

.gallery-item {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain; /* Bilder proportional darstellen */
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05); /* Vergr��ern beim Hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Schatten beim Hover */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    text-align: center;
}

/* Modal Bild */
.modal-content img {
    width: 100%; /* Bild nimmt volle Breite des Modals ein */
    height: auto; /* H�he passt sich an, um das Bildverh�ltnis zu wahren */
    max-width: 90%; /* Maximal 90% der Breite des Bildschirms (verhindert zu gro�e Bilder) */
    max-height: 90vh; /* Maximal 90% der Bildschirmh�he, damit das Bild nicht zu gro� wird */
    object-fit: contain; /* Verhindert, dass das Bild verzerrt wird und es passt sich an */
    margin-bottom: 10px; /* Abstand nach unten */
}
/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #d6d6d6;
    cursor: pointer;
    z-index: 2000; /* H�herer Z-Index, damit er immer �ber dem Modal-Inhalt liegt */
    transition: color 0.3s ease;
}

/* Hover Effekt f�r den Close-Button */
.close:hover {
    color: #f00; /* �ndert die Farbe beim Hover, f�r bessere Sichtbarkeit */
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}
/* Portfolio Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Bilder nebeneinander auf dem PC */
    gap: 30px; /* Mehr Abstand zwischen den Bildern */
    justify-items: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Bilder auf Containergr��e zuschneiden */
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr; /* Nur 1 Bild pro Reihe auf mobilen Ger�ten */
    }

    .gallery-item img {
        max-width: 100%;
        height: auto;
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Damit der Header �ber allem liegt */
    background-color: #fff; /* Hintergrundfarbe, um Text beim Scrollen lesbar zu halten */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optionaler Schatten f�r visuelle Trennung */
}

body {
    margin-top: 80px; /* Platz schaffen, damit der Inhalt nicht vom Header �berdeckt wird */
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #768697; /* Optional: Farbe beim Hover */
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    nav ul {
        flex-direction: column; /* Men�punkte untereinander anordnen */
        gap: 10px;
    }

    nav ul li {
        margin-left: 0; /* Kein Abstand links */
    }
}
header:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
header h1 {
    font-size: clamp(1.5rem, 2vw, 2.5rem); /* Passt Schriftgr��e zwischen 1.5rem und 2.5rem dynamisch an */
}

.section h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
}
header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* �ber mich - Layout */
.about-me {
    padding: 50px 20px;
    background-color: #f5f5f5; /* Heller Hintergrund f�r Kontrast */
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px; /* Abstand zwischen Text und Bild */
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1; /* Der Text nimmt mehr Platz ein */
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-photo {
    flex: 0.4; /* Das Bild nimmt weniger Platz ein */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-photo img {
    width: 100%;
    max-width: 300px; /* Begrenzung der Bildgr��e */
    height: auto;
    border-radius: 10px; /* Abgerundete Ecken */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optionaler Schatten */
}

/* Responsives Design f�r kleinere Bildschirme */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Text und Bild untereinander anordnen */
        align-items: center;
    }

    .about-photo {
        margin-top: 20px;
    }
}

/* Hintergrundfarbe f�r den gesamten Bereich */
#services {
    background-color: #f5f5f5; /* Dezente Architekten-Farbe */
    padding: 40px 0; /* Abstand oben und unten */
    
}

/* Zentrierung und Abstand */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Jedes Service-Element mit zus�tzlicher Breite */
.service-category {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 5px 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    width: calc(100% - 30px); /* 15px breiter pro Seite */
    margin-left: auto;
    margin-right: auto;
}

/* Einheitliche Bildgr��en */
.service-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 215px; /* 15px breiter */
}

.service-item img {
    width: 215px; /* 15px breiter */
    height: 215px; /* Quadratisch */
    object-fit: cover;
    border-radius: 10px;
}

/* Pfeil & Plus-Zeichen Styling */
.arrow, .plus {
    font-size: 2em;
    color: #aaa;
    font-weight: bold;
}

/* Preissch�tzung */
.price-estimate {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 15px;
    color: #444;
}

/* Allgemeine Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Sorgt f�r Umbruch auf kleinen Bildschirmen */
    padding: 0 20px;
}

.logo-title {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

header {
    background: #f4f4f4;
    padding: 20px 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body {
    margin-top: 80px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Verhindert, dass Links abgeschnitten werden */
}

nav a {
    text-decoration: none;
    color: #333;
}

nav a:hover {
    color: #96a0aa;
}

/* Portfolio Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    justify-items: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        height: 30px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

.service-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.service-item {
    flex: 1 1 calc(25% - 10px); /* Standard: 4 Bilder nebeneinander */
    max-width: 25%;
    text-align: center;
}

@media (max-width: 768px) { 
    .service-item {
        flex: 1 1 calc(50% - 10px); /* 2 Bilder pro Reihe auf kleineren Bildschirmen */
        max-width: 50%;
    }

    .plus {
        display: none; /* "+" Zeichen ausblenden f�r bessere Darstellung */
    }
}

@media (max-width: 480px) { 
    .service-item {
        flex: 1 1 calc(100% - 10px); /* Jedes Bild nimmt die volle Breite ein */
        max-width: 100%;
    }
}

.service-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Mehr Abstand f�r bessere Optik */
    max-width: 90%; /* Mehr Breite auf gro�en Bildschirmen */
    margin: 0 auto;
}

.service-item {
    flex: 1 1 calc(22% - 15px); /* Auf PC mehr Platz nutzen */
    max-width: 22%;
    text-align: center;
}

@media (max-width: 1200px) { 
    .service-item {
        flex: 1 1 calc(25% - 15px); /* Standard: 4 Bilder nebeneinander */
        max-width: 25%;
    }
}

@media (max-width: 768px) { 
    .service-item {
        flex: 1 1 calc(50% - 15px); /* 2 Bilder pro Reihe auf mittelgro�en Bildschirmen */
        max-width: 50%;
    }

    .plus {
        display: none; /* "+" Zeichen ausblenden f�r bessere Darstellung */
    }
}

@media (max-width: 480px) { 
    .service-item {
        flex: 1 1 calc(100% - 15px); /* Jedes Bild nimmt die volle Breite ein */
        max-width: 100%;
    }
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Hamburger-Menü auf Mobilgeräten anzeigen */
    }

    nav {
        display: none; /* Menü standardmäßig ausblenden */
        position: absolute;
        top: 60px;
        right: 10px;
        background: white;
        width: 200px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
    }

    nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        padding: 10px;
        text-align: center;
    }

    nav ul li a {
        text-decoration: none;
        color: black;
        display: block;
    }

    nav.show {
        display: block; /* Menü wird eingeblendet */
    }
}
