@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url("./fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url("./fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Barlow; font-weight: 700; font-display: swap; src: url("./fonts/barlow-latin-700-normal.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --bg: #191925;
  --surface: #242437;
  --line: #424254;
  --text: #f6f3f4;
  --soft: #c4c2d1;
  --accent: #f4ceab;
  --error: #ffbcae;
  font: 400 17px/1.45 Barlow, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.top, .desk { max-width: 1150px; margin: 0 auto; }
.top { padding: max(28px,env(safe-area-inset-top)) max(26px,env(safe-area-inset-right)) 22px max(26px,env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 11px; }
.wordmark img { border-radius: 11px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.6rem; line-height: 1; letter-spacing: -.035em; }
h2 { font-size: clamp(1.95rem, 4vw, 2.65rem); letter-spacing: -.045em; line-height: 1.04; font-weight: 600; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; font-weight: 600; }
.desk { padding: 46px 26px max(48px,env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0,1.35fr) minmax(265px,.88fr); gap: clamp(34px,6vw,82px); align-items: start; }
.sources { grid-column: 2; grid-row: 1; }
.player { grid-column: 1; grid-row: 1; min-width: 0; }
button, input, a.fill { font: inherit; }
button, a.fill { touch-action: manipulation; cursor: pointer; }
button, a.fill, .project-controls button { min-height: 44px; border: 1px solid transparent; border-radius: 9px; padding: .63rem .95rem; font-weight: 600; line-height: 1.2; text-align: center; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #d2c2ff; outline-offset: 3px; }
.primary, a.fill, .fill { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; background: var(--accent); color: #2b2526; text-decoration: none; }
.secondary { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; color: var(--text); background: var(--surface); border-color: var(--line); }
.quiet, .accent-link { background: transparent; color: var(--soft); }
.accent-link { color: var(--accent); padding-left: 0; }
.accent-link span { margin-left: .2rem; }
.help { font-size: .92rem; padding-right: 0; }
a { color: var(--accent); text-underline-offset: .18em; }
label { display: block; margin: 20px 0 6px; color: var(--soft); font-size: .88rem; }
.entry { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
input[type=text] { width: 100%; min-width: 0; min-height: 46px; padding: 8px 12px; background: #10101c; color: var(--text); border: 1px solid #5a596d; border-radius: 9px; }
input::placeholder { color: #9b99ad; }
.file { width: 100%; margin: 10px 0 0; }
.folder-icon { display:inline-block; width:20px; height:14px; border:1.7px solid currentColor; border-radius:2px; position:relative; }
.folder-icon::before { content:""; position:absolute; top:-5px; left:-1.7px; width:8px; height:4px; border:1.7px solid currentColor; border-bottom:0; border-radius:3px 3px 0 0; background:var(--surface); }
.safari-entry { margin-top: 27px; padding-top: 21px; border-top: 1px solid var(--line); }
.safari-entry p, details p, dialog p, dialog li, .notice { color: var(--soft); }
.safari-entry p { margin-top: 4px; max-width: 37ch; }
.notice { margin-top: 12px; padding: .85rem; border-left: 2px solid var(--accent); background: var(--surface); border-radius: 0 8px 8px 0; }
.notice p { margin-bottom: 8px; }
.small { font-size: .88rem !important; }
.screen { position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; aspect-ratio: 16/9; background: #11121e url("./pruefbild.png") center/cover; border-radius: 14px; box-shadow: 0 0 0 1px #434258; }
.screen video { display: block; width:100%; height:100%; position:absolute; inset:0; object-fit:contain; background: #090911; }
.screen:not(.loaded) video { visibility:hidden; }
.sample { position: absolute; bottom: 18px; left: 20px; padding: .5rem .8rem; display: flex; align-items:center; gap: 9px; background: #1c1d32; color:#faf6f5; border-color:#77768d; font-size:.9rem; }
.triangle { width:0; height:0; border-top:5px solid transparent; border-bottom:5px solid transparent; border-left:8px solid var(--accent); }
.now { display:flex; align-items:center; justify-content:space-between; gap:8px; padding: 9px 0 0; }
.now strong { overflow-wrap:anywhere; line-height:1.2; }
.now button { font-size:.84rem; }
.feedback { color:var(--soft); margin: 10px 0 7px; font-size:.94rem; overflow-wrap:anywhere; }
.feedback.error { color: var(--error); }
.routes { display:flex; flex-wrap:wrap; gap:8px; margin-top:13px; }
.routes button { flex:1 1 auto; }
.cast-icon { position:relative; width:19px;height:13px; border:1.7px solid currentColor;border-radius:3px;margin-right:2px; }
.cast-icon::after { content:"";position:absolute;left:4px;bottom:-4px;width:8px;height:8px;background:currentColor;clip-path:polygon(50% 0,100% 100%,0 100%); }
.original { margin: 12px 0; font-size:.92rem; }
details { margin:16px 0 0; border-top:1px solid var(--line); }
summary { padding: 12px 0; color:var(--soft); cursor:pointer; font-weight:600; }
details p { margin: 0 0 9px; }
#save { margin-top: 12px; }
#working { display:flex; gap:10px; align-items:center; }
progress { accent-color: var(--accent); width: min(210px,65%); }
dialog { width:min(435px,calc(100% - 28px)); max-height:85dvh; overflow:auto; padding:26px; color:var(--text); background:#252539; border:1px solid #5a596b; border-radius:16px; margin:auto; box-shadow:0 25px 80px #0008; }
dialog::backdrop { background: #080810b8; }
dialog h2 { font-size:1.9rem; margin-bottom: 17px; }
dialog ol { padding-left: 1.33rem; }
dialog li { padding-left:.2rem; margin: 0 0 10px; }
dialog p { margin:12px 0; }
dialog form { margin: 8px 0 0; }
dialog textarea { width:100%; height:68px; color:var(--text); background:var(--bg); border:1px solid var(--line); font:16px monospace; }
dialog .fill, dialog form button { width:100%; }
.guide-list { display:grid; gap:8px; }
body.projecting { overflow:hidden; }
.screen.projecting { position:fixed; inset:0; width:100%; height:100%; height:100dvh; aspect-ratio:auto; background:#000; border-radius:0; z-index:10; }
.screen.projecting video { object-fit:contain; }
#mirror-frame { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:#000; }
.project-controls { position:absolute; bottom:max(10px,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); display:flex; align-items:center; justify-content:center; flex-wrap:wrap; width:max-content; max-width:calc(100% - 20px); gap:7px; }
.project-controls input { width:clamp(50px,24vw,220px); accent-color:var(--accent); }
.project-controls button { color:white;background:#191925eb;border-color:#6a697f;min-height:42px; }
.screen.hide-controls .project-controls { opacity:0; }
.screen.hide-controls:has(:focus-visible) .project-controls { opacity:1; }
@media (hover:hover) { .secondary:hover, .quiet:hover { background:#303046; } .primary:hover, .fill:hover { background:#ffddbd; } .accent-link:hover { text-decoration:underline; } }
@media (max-width:730px) {
  :root { font-size:16px; }
  .top { padding: max(15px,env(safe-area-inset-top)) max(19px,env(safe-area-inset-right)) 13px max(19px,env(safe-area-inset-left)); }
  .wordmark img { width:38px;height:38px; }
  .desk { padding:23px max(19px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(19px,env(safe-area-inset-left)); display:flex; flex-direction:column; gap:22px; }
  .sources,.player { width:100%; }
  .safari-entry { margin-top:16px; padding-top:14px; }
  label { margin-top:15px; }
  .safari-entry p { max-width:none; }
  .sample { bottom:12px; left:13px; }
}
@media (prefers-reduced-motion:no-preference) { .project-controls { transition:opacity .18s ease; } }
