/* ===== Applicant Page — exakte Werte aus inspirations/application.html ===== */

/* ── Page Wrapper ── */
.ap-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    text-align: left;
    color: #334155;                             /* text-slate-600 */
    padding: 2rem 1rem 4rem;                    /* gleicher Abstand wie about/careers/contact */
    max-width: 1280px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Gradient Text ── */
.ap-gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero Section (zentriert, ohne Box — wie about/careers) ── */
.ap-hero {
    text-align: center;
    max-width: 56rem;                           /* max-w-4xl = 896px */
    margin: 0 auto 4rem;                        /* mb-16 = 64px */
}

.ap-hero-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);   /* text-4xl → md:text-6xl */
    font-weight: 700;                           /* font-bold */
    letter-spacing: -0.025em;                   /* tracking-tight */
    color: #0f172a;                             /* text-slate-900 */
    margin: 0 0 1.5rem 0;                       /* mb-6 = 24px */
    line-height: 1.15;
}

.ap-hero-desc {
    font-size: 1.125rem;                        /* text-lg */
    line-height: 1.625;                         /* leading-relaxed */
    color: #475569;                             /* text-slate-600 */
    max-width: 42rem;                           /* max-w-2xl = 672px */
    margin: 0 auto;
    font-weight: 300;                           /* font-light */
}

@media (min-width: 768px) {
    .ap-hero-desc {
        font-size: 1.25rem;                     /* md:text-xl */
    }
}

/* ── Flash Messages ── */
.ap-flash-container {
    max-width: 64rem;                           /* max-w-5xl */
    margin: 0 auto 1.5rem auto;
}

.ap-flash {
    padding: 0.875rem 1.125rem;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.ap-flash.success {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.ap-flash.error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

/* ── Fehler-Box (Technik-Teufel / Gute Nachricht, wie Contact/Kalender) ── */
.ap-error-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

.ap-error-card--hidden {
    display: none;
}

.ap-error-card__icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 1px solid #fecaca;
}

.ap-error-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
}

.ap-error-card__text {
    font-size: 1rem;
    line-height: 1.625;
    color: #475569;
    margin: 0 0 0.5rem;
}

.ap-error-card__note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0 0 1.5rem;
}

.ap-error-card__link {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}

.ap-error-card__link:hover {
    text-decoration: underline;
}

.ap-error-card__btn {
    display: inline-block;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background 0.2s;
}

.ap-error-card__btn:hover {
    background: #1e293b;
}

/* ── Content Area ── */
.ap-content {
    max-width: 64rem;                           /* max-w-5xl = 1024px */
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;                                /* space-y-10 = 40px */
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ── Checkliste Card ── */
.ap-checklist {
    background: rgba(238, 242, 255, 0.5);       /* bg-indigo-50/50 */
    border: 1px solid #e0e7ff;                  /* border-indigo-100 */
    border-radius: 1.5rem;                      /* rounded-3xl = 24px */
    padding: 2rem;                              /* p-8 = 32px */
}

@media (min-width: 768px) {
    .ap-checklist {
        padding: 2.5rem;                        /* md:p-10 = 40px */
    }
}

.ap-checklist-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;                               /* gap-3 = 12px */
    margin-bottom: 2rem;                        /* mb-8 = 32px */
}

.ap-checklist-icon {
    width: 2.5rem;                              /* w-10 = 40px */
    height: 2.5rem;                             /* h-10 = 40px */
    background: #fff;                           /* bg-white */
    border-radius: 9999px;                      /* rounded-full */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;                             /* text-indigo-600 */
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); /* shadow-sm */
    border: 1px solid #eef2ff;                  /* border-indigo-50 */
    flex-shrink: 0;
}

.ap-checklist-header h2 {
    font-size: 1.25rem;                         /* text-xl */
    line-height: 1.75rem;
    font-weight: 700;                           /* font-bold */
    color: #0f172a;                             /* text-slate-900 */
    margin: 0;
}

.ap-checklist-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;                                /* space-y-6 = 24px */
}

.ap-checklist-item {
    display: flex;
    align-items: flex-start;                    /* items-start */
    gap: 1rem;                                  /* gap-4 = 16px */
}

.ap-checklist-dot {
    width: 6px;                                 /* w-1.5 = 6px */
    height: 6px;                                /* h-1.5 = 6px */
    border-radius: 9999px;                      /* rounded-full */
    background: #818cf8;                        /* bg-indigo-400 */
    margin-top: 0.625rem;                       /* mt-2.5 = 10px */
    flex-shrink: 0;
}

.ap-checklist-item-title {
    font-size: 0.95rem;
    font-weight: 600;                           /* font-semibold */
    color: #0f172a;                             /* text-slate-900 */
    margin: 0 0 0.125rem 0;
    line-height: 1.5;
}

.ap-checklist-item-desc {
    font-size: 0.875rem;                        /* text-sm */
    color: #475569;                             /* text-slate-600 */
    margin: 0;
    line-height: 1.6;
}

