/* Reset basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Rubik", sans-serif;
    font-weight: lighter;
    background-color: #fff;
    color: #000;
}


.mainframe {
    margin: 0px 0px 200px 0px;
    text-align: center;
}

.TitlePicture {
    background-image: url("resources/kontaktCover.png");
    background-size: cover;
    background-position: 50% 40%;
    height: 800px;
    width: 100%;
    position: relative;    /* enable absolute positioning for children */
    display: flex;
    align-items: center;
    justify-content: center;
}

.TitleText {
    z-index: 2; /* ensure text is above the background */
    color: white;
    text-align: left;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    text-align: center;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.contact-section {
    margin-bottom: 100px;
}

.contact-section h1 {
    font-size: 3em;
    margin-bottom: 50px;
    text-align: center;
}

.contact-methods {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-card {
    flex: 1;
    min-width: 280px;
    text-align: center;
    padding: 40px 30px;
    background-color: #f8f8f8;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: #000;
}

.contact-card h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.contact-card p {
    line-height: 1.6;
    margin-bottom: 25px;
    color: #333;
}

.round-button {
    margin-top: 5px;
    border: 2px solid black;
    color: black;
    background-color: transparent;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 1em;
    cursor: pointer;
    transition: 0.5s ease;
    text-decoration: none;
    display: inline-block;
}

.round-button:hover {
    background-color: black;
    color: white;
}

.contact-form-section {
    background-color: #f8f8f8;
    padding: 60px;
    border-radius: 10px;
}

.contact-form-section h1 {
    font-size: 3em;
    margin-bottom: 40px;
    text-align: center;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: "Rubik", sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: "Rubik", sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
    background-color: white;
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #000;
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    font-size: 1.1em;
    padding: 12px 40px;
    margin-top: 10px;
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group.error label {
    color: #dc3545;
}


@media (max-width: 960px) {

    html, body {
        width: 100vw;
        overflow-x: hidden;
        margin: 0 !important;
        padding: 0 !important;
    }
    .mainframe,
    .TitlePicture {
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .TitleText {
        left: 20%;
    }

    .contact-methods {
        flex-direction: column;
    }

    .contact-card {
        min-width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .contact-form-section {
        padding: 30px 20px;
    }

    .contact-section h1,
    .contact-form-section h1 {
        font-size: 2em;
    }

}

