/* Grundlegendes Design */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    background-image: linear-gradient(
        to right,
        transparent 10px,
        #1d6221 10px,
        #1d6221 20px,
        #e2c02b 20px,
        #e2c02b 30px, 
        transparent 30px
    );
}

/* Container für die Karten */
.gallery-container {
    display: grid;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    /* Einspaltig auf dem Handy */
    grid-template-columns: 1fr;
}

/* Responsives Grid: Ab 600px zwei Spalten, ab 900px drei */
@media (min-width: 600px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Die Karten-Optik */
.monument-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.monument-card img {
    width: 100%;
    height: 200px;
    object-fit: scale-down;
}

.content {
    padding: 1.5rem;
}

.content h2 {
    margin-top: 0;
    color: #2c3e50;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #2c3e50;
    color: white;
    margin-top: 20px;
    background-image: linear-gradient(
        to right,
        transparent 10px,
        #1d6221 10px,
        #1d6221 20px,
        #e2c02b 20px,
        #e2c02b 30px, 
        transparent 30px
    );
}

/* Styling für die Detailansicht */
.detail-container {
    max-width: 1000px;
    margin: 20px auto;
    background: white;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.detail-hero img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: scale-down;
    display: block;
}

.detail-text {
    padding: 40px;
}

/* Modernes Button Styling */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px; /* Abgerundete Pillen-Form */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    border: none;
    margin-top: 16px;
}

.btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Responsive Anpassung für Text auf Detailseite */
@media (max-width: 600px) {
    .detail-text {
        padding: 20px;
    }
}

.back-link {
    display: inline-block;
    color: #ecf0f1;
    text-decoration: none;
    margin-top: 10px;
    font-size: 0.9rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.info-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.info-table td:first-child {
    width: 150px;
    color: #7f8c8d;
}

.detail-img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
}

.impressum-section {
    background-color: #fff;
    padding: 60px 20px;
    margin-top: 50px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.impressum-content {
    max-width: 800px;
    margin: 0 auto;
}

.impressum-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.impressum-content hr {
    border: 0;
    border-top: 1px solid #eee;
    margin-bottom: 40px;
}

/* Styling für das einklappbare Impressum */
.impressum-section {
    padding: 40px 20px;
    text-align: center; /* Zentriert den Klapp-Button */
}

details {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

summary {
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Entfernt den Standard-Pfeil in manchen Browsern */
    color: #2c3e50;
    background: #f8f9fa;
    outline: none;
}

/* Ein eigener kleiner Pfeil-Indikator */
summary::before {
    content: "▶ ";
    display: inline-block;
    transition: transform 0.3s;
    margin-right: 10px;
    font-size: 0.8rem;
}

details[open] summary::before {
    transform: rotate(90deg);
}

.details-body {
    padding: 20px;
    text-align: left; /* Text im Impressum bleibt linksbündig */
    border-top: 1px solid #eee;
    line-height: 1.5;
    color: #7f8c8d;
}

/* Hover-Effekt für den Klapp-Header */
summary:hover {
    background-color: #f1f1f1;
}
