:root {
    /* Font-Family Variablen */
    --font-family-heading: "SF Pro Display", -apple-system, BlinkMacSystemFont, 
    "Helvetica Neue", Arial, sans-serif;
    --font-family-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, 
    "Helvetica Neue", Arial, sans-serif;
    --button-primary: #0071e3;
    --icon-pink: #e94aaf;

    --button-primary: #0071e3;
    --button-primary-hover: #0077ED;

    /* Close Button Colors */
    --modal-close-background: rgb(232, 232, 237);
    --modal-close-background-hover: rgb(235.68, 235.68, 239.88);
    --modal-close-background-active: rgb(222.72, 222.72, 227.52);
    --modal-close-color: rgba(0, 0, 0, 0.56);
    --modal-close-color-hover: rgba(0, 0, 0, 0.72);
}

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

body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero-section {
    text-align: center;
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    width: 69px;
    height: 69px;
    margin-bottom: 30px;
    animation: slideDown 0.8s ease forwards;
    transform: translateY(-20px);
}

.hero-title {
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: var(--font-family-heading);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-family-body);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.cta-button {
    display: inline-flex;
    padding: 15px 30px;
    font-size: 1.2rem;
    border: 2px solid #000;
    border-radius: 40px;
    text-decoration: none;
    color: #000;
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.6s;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #000;
    color: #fff;
}

.cta-button .icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    transition: all 0.3s;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 40px 0;
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-close-container {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 20;
    padding: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--modal-close-background);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 17px;
    font-weight: 400;
    z-index: 20;
    color: var(--modal-close-color);
    transition: background-color 0.2s, color 0.2s;
}

.modal-close:hover {
    background-color: var(--modal-close-background-hover);
    color: var(--modal-close-color-hover);
}

.modal-close:active {
    background-color: var(--modal-close-background-active);
}

.modal-close i {
    font-size: 20px;
}

.modal {
    background-color: #fff;
    border-radius: 18px;
    width: 1069px;
    max-width: 95%;
    padding: 0 40px 40px 40px;
    position: relative;
    margin-top: 40px;
    margin-bottom: 80px;
    height: 1635px;
    max-height: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-icon {
    width: 69px;
    height: 69px;
    margin-bottom: 30px;
    animation: slideDown 0.8s ease forwards;
    transform: translateY(-20px);
}

/* Spezieller Stil für das Icon im Modal */
.modal .hero-icon {
    margin-top: 70px;
}

.modal-title {
    text-align: center;
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: var(--font-family-heading);
    max-width: 80%;
    line-height: 1.1;
    margin-top: 30px;
}

.modal-title span {
    font-weight: 600;
    color: #000;
}

.modal-title .gray {
    color: #6e6e73;
    font-weight: 600;
}

.modal-subtitle {
    text-align: center;
    font-size: 21px;
    font-weight: 400;
    margin-bottom: 40px;
    color: #6e6e73;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

#contactForm {
    width: 100%;
    max-width: 680px;
    padding-bottom: 300px; /* Extra Platz am Ende des Formulars */
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

/* Abstände nach jeweils drei Eingabefeldern */
.form-row:nth-child(3) {
    margin-bottom: 40px;
}

.form-row:nth-child(6) {
    margin-bottom: 40px;
}

.form-row:nth-child(9) {
    margin-bottom: 40px;
}

.form-row:last-of-type {
    margin-top: 30px;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    flex: 0 0 100%;
    width: 100%;
}

.form-control {
    width: 350px;
    height: 70px;
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-family-body);
}

.form-control.text-area {
    height: auto;
    min-height: 150px;
    width: 100%;
    resize: vertical;
}

.form-select {
    width: 350px;
    height: 70px;
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-family-body);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    padding-right: 36px;
    cursor: pointer;
}

.form-row:last-child .form-group {
    max-width: 350px;
    flex: 0 0 auto;
}

/* Checkbox Styles */
.checkbox-row {
    margin-top: 10px;
    margin-bottom: 60px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    cursor: pointer;
}

/* Submit Button */
.submit-button {
    width: 100%;
    height: 50px;
    background-color: var(--button-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: var(--button-primary-hover);
}

/* Legal Text */
.legal-text {
    font-size: 14px;
    color: #86868b;
    text-align: center;
    margin-top: 20px;
    line-height: 1.4;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
    }
    to {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-icon {
        width: 55px;
        height: 55px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .modal {
        padding: 30px 20px;
        height: auto;
        min-height: 100vh;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .modal-title {
        font-size: 36px;
        max-width: 100%;
    }
    
    .modal-subtitle {
        font-size: 18px;
    }
    
    .form-control, .form-select {
        width: 100%;
    }
    
    .form-row:last-child .form-group {
        max-width: 100%;
    }

    .legal-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-icon {
        width: 45px;
        height: 45px;
    }
    
    .modal-title {
        font-size: 28px;
    }
    
    .modal-subtitle {
        font-size: 16px;
    }
}
