:root {
    --accent-color: #1e4f9e;
    --accent-light: rgba(30, 79, 158, 0.1);
    --text-color: #1d1d1f;
    --light-text: #86868b;
    --white: #ffffff;
    --light-bg: #f5f5f7;
    --error-color: #ff3b30;
    --success-color: #34c759;
}

.hero {
    height: 40vh; /* Verringerte Höhe für kleinere Darstellung */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 48px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('/api/placeholder/1200/800') center center no-repeat;
    background-size: cover;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

h1 {
    font-size: 42px; /* Verkleinerte Schriftgröße */
    font-weight: 600;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 20px; /* Verkleinerte Schriftgröße */
    font-weight: 400;
    color: var(--light-text);
    margin-bottom: 20px; /* Reduzierter unterer Abstand */
}

.section {
    padding: 60px 20px; /* Reduzierter Abstand */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.section-content {
    max-width: 900px;
    width: 100%;
    z-index: 1;
}

.gray-bg {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
}

/* Formular-Styles */
.form-container {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-column {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.required-mark {
    color: var(--accent-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    background-color: var(--white);
    font-size: 16px;
    transition: all 0.3s;
    color: var(--text-color);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light);
}

input::placeholder,
textarea::placeholder {
    color: #c7c7c7;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    appearance: none;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

input[type="checkbox"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    top: 3px;
    left: 7px;
    transform: rotate(45deg);
}

input[type="checkbox"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.checkbox-label {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.4;
}

.contact-options {
    margin-bottom: 30px;
}

.contact-notice {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 15px;
    font-style: italic;
}

.form-footer {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.submit-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(30, 79, 158, 0.3);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(30, 79, 158, 0.4);
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.privacy-note {
    text-align: center;
    margin-top: 20px;
    color: var(--light-text);
    font-size: 13px;
    max-width: 500px;
}

.invalid {
    border-color: var(--error-color) !important;
}

.invalid-checkbox {
    border-color: var(--error-color) !important;
}

.show-error {
    display: block;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--light-text);
}

@media (max-width: 768px) {
    h1 {
        font-size: 34px; /* Noch kleiner auf mobilen Geräten */
    }

    .subtitle {
        font-size: 18px; /* Noch kleiner auf mobilen Geräten */
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .form-container {
        padding: 30px 20px;
    }
}