
* {
    font-family: Verdana, Geneva, sans-serif;
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    background: #f4f4f4 url('bgrd.png') no-repeat center center fixed;
    background-size: cover;
}

/* Bannerbild über dem Formular */
.sd-banner {
    object-fit: cover;
    display: block;
    margin: 0 auto 2rem auto;
    margin-top: 4rem;
    max-width: 100%;
    border-radius: 8px;
}


.sd-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sd-form-box {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    width: 100%;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.sd-form-box h1 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.75rem;
}

form.sd-form {
    display: flex;
    flex-direction: column;
}

form.sd-form label {
    margin-bottom: 1rem;
    color: #555;
}

form.sd-form input,
form.sd-form textarea {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

form.sd-form button {
    padding: 0.75rem;
    background: #326295;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 2rem;
    display: block;
}

form.sd-form button:hover {

    .sd-required {
        color: red;
        margin-left: 2px;
        font-weight: bold;
    }

    .sd-required-hint {
        margin-top: 1rem;
        font-size: 0.95em;
        color: #555;
    }

    background: #5F7BA9;
}


.sd-required-hint {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 0.95em;
    color: #555;
}

/* Zusatztext unter Verpflegung */
.sd-catering-hint {
    font-weight: normal;
    font-size: 0.95em;
}

/* Datenschutz Checkbox und Label */
.sd-privacy-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.3rem;
}

.sd-privacy-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sd-privacy-checkbox {
    margin-right: 0;
}

.sd-privacy-spacer {
    margin-top: 0.7rem;
}

/* Datenschutz-Checkbox */
.sd-privacy-checkbox {
    width: auto;
    margin-right: 8px;
}

/* Datenschutz-Label */
.sd-privacy-label {
    display: inline;
    font-weight: bold;
}

/* Datenschutz-Text unter Checkbox */
.sd-privacy-text {
    margin-bottom: 0.7rem;
    font-size: 0.95em;
    color: #555;
    text-align: left;
}

/* Datenschutz-Link */
.sd-privacy-link {
    color: #326295;
    text-decoration: underline;
}

.sd-privacy-row {
    margin-bottom: 0.3rem;
    display: block;
}

.sd-privacy-checkbox {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.sd-privacy-label {
    display: inline-block;
    vertical-align: middle;
    font-weight: bold;
    margin-bottom: 0;
}

/* Absenden-Button */
.sd-submit-btn {
    width: 160px;
    margin-top: 2rem;
    margin-left: 0;
    padding: 0.75rem;
    background: #326295;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: block;
    text-align: center;
}

.sd-submit-btn:hover {
    background: #5F7BA9;
}

.sd-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.sd-form-row label {
    min-width: 200px;
    max-width: 200px;
    margin-bottom: 0;
    margin-right: 1rem;
    color: #555;
    text-align: left;
    display: block;
}

.sd-form-row input,
.sd-form-row select,
.sd-form-row textarea {
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
    box-sizing: border-box;
    text-align: left;
    font-family: Verdana, Geneva, sans-serif;
}

/* Modal */
 
#sd-modal {
    display: none;
    position: fixed;
    top: 12%;
    left: 15%;
    width: 70%;
    height: 70%;
    background-color: #326295;
    z-index: 8000;
 
    & iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }
}
 
#sd-modaldarkbg {
    display: none;
    position: fixed;
    z-index: 7950;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,.75);
}
 
#modal-link {
    text-decoration: underline;
 
    &:hover {
        color: #326295;
        cursor: pointer;
    }
}
 
#close-modal-icon {
    position: relative;
    left: 97%;
    top: 0;
 
 
    &::after {
        content: '\00D7';
        font-size: 2rem;
        font-weight: 600;
    }
 
    &:hover::after {
        cursor: pointer;
        color: #800;
    }
 
}

#sd-consent {
  width: 100%;
  padding: .5rem;
  font-size: 1rem;
  background-color: #326295;
  color: #fff;
  border-width: 1px;
  border-style: solid;
  border-color: #5b7ba5 #a4b0cb;
  border-radius: 4px;
}

.sd-show-error {
    background-color: rgba(0,0,0,.75);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #fff;
    position: fixed;
    top: 5%;
    left: 40%;
}

.small-text {
    font-size: small;
}

/* Media Queries für responsive Design */
@media (max-width: 992px) {

    .sd-form-row {
        flex-direction: column;
        align-items: flex-start;
    }
 
    .sd-form-row label {
        margin-bottom: 0.5rem;
        max-width: 100%;
    }

    .sd-form-box {
        width: 95%;
    }

    #close-modal-icon {
        left: 90%;
    }

    .sd-show-error {
        left: 5%;
    }
}