/* -------------------------------------------
   Verwandtenübersicht auf der Einzelseite
-------------------------------------------- */

.verwandte-box {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.verwandte-box h3 {
    margin-top: 0;
    font-size: 1.4em;
    color: #444;
}

.verwandte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.verwandtenkarte {
    background: white;
    border: 1px solid #ddd;
    border-left: 4px solid #ccc;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.95em;
}

.verwandtenkarte a {
    text-decoration: none;
    color: #0073aa;
    font-weight: bold;
}

.verwandtenkarte:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.verwandtenkarte .emoji {
    font-size: 1.6em;
    display: block;
    margin-bottom: 5px;
}

.verwandtenkarte.eltern {
    border-left-color: #8884d8;
}

.verwandtenkarte.kind {
    border-left-color: #82ca9d;
}

.verwandtenkarte.partner {
    border-left-color: #ff6f61;
}

.verwandtenkarte.leer {
    color: #666;
    text-align: center;
    grid-column: 1 / -1;
    background: #f0f0f0;
    border-left: none;
}

/* Responsive: Verwandte einspaltig bei kleinen Geräten */
@media (max-width: 600px) {
    .verwandte-grid {
        grid-template-columns: 1fr;
    }
}

.verwandtenkarte.geschwister .emoji {
    font-size: 1.4em;
}

/* -------------------------------------------
   Container für Stammbaum & Verwandte
-------------------------------------------- */

.verwandten-und-stammbaum-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin: 20px 0;
}

.verwandte-links {
    flex: 1 1 300px;
    min-width: 280px;
}

/* -------------------------------------------
   QR-Code & vCard Download
-------------------------------------------- */

#download-vcard button {
    margin: 0 5px;
    padding: 6px 12px;
    font-size: 14px;
    background-color: #f0f0f0;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: pointer;
}

#download-vcard button:hover {
    background-color: #ddd;
}