/* Listen-Layout: eine Karte pro Zeile, aber Flex für Ausrichtung */
.minimalisticards-container.minimalisticards-list .minimalisticards-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 20px;
}
/* Ausrichtung der Karten-Container */
.minimalisticards-align-center .minimalisticards-row {
    justify-content: center !important;
    text-align: center;
}
.minimalisticards-align-left .minimalisticards-row {
    justify-content: flex-start !important;
    text-align: left;
}
.minimalisticards-align-right .minimalisticards-row {
    justify-content: flex-end !important;
    text-align: right;
}
/* MinimalistiCards Frontend Styles */

.minimalisticards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}



.minimalisticards-container.minimalisticards-single {
    justify-content: center;
}

.minimalisticards-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.minimalisticards-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    padding: 5px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 300px;
    text-align: center;
}

.minimalisticards-photo {
    width: 290px;
    height: 290px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5px;
    margin: 0 auto 10px auto;
}

@media (max-width: 768px) {
    .minimalisticards-photo {
        width: 100%;
        height: 0;
        padding-top: 100%; /* square */
    }
}

.minimalisticards-info {
    flex: 1;
    display: block;
}

.minimalisticards-name {
    margin: 0 0 5px 0;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    min-height: 2.8em; /* Platz für 2 Zeilen */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .minimalisticards-name {
        min-height: 3.2em;
    }
}

.minimalisticards-title {
    margin: 0 0 10px 0;
    font-style: italic;
    color: #666;
    text-align: center;
}

.minimalisticards-details {
    margin-bottom: 15px;
}

.minimalisticards-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.minimalisticards-table td {
    padding: 8px 5px;
    border: none;
    text-align: left;
    hyphens: auto;
    word-wrap: break-word;
}

.minimalisticards-table td a {
    hyphens: none; /* no hyphenation for email/phone links */
}

/* No word breaking for email addresses */
.minimalisticards-email {
    hyphens: none;
    word-break: break-all;
}

.minimalisticards-label {
    font-weight: bold;
    width: auto;
    white-space: nowrap;
    padding-right: 10px;
    border-right: 2px solid transparent;
}

.minimalisticards-value {
    padding-left: 10px;
    border-left: 2px solid transparent;
}

.minimalisticards-card {
    margin-bottom: 25px; /* space after card content */
}

.minimalisticards-table a {
    color: #007cba;
    text-decoration: none;
}

.minimalisticards-table a:hover {
    text-decoration: underline;
}

.minimalisticards-toggle-details {
    background: #007cba;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    margin-bottom: 10px; /* space after buttons */
}

.minimalisticards-toggle-details:hover {
    background: #005a87;
}

.minimalisticards-toggle-details .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.minimalisticards-icon-email,
.minimalisticards-icon-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #007cba;
    color: white;
    border-radius: 3px;
    margin-right: 10px;
    text-decoration: none;
    cursor: pointer;
}

.minimalisticards-icon-email:hover,
.minimalisticards-icon-phone:hover {
    background: #005a87;
}

.minimalisticards-icon-email .dashicons,
.minimalisticards-icon-phone .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.minimalisticards-icon-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #007cba;
    color: white;
    border-radius: 3px;
    margin-right: 10px;
    text-decoration: none;
    cursor: pointer;
}

.minimalisticards-icon-mobile:hover {
    background: #005a87;
}

.minimalisticards-icon-mobile .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.minimalisticards-icon-landline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #007cba;
    color: white;
    border-radius: 3px;
    margin-right: 10px;
    text-decoration: none;
    cursor: pointer;
}

.minimalisticards-icon-landline:hover {
    background: #005a87;
}

.minimalisticards-icon-landline .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.minimalisticards-spacer {
    flex: 1;
}

/* Responsive Design für Mobile Geräte */
@media (max-width: 768px) {
    .minimalisticards-row {
        flex-direction: column;
        align-items: center;
    }

    .minimalisticards-card {
        width: 100%;
        max-width: 300px;
    }
}