/* ==========================================================================
   Landingpage Kalender (Calendar Agent) – Vorführungen (agents/calendar/landing-view.php)
   Nur Variablen aus tokens.css und landing.css. Klassenpräfix lpc-.
   ========================================================================== */

/* ---------- Gemeinsam: Umschalter, Nachrichten ---------- */
.lpc-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); flex: none; }
.lpc-seg span {
    padding: 4px 10px; border-radius: 7px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2);
    transition: background .25s ease, color .25s ease, transform .15s ease, box-shadow .25s ease;
}
.lpc-seg span.is-on { background: var(--surface); color: var(--lp-a); box-shadow: 0 2px 6px -2px var(--lp-shadow); }
.lpc-seg span.is-pressed { transform: scale(.93); }

.lpc-msg { display: flex; gap: 8px; align-items: flex-start; transition: opacity .35s ease, transform .35s ease; }
.lpc-msg.is-me { justify-content: flex-end; }
.lpc-msg.is-me p { margin: 0; max-width: 82%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--lp-ink); color: var(--bg); font-size: var(--fs-sm); line-height: 1.45; min-height: 1.45em; }
.lpc-bub { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: var(--lp-a-soft); border: 1px solid var(--lp-a-line); }
.lpc-bub p { margin: 0; font-size: var(--fs-sm); line-height: 1.45; min-height: 1.45em; }
.lpc-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; transition: opacity .3s ease; }
.lpc-msg.is-hidden, .lpc-dlg.is-hidden { opacity: 0; transform: translateY(6px); }
.lpc-btns.is-hidden { opacity: 0; }

/* ---------- Zeitraster (Hero, Tag, Woche) ---------- */
/* contain: Raster mit fr-Spalten sollen die Spalte des Hero am Handy nicht aufweiten */
.lpc-week { contain: inline-size; --hr: 32px; --tc: 40px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.lpc-week-head, .lpc-week-body { display: grid; grid-template-columns: var(--tc) repeat(var(--cols), minmax(0, 1fr)); }
/* Wochentags-Kopf als Farbbalken wie im Kalender selbst */
.lpc-week-head { background: var(--lp-a); color: var(--lp-on-a); }
.lpc-week-head span { padding: 5px 2px; text-align: center; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc-week-head b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 3px; border-radius: 99px; }
.lpc-week-head .is-today b { background: var(--lp-on-a); color: var(--lp-a); }
.lpc-hours { display: flex; flex-direction: column; }
.lpc-hours span { box-sizing: border-box; height: var(--hr); padding: 2px 5px 0 0; text-align: right; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-2); white-space: nowrap; }
.lpc-col {
    position: relative; height: calc(var(--hr) * 9); border-left: 1px solid var(--border);
    background-image: repeating-linear-gradient(to bottom, var(--border) 0 1px, transparent 1px var(--hr));
}
.lpc-col.is-today { background-color: color-mix(in oklab, var(--lp-a) 6%, var(--surface)); }
.lpc-now { position: absolute; left: 0; right: 0; top: calc(var(--s) * var(--hr)); height: 2px; background: var(--c-danger); z-index: 3; }
.lpc-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-danger); }

