/* Top-Banner über die gesamte Breite */
.vtm-top-banner {
    margin: 0 0 24px;
    padding: 18px 20px;
    background: #003b73;
    border-radius: 18px;
    color: #ffffff;
}

.vtm-top-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.vtm-top-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
}

.vtm-top-title {
    margin: 0;
    font-size: 1.9rem;
    color: #ffffff;
}

/* Gruppen-Container */
.vtm-group {
    margin: 32px 0;
    padding: 18px 20px 22px;
    background: #f5f7fb;
    border-radius: 18px;
    border: 1px solid rgba(0, 59, 115, 0.12);
}

.vtm-group-header-row {
    margin-bottom: 10px;
}

.vtm-group-heading {
    font-size: 1.6rem;
    margin: 0;
    text-align: left;
    color: #003b73;
    border-left: 6px solid #f3b221;
    padding-left: 10px;
}

.vtm-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
}

.vtm-card {
    /* Standardmäßig 3 Karten pro Zeile – Breite = (100% - 2*24px)/3 ≈ 33,333% - 18px */
    width: calc(33.333% - 18px);
    max-width: calc(33.333% - 18px);
    /* Die Kartenhöhe wird flexibel über die Inhalte definiert */
    aspect-ratio: 16 / 9;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 59, 115, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    background-image: linear-gradient(180deg, #005fa3, #00a0d6), rgba(243, 178, 33, 0.04));
}

.vtm-card-inner {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.vtm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 59, 115, 0.35);
}

