

:root {
  --padding-form: 30px;
  --padding-form-mobile: 20px;
}

section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 min(100px, 5%);
    box-sizing: border-box;
}

h2.underlined {
  margin-top: clamp(2rem, 4.8vw, 4.1rem);
  margin-bottom: clamp(1.01rem, 2.2vw, 1.6rem);
}

.servicegebiete-text {
    max-width: 1000px;
    margin-top: var(--xxs);
}

@media screen and (max-width: 780px) {
  .kontakt-wrapper {
    flex-direction: column;
  } 
}

/* Button und checkbox übereinander*/
@media screen and (max-width: 500px) {
  .input-row {
    flex-direction: column;
  }

  .status-message {
    margin-top: var(--m);
  }
}

.kontakt-wrapper {
    margin: 0 auto;
    display: flex;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    background-color: #444444;
    

    .input-row {
        width: 100%;
        display: flex;
        gap: 15px;
    }

    h1, h2{
        margin: 0;
        margin-bottom: var(--m);
    }

    .row {
        gap: var(--m);
    }
    
    .kontakt-form {
        display: flex;
        flex-direction: column;
        flex: 50%;
        background-color: #444444;
        padding: var(--padding-form);

        textarea {
            resize: vertical;
            min-height: 250px;
            padding-block: 10px;
        }

        button {
            padding: 0 10px;
            color: white;
            height: 40px;
            display: flex;
            align-items: center;
            transition: all 0.2s;
            justify-content: center;
            margin-bottom: 3px;

            &:hover {
                padding: 20px;
                font-weight: bold;
            }
        }

        .status-message {
            margin-top: 3px;
            margin-bottom: 0;
        }
    }


    .kontakt-info {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);

        flex: 20%;
        background-color: var(--c-lightest);
        padding: var(--padding-form);

        h2 {
            color: white;
            margin-bottom: var(--m);
            font-size: clamp(1.1rem, 3vw, 1.563rem);
        }

        p {
            margin-top: 0;
        }

        p:not(:last-child){
            padding-bottom: var(--m);
        }
  }
}

a[href="https://maps.app.goo.gl/nbeR31s3vXySxRpT9"] {
    text-decoration: none;
}

figure{
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: var(--xxl);

    img {
        width: 100%;
    }
    figcaption {
        color: var(--c-text-muted);
        text-decoration: none;
    }
}

/* ######################### checkbox #########################*/


.checkbox-row {
  display: flex;
  align-items: center;

  label {
    font-size: var(--s);
  }
}

.checkbox-container {
  cursor: pointer;
  position: relative;
}

.checkbox-container input {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
}

.checkmark {
  height: 18px;
  width: 18px;
  min-width: 18px;
  background-color: #ffffff;
  border-radius: 0px;
  margin-right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease;
  position: relative;
}

.checkbox-container input:checked + .checkmark {
  background-color: var(--c-green);
}

.checkmark:after {
  content: '';
  width: 9px;
  height: 5px;
  margin-bottom: 4px;
  border: solid #ffffff;
  border-width: 2px 2px 0px 0px;
  display: none;
  transform: rotate(135deg);
  position: absolute;
}

.checkbox-container input:checked + .checkmark:after {
  display: block;
}

/* ######################### status-message #########################*/

.status-message {
    font-size: smaller;
    align-self: center;

    &.success {
        color: var(--c-success);
    }
    &.error {
        color: var(--c-error);
    }
}