/* Kurszugang im Erscheinungsbild des iQuest-Spiels. Grundfarben, Schriften und
   Eingabefelder stammen aus auth.css und wechseln mit der bestehenden Lernweise. */
body.sg-page {
  --sg-width: 1180px;
  background-color: var(--bg);
  background-image: linear-gradient(90deg, rgba(6,9,23,.9), rgba(6,9,23,.55) 47%, rgba(6,9,23,.14)),
                    linear-gradient(0deg, #060917 0%, transparent 26%, transparent 82%, rgba(6,9,23,.65)),
                    url('/auth-assets/map.webp');
  background-repeat: no-repeat;
  background-size: 100% max(850px, 100svh), 100% max(850px, 100svh), auto max(850px, 100svh);
  background-position: center top;
}
.sg-page .site-main { max-width: var(--sg-width); padding-top: 0; }
.sg-header__inner { margin: auto; max-width: var(--sg-width); padding: 19px var(--pad); display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.sg-brand { line-height:0; flex:0 1 auto; }
.sg-brand .quest-brand__logo { width:clamp(108px,13vw,172px); height:auto; }
.sg-header nav, .sg-mode { display:flex; align-items:center; gap:1rem; }
.sg-header nav > a, .sg-header form button { color:var(--text); font-size:.94rem; font-weight:700; }
.sg-header nav > a { padding:8px; text-underline-offset:4px; }
.sg-header form { margin:0; }
.sg-header form button { background:transparent; border:0; cursor:pointer; }
.sg-header button.sg-mode { border:1px solid var(--gold); border-radius:25px; padding:5px 12px; gap:6px; background:#10162c; color:#fff0b5; font:700 .85rem var(--body); }
.sg-mode img { height:25px; width:25px; object-fit:contain; }
html[data-mode="game"] .sg-mode :nth-child(n+3), html[data-mode="classic"] .sg-mode :nth-child(-n+2) { opacity:.68; }
.sg-hero { min-height:min(710px,calc(100svh - 110px)); display:grid; grid-template-columns:minmax(0,1.16fr) minmax(340px,.84fr); align-items:center; gap:clamp(32px,6vw,98px); padding:32px 0 48px; }
.sg-subject { display:inline-block; margin:0 0 18px; padding:6px 12px; border:1px solid var(--gold); border-radius:8px; background:rgba(6,9,23,.8); color:#ffe59c; font:800 .78rem var(--display); text-transform:uppercase; letter-spacing:.09em; }
.sg-intro h1 { margin:0; font:800 clamp(2.8rem,5.1vw,4.5rem)/1.02 var(--display); color:#fff8e8; letter-spacing:-.045em; text-wrap:balance; }
.sg-intro h1 em { display:block; color:#ffd56a; font-style:normal; }
.sg-intro__lead { color:#f3f2ed; max-width:37ch; margin:18px 0; font-size:clamp(1.05rem,1.5vw,1.23rem); }
.sg-features { padding:0; list-style:none; margin:20px 0; display:grid; gap:7px; }
.sg-features li { display:flex; align-items:flex-start; gap:10px; font-weight:700; color:#fff8ea; }
.sg-features img { margin-top:2px; flex:none; }
.sg-course-link, .sg-alternatives a, .sg-booked a { color:var(--gold-hi); text-underline-offset:4px; }
.sg-course-link { display:inline-block; padding:6px 0; }
.sg-portal { position:relative; min-width:0; padding:32px clamp(20px,2.6vw,32px) 22px; border:1px solid #a87924; border-radius:21px;
  background:linear-gradient(160deg,#192044,#0b1027 80%); box-shadow:0 18px 64px #0007, inset 0 0 0 5px #0a0f26,inset 0 0 0 6px #a47e304d; }
.sg-portal .sg-coin { width:52px; height:52px; position:absolute; top:-27px; left:calc(50% - 26px); object-fit:contain; filter:drop-shadow(0 5px 8px #0008); }
.sg-portal h2 { margin:0 0 17px; font:800 clamp(1.45rem,2.6vw,2rem)/1.2 var(--display); text-align:center; color:var(--text); }
.sg-portal .auth-form { margin:0; display:grid; gap:9px; }
.sg-portal .auth-form p { margin:0; }
.sg-form input:not([type=checkbox]) { width:100%; }
.sg-form p label { display:block; margin-bottom:4px; font-weight:700; }
.sg-form .sg-remember { display:flex; align-items:center; gap:8px; font-weight:400; cursor:pointer; }
.sg-form .sg-remember input { flex:none; width:18px; height:18px; margin:0; }
.sg-form button.btn { margin:2px 0 0; }
.sg-wide { width:100%; }
.sg-alternatives { display:flex; flex-wrap:wrap; gap:5px 16px; justify-content:space-between; margin:12px 0 0; font-size:.89rem; }
.sg-booked { padding-top:13px; margin-top:15px; border-top:1px solid var(--hair); font-size:.95rem; }
.sg-booked p { margin:4px 0 7px; color:var(--text-2); }
.sg-chapters { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:18px 0; }
.sg-chapters figure { margin:0; position:relative; border-radius:12px; overflow:hidden; background:#0a1021; }
.sg-chapters img { width:100%; height:auto; display:block; aspect-ratio:2.65; object-fit:cover; }
.sg-chapters figcaption { padding:9px 13px; color:#fff6db; font-weight:700; }
.sg-chapters small { display:block; font-weight:400; }
.sg-boss { display:flex; gap:14px; align-items:center; margin:18px 0; }
.sg-boss img { border-radius:50%; border:1px solid var(--gold); width:58px; height:58px; }
.sg-boss p { margin:0; }
.sg-page .legal-card { margin-top:28px; }
.sg-seat-coin { float:right; margin:0 0 8px 12px; }
.sg-page .sg-hero + .panel { scroll-margin-top:16px; }
html[data-mode="classic"] .sg-page { background-image:none; }
html[data-mode="classic"] .sg-portal { border-color:var(--line); background:var(--bg-2); box-shadow:0 10px 35px #0002; }
html[data-mode="classic"] .sg-intro :is(h1, em, p, li) { color:var(--text); }
html[data-mode="classic"] .sg-subject { background:var(--bg-2); border-color:var(--line); }
html[data-mode="classic"] .sg-course-link, html[data-mode="classic"] .sg-alternatives a, html[data-mode="classic"] .sg-booked a { color:inherit; }
html[data-mode="classic"] .sg-boss { display:none; }
@media(min-width:1550px) { body.sg-page { background-size:100% max(850px,100svh),100% max(850px,100svh),100% auto; } }
@media(max-width:790px) {
  .sg-hero { grid-template-columns:1fr; min-height:0; gap:34px; padding:16px 0 32px; }
  .sg-intro { max-width:37rem; }
  .sg-intro h1 { font-size:clamp(2.25rem,6.4vw,3.4rem); }
  .sg-intro h1 em { display:inline; }
  .sg-portal { width:100%; max-width:560px; }
  .sg-subject { font-size:.69rem; margin-bottom:9px; }
  .sg-intro__lead { margin:9px 0; }
  .sg-features { margin:9px 0; gap:3px; }
  .sg-header__inner { padding-top:12px; padding-bottom:8px; }
  .sg-header nav { gap:4px; }
  .sg-header nav > a { font-size:.82rem; }
}
@media(max-width:530px) {
  .sg-seat-coin { width:40px; height:40px; }
  .sg-header button.sg-mode { gap:4px; padding:4px 8px; }
  .sg-mode span { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
  .sg-hero { gap:29px; }
  .sg-intro .sg-course-link { display:none; }
  .sg-portal { padding-top:28px; }
  .sg-chapters { grid-template-columns:1fr; }
}
