/* Globale Stile & Professionalisierung */
:root {
    --primary-color: #004b8d; /* Dunkles Blau für professionellen Look */
    --secondary-color: #fca311; /* Akzentfarbe (Orange/Gold) */
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
}

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

header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
    margin: 0 0 5px 0;
    font-size: 2.8em;
    font-weight: 600;
}

.preis {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 10px;
}

main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

section {
    background-color: var(--white);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

section h2 {
    color: var(--primary-color);
    font-size: 2em;
    padding-bottom: 10px;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--secondary-color);
}

/* ------------------- GALERIE ------------------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 220px; 
    object-fit: cover; 
    display: block;
}

/* ------------------- DATEN & BESCHREIBUNG ------------------- */

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    font-size: 1.05em;
}

table th, table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table thead th {
    background-color: var(--light-bg);
    color: var(--text-color);
    font-size: 1.1em;
}

table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.beschreibung h4 {
    color: var(--primary-color);
    margin-top: 20px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 10px;
}

ul {
    list-style: disc;
    padding-left: 20px;
}

ul li {
    margin-bottom: 8px;
}

/* ------------------- KONTAKT ------------------- */

#kontakt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

#kontakt a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ------------------- FOOTER ------------------- */

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: var(--light-bg);
    margin-top: 40px;
    font-size: 0.9em;
}

/* ------------------- LIGHTBOX ------------------- */

.lightbox-overlay {
    display: none; 
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    position: relative;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 80vh; 
    object-fit: contain;
}

/* Schliessen Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

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

/* Navigationspfeile */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

/* Linker Pfeil */
.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

/* Rechter Pfeil */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ------------------- MEDIA QUERIES (Responsivität) ------------------- */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    .preis {
        font-size: 1.4em;
    }
    section {
        padding: 20px;
    }
    .prev, .next {
        font-size: 30px;
        padding: 10px;
        margin-top: -30px;
    }
}