/* gradebymike v4: ribbon that draws on scroll, rolling trackball, numbered grading steps with a live-graded clip. Loaded after site.css. */
main { position: relative; }
.sec { position: relative; overflow: hidden; overflow: clip; }

/* themes */
.t-red { background: var(--red); color: var(--black); --rib: var(--paper); --acc: var(--black); --soft: #2a1a08; }
.t-paper { background: var(--paper); color: var(--black); --rib: var(--red); --acc: var(--red); --soft: #3a352e; }
.t-black { background: var(--black); color: var(--paper); --rib: var(--red); --acc: var(--red); --soft: #d8d0c1; }
.t-red .chapter, .t-paper .chapter { color: inherit; }
.t-red .chapter::before { background: var(--black); }
.sec .lead { color: var(--soft); }
.t-red .btn { background: var(--black); color: var(--paper); }
.t-red .btn:hover { background: #2a2520; }
.t-red .btn--ghost { background: transparent; border-color: var(--black); color: var(--black); }
.t-red .btn--ghost:hover { background: var(--black); color: var(--paper); }
.t-red ::selection { background: var(--black); color: var(--paper); }

/* ribbon layers (one clipped copy per section, so the colour can change per theme) */
.rib__layer { position: absolute; left: 0; z-index: 1; pointer-events: none; max-width: none; overflow: visible; }
.rib__layer path { fill: none; stroke: var(--rib); stroke-linecap: round; stroke-linejoin: round; }
.rib > :not(.rib__layer) { position: relative; z-index: 2; }

/* rolling logo mark at the ribbon tip */
.puck { position: absolute; left: 0; top: 0; z-index: 6; width: clamp(62px, 8.2vw, 124px); aspect-ratio: 1; pointer-events: none; will-change: transform; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .5)); opacity: 0; transition: opacity .5s ease; }
.puck.is-on { opacity: 1; }
.puck img { width: 100%; height: 100%; will-change: transform; }

/* type */
.big { font-family: var(--body); font-stretch: 125%; font-weight: 900; font-size: clamp(42px, 7vw, 124px); line-height: .93; letter-spacing: -.04em; text-wrap: balance; }
.acc { font-family: var(--hand); font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: var(--acc); display: inline-block; font-size: 1.16em; line-height: .78; transform: rotate(-3deg); transform-origin: 0 100%; white-space: nowrap; }

/* nav over the orange hero */
.v4 .nav:not(.is-solid) { background: none; }
.v4 .nav:not(.is-solid) .nav__links a, .v4 .nav:not(.is-solid) .nav__links a i, .v4 .nav:not(.is-solid) .brand, .v4 .nav:not(.is-solid) .nav__burger { color: var(--black); }
.v4 .nav:not(.is-solid) .nav__burger i, .v4 .nav:not(.is-solid) .nav__burger i::before, .v4 .nav:not(.is-solid) .nav__burger i::after { background: var(--black); }
.v4 .nav:not(.is-solid) .nav__links a::after { background: var(--black); }
.v4 .nav:not(.is-solid) .brand b { color: var(--black); }
.v4 .nav:not(.is-solid) a.cta-mini { background: var(--black); border-color: var(--black); color: var(--paper); }
.v4 .timeline { transition: opacity .4s ease; }
.v4 .timeline:not(.is-deep) { opacity: 0; }

/* hero */
.hero4 { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: 78px var(--pad) 64px; }
.hero4.rib > .hero4__word { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: min(37vw, 64vh); line-height: .8; letter-spacing: -.012em; color: var(--black); text-align: center; white-space: nowrap; margin: 0 calc(var(--pad) * -.5); user-select: none; }
.hero4__row { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 90px); align-items: end; }
.hero4 .big { font-size: clamp(38px, 5.4vw, 92px); margin-top: 18px; }
.hero4__side p { font-size: clamp(17px, 1.45vw, 20px); max-width: 30em; }
.hero4 .actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero4.rib > .hero4__scroll { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); color: var(--black); }

/* marquee */
.marq { padding: 20px 0 18px; white-space: nowrap; }
.marq__track { display: inline-flex; animation: marq 30s linear infinite; }
.marq span { font-family: var(--body); font-stretch: 125%; font-weight: 900; font-size: clamp(26px, 3.8vw, 58px); letter-spacing: -.03em; padding-right: .35em; }
.marq b { color: var(--red); font-weight: 900; padding: 0 .18em; }
@keyframes marq { to { transform: translateX(-50%); } }

