/* ==========================================================================
   M:AIO SOMA — MONOCHROME BETHKE-PARITY MINIMALISM (v7.0)
   100% Monochrom · Null Deko-Icons · Null Emojis · 1-Screen 100dvh Standard
   ========================================================================== */

:root {
    --bg-stage: #151210;
    --bg-veil: rgba(21, 18, 16, 0.84);
    --bg-modal-solid: rgba(24, 20, 18, 0.96);
    --text-main: #f5efe7;
    --text-muted: rgba(245, 239, 231, 0.72);
    --text-dim: rgba(235, 215, 198, 0.50);
    --accent: #d99675;
    --hairline: rgba(235, 215, 198, 0.16);
    --hairline-strong: rgba(235, 215, 198, 0.34);
    --work-shade: rgba(217, 150, 117, 0.14);
    --work-full-shade: rgba(217, 150, 117, 0.09);
    --btn-bg: #ebe1d6;
    --btn-fg: #1c1714;
    --btn-sec-bg: rgba(235, 225, 214, 0.10);
    --btn-sec-fg: #f5efe7;
    --input-bg: rgba(235, 225, 214, 0.08);

    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Grotesk', monospace;
}

body.light-mode {
    --bg-stage: #f4efe8;
    --bg-veil: rgba(244, 239, 232, 0.92);
    --bg-modal-solid: #faf7f2;
    --text-main: #2a231e;
    --text-muted: #61554c;
    --text-dim: #83756a;
    --accent: #a35c3e;
    --hairline: rgba(42, 35, 30, 0.14);
    --hairline-strong: rgba(42, 35, 30, 0.30);
    --work-shade: rgba(42, 35, 30, 0.08);
    --work-full-shade: rgba(42, 35, 30, 0.045);
    --btn-bg: #2f2620;
    --btn-fg: #faf7f2;
    --btn-sec-bg: rgba(47, 38, 32, 0.06);
    --btn-sec-fg: #2a231e;
    --input-bg: #faf7f2;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden !important;
    font-family: var(--font-main);
    background-color: var(--bg-stage);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.25s ease, color 0.25s ease;
}

button, input, textarea {
    font-family: inherit;
}

/* ================= FIXED TOP HEADER BAR (BETHKE STANDARD) ================= */
#top-header-bar {
    position: fixed;
    top: clamp(7px, 1.1dvh, 14px);
    left: clamp(16px, 2.6vw, 28px);
    right: clamp(16px, 2.6vw, 28px);
    z-index: 250000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.header-balance-spacer {
    width: clamp(36px, 5dvh, 46px);
    height: clamp(36px, 5dvh, 46px);
    flex-shrink: 0;
}

body.modal-open #top-header-bar {
    display: none !important;
}

#header-soma-logo {
    height: clamp(38px, 6dvh, 52px);
    display: flex;
    align-items: center;
    pointer-events: auto;
    user-select: none;
}

#header-soma-logo img {
    height: clamp(36px, 5.6dvh, 50px);
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.65));
}

body.light-mode #header-soma-logo img {
    filter: drop-shadow(0 2px 10px rgba(42, 35, 30, 0.14)) invert(1) brightness(0.18);
}

#header-soma-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(28px, 4.4dvh, 38px);
    font-weight: 900;
    letter-spacing: -1.4px;
    line-height: 1;
    text-transform: uppercase;
    color: #f5efe7;
    text-shadow: 0 4px 18px rgba(10, 7, 5, 0.72);
    user-select: none;
}

body.light-mode #header-soma-title {
    color: #2a231e;
    text-shadow: none;
}

.theme-circle-btn {
    width: clamp(36px, 5dvh, 46px);
    height: clamp(36px, 5dvh, 46px);
    border-radius: 50%;
    background: rgba(28, 23, 20, 0.84);
    border: 1px solid rgba(217, 150, 117, 0.34);
    color: #f5efe7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.theme-circle-btn svg {
    width: 18px;
    height: 18px;
}

.theme-circle-btn:hover {
    transform: scale(1.06);
}

body.light-mode .theme-circle-btn {
    background: rgba(250, 247, 242, 0.92);
    border-color: rgba(163, 92, 62, 0.28);
    color: #2a231e;
}

.icon-sun { display: none; }
.icon-moon { display: block; }
body.light-mode .icon-sun { display: block; }
body.light-mode .icon-moon { display: none; }

/* ================= MAIN 3-HERO-KARTEN LANDING STAGE ================= */
.landing-hero-section {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-stage);
    padding: clamp(46px, 6.4dvh, 58px) 0 clamp(22px, 2.8dvh, 26px) 0;
    position: relative;
}

.hero-grid-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 2px 20px;
    width: 100vw;
    flex: 1;
    min-height: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.hero-grid-container::-webkit-scrollbar { display: none; }

.hero-card {
    position: relative;
    flex: 0 0 84vw;
    max-width: 420px;
    height: 100%;
    scroll-snap-align: center;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(235, 215, 198, 0.18);
    background: #151210;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(24px, 4dvh, 42px) clamp(22px, 3vw, 34px);
    cursor: pointer;
    box-shadow: 0 22px 60px rgba(10, 7, 5, 0.82);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    user-select: none;
}

body.light-mode .hero-card {
    border-color: rgba(42, 35, 30, 0.14);
    box-shadow: 0 18px 44px rgba(42, 35, 30, 0.11);
}

.hero-card:hover {
    border-color: rgba(217, 150, 117, 0.45);
}

.hero-card-media {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    opacity: 0.85;
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.hero-card:hover .hero-card-media {
    opacity: 0.96;
    transform: scale(1.03);
}

.hero-card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(35%) sepia(24%) saturate(95%) contrast(1.03);
}

.hero-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(21, 18, 16, 0.12) 0%, rgba(21, 18, 16, 0.38) 48%, rgba(21, 18, 16, 0.94) 100%);
    pointer-events: none;
}

.hero-card-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
}

.card-title {
    font-size: clamp(32px, 5dvh, 42px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1;
    text-transform: uppercase;
    color: #f5efe7;
}

.card-desc {
    font-size: clamp(13px, 1.75dvh, 14.5px);
    font-weight: 300;
    line-height: 1.48;
    color: rgba(245, 239, 231, 0.86);
}

.unboxed-footer-link {
    position: fixed;
    bottom: clamp(7px, 1.1dvh, 11px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 2px 8px;
}
.unboxed-footer-link:hover {
    color: var(--text-main);
}

.hero-scroll-track {
    width: 84px;
    height: 1.5px;
    margin-top: 6px;
    background: var(--hairline);
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}
.hero-scroll-thumb {
    display: block;
    width: 33.333%;
    height: 100%;
    background: var(--text-main);
    border-radius: 999px;
    transform: translateX(0%);
    transition: transform 0.12s linear;
}

@media (min-width: 1025px) {
    .hero-scroll-track { display: none; }
    .landing-hero-section {
        padding: 64px 24px 28px 24px;
    }
    .hero-grid-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        max-width: 1760px;
        width: 100%;
        padding: 0;
        overflow: visible;
    }
    .hero-card {
        flex: initial;
        max-width: none;
    }
    .hero-card:hover {
        transform: translateY(-4px);
    }
}

/* ================= FULLSCREEN DETAIL MODALS (KEINE TABS, 100% MONOCHROM) ================= */
.full-overlay-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 100000;
    background: var(--bg-stage);
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
}

.full-overlay-modal.active {
    display: flex;
}
@keyframes somaModalReveal {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.full-overlay-modal.active .detail-frame,
.full-overlay-modal.active .calendar-frame {
    animation: somaModalReveal 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.detail-bg-video,
.detail-bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.detail-bg-video {
    z-index: 1;
    opacity: 0.56;
    filter: grayscale(35%) sepia(22%) saturate(92%) contrast(1.04);
}

body.light-mode .detail-bg-video {
    opacity: 0.56;
    filter: grayscale(35%) sepia(22%) saturate(90%) contrast(1.02) brightness(1.02);
}

.detail-bg-canvas {
    z-index: 2;
    opacity: 0.55;
}

.detail-backdrop-veil {
    position: fixed;
    inset: 0;
    z-index: 3;
    background: linear-gradient(180deg, rgba(21, 18, 16, 0.60) 0%, rgba(21, 18, 16, 0.42) 50%, rgba(21, 18, 16, 0.72) 100%);
    pointer-events: none;
}

.detail-backdrop-veil.strong {
    background: linear-gradient(180deg, rgba(21, 18, 16, 0.68) 0%, rgba(21, 18, 16, 0.54) 50%, rgba(21, 18, 16, 0.74) 100%);
}

body.light-mode .detail-backdrop-veil {
    background: linear-gradient(180deg, rgba(244, 239, 232, 0.54) 0%, rgba(244, 239, 232, 0.38) 50%, rgba(244, 239, 232, 0.66) 100%);
}

body.light-mode .detail-backdrop-veil.strong {
    background: linear-gradient(180deg, rgba(244, 239, 232, 0.68) 0%, rgba(244, 239, 232, 0.56) 50%, rgba(244, 239, 232, 0.74) 100%);
}

/* ================= EINHEITLICHE ZENTRIERTE MODAL-TOPBAR ================= */
.modal-topbar {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding-bottom: clamp(6px, 1.2dvh, 12px);
    border-bottom: 1px solid var(--hairline);
    flex-shrink: 0;
}

.topbar-spacer {
    width: 40px;
    height: 38px;
}

.modal-center-title {
    margin: 0;
    text-align: center;
    font-size: clamp(17px, 2.5dvh, 22px);
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.1;
    color: var(--text-main);
    white-space: nowrap;
}

.modal-close-btn {
    position: static;
    justify-self: end;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--btn-sec-bg);
    border: 1px solid var(--hairline-strong);
    color: var(--text-main);
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background: var(--btn-bg);
    color: var(--btn-fg);
}

.modal-theme-btn {
    position: relative;
    justify-self: start;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--btn-sec-bg);
    border: 1px solid var(--hairline-strong);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-theme-btn svg:not(.theme-lock-ring) {
    width: 17px;
    height: 17px;
}

.modal-theme-btn:hover {
    background: var(--btn-bg);
    color: var(--btn-fg);
}

.modal-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
}

