/* Video page (Erste Schritte): player, transcript, chapter list. Tokens only, no new colours. */

.page-head { padding: 44px 0 8px; }
.page-head__text { max-width: 40em; }
.page-head__text p { color: var(--muted); }

/* ---- Player ---- */
.tut { padding: 24px 0 64px; }
.tut__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .tut__grid { grid-template-columns: 1fr 340px; gap: 36px; } }

.player { background: var(--brand-dark); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.player__stage { background: #0e1b2a; }
.player video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #0e1b2a; }
.player--phone .player__stage { display: grid; place-items: center; padding: 20px 0; }
.player--phone video { width: auto; max-width: min(280px, 70vw); max-height: 62vh; aspect-ratio: 390 / 844; border: 8px solid #04101c; border-radius: 30px; }

.player__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 14px; background: var(--brand-dark); color: #c4d2e0; font-size: 0.9rem; }
.cc { font: 600 0.85rem/1 var(--font-sans); padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(196, 210, 224, 0.55); background: transparent; color: #dbe5ef; cursor: pointer; }
.cc[aria-pressed='true'] { background: #fff; color: var(--brand-dark); border-color: #fff; }
.cc:focus-visible { outline-color: #fff; }
.captions { margin: 0; padding: 12px 18px; min-height: 3.4em; background: #0e1b2a; color: #fff; font-size: 1.05rem; line-height: 1.4; text-align: center; border-top: 1px solid rgba(196, 210, 224, 0.2); }

.now { margin: 18px 0 0; }
.now h2 { font-size: 1.5rem; margin-bottom: 6px; }
.now p { color: var(--muted); margin-bottom: 8px; }
.transcript summary { cursor: pointer; font-weight: 600; color: var(--brand-dark); }
.transcript > div { margin-top: 10px; max-width: 46em; }
.transcript h4 { font-family: var(--font-sans); font-weight: 600; font-size: 0.98rem; color: var(--brand-dark); line-height: 1.3; margin: 18px 0 2px; }
.transcript h4:first-child { margin-top: 0; }
.transcript p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin: 0 0 10px; }
.note { font-size: 0.88rem; color: var(--muted); }

/* ---- Chapter list ---- */
.tracks { display: grid; gap: 22px; }
.track h3 { font-family: var(--font-sans); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 4px; }
.track__hint { margin: 0 0 10px; font-size: 0.9rem; color: var(--muted); }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chapter { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; color: inherit; text-decoration: none; }
a.chapter:hover { border-color: var(--brand-pale-border); background: var(--brand-pale); }
.chapter[aria-current='true'] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-pale-border); }
.chapter__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; font-size: 0.85rem; }
.chapter strong { display: block; font-weight: 600; font-size: 0.98rem; color: var(--brand-dark); line-height: 1.3; }
.chapter span.meta { font-size: 0.85rem; color: var(--muted); }
.chapter--soon { background: var(--surface-alt); color: var(--muted); }
.chapter--soon .chapter__n { background: var(--brand-pale-border); color: var(--brand-dark); }
.chapter--soon strong { color: var(--muted); }

/* ---- Areas that open and close (the page lists 23 videos), the next video, a list that scrolls on its own ---- */
.track { border-top: 1px solid var(--border); padding-top: 10px; }
.track:first-child { border-top: 0; padding-top: 0; }
.track > summary { list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; cursor: pointer; padding: 4px 0 8px; }
.track > summary::-webkit-details-marker { display: none; }
.track > summary h3 { margin: 0; }
.track > summary::after { content: ''; flex: none; width: 8px; height: 8px; margin-left: auto; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.track[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.track__count { order: 2; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.track > summary:focus-visible { outline-offset: 4px; }
.track[open] > .chapters { margin-bottom: 8px; }
.now .next { margin: 0 0 12px; }
.now .next span { color: var(--muted); }
.now .next a { font-weight: 600; }
@media (min-width: 960px) {
  .tracks { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
}

/* ---- The head of the tutorial page: shorter, so the first video is on screen without scrolling ---- */
.page-head--tut { padding: 30px 0 8px; }
.page-head--tut h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.35em; }
.page-head--tut .page-head__text { max-width: 52em; }
.page-head--tut .page-head__text p { margin-bottom: 0.6em; }

/* ---- Search in the list beside the video ---- */
.tareas { display: grid; gap: 22px; }
.tsearch { margin: 0; }
.tsearch input { width: 100%; font: 400 1rem/1.2 var(--font-sans); padding: 12px 14px; border: 1.5px solid var(--brand-pale-border); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.tsearch input::placeholder { color: var(--muted); opacity: 1; }
.tsearch input:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 1px; border-color: var(--brand); }
.tresults__head { margin: 0 0 4px; font-size: 0.9rem; color: var(--muted); }
.tresults__none { margin: 0; font-size: 0.95rem; color: var(--muted); }
.thit { padding: 12px 0; border-top: 1px solid var(--border); }
.thit__title { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--brand-dark); margin: 0; }
.thit__title a { color: var(--brand-dark); text-decoration: none; }
.thit__title a:hover { text-decoration: underline; }
.thit__meta { margin: 2px 0 4px; font-size: 0.85rem; color: var(--muted); }
.thit__snip { display: grid; grid-template-columns: 3.1em 1fr; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: var(--radius-sm); font-size: 0.9rem; line-height: 1.45; color: var(--ink); text-decoration: none; }
.thit__snip:hover { background: var(--brand-pale); color: var(--ink); }
.thit__snip time { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.tresults mark { background: var(--accent-tint); color: inherit; border-radius: 3px; box-shadow: 0 0 0 2px var(--accent-tint); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (min-width: 960px) {
  .tsearch { position: sticky; top: 0; z-index: 3; background: #fff; padding: 2px 0 12px; }
}
@media (max-width: 959px) { .tracks { gap: 14px; } }
