body {
    margin: 0;
    background-color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.color {
    background-color: #b0e8bf;
}

/* navigation bar*/
.navBar {
    border-bottom: 0.1em solid rgba(0, 0, 0, 0.2);
    height: 5em;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;

    /* Glass effect */
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(15px);

    margin: 0;
    display: flex;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.navBar h1 {
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 15%;
}

.navBar a {
    margin-top: auto;
    margin-bottom: auto;
    color: black;
    text-decoration: none;
}

.navButton {
    margin-left: auto;
    margin-right: 0;
    height: 100%;
}

.loginLink {
    margin-right: 0;
    text-decoration: none;
    color: black;
    font-size: large;
    font-weight: bold;
    background-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    height: 100%;
    padding-right: 1em;
    padding-left: 1em;
    border-radius: 20px;
}

.loginLink:hover {
    background-color: #b0e8bfd0;
}

/*background picture for forms*/
.backgroundPicture {
    background-image: url('../images/tutor_background_edited.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.backgroundGradient {
    background: linear-gradient(90deg, #ffffff, #76e8945f);
    height: 100%;
}

/*hero shot in landing page*/
.heroshot {
    height: 100vh;
    position: relative;
    background-image: url('../images/hero-shot.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}

.heroHeadline {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    text-shadow: 5px 5px 15px black;
}

/*division for advertising offers*/
.advertisingBox {
    display: flex;
    min-height: 27em;
    margin: 1%;
    border-radius: 1em;
    overflow: hidden;
    box-shadow: 0px 5px 30px #2e2e2e;
    background-color: white;
    align-items: stretch;
}

.buttonDescription {
    height: auto;
    width: 70%;
    display: flex;
    flex-direction: column;
}

.buttonDescription h1 {
    margin-left: 3%;
    margin-top: 3%;
}

.buttonDescription span {
    margin-left: 3%;
    margin-right: 3%;
    font-size: larger;
    line-height: 1.5;
    text-align: justify;
    margin-bottom: 3%;
}

.offerButton {
    border-left: 0.2em solid black;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: black;
    font-size: xx-large;
    font-weight: bold;
    width: 40%;
    background-color: #b0e8bf;
    transition: all 0.5s;
    text-align: center;
}

.offerButton:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    background-color: #5f9f6f;
    color: #ffffff;
}

/* trust */
.trustBox {
    min-height: 25em;
    height: auto;
    margin: 1%;
    border-radius: 1em;
    overflow: hidden;
    box-shadow: 0px 5px 30px #2e2e2e;
    background-color: white;
}

.trustText {
    text-align: center;
}

.trustFacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
}

.trustFacts span {
    min-width: 180px;
    padding: 1em;
    font-size: x-large;
    text-align: center;
}

.trustFacts b {
    font-size: xx-large;
    color: #b0e8bf;
    text-shadow: 2px 2px 2px black;
}

.reviewBox {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin: 1em;
}

.review {
    flex: 1 1 300px;
    max-width: 100%;
    padding: 1.25em;
    border-radius: 10px;
    background-color: #eaeaea;
    box-shadow: 1px 2.5px 5px #2e2e2e;
}

.review-text {
    line-height: 1.6;
    font-size: larger;
}

.reviewFooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: x-large;
}

.reviewFooter h2 {
    color: gold;
}

/*form */
.centeredWindow {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1em;
    box-sizing: border-box;
    margin-top: 2%;
}

.formBox {
    background-color: white;
    padding: 2em;
    padding-left: 4em;
    padding-right: 5em;
    border-radius: 10px;
    box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.formBox.account {
    margin-top: 2.5%;
}

.formBox button {
    margin-top: 2.5%;
    width: 15rem;
    font-size: large;
    padding: 3%;
    border-radius: 999px;
    background: #5f9f6f;
    border: 0px;
    transition: all 0.5s;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.formBox button:hover {
    transform: translateY(-3px);
    box-shadow: 0px 5px 15px gray;
}

.formBox button:active {
    transform: translateY(3px);
}

#delBtn {
    background-color: #ff4e4e;
}

.formBox a {
    color: #5f9f6f;
}

#registerLink {
    margin-bottom: auto;
}

#forgetPasswordBtn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;

    color: #5f9f6f;
    text-decoration: underline;
    cursor: pointer;

    font: inherit;
    transition: none;
}

#forgetPasswordBtn:hover {
    color: #487a54;
    transform: translateY(-0px);
    box-shadow: 0px 0px 0px transparent;
}

.formBox h1 {
    color: black;
}

.formBox a:hover {
    text-shadow: 0px 1px 1px lightgray;
}

.formBox .googleBtn {
    margin-bottom: -5%;
    background-color: rgb(235, 235, 235);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: black;
    font-weight: normal;
}

.formBox .googleBtn img {
    width: 20px;
}

.formRow {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 0.5rem;
    gap: 2px;
}

.formRow label {
    font-weight: bold;
    width: auto;
    margin-right: 0;
    text-align: left;
}

.formRow input {
    width: 100%;
    padding: 2.5%;
    border-radius: 6px;
    background-color: white;
    border: 1px solid darkgray;
    font-size: 0.8rem;
    transition: all 0.5s;
}

.formRow input:focus {
    box-shadow: 0px 5px 20px #76e895;
    border: 0px
}

.formHint {
    font-size: small;
    color: rgba(128, 128, 128, 0.718);
}

.formRow input[type="checkbox"] {
    width: auto;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.formRow select {
    width: 100%;
    padding: 2.5%;
    border-radius: 6px;
    font-size: 0.8rem;
    background-color: white;
    border: 1px solid darkgrey;
    transition: all 0.5s;
}

.formRow select:focus {
    box-shadow: 0px 5px 20px #76e895;
}

#passwordSection {
    width: 100%;
}

.navButton {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1em;
    padding-right: 1.5em;
}

#userMenu {
    display: none;
    position: relative;
    display: flex;
    align-items: center;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
}

#userDropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 10px;
    min-width: 180px;
    padding: 0.3em 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#userMenu:hover #userDropdown {
    display: block;
}

.dropdownItem {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    color: black;
    font-size: medium;
    font-weight: bold;
    cursor: pointer;
    background-color: transparent;
    border: none;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdownItem:hover {
    background-color: #b0e8bfd0;
    color: #000;
}

.dropdownItem+.dropdownItem {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/*Container*/
.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/*Offer Detaillist*/
.offerDetailsCard {
    max-width: 420px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.sendRequest {
    margin-top: 2.5%;
    font-size: large;
    border-radius: 999px;
    background: #5f9f6f;
    transition: all 0.5s;
    color: white;
    font-weight: bold;
    width: 100%;
    padding: 12px;
    border: none;
    cursor: pointer;
}

.sendRequest:hover {
    transform: translateY(-3px);
    box-shadow: 0px 5px 15px gray;
}

.sendRequest:active {
    transform: translateY(3px);
}

.offerDetailsCard h2 {
    margin-top: 0;
    font-size: 1.6rem;
    color: #333;
}

.offerDescription {
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.offerInfoList {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.offerInfoList li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.offerInfoList strong {
    color: #222;
}

.offerDetailsCard {
    margin-top: 150px;
}

/*offerList*/
.offerGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-top: 40px;
    /* Abstand zur Navbar */
}

.offerCard {
    display: block;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offerCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.offerCard h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.offerCard p {
    margin: 0 0 12px 0;
    word-wrap: break-word;
    color: #555;
}

.offerMeta {
    font-size: 0.9rem;
    color: #777;
}

/*search bar + filter*/
* {
    box-sizing: border-box;
}

.filterSection {
    margin-top: 120px;
}

.filterWrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.searchContainer {
    margin-bottom: 20px;
}

.searchInputWrapper input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.searchInputWrapper input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}


.filterContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filterItem {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}

.filterLabel label {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #555;
}

.filterSelect select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    background: #ffffff;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.filterSelect select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/*Footer*/
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer {
    margin-top: auto;
}

main {
    flex: 1;
}

.footer {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

.footer a {
    color: white;
    text-decoration: none;

}

.footer a:hover {
    color: #ddd;

}


/*Impressum*/
.Impressum {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-top: 120px;
}

.Impressum h2 {
    margin-top: 2.5rem;
    font-size: 1.4rem;
    color: #2f4f36;
    border-left: 4px solid #5f9f6f;
    padding-left: 0.6rem;
}

.Impressum p,
.Impressum li {
    color: #333;
}

.Impressum ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.Impressum a {
    color: #5f9f6f;
    text-decoration: none;
    font-weight: 500;
}

.Impressum a:hover {
    text-decoration: underline;
}

.Impressum section {
    margin-bottom: 2rem;
}

.Impressum {
    background: linear-gradient(180deg, #ffffff 0%, #f3f8f4 100%);
}

/*Overview*/
.formDivider {
    border: 0;
    height: 1px;
    background-color: #dcdcdc;
    width: 100%;
    display: block;
}

.account-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
    margin-top: 120px;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.account-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 0.9rem;
    color: #666;
}

.value {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 3px;
}

.actions {
    display: flex;
    gap: 16px;
}


.btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn.danger {
    margin-top: 2.5%;
    font-size: large;
    border-radius: 999px;
    background: red;
    transition: all 0.5s;
    color: white;
    font-weight: bold;
    width: 100%;
    padding: 12px;
    border: none;
    cursor: pointer;
}

.btn.danger:hover {
    transform: translateY(-3px);
    box-shadow: 0px 5px 15px gray;
}

.btn.danger:active {
    transform: translateY(3px);
}

@media screen and (min-width: 481px) and (max-width: 799px) {
    .heroshot {
        height: 50vh;
    }

    .advertisingBox {
        flex-direction: column;
    }

    .buttonDescription {
        width: 100%;
    }

    .offerButton {
        width: 100%;
        border-left: none;
        border-top: 0.2em solid black;
        padding: 1.5em 0;
    }

    .navBar h1 {
        margin-left: 5%;
        font-size: 1.4rem;
    }

    .loginLink {
        font-size: medium;
        padding-left: 0.7em;
        padding-right: 0.7em;
    }

    .centeredWindow {
        margin-top: 7%;
    }


    .formBox {
        padding-left: 2em;
        padding-right: 2em;
        width: 90%;
        min-height: 50%;
    }

    .loginLink {
        font-size: medium;
        padding-right: 0.25em;
        padding-left: 0.25em;
    }
}

@media screen and (max-width: 480px) {
    .heroshot {
        height: 50vh;
    }

    .advertisingBox {
        flex-direction: column;
    }

    .buttonDescription {
        width: 100%;
    }

    .offerButton {
        width: 100%;
        border-left: none;
        border-top: 0.2em solid black;
        padding: 1.5em 0;
    }

    .navBar h1 {
        margin-left: 7.5%;
        font-size: 1.5rem;
    }

    .loginLink {
        font-size: 0.7rem;
        padding-left: 0.4em;
        padding-right: 0.4em;
    }

    .centeredWindow {
        margin-top: 7%;
    }

    .formBox {
        padding-left: 2em;
        padding-right: 2em;
        width: 90%;
    }

    .loginLink {
        font-size: medium;
        padding-right: 0.25em;
        padding-left: 0.25em;
    }
}

/* create Offer */
.errorBox {
    max-width: 320px;
    text-align: center;
}