.ap-checklist-note {
    margin: 1.5rem 0 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e7ff;
    font-size: 0.875rem;                        /* text-sm */
    color: #475569;                             /* text-slate-600 */
    line-height: 1.625;
}

/* ── Form Card ── */
.ap-form-card {
    background: #fff;                           /* bg-white */
    border: 1px solid #f1f5f9;                  /* border-slate-100 */
    border-radius: 1.5rem;                      /* rounded-3xl = 24px */
    padding: 2rem;                              /* p-8 = 32px */
    box-shadow:                                 /* shadow-xl shadow-slate-200/50 */
        0 20px 25px -5px rgba(226, 232, 240, 0.5),
        0 8px 10px -6px rgba(226, 232, 240, 0.5);
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .ap-form-card {
        padding: 3rem;                          /* md:p-12 = 48px */
    }
}

.ap-form-header {
    text-align: center;                         /* text-center */
    margin-bottom: 2.5rem;                      /* mb-10 = 40px */
}

.ap-form-header h2 {
    font-size: 1.5rem;                          /* text-2xl */
    line-height: 2rem;
    font-weight: 700;                           /* font-bold */
    color: #0f172a;                             /* text-slate-900 */
    margin: 0;
}

.ap-form-header p {
    color: #64748b;                             /* text-slate-500 */
    margin: 0.5rem 0 0 0;                       /* mt-2 = 8px */
    font-size: 1rem;
}

/* ── Form Grid ── */
.ap-form {
    display: grid;
    grid-template-columns: 1fr;                 /* grid-cols-1 (mobile) */
    gap: 2rem;                                  /* gap-y-8 gap-x-8 = 32px */
    min-width: 0;                               /* verhindert Overflow durch lange Inhalte (z. B. Dateipfade) */
}

@media (min-width: 768px) {
    .ap-form {
        grid-template-columns: 1fr 1fr;         /* md:grid-cols-2 */
    }
}

.ap-field--half {
    grid-column: span 1;
    min-width: 0;
}

.ap-field--full {
    grid-column: 1 / -1;                        /* col-span-2 */
    min-width: 0;                               /* Grid-Zelle kann schrumpfen */
}

/* ── Form Fields ── */
.ap-field label {
    display: block;                             /* block */
    font-size: 0.875rem;                        /* text-sm */
    font-weight: 600;                           /* font-semibold */
    color: #334155;                             /* text-slate-700 */
    margin-bottom: 0.5rem;                      /* mb-2 = 8px */
}

.ap-field input[type="text"],
.ap-field input[type="email"],
.ap-field textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.875rem 1rem;                     /* py-3.5 px-4 = 14px 16px */
    border: 1px solid #e2e8f0;                  /* border-slate-200 */
    border-radius: 0.75rem;                     /* rounded-xl = 12px */
    background: #f8fafc;                        /* bg-slate-50 */
    font-size: 1rem;
    color: #0f172a;                             /* text-slate-900 */
    outline: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.ap-field input[type="text"]::placeholder,
.ap-field input[type="email"]::placeholder,
.ap-field textarea::placeholder {
    color: #94a3b8;                             /* placeholder:text-slate-400 */
}

.ap-field input[type="text"]:focus,
.ap-field input[type="email"]:focus,
.ap-field textarea:focus {
    border-color: #6366f1;                      /* focus:border-indigo-500 */
    background: #fff;                           /* focus:bg-white */
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); /* focus:ring-4 focus:ring-indigo-500/10 */
}

.ap-field textarea {
    resize: none;                               /* resize-none */
}

/* ── File Uploads ── */
.ap-uploads {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;                                  /* gap-8 = 32px */
    padding-top: 0.5rem;                        /* pt-2 */
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 768px) {
    .ap-uploads {
        grid-template-columns: 1fr 1fr;         /* md:grid-cols-2 */
    }
}

.ap-upload-field label {
    display: block;
    font-size: 0.875rem;                        /* text-sm */
    font-weight: 600;                           /* font-semibold */
    color: #334155;                             /* text-slate-700 */
    margin-bottom: 0.5rem;                      /* mb-2 */
}