/* Detail Frame (Check-Up & Balance: Mobile-First 100dvh, Pure Hairline Typography) */
.detail-frame {
    position: relative;
    z-index: 10;
    width: 92vw;
    max-width: 540px;
    height: 100vh;
    height: 100dvh;
    padding: clamp(14px, 2.2dvh, 26px) 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(8px, 1.5dvh, 18px);
    overflow: hidden;
}

@media (min-width: 768px) {
    .detail-frame {
        max-width: 780px;
        height: min(92dvh, 760px);
        padding: clamp(18px, 2.8dvh, 30px) clamp(12px, 2vw, 24px);
    }
    .balance-frame {
        max-width: 680px;
    }
}

.detail-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
}

/* Detailseite 1: CHECK-UP (3-KARTEN-STORY, ZITAT & 10S SILHOUETTE-LOOP) */
#modal-checkup {
    touch-action: pan-y;
    user-select: none;
}

.checkup-frame {
    gap: clamp(8px, 1.5dvh, 14px);
}

.checkup-story-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(10px, 1.8dvh, 16px);
}

.story-viewport {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: stretch;
    gap: 10px;
}

@keyframes storyCardInNext {
    from { opacity: 0.45; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes storyCardInPrev {
    from { opacity: 0.45; transform: translateX(-18px); }
    to { opacity: 1; transform: translateX(0); }
}

.story-card {
    flex: 1;
    min-width: 0;
    min-height: 0;
    border-radius: 26px;
    border: 1px solid var(--hairline-strong);
    background: linear-gradient(180deg, rgba(20, 22, 29, 0.88) 0%, rgba(9, 10, 14, 0.96) 100%);
    padding: clamp(16px, 2.4dvh, 26px) clamp(16px, 4.2vw, 26px) clamp(12px, 1.6dvh, 18px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(8px, 1.4dvh, 14px);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.story-card.slide-next { animation: storyCardInNext 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.story-card.slide-prev { animation: storyCardInPrev 0.2s cubic-bezier(0.16, 1, 0.3, 1); }

body.light-mode .story-card {
    background: linear-gradient(180deg, rgba(250, 247, 242, 0.96) 0%, rgba(244, 239, 232, 0.98) 100%);
    box-shadow: 0 14px 36px rgba(42, 35, 30, 0.08);
}

.story-quote-block {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(5px, 0.9dvh, 9px);
}

.story-kicker {
    letter-spacing: 1.8px;
}

.story-quote {
    font-size: clamp(20px, 3.25dvh, 29px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.55px;
    color: var(--text-main);
}

.story-subline {
    font-size: clamp(12.5px, 1.75dvh, 15px);
    font-weight: 400;
    line-height: 1.38;
    color: var(--text-muted);
}

.story-peek {
    appearance: none;
    width: 24px;
    flex-shrink: 0;
    border-radius: 18px;
    border: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18px;
    cursor: pointer;
    transition: width 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

body.light-mode .story-peek {
    background: rgba(42, 35, 30, 0.03);
}

.story-peek:hover {
    border-color: var(--hairline-strong);
    color: var(--text-main);
}

.story-peek.is-hidden {
    width: 0;
    min-width: 0;
    border-width: 0;
    padding: 0;
    margin-left: -10px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.silhouette-stage {
    position: relative;
    flex: 1;
    min-height: clamp(148px, 33dvh, 360px);
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--hairline);
    background: radial-gradient(circle at 50% 44%, #1e1916 0%, #161310 60%, #151210 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.silhouette-stage.has-video {
    background: #151210;
}

body.light-mode .silhouette-stage {
    background: radial-gradient(circle at 50% 42%, rgba(42, 35, 30, 0.035) 0%, rgba(42, 35, 30, 0.01) 62%, rgba(42, 35, 30, 0.04) 100%);
}

body.light-mode .silhouette-stage.has-video {
    background: #faf7f2;
}

.silhouette-loop-video,
.silhouette-loop-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.silhouette-loop-video {
    object-fit: contain;
    background: #151210;
    filter: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.silhouette-stage.has-video .silhouette-loop-video {
    opacity: 1;
}

.silhouette-stage.has-video .silhouette-loop-canvas {
    opacity: 0;
}

body.light-mode .silhouette-loop-video {
    background: #faf7f2;
    filter: invert(1) sepia(16%) contrast(1.04);
}

/* Native High-Key Monochrom-Videobibliothek (16:9 reines Weiß -> nahtlos im Light & Dark Mode) */
.training-silhouette-stage.has-light-studio-video .silhouette-loop-video {
    object-fit: contain;
    background: transparent;
    filter: grayscale(65%) sepia(16%) contrast(1.08) brightness(1.02);
}
body:not(.light-mode) .training-silhouette-stage.has-light-studio-video .silhouette-loop-video {
    background: transparent;
    filter: grayscale(65%) sepia(14%) invert(1) contrast(1.12);
}
.training-silhouette-stage.has-light-studio-video .silhouette-loop-track {
    display: none;
}

.studio-cli-hint {
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-muted);
    border-left: 1px solid var(--hairline-strong);
    padding: 4px 0 4px 10px;
}

.studio-cli-hint code {
    display: block;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-main);
    word-break: break-all;
}

.silhouette-loop-track {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 8px;
    height: 1.5px;
    border-radius: 999px;
    background: var(--hairline);
    overflow: hidden;
    pointer-events: none;
}

.silhouette-loop-bar {
    display: block;
    width: 0%;
    height: 100%;
    background: var(--text-main);
    opacity: 0.72;
}

.story-footer {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.3dvh, 12px);
    flex-shrink: 0;
}

.story-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.story-dot-btn {
    appearance: none;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: none;
    background: var(--hairline-strong);
    cursor: pointer;
    transition: width 0.22s ease, background-color 0.22s ease;
}

.story-dot-btn.active {
    width: 24px;
    background: var(--text-main);
}

.story-next-btn {
    width: 100%;
    height: clamp(44px, 6dvh, 48px);
    font-size: 13.5px;
}

.section-cap {
    font-family: var(--font-mono);
    font-size: clamp(9.5px, 1.25dvh, 11px);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-dim);
    text-transform: uppercase;
    flex-shrink: 0;
}

/* ================= DETAILSEITE 2: TRAINING MONATS-KALENDER (MONATSWISCHEN) ================= */
#modal-training {
    touch-action: none;
    user-select: none;
}

.calendar-frame {
    position: relative;
    z-index: 10;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: clamp(12px, 2dvh, 22px) clamp(8px, 2vw, 24px);
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.4dvh, 14px);
    overflow: hidden;
    touch-action: none;
}

@media (min-width: 1024px) {
    .calendar-frame {
        width: min(95vw, 1360px);
        height: min(92dvh, 770px);
        padding: 18px 24px;
    }
}

.cal-topbar-clean {
    border-bottom: none;
    padding-bottom: 0;
}

@keyframes calSlideNext {
    from { opacity: 0.55; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes calSlidePrev {
    from { opacity: 0.55; transform: translateX(-18px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes calSlideUp {
    from { opacity: 0.55; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes calSlideDown {
    from { opacity: 0.55; transform: translateY(-22px); }
    to { opacity: 1; transform: translateY(0); }
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: 20px repeat(var(--month-rows, 5), 1fr);
    gap: clamp(2px, 0.45vw, 5px);
    width: 100%;
    flex: 1;
    min-height: 0;
    touch-action: none;
    will-change: transform, opacity;
}

.month-grid.slide-next {
    animation: calSlideNext 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.month-grid.slide-prev {
    animation: calSlidePrev 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.month-grid.slide-up {
    animation: calSlideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.month-grid.slide-down {
    animation: calSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.month-cell-header {
    text-align: center;
    font-family: var(--font-mono);
    font-size: clamp(9.5px, 1.3dvh, 11px);
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.month-cell {
    position: relative;
    border: 1px solid var(--hairline);
    border-radius: clamp(5px, 0.8vw, 9px);
    height: 100%;
    min-height: 0;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    transition: border-color 0.15s ease;
}

.month-cell:hover {
    border-color: var(--hairline-strong);
}

.month-cell.is-today {
    border: 1.5px solid var(--text-main);
}

.month-cell.is-other-month {
    opacity: 0.28;
}
.month-cell.is-beyond-horizon .month-cell-num {
    opacity: 0.42;
}
body.light-mode .month-cell {
    background: rgba(250, 247, 242, 0.78);
    border-color: rgba(42, 35, 30, 0.14);
}
body.light-mode .month-cell.is-shift-full {
    background: var(--work-full-shade);
}
body.light-mode .month-cell.is-other-month {
    opacity: 0.42;
}
body.light-mode .month-cell.is-beyond-horizon .month-cell-num {
    opacity: 0.46;
}

.month-cell.is-shift-full {
    background: var(--work-full-shade);
}

.month-cell-top {
    position: absolute;
    top: 2px;
    left: 3px;
    right: 3px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
}

.month-cell-num {
    font-size: clamp(9px, 1.3dvh, 11.5px);
    font-weight: 800;
    color: var(--text-muted);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.month-cell-num.is-today-badge {
    background: var(--text-main);
    color: var(--bg-stage);
    width: clamp(14px, 2dvh, 19px);
    height: clamp(14px, 2dvh, 19px);
    border-radius: 50%;
    font-size: clamp(8.5px, 1.15dvh, 10.5px);
}

.month-cell-thirds {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    z-index: 1;
    pointer-events: none;
}

.month-third {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.08);
    min-height: 0;
}
.month-third:first-child {
    align-items: flex-end;
    padding-bottom: 2px;
}
.month-third:last-child { border-bottom: none; }

@media (max-width: 640px) {
    .month-third:first-child {
        padding-top: 13px;
        align-items: center;
        padding-bottom: 0;
    }
}

.month-third.work {
    background: var(--work-shade);
}

.month-third-label {
    font-family: var(--font-main);
    font-size: clamp(8.5px, 1.3vw, 12px);
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.month-third-label.strong {
    font-weight: 800;
    color: var(--text-main);
}

@media (max-width: 560px) {
    .month-third-label {
        font-size: 7.5px;
        letter-spacing: -0.25px;
    }
}

/* ================= GEFÜHRTER TAGES-PLAYER (OPTION B + 10S ÜBUNGS-SILHOUETTE) ================= */
.day-player-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg-stage);
    touch-action: pan-y;
    user-select: none;
}

.day-player-overlay.open {
    display: flex;
    animation: somaModalReveal 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.light-mode .day-player-overlay {
    background: #ffffff;
}

.day-player-frame {
    gap: clamp(8px, 1.35dvh, 14px);
}

.day-player-topbar {
    grid-template-columns: 84px 1fr 84px;
    border-bottom: none;
    padding-bottom: 0;
}

.topbar-back-btn {
    appearance: none;
    justify-self: start;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--hairline-strong);
    background: var(--btn-sec-bg);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.topbar-back-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.topbar-back-btn:hover {
    background: var(--btn-bg);
    color: var(--btn-fg);
    border-color: var(--btn-bg);
}

.player-progress-track {
    display: none !important;
}

.player-progress-fill {
    width: 25%;
    height: 100%;
    background: var(--text-main);
    transition: width 0.22s ease;
}

.day-player-workout {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(8px, 1.4dvh, 14px);
}

.day-player-head {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(3px, 0.65dvh, 6px);
}

.day-player-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.day-player-title-row .player-ex-name {
    min-width: 0;
}

.player-step-count {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--text-dim);
    white-space: nowrap;
    flex-shrink: 0;
}

.day-player-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.day-player-meta-row .section-cap {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-step-pill {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--hairline-strong);
    background: transparent;
    color: var(--text-main);
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.player-step-pill:disabled {
    opacity: 0.25;
    cursor: default;
}

.player-time-chip {
    display: none;
}

.player-ex-name {
    font-size: clamp(23px, 3.6dvh, 33px);
    font-weight: 900;
    letter-spacing: -0.7px;
    line-height: 1.08;
    color: var(--text-main);
}

.player-ex-vol {
    font-family: var(--font-mono);
    font-size: clamp(14px, 2.15dvh, 18px);
    font-weight: 700;
    color: var(--text-main);
}

.player-ex-cue {
    font-size: clamp(12.5px, 1.75dvh, 15px);
    line-height: 1.36;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.player-ex-why,
.player-ex-rule {
    display: none !important;
}

.day-player-sets {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0;
    border: none;
    flex-shrink: 0;
    min-height: 36px;
}

.day-sets-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: nowrap;
}

.day-set-btn {
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--hairline-strong);
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.day-set-btn.done {
    background: var(--btn-bg);
    color: var(--btn-fg);
    border-color: var(--btn-bg);
}

.day-set-rest,
.day-block-timer {
    appearance: none;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--hairline-strong);
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.day-block-timer.active {
    background: var(--btn-bg);
    color: var(--btn-fg);
    border-color: var(--btn-bg);
}

.day-sets-tempo {
    font-family: var(--font-mono);
    font-size: clamp(10px, 1.3dvh, 11.5px);
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    min-width: 0;
}

.training-silhouette-stage,
.training-silhouette-stage.has-video,
body.light-mode .training-silhouette-stage,
body.light-mode .training-silhouette-stage.has-video {
    min-height: clamp(138px, 31dvh, 360px);
    border: none;
    border-radius: 0;
    background: transparent;
}

.day-player-rest {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.day-rest-note {
    font-size: clamp(14px, 2dvh, 17px);
    line-height: 1.45;
    color: var(--text-muted);
}

.day-player-actions {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 10px;
    flex-shrink: 0;
}

.day-player-actions.single-col {
    grid-template-columns: 1fr;
}

.day-player-actions button {
    height: clamp(44px, 6dvh, 48px);
    font-size: 13px;
}

/* ================= DETAILSEITE 3: BALANCE (1 BESPROCHENE ATEMÜBUNG + MOMENT-IMPULS) ================= */
#modal-balance {
    touch-action: pan-y;
    user-select: none;
}

.balance-frame {
    position: relative;
    z-index: 10;
    gap: clamp(8px, 1.3dvh, 14px);
}

.balance-frame .modal-topbar,
.balance-moment-block,
.balance-day-nav,
.breath-caption-block,
.breath-sound-btn {
    transition: opacity 0.28s ease;
}

.full-overlay-modal.breathing-active .balance-day-nav {
    opacity: 0.45;
}

.balance-day-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 24px;
    padding: 0 4px;
    border-bottom: 1px solid var(--hairline);
    max-width: 100%;
}

.balance-day-step {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.15s ease;
}

.balance-day-step:hover {
    color: var(--text-main);
}

.balance-day-kicker {
    font-family: var(--font-mono);
    font-size: clamp(9.5px, 1.25dvh, 11px);
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.full-overlay-modal.breathing-active .modal-topbar {
    border-bottom-color: transparent;
}
.full-overlay-modal.breathing-active .modal-center-title {
    opacity: 0.48;
}
.full-overlay-modal.breathing-active .breath-caption-block {
    opacity: 0.46;
    transition: opacity 0.4s ease;
}
.full-overlay-modal.breathing-active .balance-moment-block {
    opacity: 0.30;
    pointer-events: none;
}

.balance-oasis-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4px, 1dvh, 10px) 0;
}

.breath-instrument {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.4dvh, 14px);
}

.breath-dial-box {
    position: relative;
    width: min(55vw, 30dvh, 264px);
    height: min(55vw, 30dvh, 264px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.breath-dial-btn {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: inherit;
    border-radius: 50%;
}

.breath-instrument-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.breath-svg-track {
    fill: none;
    stroke: var(--hairline);
    stroke-width: 1;
}
.breath-svg-tick {
    stroke: var(--hairline-strong);
    stroke-width: 1;
    stroke-linecap: round;
    opacity: 0.45;
}
.breath-svg-tick.major {
    stroke: var(--text-dim);
    stroke-width: 1.2;
    opacity: 0.85;
}
.breath-svg-arc {
    fill: none;
    stroke: var(--text-main);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 779.115;
    stroke-dashoffset: 779.115;
}
.breath-svg-echo {
    fill: none;
    stroke: var(--hairline-strong);
    stroke-width: 0.8;
    stroke-dasharray: 2 4;
    opacity: 0.55;
}
.breath-svg-core {
    fill: var(--bg-modal-solid);
    fill-opacity: 0.68;
    stroke: var(--text-main);
    stroke-width: 1.3;
}
body.light-mode .breath-svg-core {
    fill: rgba(255, 255, 255, 0.9);
    fill-opacity: 0.9;
}

.instr-layer {
    display: none;
}
#breath-orb-ring[data-instrument="breath_orb"] .instr-layer-breath,
#breath-orb-ring:not([data-instrument]) .instr-layer-breath {
    display: inline;
}
#breath-orb-ring[data-instrument="ankle_pump"] .instr-layer-ankle {
    display: inline;
}
#breath-orb-ring[data-instrument="cadence_pendulum"] .instr-layer-pendulum {
    display: inline;
}
#breath-orb-ring[data-instrument="isometric_gauge"] .instr-layer-iso {
    display: inline;
}

/* Ankle Pump (Paddel-Übung / Aktive Venenpumpe) */
.instr-flow-wave {
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.15;
    stroke-linecap: round;
    opacity: 0.52;
}
.instr-ankle-guide {
    fill: none;
    stroke: var(--hairline);
    stroke-width: 1;
    stroke-dasharray: 2 3;
}
.instr-paddle-blade {
    fill: var(--bg-modal-solid);
    fill-opacity: 0.72;
    stroke: var(--text-main);
    stroke-width: 1.3;
    stroke-linejoin: round;
}
body.light-mode .instr-paddle-blade {
    fill: rgba(255, 255, 255, 0.92);
    fill-opacity: 0.92;
}
.instr-paddle-axis {
    stroke: var(--hairline-strong);
    stroke-width: 1;
    stroke-linecap: round;
}
.instr-ankle-pivot {
    fill: var(--text-main);
}

/* Cadence Pendulum (240° monochrome arc rail + sweep + bead) */
.instr-pendulum-track {
    fill: none;
    stroke: var(--hairline-strong);
    stroke-width: 1.25;
    stroke-linecap: round;
}
.instr-pendulum-sweep {
    fill: none;
    stroke: var(--text-main);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-dasharray: 385.37;
    stroke-dashoffset: 385.37;
}
.instr-pendulum-stop {
    fill: var(--text-dim);
}
.instr-pendulum-echo {
    fill: none;
    stroke: var(--hairline-strong);
    stroke-width: 1;
    opacity: 0.7;
}
.instr-pendulum-bead {
    fill: var(--text-main);
    stroke: var(--bg-stage);
    stroke-width: 1.5;
}

/* Isometric Gauge (concentric tension rings + surgical crosshairs) */
.instr-iso-outer {
    fill: none;
    stroke: var(--text-main);
    stroke-width: 1.3;
    opacity: 0.78;
}
.instr-iso-inner {
    fill: var(--bg-modal-solid);
    fill-opacity: 0.45;
    stroke: var(--hairline-strong);
    stroke-width: 1.1;
    stroke-dasharray: 3 3;
}
body.light-mode .instr-iso-inner {
    fill: rgba(255, 255, 255, 0.72);
}
.instr-iso-tick {
    stroke: var(--text-main);
    stroke-width: 1.4;
    stroke-linecap: round;
    opacity: 0.55;
}

.balance-session-hud {
    font-family: var(--font-mono);
    font-size: clamp(10px, 1.35dvh, 11.5px);
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.2;
    min-height: 14px;
    white-space: nowrap;
}
.balance-session-hud.is-done {
    color: var(--text-main);
}
.full-overlay-modal.breathing-active .balance-session-hud {
    opacity: 0.88;
}

.breath-instrument-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 16px;
    pointer-events: none;
}

.breath-orb-phase {
    font-family: var(--font-mono);
    font-size: clamp(7.5px, 1.02dvh, 9.5px);
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--text-dim);
    text-transform: uppercase;
    max-width: 98px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.breath-orb-sec {
    font-family: var(--font-mono);
    font-size: clamp(26px, 4.4dvh, 38px);
    font-weight: 300;
    color: var(--text-main);
    line-height: 1.05;
}
.breath-orb-sec.compact {
    font-size: clamp(19px, 3.2dvh, 27px);
    letter-spacing: -0.5px;
}
.breath-orb-cue {
    font-size: clamp(9px, 1.2dvh, 10.5px);
    font-weight: 500;
    color: var(--text-muted);
    max-width: 96px;
    text-align: center;
    line-height: 1.2;
}

#breath-orb-ring[data-instrument="ankle_pump"] .breath-instrument-center {
    padding: 14px 25%;
}
#breath-orb-ring[data-instrument="ankle_pump"] .breath-orb-sec {
    font-size: clamp(20px, 3.3dvh, 28px);
}
#breath-orb-ring[data-instrument="ankle_pump"] .breath-orb-sec.compact {
    font-size: clamp(14px, 2.3dvh, 19px);
}
#breath-orb-ring[data-instrument="ankle_pump"] .breath-orb-phase,
#breath-orb-ring[data-instrument="ankle_pump"] .breath-orb-cue {
    max-width: 100%;
}

.breath-caption-block {
    text-align: center;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.breath-exercise-title {
    font-size: clamp(15.5px, 2.15dvh, 19px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.breath-prescribed-rhythm {
    font-family: var(--font-mono);
    font-size: clamp(11.5px, 1.55dvh, 13px);
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.3px;
}

.breath-prescribed-quote,
.balance-moment-why {
    display: none !important;
}

.breath-controls-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.breath-toggle-inline {
    min-width: 122px;
    height: clamp(38px, 5dvh, 44px);
}

.breath-sound-btn {
    background: transparent;
    border: 1px solid var(--hairline-strong);
    border-radius: 999px;
    height: clamp(38px, 5dvh, 44px);
    padding: 0 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.breath-sound-btn.active {
    background: var(--btn-bg);
    color: var(--btn-fg);
    border-color: var(--btn-bg);
}

.pill-outline-btn {
    appearance: none;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--hairline-strong);
    background: transparent;
    color: var(--text-main);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pill-outline-btn:hover {
    background: var(--btn-bg);
    color: var(--btn-fg);
    border-color: var(--btn-bg);
}

.balance-moment-block {
    border-top: 1px solid var(--hairline);
    padding-top: clamp(10px, 1.7dvh, 16px);
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.balance-moment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.balance-moment-meal {
    font-size: clamp(15px, 2.2dvh, 18.5px);
    font-weight: 700;
    line-height: 1.28;
    color: var(--text-main);
}

.balance-moment-why {
    font-size: clamp(12px, 1.6dvh, 13.5px);
    line-height: 1.38;
    color: var(--text-muted);
}

.mono-btn-primary {
    height: clamp(38px, 5dvh, 46px);
    padding: 0 18px;
    border-radius: 999px;
    border: none;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.mono-btn-sec {
    height: clamp(36px, 4.8dvh, 44px);
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--hairline-strong);
    background: var(--btn-sec-bg);
    color: var(--btn-sec-fg);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* ================= MINIMAL MONOCHROME DIALOG & STUDIO ================= */
.dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 200000;
    background: rgba(21, 18, 16, 0.74);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

body.light-mode .dialog-overlay {
    background: rgba(42, 35, 30, 0.35);
}

.dialog-overlay.open {
    display: flex;
}

.dialog-card {
    width: 100%;
    max-width: 440px;
    max-height: 92dvh;
    overflow-y: auto;
    scrollbar-width: none;
    background: var(--bg-modal-solid);
    border: 1px solid var(--hairline);
    border-radius: 20px;
    padding: clamp(14px, 2.4dvh, 20px) clamp(16px, 4vw, 20px);
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.4dvh, 12px);
    color: var(--text-main);
}
.dialog-card::-webkit-scrollbar { display: none; }

.dialog-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dialog-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.dialog-x-btn {
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
}
.dialog-x-btn:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

.dialog-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dialog-row-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dialog-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 13px;
    line-height: 1.4;
}
.dialog-item:last-child { border-bottom: none; }

.dialog-item strong {
    display: block;
    font-weight: 700;
}
.dialog-item span {
    color: var(--text-muted);
    font-size: 12px;
}

.dialog-item.dialog-meta-inline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}
.dialog-item.dialog-meta-inline strong {
    display: inline;
}

.day-ex-item {
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.day-ex-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.day-ex-head strong {
    font-size: 13px;
    line-height: 1.3;
}
.day-ex-sub {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11.5px;
    line-height: 1.35;
}
/* Klare Tages-Detailansicht im Kalenderdialog */
.day-schedule-block {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.day-schedule-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 12.5px;
    line-height: 1.35;
}

.day-schedule-row:last-child {
    border-bottom: none;
}

.day-sched-when {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.day-sched-what {
    font-weight: 600;
    color: var(--text-main);
}

.day-ex-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.day-why-line {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
}

.clean-ex-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--hairline);
}

.clean-ex-row {
    padding: clamp(5px, 0.9dvh, 8px) 0;
    border-bottom: 1px solid var(--hairline);
    cursor: default;
}

.clean-ex-row:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

.clean-ex-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.clean-ex-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.clean-ex-vol {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    flex-shrink: 0;
}

.clean-ex-cue {
    margin-top: 2px;
    font-size: 11.5px;
    line-height: 1.32;
    color: var(--text-muted);
}

@media (max-height: 740px) {
    .dialog-card { max-height: 94dvh; padding: 12px 14px; gap: 8px; }
    .dialog-body { gap: 8px; }
    .day-schedule-row { padding: 4px 0; font-size: 12px; }
    .clean-ex-row { padding: 4px 0; }
    .clean-ex-name { font-size: 12.5px; }
    .clean-ex-cue { font-size: 11px; line-height: 1.28; }
}

.dialog-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dialog-chip {
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.dialog-chip:hover {
    border-color: var(--hairline-strong);
    color: var(--text-main);
}

.studio-audio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline);
}
.studio-audio-timer {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
}

.profile-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text-main);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.profile-btn.active {
    border-color: var(--text-main);
}

.m-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.m-field-grid {
    display: grid;
    grid-template-columns: 1fr 86px;
    gap: 8px;
}
.m-field-grid.equal {
    grid-template-columns: 1fr 1fr;
}
@media (max-height: 740px) {
    .studio-audio-row { padding: 4px 0; }
    .m-field { gap: 2px; }
    .m-field label { font-size: 10px; }
    .m-input { height: 32px; font-size: 13px; border-radius: 8px; padding: 0 10px; }
}
.m-field label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}
.m-input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--hairline);
    background: var(--input-bg);
    color: var(--text-main);
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}
.m-input:focus {
    border-color: var(--hairline-strong);
}

.dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 4px;
}

/* Mobile Compact Polish <= 700px */
@media (max-height: 700px) {
    .detail-frame { padding: 10px 0; gap: 6px; }
    .story-card { padding: 14px 16px 10px; gap: 8px; border-radius: 22px; }
    .story-quote { font-size: 20px; }
    .story-subline { font-size: 12.5px; }
    .silhouette-stage { min-height: 168px; }
    .training-silhouette-stage { min-height: 136px; }
    .day-player-workout { gap: 6px; }
    .day-player-head { gap: 3px; }
    .player-ex-name { font-size: 21px; }
    .player-ex-vol { font-size: 13.5px; }
    .player-ex-cue { font-size: 12px; line-height: 1.3; }
    .player-ex-why { display: none !important; }
    .day-player-sets { padding: 4px 0; min-height: 32px; }
    .day-set-btn { width: 26px; height: 26px; font-size: 10.5px; }
    .breath-instrument { gap: 6px; }
    .breath-dial-box { width: min(48vw, 27dvh, 200px); height: min(48vw, 27dvh, 200px); }
    .breath-exercise-title { font-size: 14.5px; }
    .breath-prescribed-rhythm { font-size: 11px; }
    .breath-prescribed-quote { font-size: 11.5px; line-height: 1.28; }
    .balance-session-hud { font-size: 10px; }
    .breath-toggle-inline, .breath-sound-btn { height: 36px; }
    .balance-moment-block { padding-top: 6px; gap: 3px; }
    .balance-moment-meal { font-size: 14px; }
    .balance-moment-why { font-size: 11.5px; line-height: 1.3; }
}

/* ==========================================================================
   SCHWARZWALD PRAXIS UNIFIED PORTAL (v15.0 — MONOCHROME 100dvh)
   ========================================================================== */
.praxis-fineline-logo {
    height: clamp(34px, 4.8dvh, 44px);
    width: auto;
    display: flex;
    align-items: center;
    color: #f5efe7;
    pointer-events: auto;
    user-select: none;
    transition: color 0.25s ease;
}

body.light-mode .praxis-fineline-logo {
    color: #2f2620;
}

.praxis-fineline-logo svg {
    height: 100%;
    width: auto;
    display: block;
    overflow: visible;
}

.portal-footer-bar {
    position: fixed;
    bottom: clamp(6px, 1dvh, 11px);
    left: clamp(16px, 2.6vw, 28px);
    right: clamp(16px, 2.6vw, 28px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    white-space: nowrap;
}

.portal-footer-bar .unboxed-inline-link {
    pointer-events: auto;
}

/* PORTAL EDGE-TO-EDGE HERO CARDS (FIXIERTES LOGO & THEME-ICON ÜBER GLEITENDEN KARTEN) */
.landing-hero-section.portal-edge-hero {
    padding: clamp(10px, 1.5dvh, 16px) 0 clamp(10px, 1.4dvh, 14px) 0;
}

.portal-edge-hero .hero-card {
    justify-content: flex-end;
    padding: clamp(18px, 2.5dvh, 26px) clamp(18px, 3vw, 28px) clamp(22px, 3.2dvh, 32px);
}

.portal-edge-hero .hero-card-overlay {
    background: linear-gradient(
        180deg,
        rgba(21, 18, 16, 0.44) 0%,
        rgba(21, 18, 16, 0.14) 24%,
        rgba(21, 18, 16, 0.38) 54%,
        rgba(21, 18, 16, 0.94) 100%
    );
}

.portal-fixed-chrome,
#top-header-bar.portal-fixed-chrome {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + clamp(26px, 3.8dvh, 40px));
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    justify-content: center;
    padding: 0 calc(8vw + clamp(16px, 4vw, 22px));
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.portal-fixed-chrome-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

body.modal-open .portal-fixed-chrome,
body.modal-open #top-header-bar.portal-fixed-chrome {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-card-corner-logo {
    height: clamp(28px, 4.1dvh, 38px);
    width: auto;
    color: #f0e4d8;
    display: flex;
    align-items: center;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 2px 10px rgba(10, 7, 5, 0.56));
}

.hero-card-corner-logo svg {
    height: 100%;
    width: auto;
    display: block;
    overflow: visible;
}

.hero-card-theme-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(28, 23, 20, 0.84);
    border: 1px solid rgba(217, 150, 117, 0.34);
    color: #f5efe7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.hero-card-theme-btn svg:not(.theme-lock-ring) {
    width: 16px;
    height: 16px;
}

