/* ================================================================
   VITINN – Custom Stylesheet
   Ergänzt Tailwind CDN um CI-Elemente, Hex-Muster & Animationen
   ================================================================ */

/* ── Skip-Link (Barrierefreiheit) ───────────────────────────── */
.vt-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: #738637;
    color: #F9F9F7;
    font-size: 0.8125rem;
    text-decoration: none;
}
.vt-skip-link:focus {
    left: 0.75rem;
    top: 0.75rem;
}

/* ── Breadcrumbs ────────────────────────────────────────────── */
.vt-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Anker-Ziele unter fixem Header + sticky Filterleiste */
.vt-scroll-anchor {
    scroll-margin-top: calc(var(--vt-header-h, 4rem) + var(--vt-filterbar-h, 3.25rem) + 0.75rem);
}

/* Seiten-Anker (Startseite #angebote etc.) – nur Header, kein Filter */
.vt-page-anchor {
    display: block;
    height: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    scroll-margin-top: calc(var(--vt-header-h, 9rem) + 1.25rem + 50px);
}

/* ── Portal-Branding (CSS-Variablen, per Berater überschreibbar) ─ */
:root {
    --vt-portal-accent: #738637;
    --vt-portal-surface: #F9F9F7;
    --vt-portal-text: #2F353B;
    --vt-header-h: 9rem;
}
html {
    scroll-padding-top: calc(var(--vt-header-h, 9rem) + 1.25rem + 50px);
}
html.vt-font-sm { font-size: 14px; }
html.vt-font-md { font-size: 16px; }
html.vt-font-lg { font-size: 18px; }

.vt-portal-accent { color: var(--vt-portal-accent); }
.vt-portal-accent-bg { background-color: var(--vt-portal-accent); }
.vt-portal-surface { background-color: var(--vt-portal-surface); }
.vt-portal-text { color: var(--vt-portal-text); }
.btn-primary.vt-portal-btn,
.vt-portal-btn.btn-primary {
    background-color: var(--vt-portal-accent);
    border-color: var(--vt-portal-accent);
}
/* Portal-Design-Panel: Bereichs-Badges A–D in der Live-Vorschau */
.vt-design-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 9999px;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1;
    background: rgba(47, 53, 59, 0.1);
    color: rgba(47, 53, 59, 0.62);
    flex-shrink: 0;
}
.vt-design-badge[data-badge="C"] {
    background: var(--vt-portal-accent, #738637);
    color: #fff;
}
#vt-mockup-listed-badge.vt-mockup-listed--public {
    border-color: rgba(115, 134, 55, 0.35);
    background: rgba(115, 134, 55, 0.08);
    color: rgba(47, 53, 59, 0.72);
}
#vt-mockup-listed-badge.vt-mockup-listed--private {
    border-color: rgba(47, 53, 59, 0.15);
    background: rgba(47, 53, 59, 0.05);
    color: rgba(47, 53, 59, 0.55);
}

.vt-portal-btn.btn-primary:hover {
    filter: brightness(0.92);
}

/* ── Google Fonts Fallback ──────────────────────────────────── */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Hex-Hintergrundmuster ──────────────────────────────────── */
.hex-bg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98'%3E%3Cpath d='M28 0 L56 16 L56 48 L28 64 L0 48 L0 16 Z' fill='none' stroke='%232F353B' stroke-width='0.6' opacity='0.055'/%3E%3Cpath d='M28 49 L56 65 L56 97 L28 113 L0 97 L0 65 Z' fill='none' stroke='%232F353B' stroke-width='0.6' opacity='0.055'/%3E%3C/svg%3E");
    background-size: 56px 98px;
}

/* ── Hex-Trennlinie ─────────────────────────────────────────── */
.hex-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 1.25rem 0;
    opacity: 0.3;
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav-link {
    position: relative;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 400;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #738637;
    transition: width 280ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ── Hamburger ──────────────────────────────────────────────── */
.ham-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: #2F353B;
    transition: transform 300ms ease, opacity 300ms ease;
    transform-origin: center;
}

.ham-open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham-open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ham-open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Headline ──────────────────────────────────────────── */
.hero-headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* ── Karten ─────────────────────────────────────────────────── */
.card-vitinn {
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.card-vitinn:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(47, 53, 59, 0.1);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #738637;
    color: #fff;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: background-color 200ms ease;
    text-decoration: none;
}

.btn-primary:hover { background-color: #4A5428; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(47, 53, 59, 0.2);
    color: #2F353B;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: border-color 200ms ease, color 200ms ease;
    text-decoration: none;
}

