/* Videoschnitt – die Timeline */

.page-edit {
  --e-bg: #17171b;
  --e-panel: #202026;
  --e-panel-2: #29292f;
  --e-line: #36363e;
  --e-text: #ececf0;
  --e-dim: #a6a6b0;
  --e-teal: #2bb3a6;
  --e-violet: #8b6cf0;
  --e-orange: #e8834a;
  --e-pink: #e5537a;
  --e-head: #ff4d4d;
  --e-live: #39c46b;
  background: var(--e-bg);
  color: var(--e-text);
}
.page-edit .safelight { display: none; }
.page-edit .grain { opacity: 0.03; }
.page-edit ::selection { background: var(--e-violet); color: #fff; }
.page-edit .crumbs { color: var(--e-dim); }
.page-edit .crumbs a { color: var(--e-text); }
.page-edit .ticks li { color: var(--e-text); }
.page-edit .ticks svg { color: var(--e-teal); }
.page-edit :focus-visible { outline-color: var(--e-teal); }

.e-h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 0.95; text-transform: uppercase; margin: 0 0 var(--space-2); }
.e-sub { margin: 0 0 1rem; font-family: var(--f-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--e-teal); font-size: 0.95rem; }
.e-lead { color: var(--e-dim); font-size: clamp(1.05rem, 1.4vw, 1.18rem); max-width: 54ch; margin: 0 0 var(--space-3); }
.e-section { padding-block: var(--space-6); scroll-margin-top: 120px; }
.e-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.e-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font: inherit; font-weight: 700; font-size: 0.95rem;
  color: var(--e-text); background: var(--e-panel-2);
  border: 1px solid var(--e-line); border-radius: 6px;
  padding: 0.65rem 1.05rem; cursor: pointer; text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.e-btn:hover { border-color: var(--e-teal); }
