/* =========================================================================
   Unbox × ZAC — Projekt-Onboarding
   Brand-Tokens & Komponenten nach BRAND_MANUAL_unboxeleven.md
   ========================================================================= */

:root {
  /* Brand */
  --c-accent:        #F7FA09;
  --c-accent-ink:    #0A0A0A;
  --c-zac-red:       #E40613; /* ZAC-Marke: nur als dezenter Ambient-Ton, kein funktionaler Akzent */

  /* Surfaces */
  --c-bg:            #0A0A0A;
  --c-surface-1:     #0F0F0F;
  --c-surface-2:     #171717;
  --c-surface-3:     #262626;

  /* Text */
  --c-text:          #F5F7FC;
  --c-text-soft:     #FAFAFA;
  --c-text-muted:    #A3A3A3;
  --c-text-dim:      rgba(245, 247, 252, 0.60);
  --c-text-disabled: #737373;
  --c-white:         #FFFFFF;

  /* Lines & effects */
  --c-border:        rgba(255, 255, 255, 0.08);
  --c-border-strong: rgba(255, 255, 255, 0.10);
  --c-chip-bg:       rgba(255, 255, 255, 0.10);
  --glow-accent:     0 0 80px rgba(247, 250, 9, 0.35);

  /* Layout */
  --container:   1200px;
  --form-width:  760px;
  --pad-x:       clamp(1.5rem, 8vw, 7.5rem);
  --section-y:   clamp(4rem, 8vw, 8rem);
  --radius-card: 24px;
  --radius-lg:   28px;
  --radius-field:12px;
  --radius-chip: 6px;
  --radius-pill: 40px;
  --gap:         24px;

  /* Type */
  --font-display: "Outfit", sans-serif;
  --font-body:    "Hanken Grotesk", "Inter", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--c-text-dim);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

/* ---------- Atmosphere: glow + grain ---------- */
body::before {
  /* warm yellow glow, top-centered behind the hero */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 45% at 50% -5%, rgba(247, 250, 9, 0.10), transparent 60%),
    radial-gradient(40% 30% at 85% 8%,  rgba(247, 250, 9, 0.05), transparent 70%),
    radial-gradient(48% 42% at 6% 96%,  rgba(228, 6, 19, 0.11),  transparent 72%); /* ZAC-Rot, dezent */
  pointer-events: none;
}
body::after {
  /* fine grain overlay for depth */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.section   { padding-block: var(--section-y); }

/* ---------- Eyebrow / chip ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-white);
  background: var(--c-chip-bg);
  padding: 10px 24px;
  border-radius: var(--radius-chip);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  margin-right: 9px;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(247, 250, 9, 0.8);
}

/* ---------- Headlines ---------- */
.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 1.1rem + 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-white);
}
.headline .accent { color: var(--c-accent); }
.lead {
  font-weight: 300;
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--c-text-muted);
  max-width: 46ch;
}

/* =========================================================================
   Header + Lockup
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 20px;
  background: transparent;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--c-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 24px);
}
.lockup__logo { height: 30px; width: auto; }

/* Unbox-Marke (inline): gelbes 11-Badge + Wortmarke, nach Manual §5 */
.ubx { display: inline-flex; align-items: center; gap: 10px; --ubx-size: 32px; }
.ubx__mark {
  flex: none;
  width: var(--ubx-size);
  height: var(--ubx-size);
  display: grid;
  place-items: center;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(var(--ubx-size) * 0.5);
  letter-spacing: -0.04em;
  line-height: 1;
  box-shadow: 0 0 24px rgba(247, 250, 9, 0.28);
}
.ubx__word {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: calc(var(--ubx-size) * 0.36);
  line-height: 1.02;
  letter-spacing: 0.04em;
  color: var(--c-white);
}
.lockup--sm .ubx { --ubx-size: 26px; }

.lockup__x {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  color: var(--c-accent);
  text-shadow: 0 0 16px rgba(247, 250, 9, 0.45);
}
/* ZAC-Logo (weiße Negativ-Version) — etwas höher als die Unbox-Marke für visuelle Balance */
.lockup__logo--zac { height: 34px; }
.header__hint {
  font-size: 13px;
  letter-spacing: -0.02em;
  color: var(--c-text-muted);
}
@media (max-width: 560px) { .header__hint { display: none; } }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; text-align: center; padding-top: clamp(3.5rem, 6vw, 6rem); padding-bottom: clamp(2.5rem, 4vw, 4rem); }
.hero__inner { max-width: 720px; margin-inline: auto; }
.hero .eyebrow { margin-bottom: 28px; }
.hero .headline { margin-bottom: 22px; }
.hero .lead { margin-bottom: 0; margin-inline: auto; }
.hero__glow {
  position: absolute;
  top: -14%;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, 80vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(247, 250, 9, 0.16), transparent 62%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

/* ---------- Primary CTA ---------- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 57px;
  padding: 0 30px;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.02em;
  border: 0;
  border-radius: var(--radius-pill);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-cta svg { width: 20px; height: 20px; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(247, 250, 9, 0.45); filter: brightness(1.04); }
.btn-cta:active { transform: translateY(0); }
.btn-cta[disabled], .btn-cta.is-busy { opacity: .6; pointer-events: none; }

/* =========================================================================
   Onboarding-Formular
   ========================================================================= */
.form-section { padding-bottom: clamp(4rem, 8vw, 7rem); }
.form-shell { max-width: var(--form-width); margin-inline: auto; }
.form-shell__head { margin-bottom: 36px; text-align: center; }
.form-shell__head .eyebrow { margin-bottom: 20px; }
.form-shell__head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin-bottom: 14px;
}
.form-shell__head p { color: var(--c-text-dim); max-width: 52ch; margin-inline: auto; }