.btn-ghost:hover {
    border-color: #738637;
    color: #738637;
}

/* ── Nav: Login-Status (Höhe wie Erstgespräch-Button: py-2.5, text-xs) ── */
.vt-nav-auth-box {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.3rem;
    max-height: 2.375rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid rgba(47, 53, 59, 0.14);
    border-radius: 2px;
    background: rgba(249, 249, 247, 0.65);
    line-height: 1;
}

.vt-nav-auth-box--stack {
    flex-direction: column;
    align-items: flex-start;
    max-height: none;
    gap: 0.2rem;
    width: 100%;
}

.vt-nav-auth-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    line-height: 1.2;
}

.vt-nav-auth-user {
    font-size: 0.6875rem;
    line-height: 1;
    color: rgba(47, 53, 59, 0.85);
    font-weight: 400;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vt-nav-auth-sep {
    font-size: 0.625rem;
    color: rgba(47, 53, 59, 0.25);
    user-select: none;
}

.vt-nav-auth-role {
    font-size: 0.625rem;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(47, 53, 59, 0.42);
    white-space: nowrap;
}

.vt-nav-auth-action {
    font-size: 0.625rem;
    line-height: 1;
    color: rgba(47, 53, 59, 0.5);
    text-decoration: none;
    white-space: nowrap;
    transition: color 200ms ease;
}

.vt-nav-auth-box:not(.vt-nav-auth-box--stack) .vt-nav-auth-action {
    margin-left: 0.15rem;
    padding-left: 0.35rem;
    border-left: 1px solid rgba(47, 53, 59, 0.1);
}

.vt-nav-auth-action:hover {
    color: #738637;
}

.vt-nav-auth-portal {
    font-size: 0.75rem;
    line-height: 1.2;
    color: #738637;
    font-weight: 500;
    text-decoration: none;
    transition: color 200ms ease;
}

.vt-nav-auth-portal-link {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.3rem;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 2px;
    transition: color 200ms ease;
}

.vt-nav-auth-portal-link--stack {
    display: block;
    width: 100%;
}

.vt-nav-auth-portal-link:hover .vt-nav-auth-user,
.vt-nav-auth-portal-link:hover .vt-nav-auth-role {
    color: #738637;
}

.vt-nav-auth-portal-link:focus-visible {
    outline: 2px solid rgba(115, 134, 55, 0.45);
    outline-offset: 2px;
}

.vt-nav-auth-portal:hover {
    color: #4A5428;
}

.vt-nav-auth-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    max-height: 2.375rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    color: rgba(47, 53, 59, 0.65);
    background: transparent;
    border: 1px solid rgba(47, 53, 59, 0.14);
    border-radius: 2px;
    cursor: pointer;
    transition: color 200ms ease, border-color 200ms ease;
}

.vt-nav-auth-login:hover {
    color: #2F353B;
    border-color: rgba(115, 134, 55, 0.45);
}

.vitinn-auth-tab:focus-visible {
    outline: 2px solid rgba(115, 134, 55, 0.45);
    outline-offset: 2px;
}

/* ── Range Slider ────────────────────────────────────────────── */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e4e7e1;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #738637;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #738637, 0 3px 8px rgba(115, 134, 55, 0.35);
    transition: box-shadow 150ms ease;
}

input[type="range"]::-webkit-slider-thumb:active {
    box-shadow: 0 0 0 1px #4A5428, 0 4px 12px rgba(74, 84, 40, 0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #738637;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #738637;
}

/* ── Live-Indikator ─────────────────────────────────────────── */
@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #738637;
    animation: pulse-live 1.5s ease-in-out infinite;
    display: inline-block;
}

/* ── Coaching Tools Layout ──────────────────────────────────── */
.tool-panel {
    background: #fff;
    border: 1px solid rgba(47, 53, 59, 0.08);
    border-radius: 2px;
    padding: 1.5rem;
    transition: border-color 200ms ease;
}

.tool-panel:focus-within {
    border-color: rgba(115, 134, 55, 0.4);
}

.tool-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(47, 53, 59, 0.45);
    font-weight: 500;
    display: block;
    margin-bottom: 0.75rem;
}

.tool-value-display {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: 2.5rem;
    color: #738637;
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

textarea.tool-input,
input[type="text"].tool-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(47, 53, 59, 0.15);
    padding: 0.5rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #2F353B;
    outline: none;
    resize: none;
    transition: border-color 200ms ease;
    line-height: 1.6;
}

textarea.tool-input:focus,
input[type="text"].tool-input:focus {
    border-bottom-color: #738637;
}

