/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #fdf9f2;
  --surface:   #ffffff;
  --border:    rgba(0,0,0,.10);
  --border-focus: #FFC92E;
  --text:      #54595F;
  --text-secondary: #7A7A7A;
  --yellow:    #FFC92E;
  --yellow-hover: #f5bc1a;
  --yellow-active: #e6ae0a;
  --green:     #34c759;
  --red:       #ff3b30;
  --shadow:    0 2px 16px rgba(84,89,95,.10);
  --radius:    18px;
  --radius-sm: 12px;
  --font: 'Barlow', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

html { font-size: 19px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
}

/* ── Layout ── */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Header ── */
.header {
  padding: 20px 24px;
  background: #FFC738;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  height: 48px;
  width: auto;
  display: block;
}

/* ── Intro ── */
.intro {
  padding: 12px 4px 4px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.intro-content {
  min-width: 0;
}

.intro-image-wrap {
  flex-shrink: 0;
}

.intro-image {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  display: block;
}

.intro-title {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.intro-text {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Mobile: Bild oben, Text darunter */
@media (max-width: 560px) {
  .intro-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .intro-image-wrap {
    order: -1;
    display: flex;
    justify-content: center;
  }
  .intro-image {
    width: 140px;
    height: 140px;
  }
}

/* ── Card ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.2px;
  margin-bottom: 22px;
}

/* ── Instructions ── */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-icon {
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.step div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step strong {
  font-size: 18px;
  font-weight: 600;
}

.step span {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Field ── */
.field {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: .1px;
}

.optional {
  font-weight: 400;
  color: #adadb8;
}

.field-input {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-family: var(--font);
  font-size: 18px;
  color: var(--text);
  background: #fafafa;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  -webkit-appearance: none;
}

.field-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255,201,46,.20);
  background: #fff;
}

.field-input::placeholder {
  color: #c0c0c8;
}

/* ── Drop Zone ── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.drop-zone:hover,
.drop-zone:focus-within {
  border-color: var(--yellow);
  background: rgba(255,201,46,.04);
}

.drop-zone.drag-over {
  border-color: var(--yellow);
  background: rgba(255,201,46,.08);
}

.drop-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  color: var(--text-secondary);
}

.drop-icon--green { color: var(--green); }

.drop-icon svg { width: 100%; height: 100%; }

.drop-label {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}

.drop-sub {
  font-size: 17px;
  color: var(--text-secondary);
}

.drop-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
}

.drop-hint {
  margin-top: 10px;
  font-size: 15px;
  color: #adadb8;
}

.drop-filename {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 4px;
  word-break: break-all;
}

.drop-filesize {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.drop-change {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 8px 20px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.drop-change:hover {
  border-color: var(--yellow);
  color: var(--text);
  background: rgba(255,201,46,.08);
}

/* ── Progress ── */
.progress-wrap {
  margin-top: 16px;
}

.progress-bar-track {
  height: 6px;
  background: #e5e5ea;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--yellow);
  border-radius: 99px;
  transition: width .15s ease;
}

.progress-label {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
}

/* ── Result ── */
.result {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.5;
}

.result svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 1px;
}

.result div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result strong {
  font-weight: 600;
  font-size: 18px;
}

.result span {
  color: var(--text-secondary);
}

.result--success {
  background: rgba(52,199,89,.1);
  color: #1a7a32;
}

.result--success svg { color: var(--green); }

.result--error {
  background: rgba(255,59,48,.08);
  color: #b71c1c;
}

.result--error svg { color: var(--red); }
.result--error span { color: #c62828; }

/* ── Upload Button ── */
.btn-upload {
  display: block;
  width: 100%;
  margin-top: 20px;
  height: 58px;
  background: var(--yellow);
  color: var(--text);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s, opacity .15s;
  letter-spacing: .1px;
}

.btn-upload:hover:not(:disabled) { background: var(--yellow-hover); }
.btn-upload:active:not(:disabled) { background: var(--yellow-active); transform: scale(.99); }
.btn-upload:disabled { opacity: .4; cursor: not-allowed; }

/* ── Success Screen ── */
.success-screen {
  text-align: center;
  padding: 48px 28px;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  color: var(--green);
}

.success-icon svg { width: 100%; height: 100%; }

.success-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.success-text {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 28px;
}

.btn-another {
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.btn-another:hover {
  border-color: var(--yellow);
  color: var(--text);
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 32px 16px 24px;
  font-size: 14px;
  color: #adadb8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer .logo {
  height: 40px;
  opacity: .7;
}

/* ── Utility ── */
.hidden { display: none !important; }

/* ── Mobile tweaks ── */
@media (max-width: 480px) {
  .card { padding: 22px 18px; }
  .drop-zone { padding: 28px 16px; }
  .btn-upload { height: 60px; font-size: 20px; }
  .field-label { font-size: 16px; }
}