.hero-card-theme-btn:hover {
    transform: scale(1.06);
    border-color: rgba(217, 150, 117, 0.58);
}

.theme-lock-ring {
    position: absolute;
    inset: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    pointer-events: none;
    overflow: visible;
}

.theme-lock-ring-fill {
    fill: none;
    stroke: #d99675;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-dasharray: 116.24;
    stroke-dashoffset: calc(116.24 * (1 - var(--lock-progress, 0)));
    opacity: 0;
    transition: opacity 0.16s ease;
}

body.light-mode .theme-lock-ring-fill {
    stroke: #a35c3e;
}

.hero-card-theme-btn.is-holding-lock .theme-lock-ring-fill,
.hero-card-theme-btn.is-holding-unlock .theme-lock-ring-fill,
.modal-theme-btn.is-holding-lock .theme-lock-ring-fill,
.modal-theme-btn.is-holding-unlock .theme-lock-ring-fill {
    opacity: 1;
}

.hero-card-theme-btn.is-locked-active .theme-lock-ring-fill,
.modal-theme-btn.is-locked-active .theme-lock-ring-fill {
    opacity: 0.96;
    stroke-dashoffset: 0;
}

.hero-card-theme-btn.is-holding-unlock .theme-lock-ring-fill,
.modal-theme-btn.is-holding-unlock .theme-lock-ring-fill {
    stroke-dashoffset: calc(116.24 * (1 - var(--lock-progress, 1)));
}