textarea.tool-input::placeholder,
input[type="text"].tool-input::placeholder {
    color: rgba(47, 53, 59, 0.3);
}

textarea.tool-input[readonly],
input[type="range"][disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── PIN Display ─────────────────────────────────────────────── */
.pin-display {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: 3rem;
    letter-spacing: 0.4em;
    color: #2F353B;
    text-align: center;
    padding: 1rem;
    background: #F9F9F7;
    border: 1px dashed rgba(115, 134, 55, 0.4);
    white-space: nowrap;
}

.pin-display--compact {
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.2em !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    text-align: right;
}

/* Klienten-Portal: PIN & Meta (ohne .pin-display-Basisstile) */
.client-portal-pin {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1;
    color: rgba(47, 53, 59, 0.9);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-portal-meta-panel {
    background: #fff;
    border: 1px solid rgba(47, 53, 59, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(47, 53, 59, 0.04);
}

.client-portal-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.client-portal-meta-row + .client-portal-meta-row {
    border-top: 1px solid rgba(47, 53, 59, 0.08);
}

.client-portal-kontingent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-top: 1px solid rgba(47, 53, 59, 0.08);
}

.client-portal-kontingent-stats {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
    flex: 1;
}

.client-portal-stat-label {
    display: block;
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(47, 53, 59, 0.45);
    font-weight: 400;
}

.client-portal-stat-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.client-portal-header {
    margin-bottom: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(47, 53, 59, 0.1);
    background: linear-gradient(135deg, rgba(115, 134, 55, 0.09) 0%, #fff 55%, #fff 100%);
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 0 rgba(47, 53, 59, 0.05);
}

.client-portal-header-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.client-portal-intro {
    min-width: 0;
}

@media (min-width: 1024px) {
    .client-portal-header {
        padding: 1.25rem 1.5rem;
    }

    .client-portal-header-inner {
        display: grid;
        /* 1/5 · 1/5 · 3/5 — Empfehlungen breit, Meta & Intro entlastet */
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 3fr);
        align-items: stretch;
        gap: 1rem 1.35rem;
    }

    .client-portal-meta-panel {
        width: auto;
        max-width: none;
        align-self: stretch;
    }

    .client-portal-kontingent-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem 1.1rem;
    }

    .client-portal-kontingent-stats > p {
        min-width: 4.5rem;
    }

    .client-portal-meta-row {
        padding: 0.6rem 0.85rem;
    }

    .client-portal-kontingent {
        padding: 0.6rem 0.85rem;
    }
}

.client-affiliate-panel {
    min-width: 0;
    border-radius: 0.75rem;
    border: 1px solid rgba(47, 53, 59, 0.08);
    background: rgba(255, 255, 255, 0.72);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.client-affiliate-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
    flex-shrink: 0;
}

.client-affiliate-panel-title {
    font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(47, 53, 59, 0.55);
}

.client-affiliate-find-btn {
    font-size: 0.65rem !important;
}

.client-affiliate-body {
    flex: 1;
    min-height: 0;
    overflow: visible;
}

.client-affiliate-empty {
    font-size: 0.75rem !important;
    line-height: 1.45;
}

.client-affiliate-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.client-affiliate-card {
    display: block;
    padding: 0.45rem 0.55rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(47, 53, 59, 0.07);
    background: #fff;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
    cursor: pointer;
}

.client-affiliate-card-layout {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.client-affiliate-card-icon,
.affiliate-paste-preview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.4rem;
    background: rgba(115, 134, 55, 0.1);
    color: rgba(115, 134, 55, 0.92);
    flex-shrink: 0;
}

.client-affiliate-card-icon svg {
    width: 14px;
    height: 14px;
}

.client-affiliate-card-body {
    min-width: 0;
    flex: 1;
}

.client-affiliate-card-row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
}