/* statement: words fill in while you scroll */
.say { padding: clamp(130px, 24vh, 280px) var(--pad); display: grid; gap: 34px; }
.say .big { max-width: 11.5em; }
.say .lead { max-width: 30em; font-size: clamp(19px, 1.7vw, 24px); }
.fill .w { opacity: .15; transition: opacity .35s ease; }
.fill .w.on { opacity: 1; }

/* grading steps */
.step { min-height: 100vh; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 110px); align-items: center; padding: clamp(110px, 17vh, 190px) var(--pad); }
.step--flip .step__txt { order: 2; }
.step__txt { display: grid; gap: 22px; align-content: center; }
.step__txt .lead { max-width: 25em; }
.step__vis { position: relative; }
.step__no { position: absolute; right: -.04em; top: -.56em; z-index: 0; font-family: var(--display); font-weight: 900; font-size: clamp(150px, 25vw, 420px); line-height: .8; letter-spacing: -.02em; color: var(--acc); user-select: none; }
.step--flip .step__no { right: auto; left: -.04em; }
.mon { position: relative; z-index: 1; background: #141414; color: var(--paper); border: 1px solid rgba(245,243,239, .22); box-shadow: 0 34px 70px rgba(0, 0, 0, .45); }
.mon__bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 13px; font-size: 11px; color: #bdb4a4; }
.mon__bar span { display: inline-flex; align-items: center; gap: 8px; }
.mon__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2, jump-none) infinite; }
.mon__pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #141414; }
.mon__pic img, .mon__pic canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mon__pic canvas { opacity: 0; }
.gl-on .mon__pic canvas { opacity: 1; }
.gl-on .mon__pic img { visibility: hidden; }
.mon[data-stage="0"] img { filter: saturate(.25) contrast(.5) brightness(1.7); }
.mon[data-stage="1"] img { filter: saturate(.6); }
.mon[data-stage="2"] img { filter: saturate(.75); }
.mon__wave { display: block; width: 100%; height: clamp(52px, 6.4vw, 92px); border-top: 1px solid rgba(245,243,239, .16); }
body:not(.gl-on) .mon__wave { display: none; }

/* step 04: full-bleed final grade */
.final { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px var(--pad) clamp(56px, 9vh, 110px); }
.final.rib > .final__pic { position: absolute; inset: 0; z-index: 2; border: 0; box-shadow: none; }
.final__pic .mon__pic { position: absolute; inset: 0; aspect-ratio: auto; }
.final__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,.5) 0%, rgba(20,20,20,0) 26%, rgba(20,20,20,0) 48%, rgba(20,20,20,.88) 100%); }
.final.rib > .final__copy { z-index: 3; display: grid; gap: 20px; }
.final.rib > .step__no { position: absolute; z-index: 3; right: var(--pad); top: 90px; color: var(--paper); font-size: clamp(110px, 17vw, 280px); mix-blend-mode: overlay; }
.final__note { color: #cfc6b6; font-size: 11px; }

/* services head */
#inhalt .big { max-width: 11em; }
#anmelden.rib > .slate { z-index: 3; }

@media (max-width: 860px) {
  .hero4 { padding-top: 96px; }
  .hero4.rib > .hero4__word { font-size: min(39vw, 34vh); margin-top: 4vh; }
  .hero4__row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; min-height: 0; gap: 70px; padding-top: 100px; padding-bottom: 120px; }
  .step--flip .step__txt { order: 0; }
  .step__no, .step--flip .step__no { right: -.02em; left: auto; top: -.62em; font-size: clamp(120px, 38vw, 220px); }
  .rib__layer path { opacity: .92; }
}
@media (prefers-reduced-motion: reduce) {
  .marq__track, .mon__bar i { animation: none; }
  .fill .w { opacity: 1; transition: none; }
}
@media (scripting: none) { .fill .w { opacity: 1; } }

/* signup slate keeps its own dark text */
.sec .slate .lead { color: #3a352e; }
@media (max-width: 860px) { .step { gap: 120px; } .step__no, .step--flip .step__no { top: -.7em; } }

html, body.v4 { overflow-x: clip; }
