/* Bewerbungsseite, Entwurf A */
.back-link { font-size: 14px; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.back-link:hover { color: var(--text); background: var(--glass-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.apply { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; padding: 150px 0 110px; align-items: start; }
.apply-intro { position: sticky; top: 130px; }
.apply-intro h1 { font-size: clamp(38px, 4.8vw, 60px); letter-spacing: -0.045em; line-height: 1.02; text-wrap: balance; }
.apply-intro .lead { margin-top: 20px; font-size: 17px; }
.apply-meta { margin-top: 32px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.apply-meta li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.apply-meta b { font-weight: 600; }
.apply-meta span { color: var(--muted); }
.saved-note { margin-top: 18px; font-size: 13px; color: var(--dim); }

.apply-card { position: relative; padding: 36px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(14,20,72,.85), rgba(8,12,44,.85)); box-shadow: 0 40px 120px -40px rgba(0,0,0,.8); }
.apply-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.apply-progress .bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(143,162,255,.14); overflow: hidden; --p: .5; }
.apply-progress .bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p)); background: linear-gradient(90deg, var(--ice), var(--blue-2)); transition: transform .6s var(--ease); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 22px; padding: 0; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.field label em { font-style: normal; font-weight: 400; color: var(--dim); font-size: 13px; margin-left: 6px; }
.hint { margin-top: 4px; font-size: 14px; color: var(--muted); }
.field textarea, .field input {
  width: 100%; margin-top: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(6,10,38,.6); color: var(--text); font: inherit; font-size: 16px; line-height: 1.5; resize: vertical;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 112px; }
.field textarea:focus, .field input:focus { outline: none; border-color: rgba(127,208,255,.6); box-shadow: 0 0 0 4px rgba(127,208,255,.12); background: rgba(6,10,38,.85); }
.field input::placeholder { color: var(--dim); }
.field-foot { display: flex; justify-content: space-between; gap: 12px; min-height: 18px; margin-top: 6px; font-size: 12.5px; }
.err { color: #ff9d9d; visibility: hidden; }
.count { color: var(--dim); font-family: "Geist Mono", ui-monospace, monospace; margin-left: auto; }
.count.is-over { color: #ffd27a; }
.field.is-invalid textarea, .field.is-invalid input { border-color: rgba(255,120,120,.6); }
.field.is-invalid .err { visibility: visible; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { margin: 6px 0 0; font-size: 13px; color: var(--dim); }
.privacy a { color: var(--muted); }
.form-error { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255,120,120,.08); border: 1px solid rgba(255,120,120,.3); color: #ffd0d0; font-size: 14.5px; }
.form-error a { color: #fff; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.btn.is-loading { position: relative; color: transparent; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spinbtn .8s linear infinite; }
@keyframes spinbtn { to { transform: rotate(360deg); } }

.success { text-align: center; padding: 30px 6px 10px; outline: none; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(62,224,143,.12); border: 1px solid rgba(62,224,143,.4); box-shadow: 0 0 50px -10px rgba(62,224,143,.6); }
.success-icon svg { width: 32px; height: 32px; fill: none; stroke: #6af0a8; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h2 { font-size: 32px; letter-spacing: -0.035em; }
.success p { margin: 14px auto 26px; color: var(--muted); max-width: 44ch; }

.apply-page .footer-inner { grid-template-columns: 1fr auto; }
.apply-page .copy { grid-column: auto; }

@media (max-width: 960px) {
  .apply { grid-template-columns: 1fr; gap: 32px; padding-top: 120px; }
  .apply-intro { position: static; }
  .apply-meta, .saved-note { display: none; }
}
@media (max-width: 560px) {
  .apply-card { padding: 22px 18px; border-radius: 22px; margin-inline: -4px; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .form-actions > span:empty { display: none; }
  legend { font-size: 22px; }
}
.field textarea, .field input { scroll-margin-top: 150px; }
.success:not([hidden]) .success-icon svg { animation: draw .7s var(--ease) .2s forwards; }
.apply-page .nav-inner { flex-wrap: nowrap; }
