/* --- Variablen & Reset --- */
:root {
    --primary-color: #2c3e50; /* Dunkles Business-Blau */
    --accent-color: #e67e22;  /* Handwerk-Orange */
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* --- Layout Helfer --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Header --- */
.header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    color: var(--accent-color);
}

/* --- Hero Section --- */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/titelbild.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn:hover {
    background: #d35400;
}

/* --- Über Uns --- */
.lead-text {
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px auto;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.about-content p {
    text-align: center;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card ul {
    list-style-position: inside;
    margin-top: 15px;
}

.service-card ul li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.highlight-card {
    border-top: 4px solid var(--accent-color);
    background: #fffdf5;
}

/* --- Footer --- */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* --- Galerie Sektion --- */
.gallery-grid {
    display: grid;
    /* Automatische Anpassung: Mindestens 300px breit, sonst 3 pro Reihe */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden; /* Damit das Bild beim Zoomen nicht über den Rand geht */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Einheitliche Höhe erzwingen */
    object-fit: cover; /* Bild wird zugeschnitten, nicht verzerrt */
    display: block;
    transition: transform 0.5s ease;
}

/* Hover-Effekt: Reinzoomen */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Beschriftung (Overlay) beim Drüberfahren */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.8); /* Dein Dunkelblau, transparent */
    color: #fff;
    padding: 10px;
    text-align: center;
    transform: translateY(100%); /* Standardmäßig versteckt */
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0); /* Beim Hover sichtbar */
}

/* --- Lightbox / Modal --- */
.modal {
    display: none; /* Standardmäßig versteckt */
    position: fixed; 
    z-index: 2000; /* Ganz weit vorne */
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); /* Schwarzer Hintergrund, leicht transparent */
}

/* Das Bild selbst */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh; /* Damit es nicht höher als der Bildschirm ist */
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* Unterschrift */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Zoom Animation */
@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Schließen Button (x) */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

/* Anpassung für Handys */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}