/* application-page-design.css */

:root {
    --primary-color: #ea0000; 
    --secondary-color: #ea0000; 
    --text-color-dark: #333;
    --text-color-light: #666;
    --background-light: #f8f9fa;
    --background-medium: #e9ecef;
    --border-color: #dee2e6;
    --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-dark);
    line-height: 1.6;
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-description {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-color-light);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Career Introduction Section (above info blocks) */
.career-introduction {
    padding: 60px 0;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}


/* Info Blocks Grid (new section) */
.info-blocks-grid {
    background-color: var(--background-medium);
    padding: 50px 0;
}

.info-blocks-grid .container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.info-block-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-block-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.info-block-item .info-icon {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.info-block-item h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-block-item p {
    font-size: 0.95em;
    color: var(--text-color-light);
}


/* Career Specific Intros (cards) */
.career-specific-intros {
    padding: 80px 0;
    background-color: #fff;
}

.career-specific-intros .container {
    display: flex;
    flex-direction: column; /* Standardmäßig gestapelt */
    gap: 50px;
}

.career-intro-card {
    display: flex;
    flex-direction: column; /* Standardmäßig gestapelt */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    overflow: hidden; /* Für abgerundete Ecken der Bilder */
    transition: transform 0.3s ease;
}

.career-intro-card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 250px; /* Feste Höhe für Bilder */
    object-fit: cover; /* Bilder füllen den Bereich und werden zugeschnitten */
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-content p {
    color: var(--text-color-light);
    line-height: 1.8;
}

/* Application Form Wrapper */
.application-form-wrapper {
    padding: 80px 0;
    background-color: var(--background-light);
}

.application-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    max-width: 800px;
    margin: 0 auto;
}

.form-section-title {
    font-size: 1.4em;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: bold;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px; /* Abstand zwischen Reihen */
}

.form-group.half-width {
    flex: 1; /* Nimmt den halben verfügbaren Platz ein */
    min-width: calc(50% - 10px); /* Berücksichtigt den Gap */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="file"] {
    padding: 10px 0;
}

/* File Preview List */
.file-preview-list {
    margin-top: 15px;
    padding: 15px;
    border: 1px dashed var(--border-color);
    border-radius: 5px;
    background-color: var(--background-medium);
    min-height: 50px; /* Für den Fall, dass keine Datei ausgewählt ist */
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: var(--text-color-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-item span {
    flex-grow: 1;
    margin-right: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-file-button {
    background-color: #dc3545; /* Rot */
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    line-height: 1;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: background-color 0.2s ease;
    flex-shrink: 0; /* Verhindert, dass der Button schrumpft */
}

.remove-file-button:hover {
    background-color: #c82333;
}

/* Privacy Consent */
.privacy-consent {
    display: flex;
    align-items: flex-start;
    margin-top: 25px;
    margin-bottom: 30px;
}

.privacy-consent input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

.privacy-consent label {
    font-weight: normal;
    color: var(--text-color-light);
    font-size: 0.9em;
}

.privacy-consent label a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.privacy-consent label a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.button {
    display: block;
    width: 100%;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.primary-button {
    background-color: var(--secondary-color);
    color: white;
}

.primary-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Messages (Success/Error) */
.message {
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    line-height: 1.4;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .career-intro-card {
        flex-direction: row; /* nebeneinander auf größeren Bildschirmen */
    }

    .career-intro-card:nth-child(even) { /* Jede zweite Karte umdrehen */
        flex-direction: row-reverse;
    }

    .card-image {
        width: 40%;
        height: auto;
        padding: 10px; /* Höhe flexibler machen */
        border-radius: 5%;
    }

    .card-content {
        flex: 1;
        padding: 40px;
    }

    .form-row .form-group.half-width {
        flex: 1; /* Stellen Sie sicher, dass sie gleich viel Platz einnehmen */
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2em;
    }
    .section-description {
        font-size: 1em;
    }
    .info-block-item {
        min-width: 100%; /* Auf kleinen Bildschirmen vollbreite */
        max-width: 100%;
    }
    .form-row {
        flex-direction: column; /* Spalten untereinander auf kleinen Bildschirmen */
        gap: 0;
    }
    .form-group.half-width {
        min-width: 100%;
    }
    .application-form {
        padding: 25px;
    }
}