/* Einstellungen beim Schneiden (Neues Projekt, Kanal): Sprache, Zeitraum, Vorlagen, Weitere Optionen, Vorschau */

.einst-wert > select { max-width: 420px; }
.sprache-erkannt { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; color: var(--grau, #5b6159); }
.sprache-erkannt .knopf-text { min-height: 36px; padding: 0 6px; font-size: 14px; font-weight: 600; }
.uebersetzen-ziel { justify-self: stretch; max-width: 420px; }
.einschub:empty { display: none; }
.legende-klein { font-weight: 600; font-size: 14px; color: var(--tinte-2); }

/* Untertitel-Vorlagen als Hochkant-Karten */
.untertitel-wahl { gap: 14px; }
.untertitel-wahl[data-aus] .vorlagen, .untertitel-wahl[data-aus] .position-feld { opacity: 0.4; pointer-events: none; }
.vorlagen { display: flex; gap: 10px; justify-self: stretch; margin: 0 calc(-1 * var(--rand)); padding: 4px var(--rand) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; transition: opacity 150ms ease; }
.vorlage { position: relative; flex: none; display: grid; gap: 6px; width: 104px; scroll-snap-align: start; cursor: pointer; }
.vorlage input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.vorlage img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; background: #2e2b23; box-shadow: 0 0 0 1px rgba(22, 21, 15, 0.12); transition: box-shadow 150ms ease, transform 150ms var(--ease-out); }
.vorlage span { font-weight: 650; font-size: 14px; text-align: center; color: var(--tinte-2); }
.vorlage:active img { transform: scale(0.97); }
.vorlage:has(input:checked) img { box-shadow: 0 0 0 2px var(--papier), 0 0 0 4px var(--tinte); }
.vorlage:has(input:checked) span { color: var(--tinte); font-weight: 750; }
.vorlage:has(input:focus-visible) img { box-shadow: 0 0 0 2px var(--papier), 0 0 0 4px var(--signal); }
@media (hover: hover) and (pointer: fine) { .vorlage:not(:has(:checked)):hover img { box-shadow: 0 0 0 2px var(--papier), 0 0 0 3px var(--linie-2); } }
@media (min-width: 760px) { .vorlagen { margin: 0; padding: 4px 4px 6px; overflow: visible; flex-wrap: wrap; } .vorlage { width: 112px; } }
.position-feld { display: grid; gap: 6px; transition: opacity 150ms ease; }

/* Bildausschnitt mit fünf Möglichkeiten */
.wahl-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .wahl-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .wahl-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Weitere Optionen: eingeklappt, die Zeilen darin wie oben */
.mehr-optionen { border-bottom: 1px solid var(--linie); }
.mehr-optionen > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-height: 56px; padding: 16px 0; cursor: pointer; list-style: none; }
.mehr-optionen > summary::-webkit-details-marker { display: none; }
.mehr-titel { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.mehr-titel::before { content: ""; width: 7px; height: 7px; margin: 0 2px 2px 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 200ms var(--ease-out); }
.mehr-optionen[open] .mehr-titel::before { transform: rotate(45deg); }
.mehr-optionen > summary:focus-visible { outline-offset: 2px; }
.mehr-optionen > .einst-zeile:last-child { border-bottom: 0; }
@media (hover: hover) and (pointer: fine) { .mehr-optionen > summary:hover .mehr-titel { text-decoration: underline; text-underline-offset: 3px; } }

/* Verarbeitungszeitraum: zwei Regler übereinander auf einer Spur */
.zr-bereich { display: grid; gap: 6px; justify-self: stretch; max-width: 560px; }
.zr-spur { --a: 0%; --b: 100%; position: relative; height: 44px; }
.zr-spur::before, .zr-spur::after { content: ""; position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; }
.zr-spur::before { left: 0; right: 0; background: var(--linie-2); }
.zr-spur::after { left: var(--a); right: calc(100% - var(--b)); background: var(--tinte); }
.zr-spur input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 44px; margin: 0; background: transparent; appearance: none; pointer-events: none; }
.zr-spur input::-webkit-slider-runnable-track { background: transparent; }
.zr-spur input::-moz-range-track { background: transparent; }
.zr-spur input::-webkit-slider-thumb { width: 24px; height: 24px; border: 2px solid var(--tinte); border-radius: 50%; background: var(--papier); appearance: none; pointer-events: auto; cursor: grab; transition: transform 150ms var(--ease-out); }
.zr-spur input::-moz-range-thumb { width: 20px; height: 20px; border: 2px solid var(--tinte); border-radius: 50%; background: var(--papier); pointer-events: auto; cursor: grab; }
.zr-spur input:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; }
.zr-spur input:focus-visible { outline: none; }
.zr-spur input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--papier), 0 0 0 5px var(--signal); }
.zr-spur input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--papier), 0 0 0 5px var(--signal); }
.zr-werte { display: flex; justify-content: space-between; font-size: 13px; color: var(--grau); }
.zr-werte b { color: var(--tinte); font-weight: 500; }

/* Vorschau des Videos unter dem Link */
.vorschau-karte { padding: 12px; border: 1.5px solid var(--tinte); border-radius: 10px; background: #fff; }
.vk { display: flex; align-items: center; gap: 14px; min-width: 0; }
.vk-bild { position: relative; flex: none; width: 128px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--matte); }
.vk-bild img, .vk-bild video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vk-bild .p-dauer { left: auto; right: 6px; bottom: 6px; }
.vk-text { display: grid; gap: 3px; min-width: 0; }
.vk-text b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 750; font-stretch: 85%; font-size: 17px; line-height: 1.2; }
.vk-laedt { display: flex; align-items: center; gap: 8px; }
.vk-laedt .punkt { background: var(--signal); animation: blinken 1s steps(2, jump-none) infinite; }
@media (min-width: 560px) { .vk-bild { width: 160px; } }