.e-btn--solid { background: var(--e-teal); border-color: var(--e-teal); color: #0d1a19; }
.e-btn--solid:hover { background: #3fcabd; }

/* ---------- Viewer und Timeline ---------- */

.e-hero { padding-block: clamp(7rem, 12vw, 8.5rem) var(--space-4); }
.e-hero__top { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.e-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(3.6rem, 9vw, 6rem); line-height: 0.9; text-transform: uppercase; margin: 0 0 var(--space-3); }
.e-viewer { background: var(--e-panel); border: 1px solid var(--e-line); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.e-viewer__screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.e-viewer__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.e-viewer__screen img.is-on { opacity: 1; }
.e-viewer__title {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: 0.12em;
  color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  opacity: 0; transition: opacity 0.25s, letter-spacing 1.2s var(--ease-chem);
  white-space: nowrap;
}
.e-viewer.show-title .e-viewer__title { opacity: 1; letter-spacing: 0.2em; }
.e-viewer__bar { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0.8rem; border-top: 1px solid var(--e-line); }
.e-play { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--e-line); background: var(--e-panel-2); color: var(--e-text); display: grid; place-items: center; cursor: pointer; }
.e-play svg { width: 1rem; height: 1rem; fill: currentColor; }
.e-play .i-play { display: none; }
.e-play.is-paused .i-play { display: block; }
.e-play.is-paused .i-pause { display: none; }
.e-tc { font-family: var(--f-display); font-weight: 700; letter-spacing: 0.1em; font-size: 1.15rem; color: var(--e-orange); font-variant-numeric: tabular-nums; }
.e-keys { margin-left: auto; display: flex; gap: 0.3rem; }
.e-keys kbd { font-family: var(--f-display); font-weight: 700; font-size: 0.8rem; padding: 0.15rem 0.45rem; border: 1px solid var(--e-line); border-bottom-width: 3px; border-radius: 4px; color: var(--e-dim); }

.e-timeline {
  position: relative;
  margin-top: var(--space-4);
  background: var(--e-panel);
  border: 1px solid var(--e-line);
  border-radius: 8px;
  padding: 0.4rem;
  display: grid; gap: 3px;
  user-select: none;
  cursor: ew-resize;
  touch-action: pan-y;
  outline: none;
}
.e-timeline:focus-visible { box-shadow: 0 0 0 2px var(--e-teal); }
.e-ruler {
  height: 22px; margin-left: calc(4.4rem + 3px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='22'%3E%3Cpath d='M0.5 22V8M12.5 22v-5M24.5 22v-5M36.5 22v-5M48.5 22v-5' stroke='%2366666f' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: left bottom;
}
.e-track { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: 3px; height: 52px; }
.e-track--audio { height: 38px; }
.e-track__name { display: grid; place-items: center; background: var(--e-panel-2); border-radius: 4px; font-family: var(--f-display); font-weight: 700; letter-spacing: 0.1em; color: var(--e-dim); font-size: 0.9rem; }
.e-lane { position: relative; background: #1a1a1f; border-radius: 4px; }
.e-clip {
  position: absolute; top: 3px; bottom: 3px;
  left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1% - 2px);
  border-radius: 4px; overflow: hidden;
  font-size: 0.78rem; font-weight: 700; color: #fff;
}
.e-clip--v { background: var(--e-teal); }
.e-clip--v[data-clip="1"], .e-clip--v[data-clip="3"] { background: var(--e-violet); }
.e-clip--v img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; mix-blend-mode: luminosity; }
.e-clip--v em { position: absolute; left: 0.4rem; top: 0.2rem; font-style: normal; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.e-clip--v.is-live { box-shadow: inset 0 0 0 2px #fff; }
.e-clip--title { background: var(--e-pink); display: flex; align-items: center; padding-left: 0.5rem; white-space: nowrap; }
.e-clip--a { background: #2c6a4e; }
.e-clip--m { background: #2b4d78; }
.e-wave { position: absolute; inset: 2px 0; width: 100%; height: calc(100% - 4px); }
.e-wave path { fill: rgba(255, 255, 255, 0.55); }
.e-playhead { position: absolute; top: 0.4rem; bottom: 0.4rem; left: 0; width: 2px; background: var(--e-head); pointer-events: none; }
.e-playhead span { position: absolute; top: -2px; left: -6px; width: 14px; height: 12px; background: var(--e-head); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }

/* ---------- Seitenleiste wie im Schnittprogramm ---------- */

.e-pages {
  position: sticky; top: 64px; z-index: 20;
  background: rgba(23, 23, 27, 0.92);
  border-block: 1px solid var(--e-line);
}
@supports (backdrop-filter: blur(1px)) { .e-pages { background: rgba(23, 23, 27, 0.78); backdrop-filter: blur(10px); } }
.e-pages .wrap { display: flex; justify-content: center; gap: clamp(0.5rem, 3vw, 2.4rem); overflow-x: auto; }
.e-pages a {
  position: relative;
  padding: 0.85rem 0.4rem;
  font-family: var(--f-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.95rem;
  color: var(--e-dim); text-decoration: none; white-space: nowrap;
}
.e-pages a:hover { color: var(--e-text); }
.e-pages a.is-on { color: var(--e-text); }
.e-pages a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--e-orange); border-radius: 2px 2px 0 0; }

/* ---------- Schnitt-Demo ---------- */

.e-cut { background: var(--e-panel); border: 1px solid var(--e-line); border-radius: 8px; padding: 1.2rem; }
.e-cut__lane { display: flex; gap: 3px; width: 100%; height: 64px; transition: width 1.1s var(--ease-chem); }
.e-cut__lane span {
  flex: var(--w) 1 0;
  border-radius: 4px;
  background: var(--e-teal);
  transition: flex-grow 1.1s var(--ease-chem), opacity 0.6s, margin 0.6s;
  min-width: 0;
}
.e-cut__lane span[style*="--c:2"] { background: var(--e-violet); }
.e-cut__lane span[style*="--c:3"] { background: var(--e-orange); }
.e-cut__lane span[style*="--c:4"] { background: var(--e-pink); }
.e-cut[data-cut="cut"] .e-cut__lane { width: 34%; }
.e-cut[data-cut="cut"] .e-cut__lane span { flex-grow: calc(var(--w) * 0.4); }
.e-cut[data-cut="cut"] .e-cut__lane span:nth-child(3n + 2) { flex-grow: 0; opacity: 0; margin-left: -3px; }
.e-cut__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.1rem; gap: 1rem; }
.e-cut__foot span { color: var(--e-dim); font-family: var(--f-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.e-cut__foot b { color: var(--e-orange); font-size: 1.4rem; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* ---------- Grading ---------- */

.e-split--grade { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.e-compare { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; background: #000; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); touch-action: pan-y; }
.e-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.e-compare__before { filter: saturate(0.42) contrast(0.7) brightness(1.14); }
.e-compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split)); }
.e-compare__after img { filter: saturate(1.15) contrast(1.12) brightness(0.98); }
.e-tint { position: absolute; inset: 0; pointer-events: none; }
.e-tint--lift { background: var(--lift, transparent); mix-blend-mode: soft-light; }
.e-tint--gamma { background: var(--gamma, transparent); mix-blend-mode: overlay; }
.e-tint--gain { background: var(--gain, transparent); mix-blend-mode: soft-light; }
.e-compare__lab { position: absolute; top: 0.8rem; padding: 0.25rem 0.6rem; border-radius: 4px; background: rgba(0, 0, 0, 0.6); font-family: var(--f-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; }
.e-compare__lab--l { left: 0.8rem; }
.e-compare__lab--r { right: 0.8rem; color: var(--e-orange); }
.e-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; translate: -1px 0; background: #fff; cursor: ew-resize; outline: none; }
.e-compare__handle span { position: absolute; top: 50%; left: 50%; width: 2.6rem; height: 2.6rem; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45); }
.e-compare__handle span::before, .e-compare__handle span::after { content: ""; position: absolute; top: 50%; translate: 0 -50%; }
.e-compare__handle span::before { left: 0.5rem; }
.e-compare__handle span::after { right: 0.5rem; }
.e-compare__handle:focus-visible span { box-shadow: 0 0 0 3px var(--e-teal); }

.e-wheels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: var(--space-3) 0 var(--space-3); max-width: 420px; }
.e-wheel { display: grid; gap: 0.5rem; justify-items: center; font-family: var(--f-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; color: var(--e-dim); }
.e-wheel__disc {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #2a2a31 0%, rgba(42, 42, 49, 0.25) 72%), conic-gradient(#ff3b3b, #ffd23b, #5bff5b, #3bffff, #3b5bff, #ff3bff, #ff3b3b);
  border: 2px solid var(--e-line);
  touch-action: none; cursor: crosshair;
}
.e-wheel__disc::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; translate: -50% -50%; border-radius: 50%; background: rgba(255, 255, 255, 0.4); }
.e-wheel__puck {
  position: absolute; z-index: 1;
  left: calc(50% + var(--px, 0) * 40%); top: calc(50% + var(--py, 0) * 40%);
  width: 18px; height: 18px; translate: -50% -50%;
  border-radius: 50%; border: 3px solid #fff; background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  cursor: grab; outline: none;
}
.e-wheel__puck:focus-visible { box-shadow: 0 0 0 3px var(--e-teal); }

/* ---------- Ton ---------- */

.e-mixer { display: flex; align-items: flex-end; gap: 1rem; background: var(--e-panel); border: 1px solid var(--e-line); border-radius: 8px; padding: 1.4rem; min-height: 280px; }
.e-meter, .e-fader { display: grid; justify-items: center; gap: 0.5rem; font-family: var(--f-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; color: var(--e-dim); }
.e-meter i { display: block; width: 14px; height: 200px; background: #121215; border-radius: 3px; position: relative; overflow: hidden; }
.e-meter i::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(to top, #39c46b 0 65%, #ffd23f 65% 85%, var(--e-head) 85%);
  background-size: 100% 200px; background-position: bottom;
  animation: e-lvl 0.9s ease-in-out infinite alternate;
}
.e-meter:nth-child(2) i::after { animation-duration: 0.7s; animation-delay: -0.3s; }
@keyframes e-lvl { 0% { height: 48%; } 40% { height: 71%; } 70% { height: 56%; } 100% { height: 66%; } }
.e-fader b { display: block; width: 6px; height: 200px; background: #121215; border-radius: 3px; position: relative; }
.e-fader b::after { content: ""; position: absolute; left: 50%; bottom: var(--v); width: 34px; height: 16px; translate: -50% 50%; background: linear-gradient(#5a5a63, #3a3a41); border-radius: 3px; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5); }
.e-lufs { margin-left: auto; display: grid; gap: 0.2rem; align-self: center; text-align: right; }
.e-lufs strong { font-family: var(--f-display); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--e-orange); font-variant-numeric: tabular-nums; }
.e-lufs span { color: var(--e-dim); font-size: 0.9rem; max-width: 12ch; }

/* ---------- Mischpult ---------- */

.e-sw { margin-top: var(--space-4); background: #111114; border: 1px solid var(--e-line); border-radius: 12px; padding: clamp(1rem, 3vw, 1.8rem); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.e-sw__monitors { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.e-sw__mon { position: relative; margin: 0; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; border: 3px solid var(--e-live); }
.e-sw__mon--pgm { border-color: var(--e-head); }
.e-sw__mon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.e-sw__next { opacity: 0; }
.e-sw__mon--pgm.is-mixing .e-sw__next { opacity: 1; transition: opacity 0.9s ease-in-out; }
.e-sw__mon figcaption { position: absolute; left: 0.6rem; bottom: 0.5rem; padding: 0.2rem 0.55rem; border-radius: 4px; background: rgba(0, 0, 0, 0.7); font-family: var(--f-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; }
.e-sw__mon--pgm figcaption { color: var(--e-head); }
.e-sw__mon--pvw figcaption { color: var(--e-live); }
.e-sw__panel { display: grid; grid-template-columns: 1fr auto; gap: 0.8rem 1.4rem; margin-top: 1.4rem; align-items: center; }
.e-sw__bus { display: flex; align-items: center; gap: 0.5rem; grid-column: 1; }
.e-sw__bus span { width: 2.8rem; font-family: var(--f-display); font-weight: 700; letter-spacing: 0.12em; color: var(--e-dim); font-size: 0.9rem; }
.e-sw__trans { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 0.6rem; }
.e-key {
  width: 3.2rem; height: 3.2rem;
  font-family: var(--f-display); font-weight: 800; font-size: 1.2rem;
  color: var(--e-text); background: #2a2a31;
  border: 1px solid #3c3c44; border-bottom-width: 4px; border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.12s, transform 0.08s;
}
.e-key:hover { background: #34343c; }
.e-key:active { transform: translateY(2px); border-bottom-width: 2px; }
.e-key[aria-pressed="true"] { background: var(--e-head); border-color: #b82f2f; color: #fff; }
.e-key--pvw[aria-pressed="true"] { background: var(--e-live); border-color: #23843f; color: #0b1a10; }
.e-key--cut, .e-key--auto { width: 5rem; height: 6.9rem; font-size: 1.1rem; letter-spacing: 0.08em; }
.e-key--auto { background: #3a3220; border-color: #6b5a2a; }
.e-key--auto:hover { background: #4a3f27; }

/* ---------- Marker ---------- */

.e-markers { list-style: none; margin: var(--space-3) 0 0; padding: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; position: relative; }
.e-markers::before { content: ""; position: absolute; left: 0; right: 0; top: 0.9rem; height: 22px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='22'%3E%3Cpath d='M0.5 22V8M12.5 22v-5M24.5 22v-5M36.5 22v-5M48.5 22v-5' stroke='%2366666f' stroke-width='1'/%3E%3C/svg%3E"); background-repeat: repeat-x; opacity: 0.8; }
.e-marker { position: relative; }
.e-marker__pin { position: absolute; top: -2.1rem; left: 0; width: 16px; height: 22px; background: var(--c); clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%); }
.e-marker__tc { font-family: var(--f-display); font-weight: 700; letter-spacing: 0.08em; color: var(--c); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.e-marker h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; margin: 0.3rem 0 0.4rem; line-height: 1; }
.e-marker p { margin: 0; color: var(--e-dim); font-size: 0.97rem; }

/* ---------- Export-Presets ---------- */

.e-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: var(--space-3); }
.e-preset { background: var(--e-panel); border: 1px solid var(--e-line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.3s, transform 0.4s var(--ease-chem); }
.e-preset:hover { border-color: var(--c, var(--e-teal)); transform: translateY(-4px); }
.e-preset__thumb { height: 120px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, #18181c); border-bottom: 1px solid var(--e-line); }
.e-preset__thumb span { display: grid; place-items: center; border: 2px solid var(--c); color: var(--c); font-family: var(--f-display); font-weight: 800; letter-spacing: 0.08em; border-radius: 4px; }
.e-preset:nth-child(1) .e-preset__thumb span { width: 42px; height: 74px; }
.e-preset:nth-child(2) .e-preset__thumb span { width: 112px; height: 63px; }
.e-preset:nth-child(3) .e-preset__thumb span { width: 132px; height: 74px; }
.e-preset__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.e-preset h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; text-transform: uppercase; margin: 0; line-height: 1; }
.e-preset__sub { color: var(--e-dim); margin: 0.25rem 0 0; }
.e-preset__price { font-family: var(--f-display); font-weight: 800; font-size: 2.8rem; margin: 0.9rem 0 0.3rem; line-height: 1; color: var(--e-orange); }
.e-preset__price span { font-size: 1.05rem; color: var(--e-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.e-preset .ticks { flex: 1; margin-bottom: 1.4rem; }
.e-preset .e-btn { align-self: flex-start; }
.page-edit .pk-note { color: var(--e-dim); }

.e-close { padding-block: var(--space-5); }
.e-close__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); padding-block: var(--space-5); border-top: 1px solid var(--e-line); }
.e-close .e-h2 { margin: 0; max-width: 16ch; }
.page-edit .rooms { color: var(--e-text); }
.page-edit .rooms a:hover { color: var(--e-teal); }

@media (prefers-reduced-motion: reduce) {
  .e-meter i::after { animation: none; }
  .e-cut__lane, .e-cut__lane span { transition: none; }
}
@media (max-width: 960px) {
  .e-hero__top, .e-split, .e-split--grade { grid-template-columns: 1fr; }
  .e-markers, .e-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e-presets { grid-template-columns: 1fr; }
  .e-pages .wrap { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .e-track { grid-template-columns: 2.6rem minmax(0, 1fr); height: 44px; }
  .e-track--audio { height: 30px; }
  .e-ruler { margin-left: calc(2.6rem + 3px); }
  .e-clip--v em, .e-clip--title { font-size: 0.65rem; }
  .e-keys { display: none; }
  .e-markers { grid-template-columns: 1fr; }
  .e-sw__monitors { grid-template-columns: 1fr; }
  .e-sw__panel { grid-template-columns: 1fr; }
  .e-sw__trans { grid-column: 1; grid-row: auto; }
  .e-key { width: 2.7rem; height: 2.7rem; }
  .e-key--cut, .e-key--auto { width: 50%; height: 3.2rem; }
  .e-sw__trans { width: 100%; }
  .e-mixer { gap: 0.7rem; padding: 1rem; flex-wrap: wrap; }
  .e-lufs { margin-left: 0; text-align: left; width: 100%; }
}

/* Lesbarkeit der Clips und Pfeile ohne Rahmen-Tricks */
.e-clip { font-size: 0.75rem; }
.e-clip--v, .e-clip--v[data-clip="1"], .e-clip--v[data-clip="3"] { color: #fff; }
.e-clip--v { background: #1f8e84; }
.e-clip--v[data-clip="1"], .e-clip--v[data-clip="3"] { background: #6a4fd6; }
.e-clip--v em { background: rgba(0, 0, 0, 0.55); padding: 0 0.3rem; border-radius: 3px; top: 0.25rem; }
.e-clip--title { background: #e5537a; color: #1a0b10; }
.e-preset__thumb span { color: color-mix(in srgb, var(--c) 55%, #fff); border-color: color-mix(in srgb, var(--c) 70%, #fff); }
.e-compare__handle span::before,
.e-compare__handle span::after { width: 8px; height: 12px; background: #222; }
.e-compare__handle span::before { clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.e-compare__handle span::after { clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (max-width: 720px) { .e-clip--v em, .e-clip--title { font-size: 0.7rem; } }

/* ---------- Nachbesserung: neutrales Panel-Grau, Export-Dialog, Endkarte ---------- */
.page-edit { --e-bg: #1b1b1b; --e-panel: #262626; --e-panel-2: #313131; --e-line: #3d3d3d; --e-accent: #3fcabd; }
.e-hero { background: #141414; border-bottom: 1px solid var(--e-line); }
.e-tc, .e-cut__foot b, .e-lufs strong { color: var(--e-accent); }
.e-pages a.is-on::after { background: var(--e-accent); }
.e-marker__tc { position: absolute; top: -2.05rem; left: 1.5rem; }
.e-dl { margin-top: var(--space-3); background: var(--e-panel); border: 1px solid var(--e-line); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45); }
.e-dl__bar { display: flex; justify-content: space-between; padding: 0.6rem 1rem; background: #1f1f1f; border-bottom: 1px solid var(--e-line); font-family: var(--f-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; color: var(--e-dim); }
.e-dl__body { display: grid; grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.2fr); }
.e-dl__tabs { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.8rem; background: #202020; border-right: 1px solid var(--e-line); }
.e-dl__tab { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem; text-align: left; font: inherit; color: var(--e-text); background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.e-dl__tab:hover { background: #2a2a2a; }
.e-dl__tab[aria-selected="true"] { background: var(--e-panel-2); border-color: var(--e-accent); }
.e-dl__tab:focus-visible { outline: 2px solid var(--e-accent); outline-offset: 2px; }
.e-dl__fmt { flex: none; display: grid; place-items: center; border: 2px solid var(--c); color: color-mix(in srgb, var(--c) 55%, #fff); border-radius: 3px; font-family: var(--f-display); font-weight: 800; font-size: 0.72rem; }
.e-dl__tab:nth-child(1) .e-dl__fmt { width: 24px; height: 42px; }
.e-dl__tab:nth-child(2) .e-dl__fmt { width: 50px; height: 28px; }
.e-dl__tab:nth-child(3) .e-dl__fmt { width: 56px; height: 32px; }
.e-dl__name { display: grid; gap: 0.1rem; }
.e-dl__name strong { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.02em; }
.e-dl__name span { color: var(--e-dim); font-size: 0.9rem; }
.e-dl__panel { padding: 1.8rem 2rem 2rem; animation: e-in 0.4s var(--ease-chem); }
@keyframes e-in { from { opacity: 0; translate: 10px 0; } }
.e-dl__panel h3 { font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; text-transform: uppercase; margin: 0; line-height: 1; }
.e-dl__sub { color: var(--e-dim); margin: 0.3rem 0 0; }
.e-dl__price { font-family: var(--f-display); font-weight: 800; font-size: 3rem; line-height: 1; margin: 1rem 0 0.4rem; color: var(--e-accent); }
.e-dl__price span { font-size: 1.05rem; color: var(--e-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.e-dl__panel .ticks { margin-bottom: 1.6rem; }
.e-close__inner { display: none; }
.e-end { background: #000; border: 1px solid var(--e-line); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.e-end__screen { min-height: clamp(260px, 32vw, 420px); display: grid; place-content: center; justify-items: center; gap: 1.6rem; text-align: center; padding: 2rem; }
.e-end__screen .e-h2 { margin: 0; max-width: 16ch; }
.e-end__bar { display: flex; justify-content: space-between; padding: 0.55rem 0.9rem; border-top: 1px solid var(--e-line); background: #111; font-family: var(--f-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9rem; color: var(--e-accent); font-variant-numeric: tabular-nums; }
.e-close .rooms { margin-top: var(--space-4); }
@media (max-width: 960px) {
  .e-dl__body { grid-template-columns: 1fr; }
  .e-dl__tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--e-line); }
  .e-dl__tab { flex: 0 0 auto; }
}
@media (max-width: 720px) {
  .e-markers { padding-top: 0; }
  .e-markers::before { display: none; }
  .e-marker { padding-top: 2.4rem; }
  .e-marker__pin { top: 0; }
  .e-marker__tc { top: 0.15rem; }
  .e-dl__panel { padding: 1.4rem 1.2rem 1.6rem; }
}
.e-dl, .e-end, .e-sw, .e-viewer, .e-compare { box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45); }
.e-pages { top: 76px; }
@media (max-width: 720px) { .e-pages { top: 64px; } }

/* ---------- Runde 3: gleicher Grund, Technik als Inspektor ---------- */
.e-hero { background: transparent; }
.e-section { padding-block: var(--space-5); }
.tech--edit { --tech-accent: var(--e-accent); scroll-margin-top: 130px; }
.tech--edit .tech__specs { background: var(--e-panel); border: 1px solid var(--e-line); border-radius: 10px; }
.tech--edit .tech__row { border-color: var(--e-line); }

/* ---------- Runde 3, Nachbesserung: Schnitt-Kennzahlen, Technik als Inspektor-Kacheln ---------- */
.e-cut__stats { margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--e-line); }
.e-cut__stats div { padding: 0.8rem 0.6rem 0 0; }
.e-cut__stats dt { font-family: var(--f-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; color: var(--e-dim); }
.e-cut__stats dd { margin: 0.15rem 0 0; font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; color: var(--e-text); font-variant-numeric: tabular-nums; }
.e-cut__note { margin: 0.9rem 0 0; color: var(--e-dim); font-size: 0.88rem; }
.tech--edit .tech__grid { grid-template-columns: 1fr; gap: var(--space-4); }
.tech--edit .tech__specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 0; background: var(--e-line); overflow: hidden; }
.tech--edit .tech__row { grid-template-columns: 1fr; gap: 0.3rem; padding: 1rem 1.1rem; background: var(--e-panel); border: 0; }
.tech--edit .tech__notes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .tech--edit .tech__specs, .tech--edit .tech__notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .tech--edit .tech__notes { grid-template-columns: 1fr; } }

/* Langsame Bildbewegung in Viewer und Mischpult (Vorher-Nachher bleibt deckungsgleich still) */
.e-viewer__screen img.is-on { animation: kb-in 12s ease-in-out infinite alternate; }
.e-sw__mon img { animation: kb-pan 22s ease-in-out infinite alternate; }
.e-sw__mon--pgm img { animation-name: kb-out; animation-duration: 20s; }
.e-viewer__screen, .e-sw__mon { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .e-viewer__screen img.is-on, .e-sw__mon img { animation: none; } }