.client-affiliate-card-price {
    flex-shrink: 0;
    font-size: 0.68rem;
    color: rgba(115, 134, 55, 0.92);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.client-affiliate-card:hover {
    border-color: rgba(115, 134, 55, 0.35);
    background: rgba(115, 134, 55, 0.04);
}

.client-affiliate-card-title {
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #2f353b;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.client-affiliate-card-desc,
.client-affiliate-card-link,
.client-affiliate-cat,
.client-affiliate-group + .client-affiliate-group {
    display: none;
}

.affiliate-catalog-tile:focus-visible {
    outline: 2px solid rgba(115, 134, 55, 0.45);
    outline-offset: 2px;
}

.amazon-pricing-row__price {
    width: 5.75rem;
}

.amazon-pricing-row__est {
    min-width: 4.25rem;
}

.amazon-commission-field--inline {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.amazon-commission-tiles--inline {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    align-items: center;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 1px;
    scrollbar-width: thin;
}

.amazon-commission-tiles--inline .amazon-commission-tile {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
}

.amazon-commission-tile {
    cursor: pointer;
}

.amazon-commission-tile--active {
    border-color: rgba(115, 134, 55, 0.5) !important;
    background: rgba(115, 134, 55, 0.08) !important;
    color: #738637 !important;
    box-shadow: 0 0 0 1px rgba(115, 134, 55, 0.25);
}

.amazon-commission-tile:focus-visible {
    outline: 2px solid rgba(115, 134, 55, 0.45);
    outline-offset: 2px;
}

/* ── Sync-Status-Badge ──────────────────────────────────────── */
.sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 9999px;
}

.sync-badge.connected {
    background: rgba(115, 134, 55, 0.12);
    color: #4A5428;
}

.sync-badge.waiting {
    background: rgba(47, 53, 59, 0.08);
    color: rgba(47, 53, 59, 0.5);
}

/* Tool-Zugang im Header: gleiche abgerundete Pill wie Pseudonym / Klientenname (.sync-badge) */
.vitinn-tool-access-badge {
    max-width: min(92vw, 20rem);
    min-width: 0;
}

.vitinn-tool-access-badge .vitinn-tool-access-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Abweichender Klientenzugang: Rost/Rot (!important wg. Tailwind-CDN-Reihenfolge / Utilities) */
#vitinn-tool-access-status.sync-badge.vitinn-tool-access-badge.vitinn-tool-access-badge--nomatch {
    background-color: rgba(138, 74, 58, 0.22) !important;
    color: #5c2619 !important;
}

/* ── Sections ────────────────────────────────────────────────── */
.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #738637;
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

/* ── Portrait Frame ──────────────────────────────────────────── */
.portrait-wrap {
    position: relative;
    display: inline-block;
}

.portrait-wrap::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid rgba(115, 134, 55, 0.25);
    z-index: 0;
    pointer-events: none;
}

.portrait-wrap img,
.portrait-wrap .portrait-placeholder {
    position: relative;
    z-index: 1;
}

/* ── Cal.com Widget Wrapper ─────────────────────────────────── */
.cal-wrapper {
    min-height: 600px;
    border: 1px solid rgba(47, 53, 59, 0.1);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ══ Print / PDF-Export ══════════════════════════════════════ */
@media print {
    /* Globales Reset */
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

    /* Seitennavigation, Footer, nicht druckbare Elemente */
    #site-header,
    #header-spacer,
    footer,
    nav,
    .no-print { display: none !important; }

    body {
        background: #ffffff !important;
        color: #2F353B !important;
        font-size: 11pt;
    }

    /* Lebensrad: Sidebar ausblenden, Chart zentrieren */
    #sidebar,
    #lr-toolbar,
    #sidebar-toggle,
    #chart-legend { display: none !important; }

    #lr-main {
        display: block !important;
        overflow: visible !important;
    }

    #chart-wrap {
        width: 100% !important;
        max-width: 540px;
        margin: 0 auto;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    #print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 1.2rem;
        padding-bottom: 0.8rem;
        border-bottom: 1px solid rgba(47,53,59,0.15);
    }

    #print-header h1 {
        font-family: 'Montserrat', sans-serif;
        font-weight: 300;
        font-size: 18pt;
        color: #2F353B;
    }

    #print-header p {
        font-size: 10pt;
        color: rgba(47,53,59,0.5);
        margin-top: 4px;
    }

    /* Investment-Validator: nur Expert-Report */
    body.iv-printing > *:not(#iv-print-report) { display: none !important; }
    body.iv-printing #iv-print-report {
        display: block !important;
        position: static !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .iv-no-print { display: none !important; }

    /* Chart-Canvas: maximale Nutzung des Seitenbereichs */
    #lr-canvas {
        max-width: 480px !important;
        max-height: 480px !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Seitenränder */
    @page {
        margin: 15mm 12mm;
        size: A4 portrait;
    }
}

/* ── KI-Datenquellen Toggle-Schalter ──────────────────────────── */
.ai-chk {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 14px;
    background: rgba(47, 53, 59, .12);
    border-radius: 7px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 180ms ease;
    outline: none;
}
.ai-chk::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
    transition: transform 180ms ease;
}
.ai-chk:checked {
    background: rgba(115, 134, 55, .45);
}
.ai-chk:checked::after {
    transform: translateX(14px);
}
.ai-chk:disabled {
    opacity: .3;
    cursor: not-allowed;
}

