/* Funktionen-Seite (funktionen.html). Baut auf style.css auf. Szenen-Teile unter .scene. */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url('/fonts/bricolage-grotesque.woff2') format('woff2'); }

/* ===== Kopf ===== */
.fx-head { max-width: 1200px; margin: 0 auto; padding: 150px 48px 0; }
.fx-head h1 { font-family: 'Geist', sans-serif; font-size: 3.4rem; font-weight: 800; letter-spacing: -1.6px; line-height: 1.06; max-width: 18ch; }
.fx-head .section-sub { max-width: 640px; margin-top: 20px; }
.fx-jump { position: sticky; top: 72px; z-index: 50; margin: 40px auto 72px; max-width: 1200px; padding: 10px 48px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; background: rgba(250,251,252,0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.fx-jump::-webkit-scrollbar { display: none; }
.fx-jump a { flex: none; padding: 9px 16px; border-radius: 100px; background: #fff; border: 1px solid rgba(0,0,0,0.07); color: var(--text); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.fx-jump a:hover { border-color: var(--blue); color: var(--blue); }

/* ===== Kategorien ===== */
.fx-cat { scroll-margin-top: 140px; margin-bottom: var(--section-gap); }
.fx-cat > .section-label { max-width: 1200px; margin: 0 auto 28px; padding: 0 48px; }
.fx-cat .feature-row { margin-bottom: 88px; }
.fx-cat .feature-row:last-child { margin-bottom: 0; }
.fx-more { display: inline-block; margin-top: 18px; font-size: 0.95rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.fx-more:hover { text-decoration: underline; }

/* Free / Pro */
.plan { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; }
.plan.free { background: #e7f3ec; color: #0b6b42; }
.plan.pro { background: rgba(14,100,112,0.1); color: var(--blue-dark); }
.plan + .plan { margin-left: 4px; }
.feature-text .plan { margin-bottom: 14px; }

/* Kachelraster für die kleineren Funktionen */
.fx-grid { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-row + .fx-grid { margin-top: 72px; }
.fx-card { background: var(--card-bg); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius); padding: 26px 26px 24px; display: flex; flex-direction: column; }
.fx-card h3 { font-family: 'Geist', sans-serif; font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin: 12px 0 8px; }
.fx-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.fx-card code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.86em; background: #f1f3f5; padding: 1px 5px; border-radius: 4px; color: var(--text); }
.fx-card .fx-more { margin-top: auto; padding-top: 14px; font-size: 0.9rem; }

.fx-cta { max-width: 1200px; margin: 0 auto var(--section-gap); padding: 0 48px; }
.fx-cta-box { background: #ddeff0; border: 1px solid rgba(14,100,112,0.25); border-radius: 20px; padding: 48px 52px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.fx-cta-box h2 { font-size: 2.1rem; margin: 0 0 8px; }
.fx-cta-box p { color: #3f4b5a; font-size: 1.02rem; line-height: 1.6; max-width: 52ch; }
.fx-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 1040px) { .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .fx-head { padding: 112px 24px 0; }
  .fx-head h1 { font-size: 2.4rem; letter-spacing: -1px; }
  .fx-jump { top: 64px; padding: 10px 24px; margin: 28px auto 48px; }
  .fx-cat > .section-label { padding: 0 24px; }
  .fx-cat .feature-row { margin-bottom: 64px; }
  .fx-grid { padding: 0 24px; }
  .feature-row + .fx-grid { margin-top: 48px; }
  .fx-cta { padding: 0 24px; }
  .fx-cta-box { padding: 34px 26px; }
  .fx-cta-box h2 { font-size: 1.7rem; }
}
@media (max-width: 640px) { .fx-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   Szenen
   =================================================================== */
.scene {
  --paper: #eceff3; --tile: #fff; --line: rgba(26,26,46,0.1); --ink: #1a1a2e; --ink-2: #4a4f5c; --ink-3: #5f6470;
  --petrol: #0e6470; --petrol-bg: #ddeff0; --amber: #a15c00; --red: #b42318; --star: #c27803;
  --display: 'Bricolage Grotesque', 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative; overflow: hidden; background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.4;
  aspect-ratio: 16 / 11; padding: 22px;
}
.scene *, .scene *::before, .scene *::after { transition-timing-function: var(--ease); }
.scene.no-tx, .scene.no-tx * { transition: none !important; animation: none !important; }
.scene-toggle { position: absolute; right: 10px; bottom: 10px; z-index: 20; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.9); box-shadow: 0 1px 3px rgba(0,0,0,0.12); cursor: pointer; display: grid; place-items: center; opacity: 0.55; transition: opacity 0.2s; }
.scene:hover .scene-toggle, .scene-toggle:focus-visible { opacity: 1; }
.scene-toggle svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scene-toggle .r { display: none; fill: var(--ink); }
.scene.paused .scene-toggle .p { display: none; }
.scene.paused .scene-toggle .r { display: block; }

/* Bausteine */
.scene .s-tile { position: relative; background: var(--tile); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; box-shadow: 0 1px 2px rgba(26,26,46,0.04); min-width: 0; }
.scene .s-title { font-family: var(--display); font-weight: 600; font-size: 0.98em; line-height: 1.3; display: flex; gap: 8px; align-items: flex-start; }
.scene .s-title::before { content: ''; flex: none; width: 13px; height: 13px; margin-top: 2px; border: 1.5px solid #9aa0aa; border-radius: 50%; background: #fff; }
.scene .s-meta { margin-top: 7px; padding-left: 21px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.82em; font-weight: 500; color: var(--ink-3); }
.scene .s-meta .due { color: var(--red); font-weight: 600; }
.scene .s-meta .stars { color: var(--star); letter-spacing: 1px; }
.scene .s-score { position: absolute; top: 9px; right: 9px; font-size: 0.75em; font-weight: 600; color: var(--ink-2); background: #f1f2f5; border-radius: 5px; padding: 2px 6px; font-variant-numeric: tabular-nums; }
.scene .s-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 7px; background: var(--petrol); color: #fff; font-weight: 600; font-size: 0.85em; transition: transform 0.15s, box-shadow 0.2s; }
.scene .s-btn.soft { background: #e3f0f2; color: var(--petrol); }
.scene .s-check { flex: none; width: 15px; height: 15px; border: 1.5px solid #9aa0aa; border-radius: 4px; background: #fff; display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.scene .s-check::after { content: ''; width: 7px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; transition: opacity 0.2s; }
.scene .s-check.on { background: var(--petrol); border-color: var(--petrol); }
.scene .s-check.on::after { opacity: 1; }
.scene .s-caret::after { content: ''; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--petrol); animation: s-blink 1s steps(1) infinite; }
@keyframes s-blink { 50% { opacity: 0; } }
.scene .s-cursor { position: absolute; z-index: 15; width: 18px; height: 18px; pointer-events: none; opacity: 0; transition: transform 0.7s, opacity 0.3s; }
.scene .s-cursor svg { width: 100%; height: 100%; fill: #1a1a2e; stroke: #fff; stroke-width: 1.5; }

/* ---------- Szene: SMS ---------- */
.sc-sms { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 22px; align-items: center; }
.sc-sms .phone { position: relative; background: #fff; border-radius: 26px; border: 6px solid #1f2430; height: 100%; max-height: 360px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 30px rgba(26,26,46,0.14); }
.sc-sms .ph-head { padding: 14px 10px 8px; text-align: center; border-bottom: 1px solid #eef0f3; font-size: 0.78em; color: var(--ink-3); }
.sc-sms .ph-head b { display: block; color: var(--ink); font-size: 1.15em; font-weight: 600; }
.sc-sms .ph-av { width: 30px; height: 30px; margin: 0 auto 4px; border-radius: 50%; background: var(--petrol); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.05em; }
.sc-sms .ph-body { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.sc-sms .bubble { align-self: flex-end; max-width: 88%; background: #0b84ff; color: #fff; border-radius: 16px 16px 4px 16px; padding: 8px 11px; font-size: 0.9em; line-height: 1.35; opacity: 0; transform: translateY(14px) scale(0.92); transform-origin: bottom right; transition: opacity 0.35s, transform 0.45s; }
.sc-sms .bubble.old { opacity: 1; transform: none; background: #e9e9eb; color: var(--ink); align-self: flex-end; background: #0b84ff; color: #fff; }
.sc-sms .delivered { align-self: flex-end; font-size: 0.72em; color: var(--ink-3); opacity: 0; transition: opacity 0.3s 0.3s; }
.sc-sms .ph-input { margin: 0 8px 10px; border: 1px solid #d9dce1; border-radius: 18px; padding: 7px 12px; font-size: 0.88em; min-height: 32px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.sc-sms .ph-input .ph-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: clip; direction: ltr; }
.sc-sms .ph-send { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #c7cad0; transition: background 0.2s; display: grid; place-items: center; }
.sc-sms .ph-send svg { width: 11px; height: 11px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sc-sms .ph-hint { color: #9aa0aa; }
.sc-sms .ph-text:not(:empty) + .ph-hint, .sc-sms .ph-hint.gone { display: none; }
.sc-sms.at-1 .ph-send { background: #0b84ff; }
.sc-sms.at-2 .ph-input .ph-text { visibility: hidden; }
.sc-sms.at-2 .ph-send { background: #c7cad0; }
.sc-sms.at-2 .bubble.new { opacity: 1; transform: none; }
.sc-sms.at-2 .delivered { opacity: 1; }

.sc-sms .mini-board { display: flex; flex-direction: column; gap: 10px; }
.sc-sms .mb-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.8em; font-weight: 600; color: var(--ink-3); }
.sc-sms .mb-head .ws { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.sc-sms .mb-head .ws::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--petrol); }
.sc-sms .mb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-sms .mb-grid .s-tile { position: relative; min-height: 74px; }
.sc-sms .mb-grid .s-tile.wide { grid-column: span 2; }
.sc-sms .t-new { grid-column: span 2; max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; opacity: 0; overflow: hidden; transform: translateX(-30px); transition: max-height 0.5s, padding 0.5s, opacity 0.4s 0.15s, transform 0.5s 0.15s, box-shadow 0.6s, border-color 0.6s; }
.sc-sms.at-3 .t-new { max-height: 120px; padding-top: 11px; padding-bottom: 11px; border-width: 1px; opacity: 1; transform: none; border-color: var(--petrol); box-shadow: 0 0 0 4px rgba(14,100,112,0.14); }
.sc-sms .t-new .s-meta span { transition: background 0.3s, color 0.3s; border-radius: 4px; padding: 0 3px; margin: 0 -3px; }
.sc-sms.at-4 .t-new .s-meta span { background: #e3f0f2; }
.sc-sms.at-4 .t-new .s-meta .due { background: #fde8e6; }
.sc-sms.at-4 .t-new .s-meta .stars { background: #fdf1d8; }
.sc-sms .mb-note { font-size: 0.8em; color: var(--ink-3); opacity: 0; transition: opacity 0.4s; }
.sc-sms.at-4 .mb-note { opacity: 1; }

/* ---------- Szene: Zoom mit Gruppen ---------- */
.sc-zoom .zb { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 100%; }
.sc-zoom .zb .s-tile { position: relative; }
.sc-zoom .zb .big { grid-row: span 2; display: flex; flex-direction: column; }
.sc-zoom .zb .big .s-title { font-size: 1.15em; }
.sc-zoom .sub-list { margin: 10px 0 0 21px; list-style: none; font-size: 0.85em; color: var(--ink-2); line-height: 1.75; }
.sc-zoom .sub-list li::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; border: 1.5px solid #9aa0aa; vertical-align: 0; }
.sc-zoom .zoom-open { margin-top: auto; align-self: flex-end; }
.sc-zoom.at-1 .zoom-open { transform: scale(0.94); box-shadow: 0 0 0 4px rgba(14,100,112,0.18); }

.sc-zoom .zv { position: absolute; inset: 14px; z-index: 5; background: var(--paper); border-radius: 14px; box-shadow: 0 20px 50px rgba(26,26,46,0.22), 0 0 0 1px var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; transform-origin: 18% 30%; transform: scale(0.35); opacity: 0; transition: transform 0.55s, opacity 0.35s; }
.sc-zoom.at-2 .zv { transform: none; opacity: 1; }
.sc-zoom .zv::before { content: ''; position: absolute; inset: -7px; border-radius: 18px; border: 3px solid rgba(14,100,112,0.28); pointer-events: none; }
.sc-zoom .zv-bar { display: flex; align-items: center; gap: 10px; font-size: 0.82em; color: var(--ink-3); }
.sc-zoom .zv-bar b { color: var(--ink); font-weight: 600; }
.sc-zoom .zv-back { background: #fff; border-radius: 6px; padding: 3px 8px; font-weight: 600; color: var(--ink); box-shadow: 0 1px 2px rgba(26,26,46,0.08); }
.sc-zoom .zv-title { font-family: var(--display); font-size: 1.2em; font-weight: 700; letter-spacing: -0.02em; }
.sc-zoom .zv-cols { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 0; }
.sc-zoom .grp { background: rgba(255,255,255,0.55); border: 1px solid var(--line); border-radius: 11px; padding: 9px; display: flex; flex-direction: column; gap: 7px; min-width: 0; transition: background 0.3s, border-color 0.3s, opacity 0.4s; }
.sc-zoom .grp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-weight: 700; font-size: 0.86em; }
.sc-zoom .grp-h small { font-weight: 500; color: var(--ink-3); font-size: 0.9em; white-space: nowrap; }
.sc-zoom .card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 0.82em; font-weight: 500; line-height: 1.3; box-shadow: 0 1px 2px rgba(26,26,46,0.05); }
.sc-zoom .card.d { color: var(--ink-3); text-decoration: line-through; }
.sc-zoom .slot { height: 0; opacity: 0; padding: 0 9px; border-width: 0; overflow: hidden; transition: height 0.3s, padding 0.3s, opacity 0.2s; }
.sc-zoom .loose { display: flex; flex-direction: column; gap: 7px; }
.sc-zoom .loose-h { font-size: 0.78em; font-weight: 600; color: var(--ink-3); }
.sc-zoom .mover { position: relative; z-index: 3; max-height: 60px; overflow: hidden; transition: transform 0.9s, box-shadow 0.3s, opacity 0.2s, max-height 0.3s 0.2s, padding 0.3s 0.2s; }
.sc-zoom.at-4 .m1, .sc-zoom.at-6 .m2 { max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
.sc-zoom .loose-h { transition: opacity 0.2s; }
.sc-zoom.at-6 .loose-h { display: none; }
.sc-zoom .newgrp { border-style: dashed; border-color: rgba(14,100,112,0.4); background: transparent; color: var(--petrol); font-size: 0.8em; font-weight: 600; align-items: center; justify-content: center; text-align: center; opacity: 0; }
.sc-zoom .newgrp .grp-h { display: none; }
/* Schritt 3: „Bilder auswählen“ wandert nach „Design“ */
.sc-zoom.at-3 .m1 { box-shadow: 0 12px 26px rgba(26,26,46,0.2); }
.sc-zoom.at-3 .g-design { background: #e9f4f5; border-color: rgba(14,100,112,0.45); }
.sc-zoom.at-4 .m1 { opacity: 0; }
.sc-zoom.at-4 .slot1 { height: auto; opacity: 1; padding: 7px 9px; border-width: 1px; }
.sc-zoom.at-4 .g-design { background: rgba(255,255,255,0.55); border-color: var(--line); }
.sc-zoom .cnt-b { display: none; }
.sc-zoom.at-4 .cnt-a { display: none; }
.sc-zoom.at-4 .cnt-b { display: inline; }
/* Schritt 5–6: „Domain umstellen“ auf die Fläche für eine neue Gruppe */
.sc-zoom.at-5 .newgrp { opacity: 1; background: #e9f4f5; }
.sc-zoom.at-5 .m2 { box-shadow: 0 12px 26px rgba(26,26,46,0.2); }
.sc-zoom.at-6 .m2 { opacity: 0; }
.sc-zoom.at-6 .newgrp { border-style: solid; border-color: var(--line); background: rgba(255,255,255,0.55); color: var(--ink); align-items: stretch; justify-content: flex-start; text-align: left; }
.sc-zoom.at-6 .newgrp .grp-h { display: flex; }
.sc-zoom.at-6 .newgrp .ng-hint { display: none; }
.sc-zoom.at-6 .slot2 { height: auto; opacity: 1; padding: 7px 9px; border-width: 1px; }


/* ---------- Szene: Mail mit Anhängen ---------- */
.sc-mail { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 12px; }
.sc-mail .inbox { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.sc-mail .ib-h { padding: 10px 12px; font-weight: 700; font-size: 0.86em; border-bottom: 1px solid #eef0f3; }
.sc-mail .ml { padding: 9px 12px; border-bottom: 1px solid #f1f2f4; font-size: 0.8em; transition: background 0.3s; }
.sc-mail .ml b { display: block; font-size: 1.04em; color: var(--ink); }
.sc-mail .ml span { color: var(--ink-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-mail .ml .clip { display: inline-flex; gap: 4px; align-items: center; color: var(--ink-3); font-size: 0.95em; margin-top: 2px; }
.sc-mail.at-1 .ml.sel { background: #e3f0f2; box-shadow: inset 3px 0 0 var(--petrol); }
.sc-mail .detail { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.sc-mail .dt { opacity: 0; transition: opacity 0.35s; display: flex; flex-direction: column; gap: 8px; height: 100%; }
.sc-mail.at-1 .dt { opacity: 1; }
.sc-mail .dt-subj { font-family: var(--display); font-weight: 700; font-size: 1.05em; }
.sc-mail .dt-from { font-size: 0.78em; color: var(--ink-3); }
.sc-mail .dt-body { font-size: 0.8em; color: var(--ink-2); line-height: 1.5; }
.sc-mail .dt-body u { color: var(--petrol); text-decoration-color: rgba(14,100,112,0.4); }
.sc-mail .att { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-mail .att span { font-size: 0.74em; font-weight: 600; background: #f1f2f5; border-radius: 6px; padding: 3px 7px; }
.sc-mail .dt .s-btn { margin-top: auto; align-self: flex-start; }
.sc-mail.at-2 .dt .s-btn { transform: scale(0.94); box-shadow: 0 0 0 4px rgba(14,100,112,0.18); }
.sc-mail .conv { position: absolute; inset: 0; background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; opacity: 0; transform: translateY(16px); transition: opacity 0.3s, transform 0.4s; }
.sc-mail.at-3 .conv { opacity: 1; transform: none; }
.sc-mail .conv-h { font-weight: 700; font-size: 0.9em; }
.sc-mail .loading { font-size: 0.78em; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.sc-mail .loading::before { content: ''; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #cfd9db; border-top-color: var(--petrol); animation: s-spin 0.8s linear infinite; }
@keyframes s-spin { to { transform: rotate(360deg); } }
.sc-mail.at-4 .loading { display: none; }
.sc-mail .picks { display: none; flex-direction: column; gap: 5px; }
.sc-mail.at-4 .picks { display: flex; }
.sc-mail .pk-h { font-size: 0.72em; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.sc-mail .pk { display: flex; align-items: center; gap: 8px; font-size: 0.8em; }
.sc-mail .pk small { margin-left: auto; color: var(--ink-3); }
.sc-mail .pk .s-check { transition-delay: var(--d, 0s); }
.sc-mail .pk .s-check::after { transition-delay: var(--d, 0s); }
.sc-mail.at-4 .pk .s-check { background: var(--petrol); border-color: var(--petrol); }
.sc-mail.at-4 .pk .s-check::after { opacity: 1; }
.sc-mail .conv .s-btn { margin-top: auto; align-self: flex-end; }
.sc-mail.at-5 .conv .s-btn { transform: scale(0.94); box-shadow: 0 0 0 4px rgba(14,100,112,0.18); }
.sc-mail .result { position: absolute; inset: 0; background: var(--paper); padding: 12px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transition: opacity 0.4s; }
.sc-mail.at-6 .result { opacity: 1; }
.sc-mail .result .s-tile { position: relative; border-color: var(--petrol); box-shadow: 0 0 0 4px rgba(14,100,112,0.12); transform: translateY(10px); transition: transform 0.5s 0.1s; }
.sc-mail.at-6 .result .s-tile { transform: none; }
.sc-mail .files { margin: 9px 0 0 21px; display: flex; flex-direction: column; gap: 5px; }
.sc-mail .file { display: flex; align-items: center; gap: 8px; font-size: 0.8em; font-weight: 500; background: #f6f7f9; border: 1px solid #eceef1; border-radius: 7px; padding: 5px 8px; opacity: 0; transform: translateX(-8px); transition: opacity 0.3s var(--d, 0s), transform 0.3s var(--d, 0s); }
.sc-mail.at-6 .file { opacity: 1; transform: none; }
.sc-mail .file i { font-style: normal; font-size: 0.78em; font-weight: 700; color: #fff; background: #c2410c; border-radius: 3px; padding: 1px 4px; }
.sc-mail .file i.zip { background: #6b7280; }
.sc-mail .file i.url { background: var(--petrol); }
.sc-mail .file small { margin-left: auto; color: var(--ink-3); }

/* ---------- Szene: Notiz verknüpfen ---------- */
.sc-link .dp { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.sc-link .dp-title { font-family: var(--display); font-size: 1.25em; font-weight: 700; letter-spacing: -0.02em; }
.sc-link .props { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 0.82em; }
.sc-link .props dt { color: var(--ink-3); }
.sc-link .props dd .due { color: var(--red); font-weight: 600; }
.sc-link .props .stars { color: var(--star); letter-spacing: 1px; }
.sc-link .tabs { display: flex; gap: 16px; border-bottom: 1px solid #eef0f3; font-size: 0.84em; font-weight: 600; color: var(--ink-3); margin-top: 4px; }
.sc-link .tabs span { padding-bottom: 7px; }
.sc-link .tabs .on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--petrol); }
.sc-link .lk-h { display: flex; align-items: center; justify-content: space-between; font-size: 0.74em; font-weight: 700; letter-spacing: 0.05em; color: var(--ink-3); }
.sc-link.at-1 .lk-h .s-btn { transform: scale(0.94); box-shadow: 0 0 0 4px rgba(14,100,112,0.18); }
.sc-link .lk-empty { font-size: 0.82em; color: var(--ink-3); }
.sc-link .n1 { display: none; }
.sc-link.at-5 .n0 { display: none; }
.sc-link.at-5 .n1 { display: inline; }
.sc-link .lk-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 0.84em; max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s, padding 0.4s, opacity 0.4s 0.1s, box-shadow 0.6s; }
.sc-link.at-5 .lk-row { max-height: 60px; padding-top: 8px; padding-bottom: 8px; border-width: 1px; opacity: 1; box-shadow: 0 0 0 4px rgba(14,100,112,0.12); }
.sc-link.at-5 .lk-empty { display: none; }
.sc-link .ico { flex: none; width: 22px; height: 22px; border-radius: 6px; background: #f3ecdc; color: #8a5a00; display: grid; place-items: center; }
.sc-link .ico svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-link .ico.task { background: #e3f0f2; color: var(--petrol); }
.sc-link .lk-row small, .sc-link .pr small { margin-left: auto; color: var(--ink-3); white-space: nowrap; }
.sc-link .rel { font-size: 0.85em; font-weight: 600; color: var(--petrol); background: #e3f0f2; border-radius: 5px; padding: 1px 6px; }

.sc-link .picker { position: absolute; left: 50%; top: 50%; z-index: 6; width: min(82%, 380px); background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(26,26,46,0.26), 0 0 0 1px var(--line); padding: 14px; display: flex; flex-direction: column; gap: 9px; opacity: 0; transform: translate(-50%, -46%) scale(0.96); transition: opacity 0.3s, transform 0.35s; pointer-events: none; }
.sc-link.at-2 .picker { opacity: 1; transform: translate(-50%, -50%); }
.sc-link.at-5 .picker { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
.sc-link .scrim { position: absolute; inset: 0; z-index: 5; background: rgba(26,26,46,0.16); opacity: 0; transition: opacity 0.3s; }
.sc-link.at-2 .scrim { opacity: 1; }
.sc-link.at-5 .scrim { opacity: 0; }
.sc-link .pk-title { font-weight: 700; font-size: 0.95em; }
.sc-link .seg { display: flex; padding: 3px; background: #f1f2f5; border-radius: 8px; font-size: 0.78em; font-weight: 600; }
.sc-link .seg span { flex: 1; text-align: center; padding: 5px 4px; border-radius: 6px; color: var(--ink-2); }
.sc-link .seg .on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(26,26,46,0.1); }
.sc-link .search { border: 1.5px solid var(--petrol); border-radius: 8px; padding: 6px 10px; font-size: 0.86em; min-height: 31px; display: flex; align-items: center; }
.sc-link .search .ph { color: #9aa0aa; }
.sc-link .search .q:not(:empty) + .ph { display: none; }
.sc-link .pr-list { display: flex; flex-direction: column; gap: 3px; }
.sc-link .pr { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; font-size: 0.84em; max-height: 40px; overflow: hidden; transition: max-height 0.35s 0.9s, padding 0.35s 0.9s, opacity 0.25s 0.9s, background 0.25s; }
.sc-link.at-3 .pr.miss { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.sc-link.at-4 .pr.hit { background: #e3f0f2; }
.sc-link .pr mark { background: #fdf1d8; color: inherit; border-radius: 3px; padding: 0 1px; }

/* Szenen auf schmalen Bildschirmen */
@media (max-width: 900px) {
  .scene { aspect-ratio: auto; min-height: 340px; }
}
@media (max-width: 560px) {
  .scene { font-size: 12px; padding: 14px; min-height: 0; }
  .sc-sms { grid-template-columns: 1fr; gap: 14px; }
  .sc-sms .phone { height: 230px; max-width: 260px; margin: 0 auto; width: 100%; }
  .sc-sms .mb-grid .s-tile:not(.t-new) { min-height: 56px; }
  .sc-sms .mb-grid .s-tile.hide-s { display: none; }
  .sc-zoom { height: 360px; }
  .sc-zoom .zv { inset: 8px; padding: 10px; }
  .sc-zoom .zv-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-zoom .zv-cols > .grp:nth-child(3) { grid-column: span 2; }
  .sc-mail { grid-template-columns: 1fr; height: 400px; grid-template-rows: auto 1fr; }
  .sc-mail .ml:not(.sel) { display: none; }
  .sc-link { height: 380px; }
}

/* Nachträge */
.feature-text .section-sub + .section-sub { margin-top: 14px; }
.feature-text code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.86em; background: #eef1f3; padding: 1px 6px; border-radius: 4px; color: var(--text); white-space: nowrap; }
.scene .s-title { padding-right: 28px; }
.sc-sms .mini-board { align-self: start; padding-top: 6px; }

/* ---------- Szene: Ziel mit Verlaufskurve ---------- */
.sc-goal .g-wrap { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.sc-goal .g-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sc-goal .g-kicker { font-size: 0.72em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--petrol); }
.sc-goal .g-title { font-family: var(--display); font-size: 1.25em; font-weight: 700; letter-spacing: -0.02em; }
.sc-goal .g-pct { display: flex; align-items: center; gap: 8px; }
.sc-goal .g-pct b { font-size: 1.5em; font-variant-numeric: tabular-nums; }
.sc-goal .g-chip { font-size: 0.76em; font-weight: 700; border-radius: 100px; padding: 3px 9px; background: #fdf1d8; color: var(--amber); opacity: 0; transition: opacity 0.4s, background 0.4s, color 0.4s; }
.sc-goal.at-2 .g-chip { opacity: 1; }
.sc-goal.at-3 .g-chip { background: #e7f3ec; color: #0b6b42; }
.sc-goal .p1 { display: none; }
.sc-goal.at-3 .p0 { display: none; }
.sc-goal.at-3 .p1 { display: inline; }
.sc-goal .g-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; min-height: 0; }
.sc-goal .g-chart { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.sc-goal .g-legend { display: flex; gap: 12px; font-size: 0.74em; font-weight: 600; color: var(--ink-3); }
.sc-goal .g-legend span::before { content: ''; display: inline-block; width: 14px; height: 0; margin-right: 5px; vertical-align: middle; border-top: 2.5px solid var(--petrol); }
.sc-goal .g-legend .soll::before { border-top: 2px dashed #9aa0aa; }
.sc-goal .g-legend .prog::before { border-top: 2px dotted var(--petrol); }
.sc-goal svg { flex: 1; width: 100%; min-height: 0; overflow: visible; }
.sc-goal svg .grid line { stroke: #eef0f3; stroke-width: 1; }
.sc-goal svg .today { stroke: #c9ced6; stroke-width: 1; stroke-dasharray: 2 3; }
.sc-goal svg path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.sc-goal svg .soll { stroke: #9aa0aa; stroke-width: 2; stroke-dasharray: 5 5; }
.sc-goal svg .ist, .sc-goal svg .ist2 { stroke: var(--petrol); stroke-width: 3; clip-path: inset(-4px 100% -4px -4px); transition: clip-path 1.3s; }
.sc-goal svg .ist2 { clip-path: inset(100% -4px -4px -4px); transition-duration: 0.5s; }
.sc-goal.at-1 svg .ist, .sc-goal.at-3 svg .ist2 { clip-path: inset(-4px -4px -4px -4px); }
.sc-goal svg .prog { stroke: var(--petrol); stroke-width: 2; stroke-dasharray: 2 5; opacity: 0; transition: opacity 0.5s; }
.sc-goal.at-3 svg .prog { opacity: 0.8; }
.sc-goal .g-today { position: absolute; left: 63%; bottom: -2px; transform: translateX(-50%); font-size: 0.7em; color: var(--ink-3); background: #fff; padding: 0 4px; }
.sc-goal .g-side { display: flex; flex-direction: column; gap: 9px; }
.sc-goal .g-stat { background: #f6f7f9; border-radius: 9px; padding: 7px 10px; }
.sc-goal .g-stat small { display: block; font-size: 0.74em; color: var(--ink-3); }
.sc-goal .g-stat b { font-size: 0.88em; font-weight: 600; }
.sc-goal .g-task { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 0.84em; font-weight: 500; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; transition: color 0.3s; }
.sc-goal .g-task .s-check { border-radius: 50%; }
.sc-goal.at-3 .g-task { color: var(--ink-3); text-decoration: line-through; }
.sc-goal.at-3 .g-task .s-check { background: var(--petrol); border-color: var(--petrol); }
.sc-goal.at-3 .g-task .s-check::after { opacity: 1; }

/* ---------- Szene: Was heute passt ---------- */
.sc-cap { display: flex; flex-direction: column; gap: 14px; }
.sc-cap .cap-day { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 8px; }
.sc-cap .cap-meta { display: flex; align-items: baseline; gap: 10px; font-size: 0.84em; color: var(--ink-3); }
.sc-cap .cap-meta b { color: var(--ink); font-family: var(--display); font-size: 1.1em; }
.sc-cap .m1 { display: none; }
.sc-cap.at-1 .m0 { display: none; }
.sc-cap.at-1 .m1 { display: inline; }
.sc-cap .cap-free { margin-left: auto; font-weight: 700; color: var(--petrol); opacity: 0; transition: opacity 0.4s; }
.sc-cap.at-2 .cap-free { opacity: 1; }
.sc-cap .cap-bar { position: relative; height: 26px; margin-top: 8px; border-radius: 6px; background: repeating-linear-gradient(90deg, #e3f0f2 0 calc(12.5% - 1px), #fff calc(12.5% - 1px) 12.5%); overflow: hidden; transition: background 0.4s; }
.sc-cap .cap-bar .mt { position: absolute; top: 3px; bottom: 3px; left: var(--x); width: var(--w); border-radius: 4px; background: #5f6470; color: #fff; font-style: normal; font-size: 0.68em; font-weight: 600; line-height: 20px; padding: 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: scaleY(0); transform-origin: bottom; transition: transform 0.35s; }
.sc-cap .cap-bar .mt:nth-child(2) { transition-delay: 0.25s; }
.sc-cap .cap-bar .mt:nth-child(3) { transition-delay: 0.5s; }
.sc-cap.at-1 .cap-bar .mt { transform: none; }
.sc-cap .hrs { position: absolute; inset: auto 0 -1px 0; display: none; }
.sc-cap .cap-board { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; }
.sc-cap .cap-fit { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 8px; margin: -8px; border: 2px solid transparent; border-radius: 16px; transition: border-color 0.6s, background 0.6s; }
.sc-cap.at-3 .cap-fit { border-color: var(--petrol); background: rgba(14,100,112,0.06); }
.sc-cap .s-tile { position: relative; min-height: 52px; padding: 9px 11px; }
.sc-cap .w2 { grid-column: span 2; }
.sc-cap .cap-label { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 0.8em; font-weight: 700; color: var(--petrol); opacity: 0; transition: opacity 0.4s 0.3s; }
.sc-cap.at-3 .cap-label { opacity: 1; }
.sc-cap.at-3 .out { opacity: 0.6; transition: opacity 0.6s; }

/* ---------- Szene: Schnellerfassung ---------- */
.sc-qc { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.sc-qc .qc-modal { background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(26,26,46,0.14), 0 0 0 1px var(--line); padding: 14px 16px 10px; }
.sc-qc .qc-field { font-size: 1.12em; font-weight: 500; min-height: 30px; line-height: 1.5; }
.sc-qc .qc-ph { color: #9aa0aa; }
.sc-qc .qc-plain:not(:empty) ~ .qc-ph { display: none; }
.sc-qc .qc-rich { display: none; }
.sc-qc .qc-rich b { font-weight: 600; border-radius: 4px; padding: 0 2px; transition: background 0.4s, color 0.4s; }
.sc-qc.at-2 .qc-plain { display: none; }
.sc-qc.at-2 .qc-rich { display: inline; }
.sc-qc.at-2 .qc-ph { display: none; }
.sc-qc .k-due { color: var(--red); }
.sc-qc .k-proj { color: #6d3fd1; }
.sc-qc .k-tag { color: #0b7a4b; }
.sc-qc .k-star { color: var(--star); }
.sc-qc .k-eff { color: var(--petrol); }
.sc-qc.at-3 .qc-rich { display: none; }
.sc-qc.at-3 .qc-field .qc-ph { display: inline; }
.sc-qc.at-3 .qc-plain { display: none; }
.sc-qc .qc-keys { margin-top: 10px; padding-top: 8px; border-top: 1px solid #eef0f3; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.74em; color: var(--ink-3); }
.sc-qc .qc-count { margin-left: auto; font-weight: 700; color: var(--petrol); opacity: 0; transition: opacity 0.3s; }
.sc-qc.at-3 .qc-count { opacity: 1; }
.sc-qc .qc-board { display: flex; flex-direction: column; gap: 10px; }
.sc-qc .qc-rest { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-qc .qc-board .s-tile { position: relative; }
.sc-qc .qc-new { max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; opacity: 0; overflow: hidden; transform: translateY(-12px); transition: max-height 0.5s, padding 0.5s, opacity 0.4s 0.1s, transform 0.5s 0.1s; }
.sc-qc.at-3 .qc-new { max-height: 120px; padding-top: 11px; padding-bottom: 11px; border-width: 1px; opacity: 1; transform: none; border-color: var(--petrol); box-shadow: 0 0 0 4px rgba(14,100,112,0.12); }
.sc-qc .s-meta .proj { color: #6d3fd1; font-weight: 600; }
.sc-qc .s-meta .tagc { color: #0b7a4b; font-weight: 600; }

/* ---------- Szene: Verschieben ---------- */
.sc-post .ps-wrap { position: relative; height: 100%; display: grid; place-items: center; }
.sc-post .ps-tile { width: min(80%, 380px); padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 4px; transition: background 0.6s, border-color 0.6s; }
.sc-post .ps-tile .s-title { font-size: 1.15em; }
.sc-post .ps-tile .s-score { font-size: 0.85em; transition: background 0.3s; }
.sc-post .ps-btn { margin-top: 12px; align-self: flex-end; }
.sc-post .c { display: none; }
.sc-post:not(.at-1) .c0,
.sc-post.at-1:not(.at-2) .c1, .sc-post.at-2:not(.at-3) .c2, .sc-post.at-3:not(.at-4) .c3,
.sc-post.at-4:not(.at-5) .c4, .sc-post.at-5 .c5 { display: inline; }
.sc-post .ps-count { color: var(--amber); font-weight: 600; }
.sc-post.at-3 .ps-tile { background: #fff6df; border-color: #f2d48a; }
.sc-post.at-3 .s-score { background: #fde9b8; }
.sc-post .ps-btn { animation: none; }
.sc-post.at-1:not(.at-2) .ps-btn, .sc-post.at-2:not(.at-3) .ps-btn, .sc-post.at-3:not(.at-4) .ps-btn, .sc-post.at-4:not(.at-5) .ps-btn { animation: s-press 0.5s; }
@keyframes s-press { 0% { transform: scale(1); } 30% { transform: scale(0.92); box-shadow: 0 0 0 4px rgba(14,100,112,0.2); } 100% { transform: scale(1); } }
.sc-post .ps-dialog { position: absolute; left: 50%; top: 50%; width: min(78%, 340px); background: #fff; border-radius: 14px; padding: 16px 18px 14px; box-shadow: 0 24px 60px rgba(26,26,46,0.26), 0 0 0 1px var(--line); opacity: 0; transform: translate(-50%, -44%) scale(0.96); transition: opacity 0.3s, transform 0.35s; }
.sc-post.at-5 .ps-dialog { opacity: 1; transform: translate(-50%, -50%); }
.sc-post .ps-dialog b { font-family: var(--display); font-size: 1.05em; }
.sc-post .ps-dialog p { margin-top: 6px; font-size: 0.86em; color: var(--ink-2); line-height: 1.5; }
.sc-post .ps-actions { margin-top: 12px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.sc-post.at-5 .ps-tile { filter: blur(1px); opacity: 0.7; }

@media (max-width: 560px) {
  .sc-goal { height: 340px; }
  .sc-goal .g-body { grid-template-columns: 1fr; }
  .sc-goal .g-side { flex-direction: row; flex-wrap: wrap; }
  .sc-goal .g-stat:nth-child(3) { display: none; }
  .sc-goal .g-task { margin-top: 0; }
  .sc-goal .g-today { left: 63%; }
  .sc-cap { height: 420px; }
  .sc-cap .cap-board, .sc-cap .cap-fit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-cap .cap-label { grid-column: span 2; padding: 4px 0; }
  .sc-cap .out.w2 { display: none; }
  .sc-qc { height: 330px; }
  .sc-qc .qc-field { font-size: 1em; }
  .sc-post { height: 300px; }
}
