/* Gemeinsame Styles – Icons & Fotos */

/* Header: deckender weißer Hintergrund (kein Durchscheinen vom Hero) */
header {
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.logo {
    text-decoration: none;
    color: inherit;
}

/* Logo: weißer PNG-Hintergrund auf weißem Header unsichtbar */
header .logo img {
    display: block;
    background-color: #ffffff;
}
.topic-symbol img,
.topic-icon img,
.floating-icon img,
.card-icon img,
.step-icon img,
.activity-icon img,
.bau-symbol img {
    filter: brightness(0);
    opacity: 0.88;
}

/* Dunkle Symbole (schwarzer Hintergrund in PNG) auf hellem Grund sichtbar machen */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    align-items: stretch;
}

.image-gallery .content-photo,
.image-gallery > .image-placeholder {
    margin: 0;
    height: 240px;
    min-height: 240px;
}

.image-gallery .content-photo.small,
.image-gallery > .image-placeholder.small {
    height: 220px;
    min-height: 220px;
}

.image-gallery .content-photo img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

.image-gallery > .image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tiny-House-Galerie: Rahmen füllen + beim Hover vergrößern */
.image-gallery.hover-grow {
    overflow: visible;
    padding: 0.75rem 0;
}

.image-gallery.hover-grow .content-photo {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    transform-origin: center center;
    cursor: pointer;
}

.image-gallery.hover-grow .content-photo:hover {
    transform: scale(1.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    z-index: 3;
    position: relative;
}

/* Echte Fotos statt Platzhalter-Kästen */
.content-photo {
    margin: 1.5rem 0;
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
    background: #f0f0f0;
}

.content-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.content-photo.large {
    height: 420px;
    max-height: 420px;
    background: #f0f0f0;
}

.content-photo.large img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

.content-photo.small img {
    width: 100%;
    height: auto;
}

.content-photo.portrait {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin: 2rem auto;
    overflow: hidden;
}

.content-photo.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    max-height: none;
    margin: 0;
    min-height: 0;
}

/* Interaktive Karte (Kontaktseite) */
.map-embed {
    width: 100%;
    margin: 2rem 0;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

.map-embed-caption {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    border-top: 1px solid #eaeaea;
    background: #fff;
}

.map-embed-caption a {
    color: #333;
}

.content-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

/* Platzhalter ohne Foto-Datei */
.image-placeholder {
    background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%) !important;
    color: #555 !important;
}

.image-placeholder span {
    background-color: rgba(255, 255, 255, 0.85) !important;
    color: #333 !important;
    font-size: 0.8rem !important;
}

/* Kontakt-Foto volle Spaltenbreite */
.content-photo.contact-photo {
    margin: 1.5rem 0;
    height: auto;
    max-height: none;
}

.content-photo.contact-photo img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
}

/* Mobile: normales Menü (kein Burger), einspaltig, lesbar */
@media (max-width: 768px) {
    header {
        padding: 0.7rem 1rem;
    }

    header .header-container,
    .header-container {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    header nav ul,
    nav ul {
        gap: 0.65rem 1rem;
        justify-content: center;
        row-gap: 0.5rem;
    }

    header nav ul li a,
    nav ul li a {
        font-size: 0.78rem;
        letter-spacing: 0.3px;
    }

    .content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 1rem !important;
        margin: 2rem auto !important;
    }

    .sidebar {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid #eaeaea;
        padding-top: 1.5rem;
    }

    .image-gallery {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .image-gallery .content-photo,
    .image-gallery .content-photo.small {
        height: 220px;
        min-height: 220px;
    }

    .content-photo.large {
        height: 240px;
        max-height: 240px;
    }

    .two-column {
        grid-template-columns: 1fr !important;
    }

    .map-embed iframe {
        height: 280px;
    }

    .page-header {
        padding: 2.5rem 1rem !important;
    }

    .page-header h1 {
        font-size: 2.1rem !important;
    }

    .page-header p {
        font-size: 1.05rem !important;
    }

    .main-content {
        font-size: 1.05rem;
    }

    .floating-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    header nav ul li a,
    nav ul li a {
        font-size: 0.72rem;
    }

    .floating-grid {
        grid-template-columns: 1fr !important;
    }

    .content-photo.large {
        height: 200px;
        max-height: 200px;
    }

    .options-grid {
        grid-template-columns: 1fr !important;
    }
}