@keyframes themeLockPulse {
    0% { transform: scale(1); }
    45% { transform: scale(1.13); }
    100% { transform: scale(1); }
}

.theme-lock-just-changed {
    animation: themeLockPulse 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-card-bottom-row {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.portal-edge-hero .hero-card-content {
    min-width: 0;
    flex: 1;
}

@media (max-width: 520px) {
    .portal-edge-hero .hero-grid-container {
        padding: 2px 8vw;
        gap: 14px;
    }
}

@media (min-width: 521px) and (max-width: 1024px) {
    .portal-fixed-chrome,
    #top-header-bar.portal-fixed-chrome {
        padding: 0 clamp(28px, 4vw, 44px);
    }
}

@media (max-width: 1024px) {
    .portal-edge-hero .hero-card-bottom-row {
        gap: 16px;
    }
    .portal-edge-hero .card-title {
        font-size: clamp(23px, 6.1vw, 34px);
        letter-spacing: -1px;
    }
}

.hero-card-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
    padding-bottom: 2px;
}

.hero-card-legal-btn {
    background: transparent;
    border: none;
    padding: 1px 0;
    font-family: var(--font-mono);
    font-size: clamp(9.5px, 1.25dvh, 11px);
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(245, 239, 231, 0.62);
    cursor: pointer;
    text-align: right;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.hero-card-legal-btn:hover {
    color: #f5efe7;
}

body.light-mode .portal-edge-hero .hero-card {
    background: #ebe4da;
    border-color: rgba(42, 35, 30, 0.14);
    box-shadow: 0 18px 44px rgba(42, 35, 30, 0.11);
}

body.light-mode .portal-edge-hero .hero-card:hover {
    border-color: rgba(163, 92, 62, 0.38);
}

body.light-mode .portal-edge-hero .hero-card-media {
    opacity: 0.96;
}

body.light-mode .portal-edge-hero .hero-card-video {
    filter: grayscale(35%) sepia(24%) saturate(92%) brightness(1.03);
}

body.light-mode .hero-card-overlay,
body.light-mode .portal-edge-hero .hero-card-overlay {
    background: linear-gradient(
        180deg,
        rgba(244, 239, 232, 0.50) 0%,
        rgba(244, 239, 232, 0.05) 26%,
        rgba(244, 239, 232, 0.25) 56%,
        rgba(244, 239, 232, 0.92) 100%
    );
}

body.light-mode .hero-card-corner-logo {
    color: #2f2620;
    filter: drop-shadow(0 1px 6px rgba(250, 247, 242, 0.84));
}

body.light-mode .hero-card-theme-btn {
    background: rgba(250, 247, 242, 0.88);
    border-color: rgba(163, 92, 62, 0.28);
    color: #2a231e;
}

body.light-mode .hero-card-theme-btn:hover {
    border-color: rgba(163, 92, 62, 0.52);
}

body.light-mode .card-num {
    color: var(--accent);
}

body.light-mode .card-title {
    color: #2a231e;
}

body.light-mode .card-desc {
    color: #61554c;
}

body.light-mode .hero-card-legal-btn {
    color: #74675c;
}

body.light-mode .hero-card-legal-btn:hover {
    color: #2a231e;
}

@media (min-width: 1025px) {
    .landing-hero-section.portal-edge-hero {
        padding: clamp(16px, 2.2dvh, 24px) clamp(16px, 2vw, 24px);
    }
    .portal-fixed-chrome,
    #top-header-bar.portal-fixed-chrome {
        top: calc(clamp(16px, 2.2dvh, 24px) + clamp(18px, 2.5dvh, 26px));
        padding: 0 clamp(16px, 2vw, 24px);
    }
    .portal-fixed-chrome-inner {
        max-width: 1760px;
        padding: 0 clamp(18px, 3vw, 28px);
    }
    #hero-card-1 .hero-card-legal,
    #hero-card-2 .hero-card-legal {
        display: none;
    }
    .hero-grid-container.has-soma180 {
        grid-template-columns: repeat(4, 1fr);
        gap: clamp(14px, 1.5vw, 22px);
    }
    .hero-grid-container.has-soma180 .card-title {
        font-size: clamp(24px, 2.15vw, 38px);
    }
    #hero-card-soma180 .hero-card-legal {
        display: none;
    }
}

