html,
body {
    font-family: 'Roboto', sans-serif;
    background-color: #d2c8c1;
}

#heimat-logo {
    width: 250px;
    height: auto;
}

#oowv-logo {
    width: 125px;
    height: auto;
}

.container {
    display: grid;
    background-color: #f2f5f8;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 100px auto;
    padding: 40px;
    height: 90%;
    grid-template-rows: auto 1fr auto;
}

a {
    color: #8e9233;
    text-decoration: underline;
}

a:hover {
    color: #646825;
}

.question {
    display: none;
}

.question.current {
    display: block;
}

.progress-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 20px;
}

.progress-step {
    width: 30px;
    height: 30px;
    background-color: #ccc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.progress-step.active {
    background-color: #8e9233;
}

.progress-step.active .dot {
    background-color: #fff;
}

.progress-step.completed {
    background-color: #8e9233;
}

.progress-step.completed::before {
    content: '\2713';
    color: #fff;
    font-weight: bold;
    font-size: x-large;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
}

.btn-next {
    --bs-btn-color: #fff;
    --bs-btn-bg: #8e9233;
    --bs-btn-border-color: #8e9233;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #646825;
    --bs-btn-hover-border-color: #646825;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #646825;
    --bs-btn-active-border-color: #646825;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #8e9233;
    --bs-btn-disabled-border-color: #8e9233;
}

.btn-outline-primary {
    --bs-btn-color: #8e9233;
    --bs-btn-border-color: #8e9233;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #8e9233;
    --bs-btn-hover-border-color: #8e9233;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #8e9233;
    --bs-btn-active-border-color: #8e9233;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #8e9233;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #8e9233;
    --bs-gradient: none;
    white-space: normal;
}

.btn {
    padding: 1rem 2rem;
    font-weight: 700;
}

.fontupload {
    font-size: 0.8rem !important;
}

.c-width {
    width: 50%;
}

.c-width h4 {
    font-size: clamp(0.9rem, 1.2vw, 1.2rem);
}

th {
    font-size: clamp(0.8rem, 0.5vw, 1.5rem) !important;
}

@media screen and (max-width: 1920px) {

    .c-width {
        width: 66% !important;
    }

    .btn {
        padding: 0.8rem 1.8rem;
        font-weight: 700;
    }

    #size {
        padding-bottom: 1.5rem !important;
    }
}

@media (min-width: 1451px) and (max-width: 1879px) {
    #size {
        padding: 0 !important;
    }
}

@media screen and (max-width: 1460px) {
    .c-width {
        width: 60% !important;
    }

    .btn {
        padding: 0.8rem 1.8rem;
        font-weight: 700;
    }

    h4 {
        font-size: 20px !important;
        padding-bottom: 1.5rem !important;
    }
}

@media screen and (max-width: 1450px) {
    .c-width {
        width: 85% !important;
    }

    .btn {
        padding: 0.7rem 1.7rem;
        font-weight: 700;
    }

    h4 {
        font-size: 15px !important;
        padding-bottom: 1.5rem !important;
    }
}

@media screen and (max-width: 991px) {
    .c-width {
        width: 90% !important;
    }

    .btn {
        padding: 0.6rem 0.6rem;
        font-weight: 700;
    }

    .container {
        padding: 15px;
    }

    h4 {
        font-size: 12px !important;
        padding-bottom: 1.5rem !important;
    }
}

@media screen and (max-width: 767px) {
    .logotext {
        font-size: small !important;
    }

    .tooltip {
        font-size: small !important;
    }

    h4 {
        font-size: 8px !important;
        padding-bottom: 1.5rem !important;
    }
}

@media screen and (max-width: 460px) {

    #heimat-logo {
        width: 180px;
    }


    .c-width {
        width: 100% !important;
    }

    .c-width p {
        font-size: clamp(0.7rem, 1.5vw, 1.5rem) !important;
    }


    .btn {
        padding: 0.4rem 0.4rem;
        font-weight: 700;
    }

    .container {
        padding: 10px;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-label {
        width: 100%;
    }

    .form-input {
        width: 100%;
    }

    .d-grid {
        display: block;
    }

    .progress-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .progress-step {
        flex: 0 0 auto;
        margin-right: 10px;
        margin-left: 20px;
    }

    .icon-container .tooltip {
        width: 100%;
        left: 0;
        margin-left: 0;
    }

    .tooltip::after {
        left: 50%;
        margin-left: -5px;
    }

    .table {
        width: 95% !important;
    }

    .table th,
    .table td {
        font-size: 0.8rem;
        padding: 0.25rem;
        text-align: center;
    }

    .text-center {
        text-align: center;
        width: 94%;
    }

    .align-self-center {
        align-self: center;
    }



    .pb-4 {
        padding-bottom: 1rem !important;
    }

    .question {
        flex-direction: column;
        align-items: center;
    }

    .question.current {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .d-flex {
        justify-content: center !important;
    }

    .col {
        flex: none
    }

    .row {
        width: 75%;
    }

}

.form-input {
    margin: 0 auto;
    display: block;
    padding: .375rem .75rem;
    font-size: clamp(0.8rem, 0.2vw, 1rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    max-width: 100%;
}

.form-input:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-color: #8e9233;
    outline: 0;
    box-shadow: 0 0 0 .25rem #8e923385;
}

.table-Bezeichnung {
    --bs-table-color: #fff;
    --bs-table-bg: #8e9233;
    --bs-table-border-color: #8e9233;
    --bs-table-striped-bg: #c7dbd2;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #bcd0c7;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #c1d6cc;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.font-p {
    font-size: clamp(0.7rem, 1.5vw, 1rem);
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
}

img,
svg {
    vertical-align: middle;
    width: 20px;
}

.icon-container {
    position: relative;
    display: inline-block;
}

.tooltip {
    visibility: hidden;
    width: clamp(250px, 50vw, 500px);
    padding: 10px;
    background-color: #ffffff;
    color: #78706b;
    border-radius: 5px;
    position: absolute;
    z-index: 2;
    /* bottom: 125%;*/
    left: 5%;
    margin-left: -75px;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0px 0px 20px #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.entwaesserung {
    width: clamp(200px, 50vw, 550px);
}

.logo_bild {
    width: 150px;
    height: 30px;
    margin: 0 auto;
    display: block;
}

.icon-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
    z-index: 3;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.selected_icon {
    border: 2px solid blue;
}



/* Hyphenation and word-breaking for all text elements */
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
th,
td,
input,
textarea {
    word-break: break-word;
    hyphens: auto;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
}

.disabled h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.disabled p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.disabled .btn {
    padding: 0.5rem 1rem;
    font-weight: 700;
    background-color: #8e9233;
    color: #fff;
    border: none;
}

#liveToast[data-type="success"],
#liveToast[data-type="success"] .toast-header {
    background-color: #8e9233;
    color: #fff;
    border-color: #c3e6cb;
}

#liveToast[data-type="error"],
#liveToast[data-type="error"] .toast-header {
    background-color: red;
    color: #fff;
    border-color: #f5c6cb;
}