/* components/cards.css - Karten-Komponenten Styles */
.home-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
    position: relative;
}

.home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.card-image {
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.home-card:hover .card-image img {
    transform: scale(1.05);
}

.card-title {
    padding: 15px;
    font-weight: bold;
    color: #0066cc;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255,255,255,0.9);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    margin: 0;
}

.card-title:hover {
    background: #0066cc;
    color: white;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
    z-index: 5;
}

.image-overlay span {
    color: white;
    font-size: 24px;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 30px;
}

.card-image:hover .image-overlay {
    opacity: 1;
}

/* LOCATION STYLES */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.location-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.location-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.location-image img,
.location-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: none;
}

.play-btn::after {
    content: "▶";
    font-size: 24px;
    color: white;
    margin-left: 5px;
}

.location-info {
    padding: 15px;
}

.location-title {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.location-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.details-button {
    background: #0066cc;
    color: white;
}

.details-button:hover {
    background: #0056b3;
}

.add-button {
    background: #28a745;
    color: white;
}

.add-button:hover {
    background: #218838;
}

/* LOCATION FACTS */
.location-facts {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
}

.location-facts ul {
    padding-left: 20px;
    margin-top: 5px;
}

.location-facts li {
    margin-bottom: 3px;
}
/* Das Logo bleibt in jedem Ersatzbild vollständig sichtbar. */
img.is-brand-fallback {
    object-fit: contain !important;
    object-position: center !important;
    background: #f7f7f0;
    padding: 20px;
    box-sizing: border-box;
}
.card-image img.is-brand-fallback {
    height: 100% !important;
    padding: 18px 24px 52px;
}
.home-card:hover img.is-brand-fallback { transform: none; }
.location-image > img { height: 100% !important; }
.location-image img.is-brand-fallback,
.event-image img.is-brand-fallback { height: 100% !important; padding: 24px; }
.brand-fallback-panel { background: #f7f7f0; border-radius: 8px; padding: 20px; text-align: center; margin: 15px 0; }
.brand-fallback-panel img { width: 100%; max-width: 380px; max-height: 190px; }
.brand-fallback-panel p { color: #65705f; font-size: .9rem; margin-top: 8px; }

/* Beide Einreichungen beginnen mit demselben Ablauf auf einer eigenen Formularseite. */
.contribute-section { margin: 36px 0 20px; }
.contribute-section > h2 { text-align: center; color: #294830; margin-bottom: 20px; font-size: 1.4rem; }
.contribute-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contribute-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; text-align: center; background: #fff; border: 1px solid #dce3d8; border-radius: 12px; }
.contribute-card h3 { color: #294830; font-size: 1.2rem; }
.contribute-card p { color: #596853; line-height: 1.5; }
.contribute-button { display: block; margin-top: auto; padding: 12px 16px; border-radius: 6px; background: #294830; color: #fff; text-decoration: none; font-weight: bold; }
.contribute-button:hover { background: #3b6042; color: #fff; }
.contribute-card .contribute-note { font-size: .8rem; }
@media (max-width: 700px) { .contribute-grid { grid-template-columns: 1fr; } .contribute-card { padding: 22px; } }

.advertise-invite { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 26px; margin: 24px 0; background: #edf3e7; border: 1px solid #d5e0cb; border-radius: 12px; }
.advertise-invite h2 { color: #294830; font-size: 1.4rem; margin: 6px 0 12px; }
.advertise-invite p { line-height: 1.6; color: #51634a; }
.advertise-eyebrow { font-size: .82rem; font-weight: bold; }
.advertise-invite .advertise-note { font-size: .8rem; margin-top: 10px; }
.advertise-invite .contribute-button { margin: 0; text-align: center; }
@media (max-width: 700px) { .advertise-invite { grid-template-columns: 1fr; padding: 22px; } }