.unboxed-inline-link {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: clamp(10px, 1.35dvh, 11.5px);
    font-weight: 500;
    letter-spacing: 0.6px;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.2s ease;
}
.unboxed-inline-link.strong-link {
    color: var(--text-main);
    font-weight: 700;
}
.unboxed-inline-link:hover {
    color: var(--text-main);
}
.footer-sep {
    color: var(--text-dim);
    font-size: 11px;
    opacity: 0.6;
}

/* TERMINE MODAL (100% MONOCHROM, ZERO SCROLL, VOLLFLÄCHIG) */
#modal-termine {
    user-select: none;
}

.termine-frame {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: min(94vw, 680px);
    height: 100dvh;
    padding: clamp(12px, 2.2dvh, 24px) 0;
    gap: clamp(10px, 1.8dvh, 18px);
    overflow: hidden;
}

.termine-auth-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.termine-auth-form {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.8dvh, 16px);
    width: 100%;
}

.termine-pwd-wrap {
    position: relative;
    width: 100%;
}

.termine-input {
    width: 100%;
    height: clamp(44px, 6.2dvh, 52px);
    background: var(--input-bg);
    border: 1px solid var(--hairline-strong);
    border-radius: 12px;
    color: var(--text-main);
    padding: 0 74px 0 16px;
    font-size: 16px;
    outline: none;
}
.termine-input:focus {
    border-color: var(--text-main);
}

