/* Heute ist noch da — a still image, a single invitation, freely chosen pauses. */
.moment-home .moment-home-offers{grid-template-areas:'helps helps' 'touch breath' 'journey journey' 'weather thought' 'today today' 'course course'}
.moment-home .moment-course-card{grid-area:course;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:28px;align-items:center;padding:24px;background:#eee8da}
.course-home-picture{height:245px;min-width:0;overflow:hidden;border-radius:14px}
.course-home-picture>img{width:100%;height:100%;object-fit:contain;border-radius:14px}
.course-home-picture>img[hidden]{display:none!important}
.moment-course-card .course-eyebrow{margin:0 0 10px}
.moment-home .moment-course-card h2{font-size:32px}
.course-eyebrow{font:600 11px/1.5 var(--mm-sans);letter-spacing:.15em;text-transform:uppercase;color:#765a37;margin:0 0 15px}
.moment-course-dialog{--course-ink:#363c33;width:min(1000px,calc(100vw - 40px));max-width:1000px;max-height:calc(100dvh - 40px);padding:0;border:1px solid #e2dacc;border-radius:24px;background:#faf7f0;color:var(--course-ink);overflow:hidden}
.moment-course-dialog[open]{display:flex;flex-direction:column}
.moment-course-dialog [hidden]{display:none!important}
.course-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:16px;z-index:3;padding:16px 28px;background:#faf7f0;border-bottom:1px solid #ddd3c2}
.course-header h2{font:400 22px/1.2 var(--mm-serif);margin:0}
.course-header-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}
.course-audio-settings{position:relative}
.course-audio-settings>summary{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;padding:6px 4px;cursor:pointer;list-style:none;font:400 13px/1.4 var(--mm-sans);color:#5e5e50}
.course-audio-settings>summary::-webkit-details-marker{display:none}
.course-audio-settings>summary::after{content:'';width:5px;height:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);margin-top:-3px}
.course-audio-settings[open]>summary::after{transform:rotate(225deg);margin-top:3px}
.course-audio-panel{position:absolute;right:0;top:calc(100% + 5px);width:250px;max-width:calc(100vw - 36px);padding:16px;background:#faf7f0;border:1px solid #d9d0bf;border-radius:12px;box-shadow:0 8px 28px #363c331a;z-index:5}
.course-header-actions>.moment-text-button{font-size:13px;min-height:44px;flex-shrink:0;color:#5e5e50;text-decoration:underline;text-underline-offset:4px}
.course-body{padding:32px 36px 24px;display:grid;grid-template-columns:1fr 1fr;gap:24px 32px;align-items:center;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#course-choose{grid-column:1;grid-row:1 / span 2;min-width:0}
.moment-course-dialog[data-stage=choose] .course-body{align-items:start}
.course-body h3{font:400 clamp(28px,3.1vw,39px)/1.18 var(--mm-serif);letter-spacing:-.6px;margin:0 0 20px;color:var(--course-ink);overflow-wrap:break-word}
.course-body h3 em{font-weight:400;color:#626b54}
.course-intro,.course-step-copy,.course-lead{font:400 16px/1.65 var(--mm-sans);margin:0 0 18px;color:#5b6053}
.course-pace{font:400 13px/1.6 var(--mm-sans);color:#696859;margin:16px 0}
.course-picture{margin:0;min-width:0;align-self:center;grid-column:2;grid-row:1}
.course-picture img{display:block;width:100%;height:auto;max-height:48dvh;object-fit:contain;background:#eee8db;border-radius:14px}
.moment-course-dialog:not([data-stage=choose]) .course-picture:not([data-photo-error=true]) figcaption{display:none}
.course-reflection>.course-eyebrow{display:none}
.course-picture figcaption{font:400 11px/1.5 var(--mm-sans);color:#746e60;margin:9px 2px 0}
#course-focus,#course-listen{flex-shrink:0;min-height:44px;padding:8px 0;font:500 13px/1.4 var(--mm-sans);color:#4e5c44;text-decoration:underline;text-underline-offset:4px}
.course-view-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 12px}
.course-view-controls:has(#course-progress[hidden]):has(#course-focus[hidden]){display:none}
.moment-course-dialog .course-view-controls .course-progress{margin:0;min-width:0}
.course-retain{grid-column:2;grid-row:2;align-self:start}
.course-small{font:400 12px/1.6 var(--mm-sans);color:#6b685b;margin:6px 0}
.moment-course-dialog .course-entry-intro{font:400 14px/1.6 var(--mm-sans);color:#5e6254;margin:0 0 16px}
.course-saved{margin:0 0 12px}
.course-about{margin:16px 0 0;border-top:1px solid #ddd3c2}
.course-about>summary{display:list-item;cursor:pointer;min-height:44px;padding:12px 0;box-sizing:border-box;font:500 13px/1.5 var(--mm-sans);color:#4e5c44}
.course-about .course-intro{font-size:14px}
.course-saved-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.course-saved-item{min-width:0}
.course-saved-item>button:first-child{display:block;width:100%;padding:3px;border:1px solid #c7bead;border-radius:8px;background:#efebe2}
.course-saved-item>button[aria-pressed=true]{border:2px solid #526347;padding:2px}
.course-saved-item img{display:block;width:100%;height:110px;object-fit:contain;border-radius:5px}
.course-saved-label{display:block;padding:7px 3px 5px;font:500 12px/1.4 var(--mm-sans);color:#5a6150}
.course-saved-item [aria-pressed=true] .course-saved-label{color:#35472c;font-weight:700}
.course-saved-temporary{display:block;padding:0 3px 5px;font:400 10px/1.4 var(--mm-sans);color:#765a37}
.course-saved-item .moment-text-button{font-size:12px;min-height:44px;width:100%;padding:6px}
.course-status{font:400 13px/1.5 var(--mm-sans);color:#6e5136;margin:10px 0;overflow-wrap:anywhere}
.course-status:empty{display:none}
.course-footer{flex-shrink:0;padding:12px 28px 20px;border-top:1px solid #ddd3c2;background:#faf7f0}
.course-progress{font:500 11px/1.4 var(--mm-sans);letter-spacing:.035em;color:#696859;margin:0 0 8px}
.course-sound{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.course-sound .moment-text-button{min-height:44px;padding:8px 12px;border:1px solid #c8cbbb;border-radius:24px;background:transparent;color:#4e5c44;font-size:13px;text-decoration:none}
.course-sound [aria-checked=true]{background:#e7ebdf;border-color:#879578}
.course-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:4px}
.course-actions .moment-button{min-height:48px;border-radius:11px;padding:12px 18px;background:#576647;border:1px solid #576647;color:#fffdf5;font-size:15px;white-space:normal}
.course-actions .moment-button-outline{background:#fffcf6;color:#48523e;border-color:#9a9e89}
#course-back{margin-right:auto;min-height:44px;color:#605d4f}
.course-paused{flex-shrink:0;z-index:2;padding:16px 28px;background:#e8ebdf;border-bottom:1px solid #c6ccb7;display:flex;align-items:center;justify-content:space-between;gap:12px}
.course-paused p{margin:0}
.moment-course-dialog[data-stage=experience] .course-body,.moment-course-dialog[data-stage=ending] .course-body{grid-template-columns:1.05fr 1fr}
.moment-course-dialog[data-stage=experience] .course-picture,.moment-course-dialog[data-stage=ending] .course-picture{grid-column:1;grid-row:1}
.course-reflection{grid-column:2;grid-row:1}
.course-lead{color:#575b4c;font-size:15px;line-height:1.65}
.moment-course-dialog[data-step="3"] .course-reflection h3{font-size:clamp(26px,2.7vw,34px);line-height:1.28}
.course-note{margin-top:20px}
.course-note label{display:block;font:500 14px/1.5 var(--mm-sans);margin:0 0 8px;color:#454f3b}
.course-note label span{font-weight:400;color:#686b5f}
.course-note textarea{display:block;box-sizing:border-box;width:100%;min-height:96px;max-height:200px;resize:vertical;border:1px solid #a8ad9a;border-radius:10px;background:#fffcf6;color:#363c33;padding:12px;font:400 16px/1.5 var(--mm-sans)}
.course-note textarea::placeholder{color:#777568;opacity:1}
.moment-course-dialog[data-image-focus=true] .course-body{display:block}
.moment-course-dialog[data-image-focus=true] .course-picture{max-width:760px;margin:0 auto}
.moment-course-dialog[data-image-focus=true] .course-picture img{max-height:55dvh}
.moment-course-dialog :focus-visible{outline:3px solid #71510d;outline-offset:4px}
.moment-course-dialog h3:focus{outline:none}
.moment-course-dialog .course-intro,.moment-course-dialog .course-step-copy,.moment-course-dialog .course-lead{margin:0 0 18px}
.moment-course-dialog .course-pace{margin:16px 0}
.moment-course-dialog .course-eyebrow{margin:0 0 15px}
.moment-course-dialog .course-progress{margin:0 0 8px}
.moment-course-dialog .course-small{margin:6px 0}
.moment-course-dialog .course-status:not(:empty){margin:10px 0}
.moment-course-dialog[data-stage=choose] .course-eyebrow{margin-bottom:8px}
.moment-course-dialog #course-choose-title{margin-bottom:12px}
@media(max-width:700px){
 .moment-home .moment-home-offers{grid-template-areas:'helps' 'touch' 'breath' 'journey' 'weather' 'thought' 'today' 'course'}
 .moment-home .moment-course-card{grid-template-columns:1fr;gap:20px;padding:19px}
 .course-home-picture{height:170px}
 .moment-home .moment-course-card h2{font-size:29px}
 .moment-course-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0}
 .course-header{padding:8px 18px;padding-top:max(8px,env(safe-area-inset-top));gap:8px}
 .course-header h2{font-size:19px}
 .course-header-actions{gap:8px}
 .course-header-actions>.moment-text-button{font-size:12px}
 .course-audio-panel{position:fixed;top:calc(max(8px,env(safe-area-inset-top)) + 48px);right:18px}
 #course-focus,#course-listen{font-size:12px}
 .course-body,.moment-course-dialog[data-stage=experience] .course-body,.moment-course-dialog[data-stage=ending] .course-body{display:flex;flex-direction:column;gap:16px;align-items:stretch;padding:18px 20px;min-height:0;scrollbar-gutter:auto}
 .course-body>*{flex-shrink:0}
 .course-body h3{font-size:31px;line-height:1.22;margin-bottom:14px}
 .moment-course-dialog[data-stage=choose] .course-body{align-items:stretch}
 .course-picture img{max-height:28dvh;width:100%;object-fit:contain;border-radius:11px}
 .course-reflection{order:1}
 .moment-course-dialog[data-stage=experience] .course-picture{order:0}
 .moment-course-dialog[data-stage=ending] .course-picture{order:2}
 .moment-course-dialog[data-stage=experience] .course-picture{width:100%}
 .moment-course-dialog[data-stage=experience] .course-picture img{height:clamp(150px,28dvh,250px);max-height:none}
 .moment-course-dialog[data-stage=experience] .course-body{gap:14px;padding:14px 20px}
 .course-reflection h3{font-size:25px;line-height:1.24;margin-bottom:12px}
 .moment-course-dialog[data-step="3"] .course-reflection h3{font-size:24px}
 .moment-course-dialog[data-stage=experience] .course-lead{font-size:14px;line-height:1.5;margin-bottom:10px}
 .course-picture figcaption{font-size:10px}
 .course-footer{padding:10px 16px calc(12px + env(safe-area-inset-bottom))}
 .course-actions{gap:8px}
 .course-actions .moment-button{flex:1}
 .course-actions #course-back{flex:none}
 .course-actions .moment-button{font-size:14px;padding:10px 12px}
 .course-sound{gap:4px}
 .course-sound .moment-text-button{font-size:12px;padding:8px 9px}
 .course-paused{padding:12px 20px}
 .moment-course-dialog[data-image-focus=true] .course-body{display:flex;justify-content:center}
 .moment-course-dialog[data-image-focus=true] .course-picture img{height:auto;max-height:55dvh}
}
@media(max-height:540px){.course-header{padding-top:4px;padding-bottom:4px}.course-footer{padding-top:6px;padding-bottom:max(6px,env(safe-area-inset-bottom))}.course-actions{margin-top:4px}.course-progress{margin-bottom:2px}}
@media(prefers-reduced-motion:reduce){.moment-course-dialog *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Stable scene: the photo does not move between spoken sections. */
.moment-home .moment-course-card{background:#e6e9df}
.course-home-picture{background:transparent}
.course-header{flex-wrap:wrap;gap:4px 16px}
.course-header-actions{flex-wrap:wrap;gap:4px 14px}
.course-header-actions>.moment-text-button{font-size:12px}
.course-reflection>.course-eyebrow{display:block}
.course-step-copy{white-space:pre-line}
.course-reflection{min-width:0;align-self:center}
.moment-course-dialog:not([data-stage=choose]) .course-body{grid-template-columns:1.05fr 1fr;align-items:center}
.moment-course-dialog:not([data-stage=choose]) .course-picture{grid-column:1;grid-row:1}
.moment-course-dialog .course-picture img{height:clamp(200px,40dvh,390px);object-fit:contain}
.moment-course-dialog:not([data-stage=choose]) .course-reflection{grid-column:2;grid-row:1}
.moment-course-dialog .course-step-copy{font-size:clamp(17px,1.7vw,21px);line-height:1.55;color:#363c33}
.course-step-copy:focus{outline:none}
.course-footer .course-actions{justify-content:flex-end}
.course-footer .course-progress{margin-right:auto}
.course-note .moment-button{margin-top:12px}
.moment-course-dialog[data-stage=return] .course-picture{visibility:hidden}
.moment-course-dialog[data-stage=finished] .course-picture{opacity:1}
.course-mode-note{font:400 12px/1.5 var(--mm-sans);color:#696859}
.course-note-prompts{font:400 13px/1.65 var(--mm-sans);color:#5b6053}
@media(max-width:700px){
 .course-header{padding:8px 16px}
 .course-header h2{font-size:20px;flex-basis:100%}
 .course-header-actions{width:100%;justify-content:space-between;gap:4px}
 .moment-course-dialog:not([data-stage=choose]) .course-body{display:flex;flex-direction:column;gap:16px;align-items:stretch}
 .moment-course-dialog:not([data-stage=choose]) .course-picture{order:0}
 .moment-course-dialog .course-picture img{height:clamp(130px,25dvh,230px);max-height:none}
 .moment-course-dialog .course-reflection{order:1;width:100%}
 .moment-course-dialog .course-step-copy{font-size:17px;line-height:1.5;margin-bottom:8px}
 .course-reflection>.course-eyebrow{font-size:10px;margin-bottom:10px}
 .course-footer{padding:8px 16px calc(10px + env(safe-area-inset-bottom))}
 .course-actions .moment-button{flex:initial}
 .course-audio-panel{top:98px}
}

/* A dedicated writing view: its save action stays outside the scrolling content. */
.moment-course-dialog[data-stage=note] .course-body{display:block;padding:24px 28px;scroll-padding:12px}
.moment-course-dialog[data-stage=note] .course-reflection{width:100%;max-width:640px;margin:0 auto}
.moment-course-dialog[data-stage=note] .course-picture,
.moment-course-dialog[data-stage=note] .course-reflection>.course-eyebrow,
.moment-course-dialog[data-stage=note] .course-step-copy,
.moment-course-dialog[data-stage=note] #course-audio-settings{display:none}
.moment-course-dialog[data-stage=note] .course-note{margin:0}
.moment-course-dialog[data-stage=note] .course-note-prompts{margin:0 0 12px;line-height:1.5}
.moment-course-dialog[data-stage=note] #course-note-label:focus{outline:none}
.moment-course-dialog[data-stage=note] #course-note-help{margin:10px 0 0}
.moment-course-dialog[data-stage=note] #course-note:focus{outline:2px solid #667458;outline-offset:2px}
.moment-course-dialog[data-stage=note] #course-done{font-size:13px;padding:10px 12px}
@media(max-width:700px){
 .moment-course-dialog[data-stage=note] .course-header{flex-wrap:nowrap;padding:8px 16px}
 .moment-course-dialog[data-stage=note] .course-header h2{flex:1 1 auto;font-size:18px}
 .moment-course-dialog[data-stage=note] .course-header-actions{width:auto;flex:0 0 auto}
 .moment-course-dialog[data-stage=note] .course-body{padding:16px 20px}
 .moment-course-dialog[data-stage=note] #course-save-note{flex:1 1 180px;min-width:0}
 .moment-course-dialog[data-stage=note] #course-done{flex:0 0 auto}
 html[data-moment-keyboard] #moment-course-dialog[open][data-stage=note]{top:calc(var(--moment-visible-top,0px) + env(safe-area-inset-top,0px))!important;max-height:calc(var(--moment-visible-height,100dvh) - env(safe-area-inset-top,0px) - 8px)!important}
 html[data-moment-keyboard] #moment-course-dialog[data-stage=note] .course-footer{padding-bottom:8px}
}

/* The horizon changes around the photo; the photograph itself stays unchanged. */
.moment-course-card:has(#course-home-image[hidden]){grid-template-columns:1fr}
.course-home-picture:has(img[hidden]){display:none}
.moment-course-dialog{--course-sky:#f0f3ec;--course-ground:#dbe4d5;--course-horizon:66%;background:#f0f3ec}
.course-header,.course-footer,.course-audio-panel{background:#f0f3ec}
.moment-course-dialog:not([data-stage=choose]) .course-body{background:linear-gradient(to bottom,var(--course-sky) 0%,var(--course-sky) var(--course-horizon),var(--course-ground) 100%)}
.moment-course-dialog[data-phase=distance]{--course-sky:#e7ede3;--course-ground:#cbd6c7;--course-horizon:42%}
.moment-course-dialog[data-phase=afternoon]{--course-sky:#f3f0e5;--course-ground:#dce4d1;--course-horizon:56%}
.moment-course-dialog[data-phase=returning],.moment-course-dialog[data-phase=today]{--course-sky:#f2f5ec;--course-ground:#e0e8d9;--course-horizon:74%}
.course-transcript summary{min-height:44px;cursor:pointer;font:500 13px/44px var(--mm-sans);color:#4e5c44}
.moment-course-dialog .course-transcript .course-step-copy{font-size:15px;line-height:1.65;margin:2px 0 12px}
.moment-course-dialog .course-focus-text{font:400 clamp(27px,3vw,36px)/1.28 var(--mm-serif);margin:0 0 12px}
.course-linger .moment-text-button{min-height:44px;padding:10px 0;color:#3e5338;text-decoration:underline;text-underline-offset:4px;font-size:14px}
.course-linger:has(button:not([hidden])){margin-top:8px}
.moment-course-dialog[data-stage=note] .course-picture,.moment-course-dialog[data-stage=note] .course-transcript,.moment-course-dialog[data-stage=note] .course-focus-text{display:none}
.moment-course-dialog[data-stage=note] .course-body{display:block}
.moment-course-dialog[data-stage=note] .course-reflection{max-width:600px;margin:auto}
@media(max-width:700px){
 .moment-course-dialog:not([data-stage=choose]) .course-body{padding:18px 20px;gap:20px}
 .moment-course-dialog .course-picture img{height:clamp(175px,30dvh,270px)}
 .moment-course-dialog .course-focus-text{font-size:27px}
 .course-header-actions>.moment-text-button{font-size:12px}
}

/* 1.0.561: clarify the choice before the personal photograph. */
.moment-home .moment-course-card{gap:20px 28px}
.moment-home .moment-course-card>h2{grid-column:1/-1;margin:0;line-height:1.2;text-wrap:balance}
.moment-home .moment-course-card .moment-photo-meta{font:400 13px/1.5 var(--mm-sans);color:#625e52;margin:0 0 16px}
.moment-home .moment-course-card .moment-home-description{margin-top:0}
.moment-home .moment-course-card .moment-button{max-width:100%;white-space:normal;text-align:left}
@media(max-width:700px){.moment-home .moment-course-card{gap:18px}}
