/* ==========================================
   KETMarket Expert Profile
   ========================================== */

:root {
    --ketm-primary: #0f172a;
    --ketm-primary-2: #1e293b;
    --ketm-accent: #00AEEF;
    --ketm-accent-dark: #0095cc;
    --ketm-bg: #f8fafc;
    --ketm-surface: #ffffff;
    --ketm-text: #0f172a;
    --ketm-text-soft: #64748b;
    --ketm-border: #e2e8f0;
    --ketm-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
    --ketm-radius-xl: 24px;
    --ketm-radius-lg: 18px;
    --ketm-radius-md: 14px;
}

/* =========================
   WRAPPER
   ========================= */
.ketm-expert-profile {
    max-width: 1200px;
    margin: 48px auto;
    background: var(--ketm-surface);
    border: 1px solid var(--ketm-border);
    border-radius: var(--ketm-radius-xl);
    box-shadow: var(--ketm-shadow);
    overflow: hidden;
    color: var(--ketm-text);
}

/* =========================
   HERO / COVER
   ========================= */
.ketm-expert-profile__media {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(0, 174, 239, 0.55));
}

.ketm-expert-profile__media img,
.ketm-expert-profile__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.45;
    transform: scale(1.02);
}

.ketm-expert-profile__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.10) 0%,
        rgba(15, 23, 42, 0.68) 100%
    );
    pointer-events: none;
}

/* =========================
   INTRO / HEADER
   ========================= */
.ketm-expert-profile__header {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: -88px auto 0;
    padding: 0 32px 24px;
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.ketm-expert-profile__image {
    width: 168px;
    height: 168px;
    min-width: 168px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 6px solid #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.ketm-expert-profile__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ketm-primary), var(--ketm-accent));
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.ketm-expert-profile__header-text {
    min-width: 0;
    flex: 1;
}

.ketm-expert-profile__name {
    margin: 0;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.05;
    font-weight: 800;
    color: var(--ketm-text);
    letter-spacing: -0.02em;
}

.ketm-expert-profile__title {
    margin-top: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ketm-text-soft);
}

/* =========================
   2-COLUMN LAYOUT
   ========================= */
.ketm-expert-profile__body {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
    gap: 32px;
    padding: 8px 32px 32px;
    align-items: start;
}

.ketm-expert-profile__main,
.ketm-expert-profile__sidebar {
    min-width: 0;
}

.ketm-expert-profile__sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 20px;
    align-self: start;
}

/* =========================
   CARDS / SECTIONS
   ========================= */
.ketm-expert-profile__section,
.ketm-expert-profile__contact-card {
    background: var(--ketm-surface);
    border: 1px solid var(--ketm-border);
    border-radius: var(--ketm-radius-lg);
    padding: 24px;
}

.ketm-expert-profile__section {
    margin-bottom: 20px;
}

.ketm-expert-profile__section:last-child {
    margin-bottom: 0;
}

.ketm-expert-profile__section h3,
.ketm-expert-profile__contact-card h3 {
    margin: 0 0 14px;
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ketm-accent);
}

.ketm-expert-profile__content,
.ketm-expert-profile__section > p,
.ketm-expert-profile__section li {
    color: var(--ketm-text);
    line-height: 1.75;
    font-size: 1rem;
}

.ketm-expert-profile__content p:first-child {
    margin-top: 0;
}

.ketm-expert-profile__content p:last-child {
    margin-bottom: 0;
}

.ketm-expert-profile__section a,
.ketm-expert-profile__fact-value a {
    color: var(--ketm-accent-dark);
    text-decoration: none;
    font-weight: 600;
}

.ketm-expert-profile__section a:hover,
.ketm-expert-profile__fact-value a:hover {
    text-decoration: underline;
}

/* =========================
   BADGES
   ========================= */
.ketm-expert-profile__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ketm-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 174, 239, 0.10);
    border: 1px solid rgba(0, 174, 239, 0.16);
    color: var(--ketm-accent-dark);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
}

/* =========================
   SIDEBAR CONTACT CARD
   ========================= */
.ketm-expert-profile__contact-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.ketm-expert-profile__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.ketm-expert-profile__contact-list li {
    margin: 0;
}

/* Contact buttons */
.ketm-expert-profile__contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--ketm-border);
    background: #fff;
    color: var(--ketm-primary);
    text-decoration: none;
    font-weight: 700;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
    box-sizing: border-box;
}

.ketm-expert-profile__contact-link:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 174, 239, 0.35);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    text-decoration: none;
}

.ketm-expert-profile__contact-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(0, 174, 239, 0.10);
    color: var(--ketm-accent-dark);
}

.ketm-expert-profile__contact-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.ketm-expert-profile__contact-text {
    display: flex;
    flex-direction: column;
    gap: 0px; /* reduziert Abstand */
}

.ketm-expert-profile__contact-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ketm-text-soft);
}

.ketm-expert-profile__contact-value {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--ketm-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================
   QUICK FACTS
   ========================= */
.ketm-expert-profile__quickfacts {
    display: grid;
    gap: 14px;
}

.ketm-expert-profile__fact {
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--ketm-border);
}

.ketm-expert-profile__fact-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ketm-text-soft);
}

.ketm-expert-profile__fact-value {
    color: var(--ketm-primary);
    font-weight: 700;
    line-height: 1.5;
}

.ketm-expert-profile__fact-value .ketm-expert-profile__badges {
    margin-top: 8px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px) {
    .ketm-expert-profile__body {
        grid-template-columns: 1fr;
    }

    .ketm-expert-profile__sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 767px) {
    .ketm-expert-profile {
        margin: 24px auto;
        border-radius: 18px;
    }

    .ketm-expert-profile__media {
        height: 220px;
    }

    .ketm-expert-profile__header {
        margin-top: -64px;
        padding: 0 20px 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ketm-expert-profile__image {
        width: 128px;
        height: 128px;
        min-width: 128px;
    }

    .ketm-expert-profile__image--placeholder {
        font-size: 2.4rem;
    }

    .ketm-expert-profile__body {
        padding: 4px 20px 20px;
        gap: 20px;
    }

    .ketm-expert-profile__section,
    .ketm-expert-profile__contact-card {
        padding: 20px;
    }

    .ketm-expert-profile__contact-value {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}