.lpc-ev {
    position: absolute; left: 3px; right: 3px; z-index: 1; box-sizing: border-box;
    top: calc(var(--s) * var(--hr) + 1px); height: calc(var(--h) * var(--hr) - 2px);
    display: flex; flex-direction: column; gap: 1px; padding: 3px 5px; border-radius: 6px;
    background: color-mix(in oklab, var(--lp-a) 15%, var(--surface)); border-left: 3px solid var(--lp-a); color: var(--text);
    transition: top .6s cubic-bezier(.5, 0, .2, 1), box-shadow .3s ease;
}
.lpc-ev strong { display: flex; align-items: center; gap: 3px; min-width: 0; font-size: 10.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc-ev strong .icon { flex: none; color: var(--lp-a); }
.lpc-ev span { font-family: var(--font-mono); font-size: 9.5px; line-height: 1.2; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc-ev.is-short { padding-block: 2px; }
.lpc-ev.is-short span { display: none; }
/* Vorlaufzeit (Anfahrt) wird schraffiert mitgeblockt */
.lpc-ev::before {
    content: ""; position: absolute; left: -3px; right: 0; bottom: 100%; height: calc(var(--l, 0) * var(--hr));
    border-radius: 6px 6px 0 0; background: repeating-linear-gradient(135deg, var(--lp-a-line) 0 3px, transparent 3px 7px);
}
.lpc-ev.is-task { background: var(--c-warning-soft); border-left-color: var(--c-warning); }
.lpc-ev.is-inbox { background: var(--c-success-soft); border-left-color: var(--c-success); }
.lpc-ev.is-api { background: color-mix(in oklab, var(--lp-a2) 15%, var(--surface)); border-left-color: var(--lp-a2); }
.lpc-ev.is-api strong .icon { color: var(--lp-a2); }
.lpc-ev.is-focus { box-shadow: 0 0 0 2px var(--lp-a), 0 8px 18px -8px var(--lp-glow); z-index: 2; }

/* Zeiger erst zeigen, wenn die Szene ihn bewegt */
[data-lp-scene^="calendar-"] .lp-cursor { transition: transform .7s cubic-bezier(.6, .05, .3, 1), opacity .3s ease; }
[data-lp-scene^="calendar-"] .lp-cursor:not([style]) { opacity: 0; }

/* ---------- Hero ---------- */
/* Im Hero dürfen Titel zweizeilig sein, die Uhrzeit steht nur bei langen Terminen */
.lpc-week.is-hero .lpc-ev strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; hyphens: auto; overflow-wrap: anywhere; }
.lpc-week.is-hero .lpc-ev.is-short strong { -webkit-line-clamp: 1; }
.lpc-week.is-hero .lpc-ev strong .icon { display: inline-block; vertical-align: -1px; margin-right: 2px; }
.lpc-week.is-hero .lpc-ev:not(.is-long) span { display: none; }
/* contain: Einzeilige Texte der Vorführung sollen die Spalte des Hero am Handy nicht aufweiten */
.lpc-hero { contain: inline-size; position: relative; display: flex; flex-direction: column; gap: 10px; }
.lpc-alex { display: flex; gap: 10px; align-items: flex-start; }
.lpc-alex-text {
    flex: 1; min-width: 0; margin: 0; padding: 8px 12px; min-height: 2.9em; border-radius: 4px 14px 14px 14px;
    background: var(--lp-a-soft); border: 1px solid var(--lp-a-line); font-size: var(--fs-sm); line-height: 1.45;
}
.lpc-nl {
    position: relative; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 5px 0 12px;
    border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface);
}
.lpc-nl-input { flex: 1; min-width: 0; font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc-nl-input.is-filled { color: var(--text); }
.lpc-nl-go { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--lp-a); color: var(--lp-on-a); transition: transform .15s ease; }
.lpc-nl-go.is-pressed { transform: scale(.88); }
.lpc-nl-panel { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; padding: 0 5px; border-radius: inherit; background: var(--surface); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.lpc-hero.is-asking .lpc-nl-panel { opacity: 1; }
.lpc-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lpc-bar strong { font-size: var(--fs-sm); color: var(--lp-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Bühne ---------- */
.lpc-stage-win .lp-win-body { min-height: 380px; }
.lpc-s-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.lpc-s-head strong { color: var(--lp-ink); }
.lpc-s-head span { font-size: var(--fs-xs); color: var(--text-2); }
.lpc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lpc-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lpc-field label { font-size: var(--fs-xs); color: var(--text-2); font-weight: 600; }
.lpc-input { display: block; height: 36px; line-height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc-switch { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: var(--fs-sm); }
.lpc-switch i { position: relative; flex: none; width: 36px; height: 20px; border-radius: 99px; background: var(--lp-a); }
.lpc-switch i::after { content: ""; position: absolute; top: 3px; left: 19px; width: 14px; height: 14px; border-radius: 50%; background: var(--lp-on-a); }
.lpc-s1-themes > span { display: block; font-size: var(--fs-xs); color: var(--text-2); font-weight: 600; margin-bottom: 6px; }

.lpc-themes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lpc-th { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 6px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font-size: var(--fs-xs); font-weight: 600; color: var(--text); }
.lpc-th i { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.lpc-th.is-on { border-color: var(--lp-a-line); background: var(--lp-a-soft); color: var(--lp-a); }
.lpc-th.is-std i { background: linear-gradient(135deg, var(--lp-a), var(--lp-a2)); }
.lpc-th.is-ocean i { background: linear-gradient(135deg, var(--lp-a2), color-mix(in oklab, var(--lp-a2) 50%, var(--lp-a))); }
.lpc-th.is-forest i { background: linear-gradient(135deg, var(--c-success), color-mix(in oklab, var(--c-success) 60%, var(--text))); }
.lpc-th.is-violet i { background: linear-gradient(135deg, color-mix(in oklab, var(--lp-a2) 55%, var(--c-danger)), var(--lp-a2)); }
.lpc-th.is-sunset i { background: linear-gradient(135deg, var(--c-warning), var(--c-danger)); }
.lpc-th.is-plain i { background: linear-gradient(135deg, var(--text-2), var(--border-strong)); }

.lpc-src { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.lpc-src li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.lpc-src-icon { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--lp-a-soft); color: var(--lp-a); }

.lpc-s3-grid { display: grid; grid-template-columns: 48px minmax(0, 1fr); --hr: 60px; }
.lpc-s3-hours { display: flex; flex-direction: column; }
.lpc-s3-hours span { height: var(--hr); font-family: var(--font-mono); font-size: 10px; color: var(--text-2); }
.lpc-s3-hours span:last-child { height: 0; }
.lpc-s3-lane {
    position: relative; height: calc(var(--hr) * 3); border-left: 1px solid var(--border);
    background-image: repeating-linear-gradient(to bottom, var(--border) 0 1px, transparent 1px var(--hr));
}
.lpc-s3-ev {
    position: absolute; top: calc(var(--s) * var(--hr)); height: calc(var(--h) * var(--hr) - 2px); box-sizing: border-box;
    display: flex; flex-direction: column; gap: 2px; padding: 5px 8px; border-radius: 8px; font-size: var(--fs-xs);
}
.lpc-s3-ev strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc-s3-ev span { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-2); }
.lpc-s3-ev.is-old { left: 6px; right: 46%; background: color-mix(in oklab, var(--lp-a) 15%, var(--surface)); border-left: 3px solid var(--lp-a); }
.lpc-s3-ev.is-old::before {
    content: ""; position: absolute; left: -3px; right: 0; bottom: 100%; height: calc(var(--l) * var(--hr));
    border-radius: 8px 8px 0 0; background: repeating-linear-gradient(135deg, var(--lp-a-line) 0 3px, transparent 3px 7px);
}
.lpc-s3-ev.is-old em { position: absolute; left: 6px; bottom: calc(100% + 6px); font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--lp-a); background: var(--surface); padding: 1px 6px; border-radius: 99px; }
.lpc-s3-ev.is-new { left: 57%; right: 6px; background: var(--c-danger-soft); border: 1px solid var(--c-danger); color: var(--text); box-shadow: 0 8px 18px -10px var(--lp-shadow); }
.lpc-warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--c-warning-soft); color: var(--text); font-size: var(--fs-xs); line-height: 1.45; }
.lpc-warn .icon { flex: none; color: var(--c-warning); margin-top: 1px; }
.lpc-warn strong { display: block; font-size: var(--fs-sm); }

.lpc-s4-alex { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.lpc-s4-alex p { margin: 0; flex: 1; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: var(--lp-a-soft); border: 1px solid var(--lp-a-line); font-size: var(--fs-sm); }
.lpc-today { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lpc-today li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); border-left: 3px solid var(--lp-a); font-size: var(--fs-sm); }
.lpc-today li.is-task { border-left-color: var(--c-warning); }
.lpc-today li .lp-time { min-width: 56px; }
.lpc-today li strong { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.lpc-kpis div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.lpc-kpis span { font-size: var(--fs-xs); color: var(--text-2); }
.lpc-kpis b { font-size: var(--fs-lg); color: var(--lp-a); }
.lpc-mailrem { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--fs-xs); color: var(--text-2); }
.lpc-mailrem .icon { color: var(--lp-a); flex: none; }

/* Einlauf je Schritt: startet neu, sobald die Szene aktiv wird */
@keyframes lpc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lpc-drop { 0% { opacity: 0; transform: translateY(-26px); } 70% { opacity: 1; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }
@keyframes lpc-pop { 0% { opacity: 0; transform: scale(.92); } 60% { transform: scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes lpc-knob { from { left: 3px; } }
@keyframes lpc-off { from { background: var(--border-strong); } }
.lp-js [data-step="1"] .lpc-s1 .lpc-field,
.lp-js [data-step="1"] .lpc-s1 .lpc-switch,
.lp-js [data-step="1"] .lpc-s1 .lpc-s1-themes,
.lp-js [data-step="2"] .lpc-s2 .lpc-src li,
.lp-js [data-step="4"] .lpc-s4 .lpc-today li,
.lp-js [data-step="4"] .lpc-s4 .lpc-kpis div,
.lp-js [data-step="4"] .lpc-s4 .lpc-mailrem { animation: lpc-in .45s both; animation-delay: calc(var(--d) * 300ms + 200ms); }
.lp-js [data-step="1"] .lpc-s1 .lpc-switch i { animation: lpc-off .3s both 1.9s; }
.lp-js [data-step="1"] .lpc-s1 .lpc-switch i::after { animation: lpc-knob .3s both 1.9s; }
.lp-js [data-step="1"] .lpc-s1 .lpc-th.is-on { animation: lpc-pop .45s both 2.4s; }
.lp-js [data-step="3"] .lpc-s3 .lpc-s3-ev.is-new { animation: lpc-drop .6s both .5s; }
.lp-js [data-step="3"] .lpc-s3 .lpc-warn { animation: lpc-pop .5s both 1.3s; }

/* ---------- Massen-Absage ---------- */
.lpc-bulk { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 330px; }
.lpc-bulk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lpc-bulk-list li {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface); font-size: var(--fs-sm); transition: opacity .35s ease, background .35s ease, border-color .35s ease;
}
.lpc-bulk-list li .lp-time { min-width: 108px; }
.lpc-bulk-list li strong { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: line-through transparent; transition: text-decoration-color .3s ease; }
.lpc-bulk-list li.is-off { opacity: .55; background: var(--surface-2); }
.lpc-bulk-list li.is-off strong { text-decoration-color: var(--c-danger); }
.lpc-bulk-list li.is-back { border-color: var(--lp-a-line); background: var(--lp-a-soft); }
.lpc-bulk .lp-toast b { margin-left: 4px; transition: transform .15s ease; }
.lpc-bulk .lp-toast b.is-pressed { transform: scale(.9); }

/* ---------- Ansichten ---------- */
.lpc-views { position: relative; display: flex; flex-direction: column; gap: 10px; }
.lpc-views-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.lpc-url { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); background: var(--surface-2); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.lpc-url b { color: var(--lp-a); }
.lpc-panes { position: relative; height: 262px; }
.lpc-pane { position: absolute; inset: 0; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.lpc-pane.is-on { opacity: 1; transform: none; }
.lpc-week.is-mini { --hr: 24px; }
.lpc-week.is-mini .lpc-ev span { display: none; }
.lpc-week.is-mini .lpc-ev::before { display: none; }
.lpc-week.is-day { --hr: 25px; }
.lpc-week.is-day .lpc-ev { flex-direction: row; align-items: baseline; gap: 8px; }
.lpc-week.is-day .lpc-ev span { display: block; }

/* ---------- Monatsraster ---------- */
.lpc-month { contain: inline-size; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.lpc-month-head, .lpc-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.lpc-month-head { background: var(--lp-a); color: var(--lp-on-a); }
.lpc-month-head span { padding: 5px 0; text-align: center; font-size: 11px; font-weight: 700; }
.lpc-day { position: relative; min-width: 0; min-height: 52px; box-sizing: border-box; padding: 4px 4px 5px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.lpc-day:nth-child(7n + 1) { border-left: 0; }
.lpc-day > b { font-size: 11px; font-weight: 600; color: var(--text); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 99px; }
.lpc-day.is-we { background: color-mix(in oklab, var(--surface-2) 55%, var(--surface)); }
.lpc-day.is-out { background: var(--surface-2); }
.lpc-day.is-out > b { color: var(--text-2); }
.lpc-day.is-today > b { background: var(--lp-a); color: var(--lp-on-a); }
.lpc-dots { display: flex; gap: 3px; margin-top: auto; padding-left: 3px; }
.lpc-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--lp-a); }
.lpc-month.is-small .lpc-day { min-height: 40px; }
.lpc-hol {
    font-style: normal; font-size: 9.5px; line-height: 1.25; font-weight: 600; padding: 2px 4px; border-radius: 4px;
    color: var(--lp-a2); background: color-mix(in oklab, var(--lp-a2) 14%, var(--surface));
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; hyphens: auto; overflow-wrap: anywhere;
}

/* ---------- Feiertage ---------- */
.lpc-holi { position: relative; display: flex; flex-direction: column; gap: 10px; }
.lpc-holi-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.lpc-holi-top > strong { font-size: var(--fs-md); color: var(--lp-ink); }
.lpc-select { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); transition: border-color .25s ease, box-shadow .25s ease; }
.lpc-select small { font-size: 11px; color: var(--text-2); }
.lpc-select b { font-size: var(--fs-sm); color: var(--text); }
.lpc-select .icon { color: var(--text-2); }
.lpc-select.is-flash { border-color: var(--lp-a); box-shadow: 0 0 0 3px var(--lp-a-soft); }
.lpc-holi .lpc-hol.is-b { display: none; }
.lpc-holi.is-b .lpc-hol.is-a { display: none; }
.lpc-holi.is-b .lpc-hol.is-b { display: -webkit-box; }
.lpc-holi.is-b .lpc-hol.is-b, .lpc-holi.is-a .lpc-hol.is-a { animation: lpc-pop .4s both; }
.lpc-holi-hint { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-xs); color: var(--text-2); }
.lpc-holi-hint .icon { flex: none; color: var(--lp-a2); }

/* ---------- Buchung über die Website ---------- */
.lpc-book { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "site cal" "wire wire"; gap: 12px; align-items: start; }
.lpc-site { grid-area: site; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); }
.lpc-site-bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); font-family: var(--font-mono); font-size: 10.5px; color: var(--text-2); min-width: 0; }
.lpc-site-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc-site > strong { margin-top: 4px; font-size: var(--fs-sm); color: var(--lp-ink); }
.lpc-site-day { font-size: var(--fs-xs); color: var(--text-2); }
.lpc-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 2px; }
.lpc-slot {
    height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface);
    font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}
