/* ============================================================
   Academy of eSports — Karriereportal
   Global base + animations + utilities + brand + header.
   Mirrors the source component's <style> block, with the
   JS-driven responsiveness replaced by CSS media queries.
   ============================================================ */

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}
.aoe-page-root {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}
::selection { background: var(--aoe-aqua-40); color: #fff; }
a { color: var(--aoe-aqua); text-decoration: none; }
a:hover { color: #7fd8f6; }
button { font-family: var(--font-text); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
img { max-width: 100%; }

/* Accessible focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--aoe-aqua);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.aoe-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--aoe-aqua);
  color: var(--color-on-accent);
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}
.aoe-skip:focus { left: 0; }

/* ---- Keyframes ---- */
@keyframes aoeRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes aoeFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes aoeSpin { to { transform: rotate(360deg); } }
@keyframes aoeFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes aoeSlideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---- Reveal on scroll ---- */
.aoe-rv { opacity: 0; transform: translateY(20px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.aoe-rv.in { opacity: 1; transform: none; }
.aoe-stag > * { opacity: 0; transform: translateY(20px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.aoe-stag.in > * { opacity: 1; transform: none; }
.aoe-stag.in > *:nth-child(2) { transition-delay: .09s; }
.aoe-stag.in > *:nth-child(3) { transition-delay: .18s; }
.aoe-stag.in > *:nth-child(4) { transition-delay: .27s; }
.aoe-stag.in > *:nth-child(5) { transition-delay: .36s; }
.aoe-stag.in > *:nth-child(6) { transition-delay: .45s; }

/* ---- Button icon micro-motion ---- */
button svg { transition: transform .18s var(--ease-out); }
button:hover svg:not(:first-child) { transform: translateX(3px); }

/* ---- Neon hover glows ---- */
.aoe-neon { transition: box-shadow .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out); }
.aoe-neon:hover { box-shadow: 0 0 0 1px var(--aoe-aqua-40), 0 8px 24px -8px var(--aoe-aqua-40), 0 0 20px -6px var(--aoe-aqua-40); }
.aoe-neon-strong { transition: box-shadow .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out); }
.aoe-neon-strong:hover { box-shadow: 0 0 0 1px var(--aoe-aqua-60), 0 12px 34px -10px rgba(42,190,239,.5), 0 0 30px -6px var(--aoe-aqua-40); }

/* ---- Card hover lift ---- */
.aoe-jobcard:hover { border-color: var(--aoe-aqua-40); transform: translateY(-4px) scale(1.01); }
.aoe-expcard:hover { transform: translateY(-4px) scale(1.01); border-color: var(--aoe-aqua-40); }

/* ---- Image zoom tile ---- */
.aoe-tile-img { transition: transform .55s var(--ease-out); }
.aoe-tile:hover .aoe-tile-img { transform: scale(1.06); }

/* ---- Nav underline ---- */
.aoe-nav { position: relative; }
.aoe-nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--aoe-aqua); border-radius: 2px; transform: scaleX(0);
  transform-origin: left; transition: transform .25s var(--ease-out);
}
.aoe-nav:hover::after, .aoe-nav:focus-visible::after { transform: scaleX(1); }

/* ---- Heading underline accent ---- */
.aoe-ul { position: relative; padding-bottom: 14px; }
.aoe-ul::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px;
  border-radius: 2px; background: var(--aoe-aqua); box-shadow: 0 0 10px -2px var(--aoe-aqua-40);
}

/* Generic button hover/active helpers used across CTAs */
.aoe-btn-primary { transition: filter .15s, transform .1s; }
.aoe-btn-primary:hover { filter: brightness(1.08); }
.aoe-btn-primary:active { transform: scale(.98); }
.aoe-btn-ghost { transition: border-color .15s; }
.aoe-btn-ghost:hover { border-color: var(--aoe-aqua-40); }
.aoe-input { transition: border-color .15s, box-shadow .15s; }
.aoe-input:focus { border-color: var(--aoe-aqua); box-shadow: 0 0 0 3px var(--aoe-aqua-12); outline: none; }

/* ---- Brand lockup (recreated horizontal white logo) ---- */
.aoe-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.aoe-brand-mark { height: 30px; width: auto; display: block; }
.aoe-brand-word {
  display: flex; flex-direction: column; justify-content: center;
  font-family: var(--font-display); color: #fff; line-height: 1;
}
.aoe-brand-word .l1 {
  font-size: 15px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.aoe-brand-word .l2 {
  font-size: 9px; font-weight: 600; letter-spacing: .30em; text-transform: uppercase;
  color: var(--aoe-aqua); margin-top: 3px; display: flex; gap: .5em;
}
@media (max-width: 420px) { .aoe-brand-word { display: none; } }

/* ---- Touch: disable hover transforms ---- */
@media (hover: none) {
  .aoe-neon:hover, .aoe-neon-strong:hover,
  .aoe-jobcard:hover, .aoe-expcard:hover { transform: none; box-shadow: none; }
  .aoe-neon:active, .aoe-neon-strong:active { border-color: var(--aoe-aqua-40); }
  .aoe-tile:hover .aoe-tile-img { transform: none; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .aoe-rv, .aoe-stag > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  button svg { transition: none !important; }
  .aoe-neon, .aoe-neon-strong { transition: none !important; }
  .aoe-neon:hover, .aoe-neon-strong:hover { transform: none !important; box-shadow: none !important; }
  .aoe-tile-img, .aoe-tile:hover .aoe-tile-img { transition: none !important; transform: none !important; }
  .aoe-nav::after { display: none; }
}

/* ---- View toggling (SPA sections) ---- */
[hidden] { display: none !important; }

/* ---- Header responsive: nav + CTA on desktop, burger on mobile ---- */
.aoe-desktop-nav { display: flex; }
.aoe-nav-cta { display: inline-flex; }
.aoe-burger { display: none; }
@media (max-width: 899px) {
  .aoe-desktop-nav { display: none; }
  .aoe-nav-cta { display: none; }
  .aoe-burger { display: inline-flex; }
}

/* Fluid headline sizes (desktop → mobile values from the source) */
.aoe-hero-h1 { font-size: clamp(40px, 6.2vw, 66px); }
.aoe-cta-h2  { font-size: clamp(28px, 4.4vw, 40px); }
.aoe-job-h1  { font-size: clamp(25px, 3.6vw, 34px); }

/* ---- Job cards: consistent rhythm on desktop and mobile ---- */
.aoe-jobcard-title,
.aoe-apply-jobcard-title { overflow-wrap: anywhere; }

.aoe-desktop-break { display: none; }
.aoe-mobile-break { display: none; }

.aoe-apply-jobcard-title {
  min-height: 0 !important;
  margin-bottom: 8px !important;
}

@media (min-width: 900px) {
  .aoe-desktop-break { display: block; }

  .aoe-jobcard {
    min-height: 390px;
  }

  .aoe-jobcard-title {
    min-height: 0 !important;
    margin-bottom: 8px !important;
  }

  .aoe-jobcard-copy {
    min-height: 96px !important;
    margin-bottom: 12px !important;
  }

  .aoe-jobcard-facts {
    flex-wrap: nowrap !important;
    gap: 5px !important;
  }

  .aoe-jobcard-facts > span {
    padding-right: 8px !important;
    padding-left: 8px !important;
    font-size: 11px !important;
    white-space: nowrap;
  }
}

@media (max-width: 899px) {
  .aoe-jobcard-title,
  .aoe-jobcard-copy,
  .aoe-apply-jobcard-title,
  .aoe-apply-jobcard-copy {
    min-height: 0 !important;
  }

  .aoe-jobcard-title,
  .aoe-apply-jobcard-title {
    margin-bottom: 10px !important;
  }

  .aoe-jobcard-copy,
  .aoe-apply-jobcard-copy {
    margin-bottom: 22px !important;
  }
}

@media (max-width: 560px) {
  .aoe-hero-facts {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px 6px !important;
  }

  .aoe-hero-facts > span {
    justify-content: center;
    gap: 5px !important;
    min-width: 0;
    padding: 7px 5px !important;
    font-size: 0 !important;
    white-space: nowrap;
  }

  .aoe-hero-facts > span::after {
    font-size: 10.5px;
  }

  .aoe-hero-facts > span:nth-child(-n+3) { grid-column: span 2; }
  .aoe-hero-facts > span:nth-child(n+4) { grid-column: span 3; }
  .aoe-hero-facts > span:nth-child(1)::after { content: "20 Std./Woche"; }
  .aoe-hero-facts > span:nth-child(2)::after { content: "Start 01.10.26"; }
  .aoe-hero-facts > span:nth-child(3)::after { content: "Meist remote"; }
  .aoe-hero-facts > span:nth-child(4)::after { content: "Office in Ratingen"; }
  .aoe-hero-facts > span:nth-child(5)::after { content: "Faire Vergütung"; }

  .aoe-hero-facts svg {
    width: 13px;
    height: 13px;
  }

  .aoe-mobile-break { display: block; }

  .aoe-jobcard,
  .aoe-apply-jobcard {
    padding: 20px !important;
  }

  .aoe-jobcard-actions {
    grid-template-columns: 1fr !important;
  }

  .aoe-jobcard-actions > button {
    width: 100%;
  }

  .aoe-jobcard-facts,
  .aoe-apply-jobcard-facts {
    align-items: flex-start;
  }

  .aoe-footer-inner {
    flex-direction: column;
    align-items: center !important;
    gap: 16px !important;
    padding: 24px 20px !important;
    text-align: center;
  }

  .aoe-footer-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    gap: 10px !important;
    width: 100%;
  }

  .aoe-footer-nav > a {
    font-size: 11px !important;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  main,
  #view-home,
  #view-job,
  #view-apply {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  header > div:first-child,
  #aoe-mobile-nav,
  #mnav,
  #view-home > section,
  #view-home > div > div,
  #view-job > div,
  main#content > div,
  .aoe-apply-shell,
  .aoe-footer-inner,
  footer > div {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  #view-home *,
  #view-job *,
  #view-apply * {
    min-width: 0;
  }

  #view-apply {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .aoe-apply-shell {
    width: 100%;
    max-width: 100%;
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .aoe-apply-shell label,
  .aoe-apply-shell input,
  .aoe-apply-shell textarea,
  .aoe-apply-shell .aoe-apply-stepper {
    min-width: 0;
    max-width: 100%;
  }

  .aoe-apply-shell input,
  .aoe-apply-shell textarea {
    width: auto;
    align-self: stretch;
  }
}

@media (max-width: 374px) {
  .aoe-footer-nav {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px 0 !important;
  }

  .aoe-footer-nav > a {
    grid-column: span 2;
    justify-self: center;
    font-size: 10.5px !important;
  }

  .aoe-footer-nav > a:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .aoe-footer-nav > a:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

/* ---- Mobile-first Expressbewerbung ---- */
.aoe-express-shell {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 24px 64px;
}
.aoe-express-cancel,
.aoe-express-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #cfd0d8;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.aoe-express-cancel { margin-bottom: 20px; padding: 8px 0; }
.aoe-express-back { margin-top: 22px; padding: 8px 2px; }
.aoe-express-head { max-width: 720px; margin-bottom: 24px; }
.aoe-express-kicker {
  margin: 0 0 8px;
  color: var(--aoe-aqua);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.aoe-express-head h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -.025em;
}
.aoe-express-head > p:not(.aoe-express-kicker) {
  max-width: 670px;
  margin: 0;
  color: #cfd0d8;
  font-size: 16px;
  line-height: 1.55;
}
.aoe-express-job {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 11px;
  border: 1px solid var(--aoe-aqua-40);
  border-radius: 999px;
  background: var(--aoe-aqua-12);
  color: #fff;
  font-size: 12.5px;
  font-weight: 650;
}
.aoe-express-card {
  position: relative;
  min-height: 470px;
  padding: 28px 34px 32px;
  border: 1px solid var(--aoe-hairline);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(16,18,28,.98), rgba(6,9,18,.98));
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  overflow: hidden;
}
.aoe-express-card::after {
  content: "";
  position: absolute;
  inset: auto -120px -180px auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,199,26,.11), transparent 68%);
  pointer-events: none;
}
.aoe-express-progress-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--color-text-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.aoe-express-progress {
  position: relative;
  z-index: 1;
  height: 5px;
  margin-bottom: 30px;
  border-radius: 999px;
  background: var(--aoe-surface-3);
  overflow: hidden;
}
.aoe-express-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--aoe-gradient-button);
  box-shadow: 0 0 14px rgba(42,190,239,.5);
  transition: width .3s var(--ease-out);
}
.aoe-express-question,
.aoe-express-result { position: relative; z-index: 1; animation: aoeSlideIn .24s var(--ease-out) both; }
.aoe-express-question h2,
.aoe-express-result h2 {
  max-width: 760px;
  margin: 0 0 9px;
  font-size: clamp(25px, 3.2vw, 32px);
  letter-spacing: -.015em;
}
.aoe-express-question > p:not(.aoe-express-kicker):not(.aoe-express-privacy),
.aoe-express-result > p:not(.aoe-express-kicker) {
  margin: 0;
  color: #cfd0d8;
  font-size: 14.5px;
  line-height: 1.55;
}
.aoe-express-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 24px;
}
.aoe-express-options > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.aoe-express-option {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px 15px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--aoe-surface-2);
  color: #fff;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s, box-shadow .15s;
}
@media (hover: hover) and (pointer: fine) {
  .aoe-express-option:hover {
    border-color: var(--aoe-aqua-40);
    background: var(--aoe-aqua-12);
  }
}
.aoe-express-option:active { transform: scale(.99); }
.aoe-express-option.is-selected {
  border-color: var(--aoe-aqua);
  background: rgba(42,190,239,.16);
  box-shadow: 0 0 0 1px rgba(42,190,239,.16), 0 0 24px -12px var(--aoe-aqua);
}
.aoe-express-check {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--aoe-surface-3);
  color: var(--color-text-muted);
}
.aoe-express-option.is-selected .aoe-express-check { background: var(--aoe-aqua); color: var(--color-on-accent); }
.aoe-express-requirements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.aoe-express-requirements li { display: flex; align-items: flex-start; gap: 9px; color: #fff; font-size: 14px; line-height: 1.45; }
.aoe-express-requirements li svg { flex: 0 0 auto; margin-top: 2px; color: var(--aoe-green); }
.aoe-express-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 14px;
  margin-top: 24px;
}
.aoe-express-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.aoe-express-field > span { color: var(--color-text-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.aoe-express-field small { font-size: inherit; font-weight: inherit; text-transform: lowercase; }
.aoe-express-field input {
  width: 100%;
  min-height: 49px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--aoe-surface-1);
  color: #fff;
  font: 16px var(--font-text);
}
.aoe-express-field input[aria-invalid="true"] { border-color: var(--aoe-red); }
.aoe-express-field em { color: var(--aoe-red); font-size: 12px; font-style: normal; font-weight: 650; }
.aoe-express-privacy { margin: 18px 0 14px; color: var(--color-text-muted); font-size: 12px; line-height: 1.5; }
.aoe-express-submit {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--aoe-gradient-button);
  color: var(--color-on-accent);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(42,190,239,.26);
}
.aoe-express-submit:disabled { cursor: wait; opacity: .72; }
.aoe-express-submit--continue { margin-top: 18px; }
.aoe-express-submit--continue:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }
.aoe-express-error { display: flex; gap: 9px; margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(255,80,100,.48); border-radius: var(--radius-sm); background: rgba(255,80,100,.1); color: #fff; font-size: 13px; }
.aoe-express-spinner { width: 17px; height: 17px; border: 2px solid rgba(0,0,0,.25); border-top-color: var(--color-on-accent); border-radius: 50%; animation: aoeSpin .7s linear infinite; }
.aoe-express-result { max-width: 680px; margin: 34px auto; text-align: center; }
.aoe-express-result-icon { width: 62px; height: 62px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; border: 1px solid var(--aoe-aqua-40); border-radius: 50%; background: var(--aoe-aqua-12); color: var(--aoe-aqua); }
.aoe-express-result-icon.is-success { border-color: rgba(42,239,170,.45); background: rgba(42,239,170,.12); color: var(--aoe-green); }
.aoe-express-result .aoe-express-submit { max-width: 440px; margin-top: 24px; }

@media (max-width: 700px) {
  .aoe-express-shell { padding: 20px 20px 42px !important; }
  .aoe-express-cancel { margin-bottom: 14px; }
  .aoe-express-head { margin-bottom: 18px; }
  .aoe-express-head h1 { margin-bottom: 8px; font-size: clamp(29px, 8.5vw, 38px); }
  .aoe-express-head > p:not(.aoe-express-kicker) { font-size: 14px; line-height: 1.45; }
  .aoe-express-job { max-width: 100%; margin-top: 10px; white-space: normal; line-height: 1.25; }
  .aoe-express-card { min-height: 0; padding: 20px; border-radius: 18px; }
  .aoe-express-progress { margin-bottom: 24px; }
  .aoe-express-question h2, .aoe-express-result h2 { font-size: clamp(23px, 7vw, 29px); }
  .aoe-express-options,
  .aoe-express-options--two,
  .aoe-express-requirements,
  .aoe-express-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .aoe-express-options { gap: 9px; margin-top: 20px; }
  .aoe-express-options > :last-child:nth-child(odd) { grid-column: auto; }
  .aoe-express-option { min-height: 58px; padding: 13px 13px 13px 15px; font-size: 14.5px; }
  .aoe-express-requirements { gap: 9px; margin-top: 18px; }
  .aoe-express-requirements li { gap: 7px; font-size: 12.5px; line-height: 1.3; }
  .aoe-express-requirements li svg { width: 15px; height: 15px; margin-top: 1px; }
  .aoe-express-contact-grid { gap: 13px; margin-top: 20px; }
  .aoe-express-result { margin: 20px auto; }
}
