/* Bewerbungsseite Styles */

/* Allgemeine Styles */
body {
    background-color: #f8f9fa;
}

.header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.application-section {
    padding: 60px 0;
    min-height: calc(100vh - 300px);
}

.application-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Job-Anzeige Bereich */
.job-posting {
    padding: 50px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.job-posting__header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
    font-size: 1rem;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    color: #374151;
    padding: 8px 16px;
    border-radius: 20px;
}

.job-meta i {
    font-size: 1rem;
    color: #F15B53;
}

.job-posting__content {
    margin-top: 30px;
}

.job-section {
    margin-bottom: 30px;
}

.job-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.job-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
}

.job-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.job-section ul li {
    font-size: 1rem;
    line-height: 1.8;
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
    color: #374151;
}

.job-section ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #F15B53;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Bewerbungsformular */
.application-form-wrapper {
    padding: 50px;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 40px;
}

.form-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.required {
    color: #ef4444;
    font-weight: bold;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-color: #F15B53;
    box-shadow: 0 0 0 3px rgba(241, 91, 83, 0.1);
    outline: none;
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6b7280;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-upload-area {
    border: 3px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #F15B53;
    background: #fff5f5;
}

.file-upload-area.drag-over {
    border-color: #F15B53;
    background: #ffe5e5;
}

.upload-icon {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 8px;
}

.upload-info {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* File List */
.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: #f3f4f6;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    font-size: 1.5rem;
    color: #F15B53;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    word-break: break-word;
}

.file-size {
    font-size: 0.85rem;
    color: #6b7280;
}

.file-remove {
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.file-remove:hover {
    background: #dc2626;
}

/* Checkbox Custom Styling */
.custom-control-input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.custom-control-label {
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
}

.custom-control-label a {
    color: #F15B53;
    text-decoration: underline;
}

.custom-control-label a:hover {
    color: #d14942;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.alert i {
    font-size: 1.2rem;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: #F15B53;
    color: #fff;
    border: 1px solid #F15B53;
}

.btn-primary:hover {
    background: transparent;
    color: #F15B53;
    border-color: #F15B53;
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-posting {
        padding: 30px 20px;
    }

    .job-posting__header h1 {
        font-size: 1.8rem;
    }

    .job-meta {
        flex-direction: column;
        gap: 10px;
    }

    .application-form-wrapper {
        padding: 30px 20px;
    }

    .form-title {
        font-size: 1.6rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .application-section {
        padding: 30px 0;
    }

    .job-posting {
        padding: 25px 15px;
    }

    .job-posting__header h1 {
        font-size: 1.5rem;
    }

    .application-form-wrapper {
        padding: 25px 15px;
    }

    .section-title {
        font-size: 1.2rem;
    }
}

/* Loading State */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Success Checkmark Animation */
@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.alert-success i {
    animation: checkmark 0.5s ease-in-out;
}