.lpc-slot.is-picked { background: var(--lp-a); border-color: transparent; color: var(--lp-on-a); }
.lpc-slot.is-taken { background: var(--c-danger-soft); border-color: transparent; color: var(--c-danger); text-decoration: line-through; }
.lpc-slot.is-pressed { transform: scale(.93); }
.lpc-log { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lpc-log li { display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.3; transition: opacity .3s ease, transform .3s ease; }
.lpc-log li .icon { flex: none; }
.lpc-log li b { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.lpc-log li.is-ok { color: var(--c-success); }
.lpc-log li.is-err { color: var(--c-danger); }
.lpc-log li span { color: var(--text); min-width: 0; }
.lpc-log li.is-hidden, .lpc-daylist-row.is-hidden { opacity: 0; transform: translateY(-4px); }
.lpc-wire { grid-area: wire; display: flex; flex-wrap: wrap; gap: 6px; }
.lpc-wire code { font-family: var(--font-mono); font-size: 10.5px; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); border: 1px solid transparent; transition: border-color .25s ease, color .25s ease; }
.lpc-wire.is-send code { border-color: var(--lp-a-line); color: var(--lp-a); }
.lpc-daylist { grid-area: cal; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.lpc-daylist-head { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.lpc-daylist-head .icon { color: var(--lp-a); flex: none; }
.lpc-daylist-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid transparent; font-size: var(--fs-xs); transition: opacity .35s ease, transform .35s ease; }
.lpc-daylist-row strong { flex: 1 1 8em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc-daylist-row.is-new { background: var(--lp-a-soft); border-color: var(--lp-a-line); }

/* ---------- Gespräch mit Alex ---------- */
.lpc-talk { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.lpc-say-label { margin: 0 0 12px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.lpc-say { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lpc-say li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); color: var(--text); font-size: var(--fs-base); }
.lpc-say li .icon { flex: none; color: var(--lp-a); }
.lpc-chat { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 340px; }
.lpc-dlg { margin-left: 34px; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: 0 14px 30px -18px var(--lp-shadow); transition: opacity .35s ease, transform .35s ease; }
.lpc-dlg-head { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.lpc-dlg-head .icon { color: var(--lp-a); flex: none; }
.lpc-dlg-fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.lpc-dlg-fields span { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc-dlg-fields small { font-size: 10.5px; color: var(--text-2); }
.lpc-dlg-fields b { color: var(--lp-a); }
.lpc-dlg .lp-pill { align-self: flex-end; }

/* ---------- Mini-Demos im Raster ---------- */
.lpc-mini-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 900px) {
    .lpc-talk { grid-template-columns: 1fr; }
    /* Bühne ist am Handy auf 300 px begrenzt */
    .lpc-stage-win .lp-win-body { min-height: 0; }
    .lpc-src li:nth-child(5) { display: none; }
    .lpc-s3-grid { --hr: 44px; }
    .lpc-mailrem { display: none; }
    .lpc-s4-alex { margin-bottom: 8px; }
}
@media (max-width: 640px) {
    .lpc-week { --tc: 36px; }
    .lpc-week-head span { font-size: 10px; }
    .lpc-ev { left: 2px; right: 2px; padding-inline: 3px; }
    .lpc-ev strong { font-size: 9.5px; }
    .lpc-ev strong .icon { display: none; }
    .lpc-alex-text { min-height: 4.35em; }
    .lpc-bar strong { font-size: var(--fs-xs); }
    .lpc-bulk-list li .lp-time { min-width: 0; }
    .lpc-book { grid-template-columns: 1fr; grid-template-areas: "site" "wire" "cal"; }
    .lpc-day { min-height: 46px; padding: 3px 2px; }
    .lpc-hol { font-size: 8.5px; padding: 1px 2px; }
    .lpc-dlg { margin-left: 0; }
    .lpc-dlg-fields { grid-template-columns: 1fr 1fr; }
    .lpc-dlg-fields span:first-child { grid-column: span 2; }
    .lpc-fields { gap: 8px; }
    .lpc-s1-themes .lpc-th:nth-child(n + 5) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lpc-ev, .lpc-seg span, .lpc-msg, .lpc-btns, .lpc-pane, .lpc-slot, .lpc-log li, .lpc-daylist-row, .lpc-bulk-list li, .lpc-dlg, .lpc-nl-panel { transition: none !important; }
    .lpc-s1 *, .lpc-s1 *::after, .lpc-s2 *, .lpc-s3 *, .lpc-s4 *, .lpc-hol { animation: none !important; }
}
