/* Lebenslauf-Upload: Farben und Formen wie das Partnerportal (OneCareer-Look). */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/figtree.woff2') format('woff2');
}

:root {
  --background: #ffffff;
  --foreground: #16211d;
  --muted: #f1f5f4;
  --muted-foreground: #5a6863;
  --neutral: #e6ecea;
  --neutral-foreground: #2f3d38;
  --primary: #0e6b55;
  --primary-hover: #0c5c49;
  --secondary: #d4f3c4;
  --secondary-foreground: #173d1b;
  --danger: #fddad8;
  --danger-foreground: #7a1f1f;
  --destructive: #b3261e;
  --border: #e3eae7;
  --input: #788c85;
  --ring: rgba(14, 107, 85, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  opacity: 0;
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--lg {
  width: 28px;
  height: 28px;
}

/* Rahmen */

.page {
  min-height: 100vh;
  padding: clamp(16px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.4vw, 30px);
}

.topbar {
  width: 100%;
  display: flex;
  align-items: center;
  border-radius: 26px;
  background: var(--muted);
  padding: clamp(12px, 1.4vw, 18px) clamp(18px, 2.2vw, 28px);
}

.logo {
  height: clamp(22px, 2.5vw, 32px);
  width: auto;
}

.content {
  width: 100%;
  max-width: 900px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  font-size: 15px;
  color: var(--muted-foreground);
}

/* Karten */

h1 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-size: clamp(22px, 2.4vw, 30px);
}

h1:focus {
  outline: none;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 34px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: clamp(24px, 3.4vw, 44px);
}

.hero p {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.hero--center {
  align-items: flex-start;
  gap: 16px;
}

.hero--center h1,
.panel--large h1 {
  font-size: clamp(24px, 2.6vw, 32px);
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-radius: 30px;
  background: var(--muted);
  padding: clamp(20px, 2.6vw, 30px) clamp(18px, 2.6vw, 32px);
}

.panel--large {
  gap: 14px;
  border-radius: 34px;
  padding: clamp(24px, 3.4vw, 44px);
}

.panel--large p {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--neutral-foreground);
}

.panel__intro {
  margin: 0;
  font-size: 18px;
}

.required {
  color: var(--destructive);
}

.badge {
  display: flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.badge--success {
  background: var(--background);
  color: var(--primary);
}

.badge--danger {
  background: var(--danger);
  color: var(--danger-foreground);
}

/* Dateiauswahl */

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-radius: 24px;
  border: 2px dashed var(--input);
  background: var(--background);
  padding: clamp(28px, 4vw, 48px) 20px;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: var(--primary);
  background: #eaf8e2;
}

#datei-input:focus-visible + .dropzone {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.dropzone__icon {
  display: flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
}

.dropzone__text {
  font-size: 19px;
  font-weight: 500;
}

.dropzone__link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dropzone__hint {
  font-size: 15px;
  color: var(--muted-foreground);
}

.file {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 22px;
  background: var(--background);
  border: 1px solid var(--border);
  padding: 14px 14px 14px 18px;
}

.file__row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.file__icon {
  display: flex;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--neutral);
  color: var(--neutral-foreground);
}

.file__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-grow: 1;
}

.file__name {
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file__size {
  font-size: 15px;
  color: var(--muted-foreground);
}

.progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress__track {
  height: 8px;
  border-radius: 999px;
  background: var(--neutral);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.2s;
}

.progress__label {
  font-size: 15px;
  color: var(--muted-foreground);
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 18px;
  background: var(--danger);
  color: var(--danger-foreground);
  padding: 14px 18px;
}

.alert .icon {
  margin-top: 1px;
}

/* Buttons */

.actions {
  display: flex;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.button:hover {
  background: var(--primary-hover);
}

.button:disabled {
  opacity: 0.5;
  cursor: default;
}

.icon-button {
  display: flex;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--neutral-foreground);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--neutral);
}

.link-button {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .actions .button {
    width: 100%;
  }
}