.card {
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 44px);
}

/* fieldset = a placeholder section */
.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset + .fieldset { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--c-border); }
.fieldset__label {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--c-accent);
  margin-bottom: 22px;
}
.fieldset__label .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--c-accent-ink);
  background: var(--c-accent);
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  border-radius: 6px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 9px; }
.field.col-2 { grid-column: span 2; }
@media (max-width: 600px) { .field.col-2 { grid-column: auto; } }
.field > label {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--c-text-soft);
}
.field .req { color: var(--c-accent); margin-left: 2px; }

.input, .textarea, .select {
  width: 100%;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-field);
  color: var(--c-text);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: -0.02em;
  padding: 14px 16px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.textarea { resize: vertical; min-height: 132px; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--c-text-disabled); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--c-border-strong); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--c-accent);
  background: var(--c-surface-1);
  box-shadow: 0 0 0 1px rgba(247, 250, 9, 0.5), 0 0 28px rgba(247, 250, 9, 0.14);
}
/* custom select chevron */
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23A3A3A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
.select:invalid { color: var(--c-text-disabled); }
.select option { color: var(--c-text); background: var(--c-surface-2); }

/* ---------- Dropzone ---------- */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 38px 24px;
  border: 1.5px dashed var(--c-border-strong);
  border-radius: var(--radius-field);
  background: var(--c-surface-2);
  color: var(--c-text-muted);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone input[type="file"]:focus-visible { outline: none; }
.dropzone:hover { border-color: rgba(247, 250, 9, 0.55); }
/* sichtbarer Fokus liegt auf dem Label, nicht auf dem unsichtbaren Input (WCAG 2.4.7) */
.dropzone:focus-within {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 2px rgba(247, 250, 9, 0.5), 0 0 28px rgba(247, 250, 9, 0.14);
}
.dropzone.is-dragover {
  border-color: var(--c-accent);
  border-style: dashed;
  background: rgba(247, 250, 9, 0.04);
  box-shadow: 0 0 40px rgba(247, 250, 9, 0.16) inset;
}
.dropzone__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-chip-bg);
  color: var(--c-accent);
}
.dropzone__icon svg { width: 22px; height: 22px; }
.dropzone__title { color: var(--c-text-soft); font-weight: 500; font-size: 15px; }
.dropzone__title b { color: var(--c-accent); font-weight: 600; }
.dropzone__hint { font-size: 13px; color: var(--c-text-muted); }

.filelist { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.filelist:empty { margin: 0; }
.filelist li {
  display: flex; align-items: center; gap: 12px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 10px 12px;
}
.filelist .file-ic { color: var(--c-accent); flex: none; width: 18px; height: 18px; }
.filelist .file-name { color: var(--c-text); font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist .file-size { color: var(--c-text-disabled); font-size: 13px; flex: none; }
.filelist .file-rm {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 7px; border: 0; background: transparent; color: var(--c-text-muted);
  transition: background .15s ease, color .15s ease;
}
.filelist .file-rm:hover { background: var(--c-surface-3); color: var(--c-white); }

.size-warning {
  margin-top: 12px;
  font-size: 13px;
  color: var(--c-accent);
  display: none;
}
.size-warning.is-visible { display: block; }

/* ---------- Submit row ---------- */
.form-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.form-note { font-size: 13px; color: var(--c-text-muted); }

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* =========================================================================
   Danke-Zustand
   ========================================================================= */
.success {
  text-align: center;
  max-width: var(--form-width);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px);
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
}
.success__check {
  width: 84px; height: 84px;
  margin: 0 auto 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  box-shadow: var(--glow-accent);
}
.success__check svg { width: 40px; height: 40px; }
.success h1, .success h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin-bottom: 14px;
}
.success p { color: var(--c-text-dim); max-width: 44ch; margin: 0 auto 8px; }
.success__again {
  display: inline-block;
  margin-top: 24px;
  background: none; border: 0;
  color: var(--c-text-muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.success__again:hover { color: var(--c-accent); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding-block: 48px;
}
.site-footer .container {
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
}
.site-footer .lockup__logo { height: 24px; }
.site-footer .lockup__logo--zac { height: 28px; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer__links a { font-size: 14px; color: var(--c-text-muted); transition: color .15s ease; }
.footer__links a:hover { color: var(--c-accent); }
.footer__copy { font-size: 13px; color: var(--c-text-muted); }

/* =========================================================================
   Reveal animations (orchestrated page load)
   ========================================================================= */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; animation: fade-up .8s cubic-bezier(.2, .7, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; }
  .btn-cta, .input, .dropzone, .filelist .file-rm { transition: none; }
}