.termine-input-action {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    cursor: pointer;
    padding: 6px 4px;
}

.termine-submit-btn {
    width: 100%;
    min-height: clamp(46px, 6.4dvh, 52px);
}

.termine-req-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.termine-msg-line {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-main);
    border-left: 1px solid var(--text-main);
    padding: 6px 10px;
}
.termine-msg-line.is-hidden {
    display: none;
}

.termine-booking-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(8px, 1.4dvh, 14px);
    overflow: hidden;
}

.termine-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--hairline);
    flex-shrink: 0;
}

.termine-patient-line {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.termine-logout-link {
    background: transparent;
    border: 1px solid var(--hairline);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}
.termine-logout-link:hover {
    border-color: var(--hairline-strong);
    color: var(--text-main);
}

.termine-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.termine-cal-month {
    font-size: clamp(16px, 2.4dvh, 20px);
    font-weight: 800;
    letter-spacing: -0.3px;
}

.termine-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--hairline);
    color: var(--text-main);
    font-size: 18px;
    cursor: pointer;
}
.termine-nav-btn:disabled {
    opacity: 0.28;
    cursor: default;
}

.termine-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: clamp(3px, 0.7dvh, 6px);
    flex-shrink: 0;
    touch-action: none;
    will-change: transform, opacity;
}

