/* ============================================================
   vCard – Standalone-Kontaktseite (e-con AG)
   ============================================================ */

/* ── Markenschriften (aus dem e-con Theme) ────────────────── */
@font-face {
    font-family: "Michroma";
    src: url("../webfonts/Michroma-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("../webfonts/Montserrat-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("../webfonts/Montserrat-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("../webfonts/Montserrat-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("../webfonts/Montserrat-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Farb- & Schriftgrößen-Variablen ──────────────────────── */
:root {
    --vc-primary: #ef7d00;
    --vc-primary-hover: #d46f00;
    --vc-text: #1c1c1e;
    --vc-text-muted: #8c8c92;
    --vc-border: #ececee;
    --vc-page-bg: #f2f2f3;

    --font-size-body-xl: clamp(1.0625rem, 1.5vw, 1.375rem);
    --font-size-body-md: clamp(0.9rem, 1vw, 1rem);
    --font-size-body-sm: 0.8125rem;
}

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.vc-page {
    font-family: "Montserrat", sans-serif;
    background: var(--vc-page-bg);
    color: var(--vc-text);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    padding: 2rem 1rem;
}

/* ── Card-Wrapper ─────────────────────────────────────────── */
.vc-wrap {
    background: #ffffff;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(20, 20, 24, .04), 0 16px 40px rgba(20, 20, 24, .07);
}

/* ── Header ───────────────────────────────────────────────── */
.vc-header {
    background: #ffffff;
    padding: 2.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    text-align: center;
}

.vc-avatar {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.vc-avatar--placeholder {
    background: #dbe2ec;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vc-avatar--placeholder svg {
    width: 3.25rem;
    height: 3.25rem;
    fill: #9aa7ba;
}

.vc-name {
    font-size: var(--font-size-body-xl);
    font-weight: 600;
    color: var(--vc-text);
    line-height: 1.2;
}

.vc-job {
    font-size: var(--font-size-body-md);
    color: var(--vc-text-muted);
    font-weight: 400;
}

/* ── Quick-Action-Bar ─────────────────────────────────────── */
.vc-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #ffffff;
    border-top: 1px solid var(--vc-border);
    border-bottom: 1px solid var(--vc-border);
}

.vc-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    text-decoration: none;
    color: var(--vc-text);
    font-size: var(--font-size-body-sm);
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    background: none;
    border: none;
    padding: 1.1rem .5rem 1.15rem;
    transition: background .2s, color .2s;
    position: relative;
    font-family: "Montserrat", sans-serif;
}

.vc-action + .vc-action::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--vc-border);
}

.vc-action:hover {
    background: #faf7f2;
}

.vc-action__icon {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vc-primary);
}
.vc-action__icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.vc-action__icon--email svg {
    transform: rotate(-45deg);
}

.vc-action--disabled {
    opacity: .35;
    cursor: default;
}

/* ── Body / Kontaktzeilen ─────────────────────────────────── */
.vc-body {
    background: #ffffff;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
}

.vc-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--vc-border);
}
.vc-row:last-child { border-bottom: none; }

.vc-row--address,
.vc-row:has(.vc-map-link) {
    align-items: flex-start;
}
.vc-row--address .vc-row__icon,
.vc-row:has(.vc-map-link) .vc-row__icon {
    padding-top: .15rem;
}

.vc-row__icon {
    width: 1.375rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b7b7bd;
}
.vc-row__icon svg {
    width: 1.375rem;
    height: 1.375rem;
    fill: currentColor;
    stroke: currentColor;
}

.vc-row__icon svg[fill="none"] {
    fill: none;
}

.vc-row__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.vc-row__entry {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: .15rem 0;
}
.vc-row__entry + .vc-row__entry {
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid var(--vc-border);
}

.vc-row__value {
    font-size: var(--font-size-body-md);
    font-weight: 600;
    color: var(--vc-text);
    text-decoration: none;
    word-break: break-word;
    line-height: 1.3;
}
a.vc-row__value:hover { color: var(--vc-primary); }

.vc-row__label {
    font-size: var(--font-size-body-sm);
    font-weight: 400;
    color: var(--vc-text-muted);
    letter-spacing: .01em;
    line-height: 1.3;
}

/* AUF KARTE ANZEIGEN */
.vc-map-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: .375rem;
    font-size: var(--font-size-body-sm);
    font-weight: 600;
    color: var(--vc-primary);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin: 1.1rem 0 0.5rem -.625rem;
    background: none;
    border: none;
    border-radius: .5rem;
    padding: .5rem .875rem .5rem .625rem;
    cursor: pointer;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    transition: color .18s, background .18s;
}
.vc-map-link:hover {
    background: #faf2e6;
}
.vc-map-link svg {
    width: .8rem;
    height: .8rem;
    fill: currentColor;
}

/* ── Buttons ──────────────────────────────────────────────── */
.vc-buttons {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.5rem 1.5rem 1.75rem;
}

.vc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: .9rem;
    font-size: var(--font-size-body-md);
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    transition: background .2s, color .2s, border-color .2s;
}
.vc-btn svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: currentColor;
    flex-shrink: 0;
}

.vc-btn--primary {
    background: var(--vc-primary);
    color: #ffffff;
}
.vc-btn--primary:hover { background: var(--vc-primary-hover); }

.vc-btn--secondary {
    background: transparent;
    color: var(--vc-text-muted);
    border: 1px solid var(--vc-border);
    font-weight: 600;
}
.vc-btn--secondary:hover {
    background: #faf7f2;
    border-color: #ddddde;
    color: var(--vc-text);
}

/* ── Logo-Footer ──────────────────────────────────────────── */
.vc-logo-footer {
    display: flex;
    justify-content: center;
}
.vc-logo-footer img {
    max-height: 2.25rem;
    width: auto;
}
.vc-logo-footer__text {
    font-family: "Michroma", sans-serif;
    font-size: 1.5rem;
    color: var(--vc-text);
    text-decoration: none;
    letter-spacing: .01em;
}
.vc-logo-footer__e {
    color: var(--vc-primary);
}

/* ── Dialog / Modal ───────────────────────────────────────── */
.vc-dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 24, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.vc-dialog-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.vc-dialog {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem 1.5rem;
    width: 100%;
    max-width: 22rem;
    text-align: center;
    box-shadow: 0 16px 60px rgba(0, 0, 0, .2);
    transform: translateY(12px);
    transition: transform .2s;
}
.vc-dialog-backdrop.is-visible .vc-dialog { transform: translateY(0); }

.vc-dialog__icon {
    width: 3.25rem;
    height: 3.25rem;
    background: #fef0dc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.vc-dialog__icon svg {
    width: 1.625rem;
    height: 1.625rem;
    fill: var(--vc-primary);
}

.vc-dialog__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--vc-text);
    margin-bottom: .5rem;
}
.vc-dialog__text {
    font-size: .9rem;
    color: var(--vc-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.vc-dialog__actions {
    display: flex;
    gap: .75rem;
}
.vc-dialog__actions .vc-btn { flex: 1; }
