:root {
    --primary-color: #ffbe0b;
    --primary-orange: #f7db95;
    --secondary-color: #422800;
    --third-color: #e0408d;
    --grey-color: #ddd;
    --hero-catch: "Fredoka", sans-serif;
}

body {
    background-color: white;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* navbar */
.navbar {
    font-family: "Asap Condensed", sans-serif;
    font-size: 18px; /* 1.3rem */
    margin: 0 auto;
    width: 100%;
    /* border-bottom: 3px solid var(--secondary-color); */
}

.navbar-brand,
.navbar-brand-sidebar,
.navbar-brand-form {
    color: black;
    font-family: 'Chewy', sans-serif;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: auto;
    text-decoration: none;
}

.navbar-brand-form:hover {
    color: black;
}

.offcanvas-body {
    margin: 0 auto;
    width: 90%;
}

.navbar-nav {
    margin: 0 auto;
}

.nav-item, .nav-item-profile {
    box-sizing: border-box;
    color: black;
    font-weight: 600;
    margin: auto 5px;
}

.nav-item-profile {
    margin-right: 0px;
}

.nav-item-hover:hover {
    /* color: var(--primary-color); */
    text-decoration: underline;
    text-decoration-color: #FBDA83;
    text-decoration-thickness: 4px;
    text-underline-offset: 8px;
} 

.active {
    text-decoration: underline;
    text-decoration-color: var(--primary-orange);
    text-decoration-thickness: 4px;
    text-underline-offset: 8px;
}

.iButton {
    border-radius: 5px;
    background-color: var(--third-color);
    border: none;
    color: black;
    text-align: center;
    width: 180px;
    transition: all 0.5s;
    cursor: pointer;
}

.iButton span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.iButton span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

.iButton:hover span {
    padding-right: 25px;
}
  
.iButton:hover span:after {
    opacity: 1;
    right: 0;
}

.username-navbar {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    margin-left: 5px;
}

.dropdown-menu {
    border-radius: 2px;
    font-size: 16px;
    margin-top: 5px;
    padding: 0;
}

.dropdown-item {
    border-bottom: 1px solid var(--grey-color);
    padding: 8px;
}

.dropdown-item:hover {
    background-color: var(--primary-orange);
}

.cta {
    border-radius: 5px;
    margin: 0px 3px;
    padding: 8px 15px;
    text-decoration: none;
}

.login_btn {
    /* background-color: var(--primary-color); */
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    color: black;
    font-size: 1.1rem;
}

.login_btn:hover {
    background-color: #FCCF5D;
    color: black;
    transition: all 0.4s ease;
}

.signup_btn {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    color: #fff;
    font-size: 1.1rem;
    margin-right: 0px;
}

.signup_btn:hover {
    background-color: #64420f;
    color: white;
    transition: all 0.5s ease;
}

/* hero */
.hero {
    align-items: center;
    background: 
        radial-gradient(circle at 18% 60%, #ffbe0b -2.5%, transparent 6%),
        radial-gradient(circle at 95% 90%, #ffbe0b 0%, transparent 7.5%),
       #f7f6f6;
    border: 1px solid #ddd;
    border-bottom: 1px solid var(--grey-color);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: black;
    display: flex;
    margin: 0 auto;
    height: 90vh; 
    justify-content: center;
    position: relative;
    text-align: center;
    width: 98%;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    align-items: center;
    /* display: flex; */
    gap: 10px;
    height: 100%; 
    justify-content: center;
    margin: auto;
    position: relative; 
    width: 100%;
    z-index: 1;
}

.waveSvg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.wave {
    fill: none;
    stroke: #422800;
    stroke-width: 20;
    stroke-linecap: round;
}

.heroText {
    min-width: 400px;
}

.heroCatch {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem); /* Slightly smaller at 1200px */
    line-height: 1.1; /* Scales between 2rem and 4rem based on viewport */
    font-weight: 600;
    color: #422800;
    margin: 2.5rem auto;
    font-family: var(--hero-catch);
    font-style: normal;
    width: 100%;
}

/* hero-Search */
.search {
    background: var(--secondary-color);
    border-radius: 10px;
    bottom: 30px;
    padding: 2.5px;
    width: 60%;
    min-width: 400px;
    z-index: 10;
    margin: 3rem auto;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.search-bar {
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 2.5px 5px;
    height: 50px;
    width: 100%;
    border: 1px solid var(--secondary-color);
    position: relative;
}

.search-bar-field {
    flex-grow: 1;
}

input.search-bar-field {
    border: none;
    outline: none;
    flex: 1;
    font-size: 18px;
    padding-left: 12px;
}

.search-bar:focus-within {
    border-color: #ffbe0b;
    border: 1px solid;
    outline: none;
    box-shadow: 0 0 4px #ffbe0b;
}

.search-bar-field::placeholder {
    font-size: 16px;
}

.divider {
    width: 0.7px;
    height: 20px;
    background-color: #dcdcdc;
    margin: 0 10px;
}

.divider1 {
    width: 2px;
    height: 30px;
    background-color: #dcdcdc;
    margin-top: 8px;
    /* margin: 0 10px; */
}

.search-bar select {
    border: none;
    background: transparent;
    font-size: 16px;
    margin-left: 10px;
    width: 20%;
}

.search-bar button {
    background-color: var(--primary-color);
    color: var(--secondary-color); /* Fixed invalid "color" value */
    /* border: 1px solid #422800; */
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 5px;
}

.search-bar button:hover {
    background-color: #fccf5d;
    transition: 0.5s;
}

.form-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  margin-top: 8%; /* Pull up or down — adjust value */
  position: relative; /* instead of absolute */
  bottom: unset;
  transform: none;
  flex-wrap: wrap; /* if needed on smaller screens */
}

.form-hero, .content-Box-hero {
  /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); */
  box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.25);
  margin: 0 auto;
  border-radius: 20px;
    background: 
        linear-gradient(#f7f6f6, white) padding-box;
        /* linear-gradient(45deg, --secondary-color, #f7f6f6) border-box; */
    border: 1px solid rgb(180, 180, 180);
    width: 60%;
}

.content-Box-hero {
    padding: 7.5px 15px 0 15px;
    transform: translateX(-1rem) rotate(3deg); 
}

.form-hero {
    padding: 1rem;
    transform: translateX(5rem) rotate(-3deg);
}

.heading-form-landing {
    font-family: var(--hero-catch);
}

.input-row {
  display: flex;
  gap: 5px;
}

.input-like {
  flex: 1;
  font-family: 'Assistant', sans-serif;
  padding: 4px 8px;
  border: 1px solid var(--grey-color);
  border-radius: 4px;
  background-color: #ffffff;
  color: #000;
  font-size: 0.8rem;
  line-height: 1.5;
  user-select: none; /* prevent text selection */
  text-align: left;
}

.input-left {
  flex: 1;
}

.input-right {
  flex: 3;
}

/* main nav-cards */
.description-heading {
    color: var(--secondary-color);
    font-family: var(--hero-catch);
    font-weight: 400;
    font-size: 24px;
}

.description-text {
    margin-top: 12px;
    font-size: 17px;
    font-weight: 600;
}

.description-btn {
    background-color: var(--primary-color);
    border-radius: 8px;
    color: #422800;
    display: inline-block;
    font-family: var(--hero-catch);
    margin-top: 12px;
    padding: 8px 24px;
    text-decoration: none;
}

.share-btn {
    background-color: var(--third-color);
}

.main {
    border: 1px solid var(--grey-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    /* border-top: 1px solid var(--grey-color); */
    border-radius: 8px;
    margin: 0 auto;
    margin-top: 5rem;
    width: 98%;
    background-color: #f7f6f6;
    padding: 20px; 
    min-height: 30vh;
}

.main-div {
    display: flex;
    margin: 0 auto;
    width: 80%; 
    max-width: 1500px; 
    flex-wrap: wrap; 
    gap: 30px; 
    justify-content: center; 
}

.nav-cards {
    flex: 1;
    /* border: 4px solid var(--secondary-color); */
    border-radius: 12px;
    height: 200px;
    background-color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 250px; 
    max-width: 400px; 
    margin: 0; 
}

.nav-cards:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bi-icons {
    background-color: #f7f6f6;
    border-radius: 100%;
    /* border: 1px solid var(--secondary-color); */
    padding: 10px;
    margin-bottom: 20px;
}

/* Heading styling */

/* Button styling */
.button-74 {
    background-color: var(--primary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 30px;
    box-shadow: var(--secondary-color) 4px 4px 0 0;
    color: var(--secondary-color);
    cursor: pointer;
    display: inline-flex; /* Better for aligning text and SVG */
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 17px;
    padding: 0 12px;
    line-height: 45px; /* Fixed height, adjusted below */
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: background-color 0.5s ease, transform 0.1s ease, box-shadow 0.1s ease; /* Smooth transitions */
}

.button-74:hover {
    background-color: #fddc89;
    transition: 0.5s;
}

.button-74:active {
    box-shadow: var(--secondary-color) 2px 2px 0 0;
    transform: translate(2px, 2px);
}

.button-74 svg {
    margin-left: 8px; /* Space between text and arrow */
}

/* dropdown-menu */
.btn-container { 
    position: relative;
}

.dropbtn {
    position: relative;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    color: black;
    cursor: pointer;
    height: 45px;
    width: 45px;
    padding: 16px;
}

.fa-user {
    /* font-size: 1.8rem; */
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logged-in {
    font-size: 14px;
    display: inline-block;
    margin-left: 5px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    border-bottom: 1px solid var(--grey-color);
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    transition: all 0.5s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* .dropdown:hover .dropbtn {
    background-color: #1E90FF;
} */

/* footer */
footer {
    border-top: 1px solid var(--grey-color);
    margin-top: auto;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

footer h3 {
    font-family: 'Varela Round', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    margin: 12px auto;
    width: 50%;
    padding-top: 16px;
}

.footer-text {
    font-size: 13px;
    margin: 5px auto;
    width: 50%;
}

.footer-icons {
    display: flex;
    justify-content: center;
    margin: 2px auto;
    padding: 8px;
    width: 80%;
    list-style: none;
}

/* .fa-instagram:hover {
    color: #E1306C;
}

.fa-twitter:hover {
    color: #1E90FF;
} */

.fa-brands {
    padding: 0 10px;
}

.footer-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px;
    margin: 2px auto;
    width: 80%;
    list-style: none;
}

footer a {
    color: black;
    text-decoration: none;
}

.footer-list-item {
    font-size: 17px;
    padding:0 10px;
}

/* Datenschutz */
.datenschutz, .impressum {
    font-family: 'Assistant', sans-serif;
    font-size: 16px;
    width: 60%;
    margin: auto;
    margin-top: 60px;
    margin-bottom: 30px;
}

.HeadingsTerms {
    margin-top: 12px;
}

.Terms {
    margin-top: 6px;
}

/* media Querys */
/* Extra Large Desktop (bis 1320px) */
@media (max-width: 1320px) {
    .offcanvas-body {
        margin: 0 auto;
        width: 90%;
    }
}

/* Large Desktop (bis 1200px) */
@media (max-width: 1200px) {
    .hero-container {
        flex-direction: column;
        gap: 20px;
    }

    .heroText,
    .heroGrafik {
        flex: 1 1 100%;
        min-width: 0;
        text-align: center;
    }

    .heroCatch {
        margin-top: 30px;
    }

    .heroGrafik {
        transform: scale(0.85);
        margin: -50px 0 40px;
    }

    .hero-grafik {
        max-width: 50%;
        height: auto;
    }

    .search {
        width: 75%;
        max-width: 100%;
    }
}

/* Medium Tablet (bis 992px) */
@media (max-width: 992px) {
    .hero {
        max-height: 90vh;
    }

    .heroText {
        margin: -30px 0 -20px;
        text-align: center;
    }

    .heroCatch {
        font-size: clamp(1.75rem, 4vw, 3.5rem);
    }

    .navbar-brand {
        margin-left: 5%;
    }

    .navbar-toggler {
        margin-right: 5%;
    }

    .navbar-brand-sidebar,
    .nav-item-profile {
        display: none;
    }

    .navbar-nav {
        margin: 0;
    }

    .nav-item {
        border-bottom: 1px solid #ddd;
        border-radius: 0;
        font-weight: 400;
        padding: 3px 0 5px 12px;
        margin: 0;
    }

    .profile-item {
        border-top: 1px solid #ddd;
        margin-top: 20px;
    }

    .offcanvas-body {
        padding: 0;
        margin: 0 auto;
        width: 90%;
    }

    .iButton {
        border-radius: 0;
        background-color: transparent;
        border: none;
        color: inherit;
        text-align: inherit;
        width: auto;
        transition: none;
        cursor: default;
        font-weight: 700;
    }
}

/* Tablet (bis 768px) */
@media (max-width: 768px) {
    .hero {
        max-height: 80vh;
        padding: 20px 0;
    }

    .heroCatch {
        font-size: clamp(2rem, 4.2vw, 3.8rem);
    }

    .catchHelp {
        font-size: clamp(1rem, 2.1vw, 1.3rem);
    }

    .form-container,
    .waveSvg,
    .divider {
        display: none;
    }

    .search {
        width: 100%;
        max-width: 98%;
        margin: 20px auto 0;
        padding: 10px;
        background-color: #f7f6f6;
        border: 1px solid var(--grey-color);
        border-radius: 20px;
        box-sizing: border-box;
    }

    .search-bar {
        width: 100%;
        max-width: 100%;
        background-color: #f7f6f6;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 10px;
        gap: 10px;
        box-sizing: border-box;
        border: none;
    }

    .search-bar input,
    .search-bar select,
    .search-bar button {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 8px;
        font-size: 16px;
        border: 2px solid #422800;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .search-bar select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="5" viewBox="0 0 10 5"><path fill="%23422800" d="M0 0h10L5 5z"/></svg>') no-repeat right 10px center;
    }

    .search-bar button {
        background-color: #ffc107;
        color: black;
    }

    .main {
        margin-top: 20px;
    }
}

/* Small Tablet (bis 724px) */
@media (max-width: 724px) {
    .datenschutz,
    .impressum {
        width: 80%;
        margin: 60px auto 0;
    }
}

@media (max-width: 576px) {
    .nav-item-disappear {
        display: none;
    }
}

/* Desktop (ab 992px) */
@media (min-width: 992px) {
    .navbar-brand,
    .divider1 {
        display: none;
    }
}