.termine-cal-grid.slide-next {
    animation: calSlideNext 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.termine-cal-grid.slide-prev {
    animation: calSlidePrev 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.termine-cal-grid.slide-up {
    animation: calSlideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.termine-cal-grid.slide-down {
    animation: calSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.termine-cal-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.t-cal-hdr {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    padding-bottom: 4px;
}

.t-cal-cell {
    height: clamp(32px, 4.8dvh, 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid transparent;
}
.t-cal-cell.has-slots {
    color: var(--text-main);
    font-weight: 700;
    border-color: var(--hairline-strong);
    cursor: pointer;
}
.t-cal-cell.selected {
    background: var(--btn-bg);
    color: var(--btn-fg);
    border-color: var(--btn-bg);
}

.termine-slots-area {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--hairline);
}

.termine-slots-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    flex-shrink: 0;
}

.termine-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    align-content: start;
    overflow-y: auto;
    min-height: 0;
}

.t-slot-pill {
    min-height: clamp(36px, 5dvh, 42px);
    background: transparent;
    border: 1px solid var(--hairline-strong);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.t-slot-pill:hover {
    background: var(--btn-bg);
    color: var(--btn-fg);
}

/* SOMA 1 PRAXIS-TERMINE & CHECK-UP HAIRLINE STRIP & MICRO-SIGNAL */
.month-third-label.praxis {
    font-family: var(--font-mono);
    font-weight: 700;
    border-bottom: 1px solid var(--text-main);
}

.month-third-label.milestone {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px dotted var(--text-muted);
    letter-spacing: 0.15px;
}

.player-ex-progression {
    font-family: var(--font-mono);
    font-size: clamp(10.5px, 1.45dvh, 11.5px);
    line-height: 1.25;
    color: var(--text-dim);
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 400px) {
    .day-sets-left.many-sets {
        gap: 4px;
    }
    .day-sets-left.many-sets .day-set-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    .day-sets-left.many-sets .day-set-rest {
        height: 24px;
        padding: 0 8px;
        font-size: 10px;
    }
}

.strategy-overlay {
    position: fixed;
    inset: 0;
    z-index: 32;
    display: none;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--bg-stage);
    user-select: none;
}

.strategy-overlay.open {
    display: flex;
    animation: somaModalReveal 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.light-mode .strategy-overlay {
    background: #ffffff;
}

.strategy-frame {
    justify-content: flex-start;
    gap: clamp(6px, 1.1dvh, 12px);
    overflow: hidden;
}

.strategy-horizon-cap {
    flex-shrink: 0;
    padding-bottom: 0;
}

.strategy-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(8px, 1.4dvh, 16px);
    padding-bottom: 2px;
}

.strategy-section {
    display: flex;
    flex-direction: column;
    gap: clamp(2px, 0.45dvh, 5px);
    min-width: 0;
}

.strategy-intro {
    padding-bottom: clamp(6px, 1.1dvh, 10px);
    border-bottom: 1px solid var(--hairline);
    gap: clamp(3px, 0.5dvh, 6px);
    flex-shrink: 0;
}

.strategy-headline {
    margin: 0;
    font-size: clamp(18px, 2.7dvh, 25px);
    font-weight: 800;
    letter-spacing: -0.45px;
    line-height: 1.14;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.strategy-narrative {
    margin: 0;
    font-size: clamp(12px, 1.6dvh, 14px);
    line-height: 1.36;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.strategy-cap {
    margin-bottom: 1px;
}

.strategy-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: clamp(4px, 0.7dvh, 8px) 0;
    border-bottom: 1px solid var(--hairline);
    min-width: 0;
}

.strategy-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.strategy-row-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.strategy-row-title {
    font-size: clamp(13px, 1.75dvh, 15px);
    font-weight: 700;
    line-height: 1.24;
    color: var(--text-main);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.strategy-status,
.strategy-metric {
    font-family: var(--font-mono);
    font-size: clamp(10px, 1.35dvh, 11.5px);
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--text-dim);
}

.strategy-status.is-active,
.strategy-status.is-done {
    color: var(--text-main);
}

.strategy-row-sub {
    font-size: clamp(11px, 1.45dvh, 12.5px);
    line-height: 1.3;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.strategy-empty {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-dim);
    padding: 4px 0;
}

@media (max-height: 700px) {
    .strategy-frame {
        gap: 6px;
    }
    .strategy-body {
        gap: 6px;
    }
    .strategy-intro {
        padding-bottom: 6px;
    }
    .strategy-headline {
        font-size: 17px;
    }
    .strategy-narrative {
        font-size: 11.5px;
        line-height: 1.3;
    }
    .strategy-row {
        padding: 3.5px 0;
        gap: 1px;
    }
    .strategy-row-title {
        font-size: 12.5px;
    }
    .strategy-row-sub {
        font-size: 10.5px;
    }
}

@media (min-width: 768px) {
    .strategy-frame {
        max-width: 920px;
    }
    .strategy-body {
        display: grid;
        grid-template-columns: 1fr 1.25fr;
        grid-template-rows: auto 1fr;
        column-gap: clamp(24px, 3vw, 44px);
        row-gap: clamp(14px, 2dvh, 22px);
        align-content: start;
        justify-content: stretch;
    }
    .strategy-body.has-principles {
        grid-template-rows: auto auto 1fr;
    }
    .strategy-intro {
        grid-column: 1;
        grid-row: 1;
        padding-bottom: 14px;
    }
    .strategy-principles {
        grid-column: 1;
        grid-row: 2;
    }
    .strategy-milestones {
        grid-column: 1;
        grid-row: 2;
    }
    .strategy-body.has-principles .strategy-milestones {
        grid-row: 3;
    }
    .strategy-progression {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
    .strategy-body.has-principles .strategy-progression {
        grid-row: 1 / span 3;
    }
    .strategy-row {
        padding: 8px 0;
        gap: 3px;
    }
    .strategy-row-sub {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

.strategy-body.has-principles {
    gap: clamp(5px, 0.9dvh, 12px);
}
.strategy-principles .strategy-row-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
@media (max-height: 700px) {
    .strategy-body.has-principles {
        gap: 4px;
    }
    .strategy-body.has-principles .strategy-intro {
        padding-bottom: 4px;
    }
    .strategy-body.has-principles .strategy-headline {
        font-size: 16px;
    }
    .strategy-body.has-principles .strategy-narrative {
        -webkit-line-clamp: 1;
    }
    .strategy-body.has-principles .strategy-row {
        padding: 2.5px 0;
    }
}

.checkup-session-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 2px;
    border-bottom: 1px solid var(--hairline);
    flex-shrink: 0;
}

.checkup-session-text {
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.checkup-session-text strong {
    color: var(--text-main);
}

.checkup-sparkline {
    width: 72px;
    height: 18px;
    color: var(--text-main);
    flex-shrink: 0;
}

.day-signal-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 2px;
}

.day-signal-btn {
    height: 32px;
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}
.day-signal-btn.active {
    border-color: var(--text-main);
    color: var(--text-main);
    font-weight: 700;
}

.training-report-banner {
    padding: 6px 2px;
    border-bottom: 1px solid var(--hairline);
    font-size: clamp(11px, 1.45dvh, 12px);
    line-height: 1.3;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.training-report-banner:hover {
    border-bottom-color: var(--hairline-strong);
}
.training-report-banner strong {
    color: var(--text-main);
    font-weight: 600;
}
.training-arc-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.training-arc-title {
    color: var(--text-main);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.training-arc-track {
    flex: 0 1 88px;
    min-width: 36px;
    height: 2px;
    background: var(--hairline);
    border-radius: 999px;
    overflow: hidden;
}
.training-arc-fill {
    display: block;
    height: 100%;
    background: var(--text-main);
    border-radius: 999px;
    transition: width 0.25s ease;
}
.training-arc-count {
    font-family: var(--font-mono);
    font-size: clamp(10px, 1.3dvh, 11.5px);
    color: var(--text-dim);
    white-space: nowrap;
    flex-shrink: 0;
}

.balance-report-cue {
    font-family: var(--font-mono);
    font-size: clamp(10px, 1.32dvh, 11.5px);
    line-height: 1.28;
    color: var(--text-muted);
    border-top: 1px solid var(--hairline);
    padding-top: 5px;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   SOMA 180 — PERSPEKTIVE (1-BILD VERÄSTELUNGS-NETZWERK & DEZENTER HINTERGRUND)
   ========================================================================== */
#hero-card-soma180 {
    display: none;
}

.hero-grid-container.has-soma180 #hero-card-soma180 {
    display: flex;
}

.hero-scroll-track.has-soma180 .hero-scroll-thumb {
    width: 25%;
}

.hero-card-soma180-ambient {
    background: radial-gradient(circle at 50% 42%, rgba(235, 215, 198, 0.06) 0%, #151210 72%);
}

body.light-mode .hero-card-soma180-ambient {
    background: radial-gradient(circle at 50% 42%, rgba(42, 35, 30, 0.04) 0%, #ebe4da 75%);
}

.hero-soma180-veins {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.42;
}

.hs180-ring {
    fill: none;
    stroke: var(--hairline);
    stroke-width: 1;
}

.hs180-ring.r2 {
    stroke-dasharray: 3 5;
}

.hs180-branch {
    fill: none;
    stroke: var(--hairline-strong);
    stroke-width: 1.25;
}

.hs180-branch.soft {
    stroke: var(--hairline);
    stroke-width: 1;
}

.soma180-ambient-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 44%, rgba(217, 150, 117, 0.06) 0%, rgba(235, 215, 198, 0.015) 34%, transparent 66%),
        #151210;
}

.soma180-ambient-bg::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 44%;
    width: min(74vw, 640px);
    height: min(74vw, 640px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(235, 215, 198, 0.055);
    box-shadow: 0 0 0 72px rgba(235, 215, 198, 0.02);
    animation: soma180AmbientBreath 12s ease-in-out infinite;
}

body.light-mode .soma180-ambient-bg {
    background:
        radial-gradient(circle at 50% 44%, rgba(163, 92, 62, 0.05) 0%, rgba(42, 35, 30, 0.012) 34%, transparent 66%),
        #f4efe8;
}

body.light-mode .soma180-ambient-bg::after {
    border-color: rgba(42, 35, 30, 0.06);
    box-shadow: 0 0 0 72px rgba(42, 35, 30, 0.02);
}

@keyframes soma180AmbientBreath {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }
}

.soma180-bg-video {
    opacity: 0.24;
    filter: grayscale(40%) sepia(20%) contrast(0.94);
}

body.light-mode .soma180-bg-video {
    opacity: 0.28;
    filter: grayscale(40%) sepia(20%) brightness(1.04) contrast(0.88);
}

.soma180-bg-veil {
    background: radial-gradient(circle at 50% 42%, rgba(21, 18, 16, 0.54) 0%, rgba(21, 18, 16, 0.84) 100%);
}

body.light-mode .soma180-bg-veil {
    background: radial-gradient(circle at 50% 42%, rgba(244, 239, 232, 0.58) 0%, rgba(244, 239, 232, 0.86) 100%);
}

.soma180-ambient-bg {
    opacity: 0.45;
}

.soma180-frame {
    justify-content: space-between;
    gap: clamp(2px, 0.5dvh, 6px);
    overflow: hidden;
    padding-bottom: clamp(6px, 1dvh, 10px);
}

.soma180-atlas-body {
    flex: 1;
    min-height: 0;
    width: 100%;
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) clamp(165px, 25dvh, 210px);
    overflow: hidden;
}

.soma180-atlas-body:has(.s180-awaiting-copy) {
    grid-template-rows: minmax(0, 1fr);
}

.soma180-diagram-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0 clamp(4px, 1.5vw, 14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
}

.compass-nav-arrow {
    position: absolute;
    bottom: clamp(2px, 1.2dvh, 14px);
    z-index: 4;
    appearance: none;
    background: transparent;
    border: none;
    padding: 0;
    width: clamp(44px, 6vw, 58px);
    height: clamp(54px, 8dvh, 74px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    opacity: 0.48;
    cursor: pointer;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.compass-nav-arrow.is-prev {
    left: clamp(2px, 1vw, 12px);
    transform: rotate(-40deg);
}

.compass-nav-arrow.is-next {
    right: clamp(2px, 1vw, 12px);
    transform: rotate(40deg);
}

.compass-nav-arrow:hover,
.compass-nav-arrow:focus-visible {
    opacity: 1;
    outline: none;
}

.compass-nav-arrow.is-prev:active {
    transform: rotate(-40deg) scale(0.93);
}

.compass-nav-arrow.is-next:active {
    transform: rotate(40deg) scale(0.93);
}

.compass-nav-arrow svg {
    width: clamp(18px, 2.4vw, 24px);
    height: clamp(46px, 7dvh, 66px);
    display: block;
}

.soma180-svg {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    display: block;
    overflow: visible;
}

/* Clean 3-Ring Swiss Compass Primitives (v36: Zero Ticks, Curved Typography) */
.compass-ring-inner {
    fill: none;
    stroke: var(--hairline-strong);
    stroke-width: 1;
}

.compass-ring-mid {
    fill: none;
    stroke: var(--hairline-strong);
    stroke-width: 1.1;
    stroke-dasharray: 3 4;
    opacity: 0.78;
}

.compass-arc-solution {
    fill: none;
    stroke: var(--text-main);
    stroke-width: 3.4;
    stroke-linecap: round;
    opacity: 0.94;
}

.compass-needle {
    stroke: var(--text-main);
    stroke-width: 1.9;
    stroke-linecap: round;
}

.compass-center-hub {
    fill: var(--text-main);
}

.compass-center-hub-ring {
    fill: none;
    stroke: var(--hairline-strong);
    stroke-width: 1;
}

.compass-ring-cap {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    fill: var(--text-dim);
}

.compass-ring-cap.is-solution {
    fill: var(--text-main);
}

.compass-node {
    cursor: pointer;
    outline: none;
    transition: opacity 0.2s ease;
}

.compass-node.is-dimmed {
    opacity: 0.68;
}

.compass-dot {
    fill: var(--bg-stage);
    stroke: var(--text-muted);
    stroke-width: 1.3;
    transition: stroke 0.18s ease, stroke-width 0.18s ease, fill 0.18s ease;
}

body.light-mode .compass-dot {
    fill: #f4efe8;
}

.compass-dot.zone-roots_left {
    stroke: var(--text-main);
    stroke-width: 1.35;
}

.compass-dot.zone-roots_right {
    stroke-dasharray: 2 1.8;
}

.compass-dot.zone-drifts_left {
    stroke-dasharray: 3.5 2;
}

.compass-dot.zone-trunk {
    stroke: var(--text-main);
    stroke-width: 1.5;
}

.compass-dot.zone-solutions_right {
    fill: var(--text-main);
    stroke: var(--text-main);
    stroke-width: 1.5;
}

.compass-dot-core {
    fill: var(--text-muted);
}

.compass-dot-core.zone-roots_right,
.compass-dot-core.zone-drifts_left {
    fill: transparent;
}

.compass-dot-core.zone-solutions_right {
    fill: #151210;
}

body.light-mode .compass-dot-core.zone-solutions_right {
    fill: #f4efe8;
}

.compass-node.is-active .compass-dot {
    stroke: var(--text-main);
    stroke-width: 2.2;
    stroke-dasharray: none;
}

.compass-halo {
    fill: none;
    stroke: var(--text-main);
    stroke-width: 1.1;
    opacity: 0;
}

.compass-node.is-active .compass-halo,
.compass-node.is-paired .compass-halo {
    opacity: 0.52;
}

.compass-node.is-paired .compass-halo {
    stroke-dasharray: 2.5 2.5;
}

.compass-label {
    font-family: var(--font-main);
    font-size: 13.5px;
    font-weight: 700;
    fill: var(--text-main);
    opacity: 0.78;
    paint-order: stroke fill;
    stroke: #151210;
    stroke-width: 3.6px;
    stroke-linejoin: round;
}

.compass-label.is-strong {
    font-size: 14px;
    font-weight: 800;
    fill: var(--text-main);
    opacity: 1;
}

body.light-mode .compass-label {
    stroke: #f4efe8;
}

.soma180-svg.is-compact .compass-label {
    font-size: 12.2px;
    font-weight: 700;
    stroke-width: 3.4px;
}

.soma180-svg.is-compact .compass-label.is-strong {
    font-size: 12.6px;
    font-weight: 800;
}

.soma180-svg.is-compact .compass-ring-cap {
    font-size: 9.8px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.s180-awaiting-copy {
    text-align: center;
    max-width: 400px;
    padding-top: clamp(6px, 1.2dvh, 12px);
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.s180-awaiting-title {
    font-family: var(--font-mono);
    font-size: clamp(10.5px, 1.45dvh, 12.5px);
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--text-main);
}

.s180-awaiting-desc {
    font-size: clamp(12px, 1.65dvh, 14px);
    line-height: 1.42;
    color: var(--text-muted);
}

/* Focus Dock / Pure Block Typography (Zero Lines, Zero Headers, Zero Form-Boxes) */
.soma180-focus-dock {
    padding: clamp(6px, 1.2dvh, 12px) clamp(6px, 2.5vw, 14px) clamp(4px, 0.8dvh, 8px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(8px, 1.2dvh, 12px);
    flex-shrink: 0;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.s180-dock-title-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 9px;
    min-width: 0;
}

.s180-dock-title {
    font-size: clamp(17px, 2.3dvh, 21px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--text-main);
    margin: 0;
}

.s180-dock-lay {
    font-size: clamp(12.5px, 1.65dvh, 14.5px);
    font-weight: 400;
    color: var(--text-muted);
}

.s180-dock-duo {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.25dvh, 14px);
}

.s180-dock-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.s180-dock-cap {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--text-dim);
    opacity: 0.62;
}

.s180-dock-cap.is-todo {
    color: var(--text-main);
    opacity: 0.85;
}

.s180-dock-copy {
    margin: 0;
    font-size: clamp(14px, 1.95dvh, 16.5px);
    line-height: 1.38;
    color: var(--text-main);
    text-align: left;
    text-wrap: pretty;
    overflow: visible;
}

.s180-dock-copy.is-todo {
    font-weight: 500;
}

@media (min-width: 860px) {
    .soma180-frame {
        max-width: 1260px;
        height: min(95dvh, 860px);
        padding-bottom: clamp(8px, 1.2dvh, 14px);
    }
    .soma180-atlas-body {
        display: grid;
        grid-template-rows: minmax(0, 1fr);
        grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.92fr);
        align-items: stretch;
        gap: 0;
    }
    .compass-nav-arrow {
        bottom: clamp(6px, 1.4dvh, 18px);
    }
    .soma180-focus-dock {
        padding: clamp(20px, 3dvh, 36px) 8px clamp(20px, 3dvh, 36px) clamp(24px, 3vw, 44px);
        justify-content: center;
        gap: clamp(18px, 2.6dvh, 26px);
    }
    .s180-dock-title-wrap {
        flex-direction: column;
        gap: 6px;
    }
    .s180-dock-title {
        font-size: clamp(26px, 3.4dvh, 36px);
        line-height: 1.08;
        letter-spacing: -0.02em;
    }
    .s180-dock-lay {
        font-size: clamp(14px, 1.8dvh, 17px);
        line-height: 1.3;
    }
    .s180-dock-duo {
        gap: clamp(18px, 2.5dvh, 26px);
    }
    .s180-dock-cap {
        font-size: 9.5px;
        letter-spacing: 1px;
    }
    .s180-dock-copy {
        font-size: clamp(16px, 2.1dvh, 19px);
        line-height: 1.46;
        text-align: left;
        text-wrap: pretty;
    }
}

@media (max-height: 700px) and (max-width: 859px) {
    .soma180-frame {
        gap: 2px;
        padding: 6px 0;
    }
    .soma180-atlas-body {
        grid-template-rows: minmax(0, 1fr) 148px;
    }
    .soma180-focus-dock {
        padding: 4px 6px 4px;
        gap: 6px;
    }
    .s180-dock-title {
        font-size: 15.5px;
    }
    .s180-dock-lay {
        font-size: 11.5px;
    }
    .s180-dock-duo {
        gap: 6px;
    }
    .s180-dock-copy {
        font-size: 13px;
        line-height: 1.3;
    }
}

.s180-orbit {
    fill: none;
    stroke: var(--hairline);
    stroke-width: 1;
}

.s180-orbit.dashed {
    stroke-dasharray: 3 4;
}

.s180-pulse-ring {
    fill: none;
    stroke: var(--hairline-strong);
    stroke-width: 1;
}

.s180-axis-line {
    stroke: var(--hairline-strong);
    stroke-width: 1;
    stroke-dasharray: 2 4;
}

.s180-axis-tick {
    stroke: var(--text-dim);
    stroke-width: 1;
}

.s180-center-ring {
    fill: var(--bg-stage);
    stroke: var(--text-main);
    stroke-width: 1.25;
}

.s180-center-concept {
    font-family: var(--font-main);
    font-size: 9.5px;
    font-weight: 800;
    fill: var(--text-main);
}

.s180-node-domain {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.65px;
    text-transform: uppercase;
    fill: var(--text-dim);
}

.s180-node-core {
    fill: var(--text-muted);
}

.legal-dialog-content {
    max-height: 62dvh;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-muted);
}
.legal-dialog-section {
    border-top: 1px solid var(--hairline);
    padding-top: 10px;
}
.legal-dialog-section:first-child {
    border-top: none;
    padding-top: 0;
}
.legal-dialog-section h3 {
    margin: 0 0 4px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-main);
}
.legal-dialog-section p {
    margin: 0 0 6px;
}
.legal-dialog-section p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   BLOCK B/C/E: IN-PORTAL ONBOARDING, SOMA 180 PREVIEW & MONATS-IMPULS
   ========================================================================== */
.hero-grid-container.always-4-cards #hero-card-soma180 {
    display: flex;
}
.hero-scroll-track.has-soma180 .hero-scroll-thumb {
    width: 25%;
}

.termine-onboarding-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(8px, 1.3dvh, 14px);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.termine-ob-form {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(8px, 1.35dvh, 14px);
}

.termine-ob-seg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.termine-ob-pill {
    height: clamp(38px, 5.2dvh, 46px);
    border-radius: 10px;
    border: 1px solid var(--hairline-strong);
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.termine-ob-pill.active {
    background: var(--text-main);
    color: var(--bg-stage);
    border-color: var(--text-main);
}

.termine-ob-input,
.termine-ob-select {
    padding: 0 14px !important;
    height: clamp(42px, 5.6dvh, 48px) !important;
}

.termine-ob-select {
    flex: 1;
    min-width: 0;
    appearance: none;
    -webkit-appearance: none;
}

.termine-ob-select option {
    background: var(--bg-stage);
    color: var(--text-main);
}

.termine-ob-measure-row {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(112px, 0.9fr);
    gap: 8px;
}

.termine-ob-units-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.termine-ob-units {
    padding: 0 10px !important;
    text-align: center;
    height: clamp(42px, 5.6dvh, 48px) !important;
    min-width: 54px;
}

.termine-ob-mini-pill {
    height: clamp(42px, 5.6dvh, 48px);
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--hairline-strong);
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.termine-ob-mini-pill.active {
    background: var(--text-main);
    color: var(--bg-stage);
    border-color: var(--text-main);
}

.termine-ob-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: clamp(32px, 4.4dvh, 42px);
}

.termine-ob-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
}

.termine-ob-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--text-main);
}