/* KI-Generierung: unbestimmter Fortschrittsbalken */
.ai-progress-track {
    height: 3px;
    width: 100%;
    background: rgba(47, 53, 59, 0.08);
    border-radius: 2px;
    overflow: hidden;
}
.ai-progress-fill {
    height: 100%;
    width: 35%;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(115, 134, 55, 0.35), #738637, rgba(115, 134, 55, 0.35));
    background-size: 200% 100%;
    animation: ai-progress-slide 1.25s ease-in-out infinite;
}
@keyframes ai-progress-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(320%); }
}

/* Nordstern-Editor (Coach): Mini-Toolbar */
.ai-fmt-btn {
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.35rem;
    font-size: 0.75rem;
    line-height: 1;
    border: 1px solid rgba(47, 53, 59, 0.12);
    background: rgba(255, 255, 255, 0.85);
    color: rgba(47, 53, 59, 0.65);
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.ai-fmt-btn:hover {
    border-color: rgba(115, 134, 55, 0.45);
    color: #738637;
    background: rgba(115, 134, 55, 0.06);
}

/* Placeholder für leeres contenteditable */
.ai-report-editor-html:empty::before {
    content: attr(data-placeholder);
    color: rgba(47, 53, 59, 0.28);
    pointer-events: none;
}

/* Dashboard-Timer: SVG/Overlay nehmen keine Klicks an (vermeidet Treffer auf darunterliegendem Klienten-Frame) */
.coach-timer-dash--dashboard .vct-ring-svg--dashboard {
    pointer-events: none;
}
.coach-timer-dash--dashboard .vct-media-bar--dashboard {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}
/* Dashboard-Timer: Steuerung 2×2, fest klein (wächst nicht mit dem Kreis) */
.coach-timer-dash--dashboard .vct-media-bar--dashboard.vct-media-bar--grid2 {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.22rem;
    width: auto;
    border-radius: 0.5rem;
    padding: 0.25rem 0.3rem;
    justify-items: center;
}
.coach-timer-dash--dashboard .vct-media-bar--grid2 .vct-media-btn {
    width: 1.65rem;
    height: 1.65rem;
    min-width: 1.65rem;
    min-height: 1.65rem;
}
.coach-timer-dash--dashboard .vct-media-bar--grid2 .vct-media-btn svg {
    width: 12px;
    height: 12px;
}

/* Coach-Sitzungstimer: Medien-Steuerung (aktiv = Moss, aktivierbar = Basalt, blass = disabled) */
.vct-media-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    border-radius: 9999px;
    background: linear-gradient(180deg, rgba(249, 249, 247, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
    border: 1px solid rgba(47, 53, 59, 0.1);
    box-shadow: 0 1px 2px rgba(47, 53, 59, 0.04);
}
.vct-media-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 9999px;
    border: 1px solid rgba(47, 53, 59, 0.22);
    background: linear-gradient(180deg, #fff 0%, rgba(249, 249, 247, 0.95) 100%);
    color: #2f353b;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease,
        background 0.15s ease,
        opacity 0.15s ease;
    box-shadow: 0 1px 1px rgba(47, 53, 59, 0.06);
}
.vct-media-btn:hover:not(:disabled):not(.vct-media-btn--on) {
    border-color: rgba(47, 53, 59, 0.35);
    background: linear-gradient(180deg, #fff 0%, rgba(249, 249, 247, 1) 100%);
    box-shadow: 0 2px 5px rgba(47, 53, 59, 0.07);
}
.vct-media-btn:active:not(:disabled) {
    transform: scale(0.94);
}
.vct-media-btn:disabled {
    opacity: 0.28;
    cursor: default;
    color: rgba(47, 53, 59, 0.35);
    border-color: rgba(47, 53, 59, 0.1);
    background: rgba(249, 249, 247, 0.5);
    box-shadow: none;
}
.vct-media-btn--on {
    border-color: #738637;
    background: linear-gradient(180deg, #7d9040 0%, #738637 55%, #657a30 100%);
    color: #f9f9f7;
    box-shadow: 0 1px 3px rgba(74, 84, 40, 0.35);
}
.vct-media-btn--on:hover:not(:disabled) {
    border-color: #657a30;
    background: linear-gradient(180deg, #85963f 0%, #657a30 100%);
    color: #fff;
}
.vct-media-btn--on:disabled {
    opacity: 0.28;
}
.vct-media-btn svg {
    pointer-events: none;
}
/* Dauer-Eingabe im Kreis: optisch wie reine Zeitanzeige */
.vct-time-duration-edit::placeholder {
    color: rgba(47, 53, 59, 0.35);
}
