/* Gesang verbessern – Logik in web/src/gesang/ (npm run build:gesang) */
.ge-main { max-width: 980px; }
#ge { display: flex; flex-direction: column; gap: 16px; margin-bottom: var(--sp-7, 48px); }
.ge-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); }
.ge-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.ge-fine { font-size: .86rem; color: var(--muted); }
.ge-link { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ge-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0 8px; }
.ge-export .ge-btns { justify-content: flex-start; }

.ge-start { text-align: center; padding: 34px 20px; color: #fff; border: 0; background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.2), transparent 50%), linear-gradient(135deg, var(--c1, #e879f9), var(--c2, #4338ca)); }
.ge-start h2 { margin: 6px 0; font-size: 1.5rem; }
.ge-start p { max-width: 560px; margin: 6px auto; opacity: .92; }
.ge-start .ge-fine { color: rgba(255,255,255,.85); }
.ge-start .ge-link { color: #fff; }
.ge-start .h-btn:not(.h-btn--primary) { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.4); }
.ge-start .h-btn--primary { background: #fff; color: var(--c2, #4338ca); }
.ge-start-ico { font-size: 64px; line-height: 1; animation: geBob 3s ease-in-out infinite; }
.ge-pb { margin-top: 6px; }
@keyframes geBob { 50% { transform: translateY(-6px) rotate(6deg); } }

.ge-busy { text-align: center; padding: 40px 20px; }
.ge-busy progress { width: min(320px, 90%); }
.ge-wave { display: flex; gap: 6px; justify-content: center; height: 46px; align-items: center; margin-bottom: 10px; }
.ge-wave i { width: 8px; border-radius: 4px; background: linear-gradient(var(--c1, #e879f9), var(--c2, #4338ca)); animation: geWave 1s ease-in-out infinite; }
.ge-wave i:nth-child(2) { animation-delay: -.2s; } .ge-wave i:nth-child(3) { animation-delay: -.4s; } .ge-wave i:nth-child(4) { animation-delay: -.6s; } .ge-wave i:nth-child(5) { animation-delay: -.8s; }
@keyframes geWave { 0%, 100% { height: 12px; } 50% { height: 44px; } }

.ge-rec { text-align: center; }
.ge-big { font-size: 1.6rem; font-weight: 800; margin: 6px 0; }
.ge-rec-t { display: block; font-size: 2.4rem; font-variant-numeric: tabular-nums; margin: 4px 0 10px; }
.ge-meter { height: 12px; border-radius: 6px; background: var(--surface-2, #eee); overflow: hidden; max-width: 420px; margin: 0 auto 14px; }
.ge-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, #eab308 75%, #ef4444); transition: width .06s; }
.ge-meter.laut { outline: 2px solid #ef4444; }

.ge-file { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.ge-file b { overflow-wrap: anywhere; }
.ge-file span { color: var(--muted); }
.ge-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.ge-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 16px; background: var(--surface-2, #f5f5f7); }
.ge-stat small { color: var(--muted); font-weight: 600; }
.ge-stat b { font-size: 1.5rem; }
.ge-stat span { font-size: .82rem; color: var(--muted); }
.ge-key { margin: 2px 0; }
.ge-kurve { width: 100%; height: 260px; border-radius: 14px; background: var(--surface-2, #f7f7f9); cursor: pointer; display: block; }
.ge-player { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.ge-play { width: 54px; height: 54px; border-radius: 50%; border: 0; font-size: 1.4rem; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--c1, #e879f9), var(--c2, #4338ca)); box-shadow: 0 8px 20px -8px var(--c2, #4338ca); }
.ge-play:active { transform: scale(.94); }
.ge-zeit { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 92px; }
.ge-status { margin-left: auto; font-size: .88rem; color: var(--muted); }

.ge-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.ge-preset { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.ge-preset:hover { transform: translateY(-2px); }
.ge-preset small { color: var(--muted); font-size: .8rem; }
.ge-preset[aria-pressed="true"] { border-color: var(--c2, var(--accent)); background: color-mix(in srgb, var(--c2, #4338ca) 8%, var(--surface)); }

.ge-fein summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.ge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 22px; margin-top: 12px; }
.ge-reg { display: flex; flex-direction: column; gap: 4px; }
.ge-reg-h { display: flex; justify-content: space-between; gap: 8px; }
.ge-reg output { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
.ge-reg input[type=range] { width: 100%; accent-color: var(--c2, var(--accent)); }
.ge-reg small { color: var(--muted); font-size: .8rem; }
.ge-sw { display: flex; gap: 8px; align-items: center; margin: 6px 0 12px; }

.ge-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 95; padding: 10px 16px; border-radius: 14px; background: #1f2937; color: #fff; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 24px); }
.ge-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .ge-stats { grid-template-columns: 1fr 1fr; }
  .ge-stats .ge-stat:last-child { grid-column: 1 / -1; }
  .ge-status { margin-left: 0; width: 100%; }
  .ge-kurve { height: 220px; }
}
@media (prefers-reduced-motion: reduce) { .ge-start-ico, .ge-wave i { animation: none; } }