.termine-ob-actions {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.2dvh, 12px);
    margin-top: clamp(2px, 0.5dvh, 8px);
}

.termine-ob-uncertain-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(10px, 1.5dvh, 14px);
}

.termine-ob-uncertain-copy {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-muted);
}

.termine-ob-uncertain-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.termine-ob-uncertain-choices button {
    width: 100%;
    min-height: 46px;
}

.termine-inline-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 12.5px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.termine-inline-notice.is-hidden {
    display: none;
}

.termine-inline-notice-btn {
    background: transparent;
    border: none;
    padding: 4px 0;
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* SOMA 180 PREVIEW-MODUS (5-Sekunden-Aha-Kompass für Besucher & SOMA 1; v41 aktiver Modus bleibt 100 % unberührt!) */
#modal-soma180.is-preview .soma180-atlas-body {
    grid-template-rows: minmax(0, 1fr) auto !important;
    gap: clamp(6px, 1.2dvh, 14px);
}

#modal-soma180.is-preview .soma180-focus-dock {
    justify-content: flex-start;
    gap: clamp(8px, 1.3dvh, 14px);
    padding: clamp(8px, 1.5dvh, 16px) clamp(12px, 3vw, 24px) clamp(10px, 1.8dvh, 18px);
}

.s180-preview-svg {
    width: min(100%, clamp(210px, 36dvh, 320px));
    height: auto;
    display: block;
    margin: 0 auto;
}

.s180-preview-ring-solid {
    fill: none;
    stroke: var(--text-main);
    stroke-width: 1.6;
}

.s180-preview-ring-dashed {
    fill: none;
    stroke: var(--text-dim);
    stroke-width: 1.15;
    stroke-dasharray: 4 4;
    opacity: 0.45;
}

.s180-preview-cap {
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.9px;
    fill: var(--text-dim);
}

.s180-preview-label {
    font-family: var(--font-main);
    font-size: 10.5px;
    font-weight: 700;
    fill: var(--text-main);
}

.s180-preview-label.is-muted {
    fill: var(--text-muted);
    font-weight: 500;
}

.s180-preview-cta {
    width: 100%;
    max-width: 340px;
    min-height: 46px;
    margin-top: 4px;
}

.s180-preview-note {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

.strategy-bridge-line {
    margin-top: clamp(6px, 1.2dvh, 12px);
    padding-top: 8px;
    border-top: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.strategy-bridge-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 0;
    white-space: nowrap;
}

.strategy-audio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.compass-node.is-status-anchored .compass-dot {
    fill: var(--text-main);
    stroke: var(--text-main);
    stroke-width: 1.8px;
}

.compass-node.is-status-active .compass-halo {
    stroke: var(--text-main);
    stroke-width: 1.2px;
    opacity: 0.72;
}

.compass-node.is-status-open .compass-dot-core {
    opacity: 0.35;
}

/* ==========================================================================
   PERSPEKTIVE (#modal-soma180) KOMPLETT-MILCHGLAS-SPERRE (NICHT INTERAKTIV)
   ========================================================================== */
#modal-soma180.is-frosted-locked .soma180-diagram-stage,
#modal-soma180.is-frosted-locked .soma180-focus-dock {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    filter: blur(11px) saturate(0.75);
    opacity: 0.42;
}

.soma180-frosted-curtain {
    display: none;
}

#modal-soma180.is-frosted-locked .soma180-frosted-curtain {
    display: flex;
    position: absolute;
    inset: 0;
    z-index: 25;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 24px;
    background: rgba(21, 18, 16, 0.62);
    backdrop-filter: blur(22px) saturate(110%);
    -webkit-backdrop-filter: blur(22px) saturate(110%);
    pointer-events: auto;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

body.light-mode #modal-soma180.is-frosted-locked .soma180-frosted-curtain {
    background: rgba(244, 239, 232, 0.64);
}

.soma180-frosted-kicker {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--accent);
}

.soma180-frosted-title {
    margin: 0;
    font-size: clamp(20px, 4.5vw, 28px);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-main);
}

.soma180-frosted-copy {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

@media (max-width: 420px) {
    .praxis-header-title {
        font-size: 13px !important;
        letter-spacing: 1.5px !important;
    }
    .termine-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
