/* Speira Azubi-Bewerbungsportal - Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-white: #ffffff;
    --color-green-600: #16a34a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-slate-900);
    background: linear-gradient(to bottom right, var(--color-slate-50), var(--color-slate-100));
    min-height: 100vh;
}

/* Header */
header {
    background-color: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--color-slate-200);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.header-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-slate-900);
}

.header-text p {
    font-size: 0.875rem;
    color: var(--color-slate-600);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-slate-700);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1rem;
    color: var(--color-slate-700);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
}

.card-image-content {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    right: 1.5rem;
    color: var(--color-white);
}

.card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--color-slate-200);
}

.card-content {
    padding: 1.5rem;
}

.card-info {
    margin-bottom: 1.5rem;
}

.card-info h3 {
    font-weight: 600;
    color: var(--color-slate-900);
    margin-bottom: 0.5rem;
}

.card-info p, .card-info ul {
    color: var(--color-slate-700);
}

.card-info ul {
    list-style: none;
    padding-left: 0;
}

.card-info ul li {
    padding: 0.25rem 0;
}

.card-info ul li::before {
    content: "✓ ";
    color: var(--color-green-600);
    font-weight: bold;
    margin-right: 0.5rem;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-slate-900);
    color: var(--color-white);
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--color-slate-800);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--color-slate-700);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.btn-back:hover {
    background-color: var(--color-slate-100);
    border-radius: 6px;
}

/* Form */
.form-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-slate-900);
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--color-slate-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-slate-200);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-slate-900);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Success Page */
.success-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--color-green-600);
}

.success-card h2 {
    font-size: 2rem;
    color: var(--color-slate-900);
    margin-bottom: 1rem;
}

.success-card p {
    color: var(--color-slate-700);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.success-card strong {
    color: var(--color-slate-900);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-slate-600);
    font-size: 0.875rem;
}

footer a {
    color: var(--color-slate-900);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Error/Success Messages */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.hidden {
    display: none;
}

	
/* Spezifische Korrekturen für Checkbox und Dateiupload */
.form-group input[type="checkbox"],
.form-group input[type="file"] {
    /* Setzt die Breite auf 'auto' zurück */
    width: auto;
    
    /* WICHTIGE KORREKTUR: Entfernt Padding, Border, Box-Shadow und Höhe, die Probleme verursachen */
    padding: 20px;
    border: none;
    box-shadow: none;
    height: auto;
    
    /* Stellt sicher, dass das Feld im Layout korrekt angezeigt wird */
    font-size: 1rem; 
}