.ap-upload-field input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 0.875rem;                        /* text-sm */
    color: #64748b;                             /* text-slate-500 */
    border: 1px solid #e2e8f0;                  /* border-slate-200 */
    border-radius: 0.75rem;                     /* rounded-xl */
    background: #f8fafc;                        /* bg-slate-50 */
    padding: 0.25rem;                           /* p-1 */
    transition: all 0.15s ease;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.ap-upload-field input[type="file"]::file-selector-button {
    background: #eef2ff;                        /* bg-indigo-50 */
    border: none;
    padding: 0.625rem 1rem;                     /* py-2.5 px-4 */
    border-radius: 0.75rem;                     /* rounded-xl */
    font-size: 0.875rem;                        /* text-sm */
    font-weight: 600;                           /* font-semibold */
    color: #4338ca;                             /* text-indigo-700 */
    cursor: pointer;
    margin-right: 1rem;                         /* mr-4 */
    transition: background 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.ap-upload-field input[type="file"]::file-selector-button:hover {
    background: #e0e7ff;                        /* hover:bg-indigo-100 */
}

/* Zweite Upload-Variante (Weitere Anlagen) — neutraler Style */
.ap-upload-field:last-child input[type="file"]::file-selector-button {
    background: #f1f5f9;                        /* bg-slate-100 */
    color: #334155;                             /* text-slate-700 */
}

.ap-upload-field:last-child input[type="file"]::file-selector-button:hover {
    background: #e2e8f0;                        /* hover:bg-slate-200 */
}

.ap-file-hint {
    font-size: 11px;                            /* text-[11px] */
    color: #94a3b8;                             /* text-slate-400 */
    margin: 0.375rem 0 0 0.25rem;               /* mt-1.5 ml-1 */
}

/* ── Upload Fortschritt & Liste (wie Potentialcheck) ── */
.ap-upload-progress {
    margin-top: 0.5rem;
}

.ap-upload-progress.hidden {
    display: none;
}

.ap-upload-progress__track {
    height: 0.625rem;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.ap-upload-progress__fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.2s ease-out;
    background: #6366f1;
}

.ap-upload-progress__fill--done {
    background: #22c55e;
}

.ap-upload-list {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
    max-width: 100%;
}

.ap-upload-list.hidden {
    display: none;
}

.ap-upload-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    min-width: 0;
    max-width: 100%;
}

.ap-upload-list__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-upload-list__size {
    font-size: 0.875rem;
    color: #94a3b8;
    flex-shrink: 0;
}

/* Toast (Upload zu groß) */
.ap-upload-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    background: #f59e0b;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transition: opacity 0.3s;
}

.ap-upload-toast--hidden {
    opacity: 0;
    pointer-events: none;
}

/* ── Footer: Consent + Submit (zentriert) ── */
.ap-footer {
    padding-top: 1.5rem;                        /* pt-6 = 24px */
    border-top: 1px solid #f1f5f9;              /* border-t border-slate-100 */
    display: flex;
    flex-direction: column;
    align-items: center;                        /* items-center */
    gap: 1.5rem;                                /* gap-6 = 24px */
}

.ap-consent {
    display: flex;
    align-items: flex-start;                    /* items-start */
    gap: 0.75rem;                               /* gap-3 = 12px */
    max-width: 32rem;                           /* max-w-lg = 512px */
    margin: 0 auto;
}

.ap-consent input[type="checkbox"] {
    width: 1.25rem;                             /* w-5 = 20px */
    height: 1.25rem;                            /* h-5 = 20px */
    margin-top: 0.25rem;                        /* mt-1 */
    border-radius: 0.25rem;                     /* rounded */
    border: 1px solid #cbd5e1;                  /* border-slate-300 */
    accent-color: #4f46e5;                      /* text-indigo-600 */
    cursor: pointer;
    flex-shrink: 0;
}

.ap-consent label {
    font-size: 0.75rem;                         /* text-xs */
    color: #64748b;                             /* text-slate-500 */
    line-height: 1.625;                         /* leading-relaxed */
    cursor: pointer;
    user-select: none;
}

.ap-consent label a {
    color: #4f46e5;                             /* text-indigo-600 */
    text-decoration: none;
}

.ap-consent label a:hover {
    text-decoration: underline;
}

/* ── Submit Button (Pill-Form wie in application.html) ── */
.ap-submit {
    background: #0f172a;                        /* bg-slate-900 */
    color: #fff;                                /* text-white */
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;                        /* text-sm */
    font-weight: 700;                           /* font-bold */
    padding: 1rem 3rem;                         /* py-4 px-12 */
    border: none;
    border-radius: 9999px;                      /* rounded-full (pill) */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:                                 /* shadow-lg shadow-indigo-500/20 */
        0 10px 15px -3px rgba(99, 102, 241, 0.2),
        0 4px 6px -4px rgba(99, 102, 241, 0.2);
    letter-spacing: 0.025em;                    /* tracking-wide */
    transform: translateY(0);
}

.ap-submit:hover {
    background: #4f46e5;                        /* hover:bg-indigo-600 */
    transform: translateY(-4px);                /* hover:-translate-y-1 = -4px */
    box-shadow:                                 /* hover:shadow-xl */
        0 20px 25px -5px rgba(99, 102, 241, 0.25),
        0 8px 10px -6px rgba(99, 102, 241, 0.2);
}

.ap-submit:active {
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .ap-field--half {
        grid-column: 1 / -1;                    /* stapeln auf Mobile */
    }
}

@media (max-width: 576px) {
    .ap-form-card {
        padding: 1.5rem;
    }

    .ap-checklist {
        padding: 1.5rem;
    }

    .ap-submit {
        width: 100%;
    }
}

.ap-draft-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-top: 0.5rem;
  margin-bottom: 0;
}