/* Kopfbereich – Platz für zwei Zeilen Name */
.vtm-card-header {
    padding: 10px 14px;
    background: linear-gradient(180deg, #005fa3, #00a0d6);
    color: #ffffff;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 38%;
}

.vtm-name-line {
    display: block;
    width: 100%;
}

.vtm-name {
    font-size: 1.0rem;
    font-weight: 600;
    line-height: 1.3;
    display: block;
    word-wrap: break-word;
    text-align: left;
}

.vtm-card-body {
    padding-top: 20px; /* shift details downward */
    flex: 1;
    padding: 6px 12px 2px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.vtm-line {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 1.0rem;
    margin: 5px 0;
    color: #1f2933;
}

.vtm-line-text {
    display: inline-block;
}

.vtm-adresse-line {
    min-height: 40px; /* Platz für zwei Textzeilen */
    margin-top: 18px; /* mehr Abstand unter dem Namensbalken */
}

.vtm-email-line {
    min-height: 40px;
}

.vtm-website-line {
    min-height: 40px;
}


.vtm-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    font-size: 22px;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.vtm-icon::before {
    font-family: dashicons;
    font-size: 16px;
    line-height: 1;
}

.vtm-icon-location::before {
    content: "\f231";
}

.vtm-icon-phone::before {
    content: "\f525";
}

.vtm-icon-mail::before {
    content: "\f465";
}

.vtm-icon-web::before {
    content: "\f319";
}
.vtm-icon-user::before {
    content: "\f110";
}


.vtm-email a,
.vtm-website-line a {
    color: #003b73;
    text-decoration: none;
}

.vtm-email a:hover,
.vtm-website-line a:hover {
    text-decoration: underline;
}

.vtm-placeholder {
    color: #9aa5b1;
    font-style: italic;
}

@media (max-width: 600px) {
    .vtm-top-inner {
        flex-direction: row;
    }
    .vtm-card {
        width: 100%;
        max-width: 100%;
    }
    .vtm-card-inner {
        flex-direction: column !important;
    }
}


/* Filterleiste für Team-Karten */
.vtm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.vtm-filter-button {
    border: 1px solid rgba(0, 59, 115, 0.25);
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

.vtm-filter-button.vtm-filter-active {
    background: #003b73;
    color: #ffffff;
}

/* Frontend-Editing für Administratoren */
.vtm-editable {
    cursor: text;
}
.vtm-editable:focus {
    outline: 1px dashed rgba(0, 0, 0, 0.3);
}
.vtm-editable-saving {
    opacity: 0.7;
}
.vtm-editable-saved {
    box-shadow: 0 0 0 2px rgba(0, 128, 0, 0.2);
}
.vtm-editable-error {
    box-shadow: 0 0 0 2px rgba(200, 0, 0, 0.3);
}

/* Platzhalter für leere Frontend-Edit-Felder */
.vtm-editable[data-placeholder]:empty::before {
    content: attr(data-placeholder);
    opacity: 0.6;
    pointer-events: none;
}

/*
 * Neues Layout für die Teamkarten
 *
 * Diese Styles definieren ein überarbeitetes Kartenlayout mit einem farbigen Kopfbereich
 * über die gesamte Kartenbreite sowie einer zweispaltigen Aufteilung darunter.
 */

/* Wrapper für die neue Kartenstruktur – nutzt flexbox in Spaltenrichtung */
.vtm-card-inner-new {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Kopfbereich mit Farbverlauf für Firmen- und Mitgliedsnamen */
/* Kopfbereich mit Farbverlauf: immer mindestens 80px hoch und zentrierte Inhalte */
/* Kopfbereich mit Farbverlauf: Links ausgerichtet, Mindesthöhe und vertikal zentriert */
.vtm-new-header {
    background: linear-gradient(180deg, #005fa3, #00a0d6);
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Runden der oberen Ecken, damit der Verlauf bündig in das Kartenlayout passt */
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

/* Erste Zeile im Kopfbereich: Firmenname */
/* Firmenname größer */
/* Firmenname größer dargestellt */
.vtm-new-company {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Zweite Zeile im Kopfbereich: Vorname Nachname */
/* Name etwas kleiner als Firma */
/* Name etwas kleiner als Firma, aber gut lesbar */
.vtm-new-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 4px;
    line-height: 1.3;
}

/* Hauptbereich unter dem Kopfbereich: zwei Spalten */
.vtm-new-body {
    display: flex;
    flex: 1;
    /* Entferne das Standard-Padding, damit die linke Spalte bis zum Kartenrand reicht */
    padding: 0;
    /* Kein Abstand zwischen den Spalten – die rechte Spalte erhält eigenen Innenabstand */
    gap: 0;
    /* Kein Hintergrund – die rechte Spalte erhält ihren eigenen Hintergrund, damit der Farbverlauf links direkt an den Header anschließt */
    background: transparent;
}

/* Linke Spalte: Logo und optional Qualitätssiegel */
/* Linke Spalte erhält denselben Verlauf wie der Kopfbereich und behält Höhe für Siegel frei */
.vtm-new-left {
    /* Die linke Spalte nimmt ca. ein Drittel der Kartenbreite ein */
    flex: 0 0 33%;
    display: flex;
    flex-direction: column;
    /* Die Elemente werden oben und unten angeordnet, so dass der Logo-Bereich und das Siegel voneinander getrennt sind */
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #005fa3, #00a0d6);
    color: #ffffff;
    /* Innenabstand für Logo und Siegel */
    padding: 16px 12px;
    /* Keine Ränder zum Kartenrand – linke Spalte schließt bündig ab */
    border-top-left-radius: 0;
    border-bottom-left-radius: 0px;
}

/* Logobereich mit fester Seitenverhältnis-Box */
.vtm-new-logo {
    /* Um 15 % verkleinert – reduziert die Breite relativ zur linken Spalte */
    width: 85%;
    /* Rechteckiges Seitenverhältnis für das Logo, ähnlich 4:3 */
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background:#ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vtm-new-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Qualitätssiegel unter dem Logo */
.vtm-new-siegel {
    /* Die Größe des Siegels relativ zur linken Spalte – um 15 % verkleinert gegenüber der vorherigen 80 % */
    margin-top: 0;
    width: 68%;
    max-width: 100%;
    display: flex;
    align-items: flex-end;
}

.vtm-new-siegel-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Rechte Spalte: Kontaktinformationen */
.vtm-new-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Position the contact lines at the top rather than centering them */
    justify-content: flex-start;
    /* Innenabstand auf allen Seiten – insbesondere links, damit Abstand zur linken Spalte entsteht */
    padding: 16px 16px;
    gap: 8px;
    /* Weißer Hintergrund für die rechte Spalte, damit sie sich vom Farbverlauf links abhebt */
    background: #ffffff;
    /* Rundung am unteren rechten Rand entsprechend der Karte */
    border-bottom-right-radius: 14px;
}

/* Einzeilige Darstellung für Telefonnummer, E-Mail und Website */
.vtm-new-line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.95rem;
    color: #1f2933;
    line-height: 1.4;
}

/* Farbliche Anpassung der Icons in den neuen Zeilen */
.vtm-new-line .vtm-icon {
    color: #003b73;
    margin-top: 0;
}

/* Kontaktblöcke: Symbol links, Text rechts in zwei Zeilen */
.vtm-contact-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

/* Kein zusätzlicher Abstand nach dem letzten Kontaktblock */
.vtm-contact-block:last-child {
    margin-bottom: 0;
}

/* Größere Icons für Kontaktblöcke */
/* Icons in den Kontaktblöcken – reine Icons ohne farbige Hintergründe */
.vtm-contact-block .vtm-icon {
    width: 28px;
    height: 28px;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a0d6;
    background: transparent;
    border-radius: 0;
}

/* Container für den beschrifteten Teil der Kontaktblöcke */
.vtm-contact-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Beschriftung oberhalb des Wertes */
/* Beschriftung oberhalb des Wertes */
.vtm-contact-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #003b73;
    margin-bottom: 4px;
}

/* Wertzeile in den Kontaktblöcken */
/* Wertzeile in den Kontaktblöcken */
.vtm-contact-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #003b73;
}

/* Link-Styling innerhalb der Kontaktwerte */
.vtm-contact-value a {
    color: #003b73;
    text-decoration: none;
}
.vtm-contact-value a:hover {
    text-decoration: underline;
}

/*
 * Defining a fixed business‑card format for team cards
 *
 * The card itself should always maintain a 16:9 aspect ratio regardless of its content.  The
 * width of the card is controlled via the grid (vtm-grid) and media queries, while the
 * aspect ratio ensures that the height is derived from the width.  This way the card
 * doesn’t expand unpredictably when long strings are inserted – instead the text scales or wraps
 * within the allotted space.  The `.vtm-card-inner-new` wrapper will fill the height
 * and distribute the header and body sections proportionally.
 */
.vtm-card {
    /* Default width for three cards per row on typical desktop screens */
    width: calc(33.333% - 18px);
    max-width: calc(33.333% - 18px);
    /* Maintain a constant aspect ratio of approximately 16:9 */
    aspect-ratio: 16 / 9;
    /* Let height derive from width via aspect ratio */
    height: auto;
}

/* Four cards per row on very large screens */
@media (min-width: 1400px) {
    .vtm-card {
        width: calc(25% - 18px);
        max-width: calc(25% - 18px);
    }
}

/* Two cards per row on medium screens (e.g. tablets) */
@media (max-width: 900px) {
    .vtm-card {
        width: calc(50% - 18px);
        max-width: calc(50% - 18px);
    }
}

/* Single card per row on small screens */
@media (max-width: 600px) {
    .vtm-card {
        width: 100%;
        max-width: 100%;
    }
}

/*
 * Layout for the new card structure
 *
 * The card is divided into a header (vtm-new-header) and a body (vtm-new-body).  The header
 * occupies roughly one third of the card’s height, while the body occupies the remaining
 * space.  The body itself contains two columns: a left column (33%) for logo and
 * optional quality seal, and a right column (67%) for the contact details.  Each
 * portion uses flexbox to distribute its contents evenly and to ensure that empty
 * areas collapse gracefully when optional elements are omitted.
 */

.vtm-card-inner-new {
    /* Occupy the full height of the card */
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header area with gradient background */
.vtm-new-header {
    /* Occupy roughly 30% of the card height to provide room for the company and name */
    flex: 0 0 30%;
    background: linear-gradient(180deg, #005fa3, #00a0d6);
    color: #ffffff;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}
.vtm-new-company {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}
.vtm-new-name {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 2px;
    line-height: 1.3;
    word-break: break-word;
}

/* Body area beneath the header */
.vtm-new-body {
    flex: 1;
    display: flex;
    width: 100%;
    background: transparent;
}

/* Left column (33%) for logo and seal */
.vtm-new-left {
    flex: 0 0 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, #005fa3, #00a0d6);
    padding: 8px 6px;
    border-bottom-left-radius: 0px;
}

/* Logo container – occupies half of the left column height */
.vtm-new-logo {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:#ffffff;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 4px;
}
.vtm-new-logo-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
}

/* Siegel container – occupies the other half of the left column */
.vtm-new-siegel {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vtm-new-siegel-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    display: block;
}

/* Right column (67%) for contact information */
.vtm-new-right {
    flex: 0 0 67%;
    display: flex;
    flex-direction: column;
    /* Spread the contact rows evenly with some space above and below */
    justify-content: space-around;
    padding: 8px 12px;
    background: #ffffff;
    border-bottom-right-radius: 14px;
}

/* Individual contact lines in the right column */
.vtm-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #1f2933;
    margin: 0;
    word-break: break-word;
}
/* Tweak icon sizing for the new card */
.vtm-line .vtm-icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #003b73;
    margin-top: 0;
}

/* Ensure placeholder text does not overflow */
.vtm-placeholder {
    color: #9aa5b1;
    font-style: italic;
    font-size: 0.9rem;
}

/* Responsive Anpassungen für kleine Bildschirme */
@media (max-width: 600px) {
    .vtm-card {
        width: 100%;
        max-width: 100%;
    }
    .vtm-new-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .vtm-new-left {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    .vtm-new-right {
        width: 100%;
    }
}

.vtm-card-logo-container {
    width: 100%;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
}

.vtm-card-logo-box {
    width: 100%;
    max-width: 120px;
    aspect-ratio: 3 / 2;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vtm-card-logo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.vtm-card-header-text {
    width: 100%;
    min-height: 3.2em; /* Platz für zwei bis drei Zeilen Name */
    margin-top: 8px;
    text-align: center;
    font-size: 1.25rem;
}

.vtm-name-line {
    display: block;
    width: 100%;
}

.vtm-name {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.3;
    max-height: 5.2em; /* maximal vier Zeilen sichtbar */
    overflow: hidden;
}


.vtm-email-line,
.vtm-website-line {
    min-height: 2.6em; /* immer Platz für zwei Zeilen */
    align-items: flex-start;
}

.vtm-email-line a,
.vtm-email-line .vtm-editable,
.vtm-website-line a,
.vtm-website-line .vtm-editable {
    display: block;
    width: 100%;
    min-height: 2.6em; /* immer Platz für zwei Zeilen */
    line-height: 1.3;
}

.vtm-name-line-body {
    width: 100%;
    background: linear-gradient(180deg, #005fa3, #00a0d6);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.vtm-name-line-body .vtm-icon {
    color: #ffffff;
}

.vtm-name-line-body .vtm-line-text {
    width: 100%;
    font-weight: 600;
}




.vtm-card-header-top {
    width: 100%;
    display: flex;
    justify-content: center;
}

.vtm-card-header-middle {
    width: 100%;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.vtm-card-header-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Siegel unten im blauen Bereich, mittig */
.vtm-card-siegel {
    max-width: 80px;
    height: auto;
}


/* Admin-Tabellenansicht */
.vtm-admin-table td,
.vtm-admin-table th {
    vertical-align: middle;
}

/* Einfaches zentriertes Modal für Team-Verwaltung */
.vtm-admin-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
}

.vtm-admin-modal-inner {
    background: #ffffff;
    max-width: 720px;
    margin: 20px auto;
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
}


/* Responsive Layout für Tablets & Smartphones */

/* Desktop: 4 Karten nebeneinander bei sehr breiten Ansichten */
@media (min-width: 1400px) {
    .vtm-card {
        width: calc(25% - 18px);
        max-width: calc(25% - 18px);
    }
}

/*
 * Neuer Visitenkarten-Look: feste 16:9-Formatierung und strukturierte Bereiche
 */

.vtm-card {
    /* Erzwinge ein Seitenverhältnis wie eine Visitenkarte */
    aspect-ratio: 16 / 9;
    height: auto;
}

/* Wrapper für den neuen festen Aufbau */
.vtm-card-inner-fixed {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Top-Bereich mit Verlaufsfarbe für Firma und Namen */
.vtm-card-top {
    flex: 0 0 30%;
    background: linear-gradient(180deg, #005fa3, #00a0d6);
    color: #ffffff;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 6px 12px -6px rgba(0,0,0,0.35);
}

.vtm-company {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
    text-align: left;
}

.vtm-name {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Unterer Bereich: zwei Spalten */
.vtm-card-bottom {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Linke Spalte: Logo und optional Siegel */
.vtm-card-left {
    flex: 0 0 33%;
    background: linear-gradient(180deg, #005fa3, #00a0d6);
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 5px;
}

/* Logobereich mit reduziertem Seitenverhältnis und abgerundeten Ecken */
.vtm-logo-area {
    width: 85%;
    aspect-ratio: 4 / 3;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-top-right-radius: 5px;
}

.vtm-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Siegelbereich */
.vtm-seal-area {
    width: 68%;
}

.vtm-seal-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Rechte Spalte: Kontaktinformationen */
.vtm-card-right {
    flex: 1;
    background: #ffffff;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    border-bottom-right-radius: 14px;
}

/* Einzelne Kontaktzeilen */
.vtm-contact-row {
    display: flex;
    align-items: flex-start !important;
    gap: 6px;
    font-size: 0.9rem;
    color: #003b73;
}

/* Icons in den Kontaktzeilen */
.vtm-contact-row .vtm-icon {
    width: 22px;
    height: 22px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003b73;
}

/* Tablet: 2 Karten nebeneinander */
@media (max-width: 1024px) {
    .vtm-card {
        width: calc(50% - 18px);
        max-width: calc(50% - 18px);
    }
}

/* Smartphone: 1 Karte je Zeile, Kopf oben, Inhalt darunter */
@media (max-width: 768px) {

    /* Außenabstand etwas kleiner */
    .vtm-wrapper {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Karte nimmt die komplette Breite, Höhe ist flexibel */
    .vtm-card {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: auto !important; /* feste 16:9-Höhe aufheben */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Inhalt: erst blau (Logo/Firma/Siegel), dann weißer Block mit Daten */
    .vtm-card-inner {
        flex-direction: column;
    }

    .vtm-card-header {
        width: 100% !important;
        flex: 0 0 auto !important;
        margin-bottom: 8px !important;
    }

    .vtm-card-body {
        width: 100% !important;
        padding: 10px 14px 14px !important;
    }

    /* Logo und Name auf kleinen Screens etwas kompakter */
    .vtm-card-logo-box {
        max-width: 80%;
        margin: 0 auto;
    }

    .vtm-card-header-text {
        margin-top: 10px;
        min-height: auto;
    }

    .vtm-name {
        font-size: 1.1rem;
    }

    /* Siegel unten im blauen Bereich, mittig */
    .vtm-card-header-bottom {
        margin-top: 4px;
    }

    .vtm-card-siegel {
        max-width: 70px;
    }

    /* Filterleiste darf umbrechen */
    .vtm-filter-bar {
        flex-wrap: wrap;
        gap: 6px;
    }

    .vtm-filter-button {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* Responsive Layout für Tablets & Smartphones */

/* Tablet: 2 Karten nebeneinander */
@media (max-width: 1024px) {
    .vtm-card {
        width: calc(50% - 18px);
        max-width: calc(50% - 18px);
    }
}

/* Smartphone: 1 Karte je Zeile, Kopf oben, Inhalt darunter */
@media (max-width: 768px) {

    /* Außenabstand etwas kleiner */
    .vtm-wrapper {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Karte nimmt die komplette Breite, Höhe ist flexibel */
    .vtm-card {
        width: 100%;
        max-width: 100%;
        aspect-ratio: auto; /* feste 16:9-Höhe aufheben */
        margin-left: 0;
        margin-right: 0;
        overflow: visible;
    }

    /* Inhalt: erst blau (Logo/Firma/Siegel), dann weißer Block mit Daten */
    .vtm-card-inner {
        flex-direction: column;
        height: auto;
    }

    .vtm-card-header {
        width: 100%;
        flex: 0 0 auto;
        margin-bottom: 8px;
    }

    .vtm-card-body {
        width: 100%;
        padding: 10px 14px 14px;
    }

    /* Logo und Name auf kleinen Screens etwas kompakter */
    .vtm-card-logo-box {
        max-width: 80%;
        margin: 0 auto;
    }

    .vtm-card-header-text {
        margin-top: 10px;
        min-height: auto;
    }

    .vtm-name {
        font-size: 1.1rem;
    }

    /* Siegel mittig unter dem Firmennamen */
    .vtm-card-header-bottom {
        margin-top: 4px;
    }

    .vtm-card-siegel {
        max-width: 70px;
    }

    /* Filterleiste darf umbrechen */
    .vtm-filter-bar {
        flex-wrap: wrap;
        gap: 6px;
    }

    .vtm-filter-button {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}


/* Zusätzlicher Abstand zwischen Namensbalken und erster Zeile (Telefon) */
.vtm-telefon-line {
    margin-top: 10px;
}


/* Firmenname im Header etwas größer als Kontaktdaten */
.vtm-card-header-middle .vtm-name {
    font-size: 1.2rem;
}

/*
 * Feste Kartenhöhe im Visitenkarten-Format (16:9)
 *
 * Alle Karten behalten damit unabhängig vom Inhalt dieselbe Höhe. Diese Regel steht am Ende
 * der Datei, um alle vorherigen Definitionen zu überschreiben.
 */
.vtm-card {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
}

.vtm-new-header *, .vtm-new-right *, .vtm-contact-line * { text-align:left !important; }


/* v19: Seal as overlay in top-right corner of the card */
.vtm-card {
    position: relative;
}

.vtm-seal-area {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 76px;
    height: auto;
    margin: 0;
    padding: 0;
    display: block;
}

.vtm-seal-area img {
    width: 100%;
    height: auto;
    display: block;
}


/* v20: force header text left */
.vtm-card-header-middle,
.vtm-card-header-middle *,
.vtm-company,
.vtm-name {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* v21: ensure icons align with first line of text */
.vtm-contact-row {
    align-items: flex-start !important;
}




/* v28: add arrow to website text link */
.vtm-contact-web::after {
    content: " \2197"; /* Unicode arrow ↗ */
    font-size: 1.1em;
    margin-left: 4px;
}


/* v29: ensure arrow on website link text */
.vtm-contact-website a::after,
.vtm-contact-web::after {
    content: " ↗";
    font-size: 1.1em;
    margin-left: 4px;
}


/* v1.0.3: Mobile-Optimierung – Karten immer komplett sichtbar */
@media (max-width: 900px) {
    .vtm-card {
        aspect-ratio: auto;
        height: auto;
    }
}


/* v1.0.4: Mobile-Optimierung – Karten immer komplett sichtbar */
@media (max-width: 900px) {
    .vtm-card {
        aspect-ratio: auto !important;
        height: auto !important;
        overflow: visible !important;
        width: 100%;
        max-width: 100%;
    }
}


/* v1.0.5: Mobile – Mindesthöhe für Karten, damit sie optisch gleich groß wirken */
@media (max-width: 900px) {
    .vtm-card {
        min-height: 280px;
    }
}


/* v1.0.6: Mobile – Karten-Layout untereinander (Header, Logo, Kontakte) */
@media (max-width: 900px) {
    .vtm-card {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    .vtm-card-inner {
        flex-direction: column;
        height: auto;
    }

    .vtm-card-bottom {
        flex-direction: column;
    }

    .vtm-card-left,
    .vtm-card-right {
        flex: 0 0 auto;
        width: 100%;
    }

    .vtm-card-left {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .vtm-card-right {
        border-bottom-left-radius: 14px;
    }
}


/* v1.0.9: Logo im linken Bereich exakt zentrieren */
.vtm-card-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vtm-card-left img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* v1.1.0: Logo exakt mittig (horizontal + vertikal) im linken Container */
.vtm-card-left {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.vtm-card-left > * {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.vtm-card-left img {
    max-width: 85%;
    max-height: 85%;
    height: auto;
    width: auto;
    display: block;
}


/* v1.1.1: Logo fast randfüllend, nur 5px Abstand links/rechts */
.vtm-card-left img {
    max-width: calc(100% - 10px);
    max-height: calc(100% - 10px);
}


/* v1.1.2: Siegel wieder als Overlay rechts oben (nicht vom Logo-Centering beeinflussen) */
.vtm-card-left {
    position: relative;
}

.vtm-logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Logo sizing bleibt (5px Rand), nur auf Logo-IMG angewendet */
.vtm-logo-area .vtm-logo-img {
    max-width: calc(100% - 10px);
    max-height: calc(100% - 10px);
    width: auto;
    height: auto;
    display: block;
}

/* Siegel strikt klein & absolut positioniert */
.vtm-seal-area {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 76px !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vtm-seal-area .vtm-seal-img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block !important;
}


/* v1.1.3: Siegel-Overlay erzwingen (richtige Klassen + hohe Spezifität) */
.vtm-card {
    position: relative;
}

/* alle möglichen Siegel-Wrapper als Overlay rechts oben */
.vtm-card .vtm-card-siegel,
.vtm-card .vtm-new-siegel,
.vtm-card .vtm-seal-area {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;

    width: 76px !important;
    max-width: 76px !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;
    z-index: 5;
}

/* Bild im Siegel: immer an Wrapper anpassen */
.vtm-card .vtm-card-siegel img,
.vtm-card .vtm-new-siegel img,
.vtm-card .vtm-new-siegel-img,
.vtm-card .vtm-seal-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}


/* v1.1.4: Siegel am Kartenrand (oben rechts der gesamten Karte, nicht im Logo-Bereich) */
.vtm-card {
    position: relative !important;
}

/* sicherstellen, dass kein innerer Container als Bezugspunkt dient */
.vtm-card-left,
.vtm-card-inner,
.vtm-card-bottom,
.vtm-card-top,
.vtm-card-right {
    position: static !important;
}

/* Siegel-Wrapper immer an der Karte ausrichten */
.vtm-card .vtm-card-siegel,
.vtm-card .vtm-new-siegel,
.vtm-card .vtm-seal-area {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    width: 76px !important;
    max-width: 76px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 20 !important;
    pointer-events: none;
}


/* v1.0.1: Admin – Modal Eingabefelder breiter + Schalter für Qualitätssiegel */
body.wp-admin #vtm-admin-modal .vtm-admin-modal-inner {
    max-width: 900px;
    width: calc(100% - 40px);
}

body.wp-admin #vtm-admin-modal .form-table td input[type="text"],
body.wp-admin #vtm-admin-modal .form-table td input[type="url"],
body.wp-admin #vtm-admin-modal .form-table td input[type="email"],
body.wp-admin #vtm-admin-modal .form-table td input[type="tel"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Switch-Style (Checkbox bleibt funktional) */
body.wp-admin #vtm-admin-modal .vtm-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    vertical-align: middle;
}

body.wp-admin #vtm-admin-modal .vtm-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

body.wp-admin #vtm-admin-modal .vtm-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cfd8dc;
    transition: .2s;
    border-radius: 999px;
}

body.wp-admin #vtm-admin-modal .vtm-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    transition: .2s;
    border-radius: 999px;
}

body.wp-admin #vtm-admin-modal .vtm-switch input:checked + .vtm-slider {
    background: #26a69a;
}

body.wp-admin #vtm-admin-modal .vtm-switch input:checked + .vtm-slider:before {
    transform: translateX(22px);
}


/* v1.0.2: Admin – Team-Details Felder breiter + Toggle für Qualitätssiegel */
body.wp-admin.post-type-verein_team_member #vtm .form-table {
    width: 100%;
}

body.wp-admin.post-type-verein_team_member #vtm .form-table td input.regular-text {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Toggle-Switch (Meta-Box) */
body.wp-admin.post-type-verein_team_member #vtm .vtm-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

body.wp-admin.post-type-verein_team_member #vtm .vtm-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

body.wp-admin.post-type-verein_team_member #vtm .vtm-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cfd8dc;
    transition: .2s;
    border-radius: 999px;
}

body.wp-admin.post-type-verein_team_member #vtm .vtm-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    transition: .2s;
    border-radius: 999px;
}

body.wp-admin.post-type-verein_team_member #vtm .vtm-switch input:checked + .vtm-slider {
    background: #26a69a;
}

body.wp-admin.post-type-verein_team_member #vtm .vtm-switch input:checked + .vtm-slider:before {
    transform: translateX(22px);
}

body.wp-admin.post-type-verein_team_member #vtm .vtm-switch-label {
    vertical-align: middle;
}


/* v1.0.4: Admin – Modal-Felder wirklich breit + Toggle sichtbar */
body.wp-admin #vtm-admin-modal input[type="text"],
body.wp-admin #vtm-admin-modal input[type="url"],
body.wp-admin #vtm-admin-modal input[type="email"],
body.wp-admin #vtm-admin-modal input[type="tel"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.wp-admin #vtm-admin-modal .vtm-admin-modal-inner {
    max-width: 980px !important;
    width: calc(100% - 40px) !important;
}
