/* IMPORTED FONTS*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Font Loading Fallback */
@font-face {
    font-family: 'Poppins';
    font-display: swap;
    src: local('Poppins'), local('Poppins-Regular');
}

/* GENERAL SETTINGS */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

html {
    height: 100%;
}

body {
    background-image: linear-gradient(
        to bottom,
        #303647 0%,
        #292e3e 50%,
        #292e3e 50%,
        #242937 100%
    );
    background-size: cover;
    background-attachment: fixed;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* NAVBAR */
img {
    width: 100%;

}

header {
    width: 65%;
    height: 80px;
    background-color: #2f364b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    border-radius: 25px;
    margin: 0 auto;
    border: 1px solid #838caa;
}

.logo {
    width: 220px;
    margin-top: 8px;
}

nav .logo {
    display: none;
}

nav ul {
    display: flex;
}

nav ul li a {
    color: #f2f4f9;
    display: block;
    margin: 0 15px;
    font-weight: 600;
    padding: 8px 18px;
    padding: 0 10px;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

nav ul li a:hover {
    color: #ffffff;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #838caa;
    transform: scaleX(0); 
    transform-origin: left;
    transition: transform 0.3s ease; 
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

.addserverbutton::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #838caa;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.addserverbutton:hover::after {
    transform: scaleX(0); 
}

nav ul li a.active {
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.79);
}

.hamburger {
    display: none;
    height: fit-content;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 5px;
    transition: 0.2s;
}

.hamburger:hover {
    background: #ffffff09;
}

.hamburger div {
    width: 30px;
    height: 2px;
    margin: 6px 0;
    background: #ffffff;
}

.loginicon {
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    padding: 6px 14px;
    transition: background 0.3s;
    margin-left: px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}

.loginicon::before {
    content:"";
    width: 15px;
    height: 15px;
    background:url("/img/login.png");
    background-size: contain;
    float: left;
    margin-right: 5px;
    margin-top: 5px;
}

/* Verstecke das Login-Icon wenn ein Avatar vorhanden ist */
.loginicon img + span ~ .loginicon::before,
.loginicon:has(img)::before {
    display: none;
}

/* User Dropdown Styles */
.user-dropdown {
    position: absolute;
    background: #2f364b !important;
    border: 1px solid #838caa;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease-out;
    overflow: hidden;
    color: #fff !important;
}

.user-dropdown.open {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-header {
    padding: 10px 14px;
    border-bottom: 1px solid #838caa;
    color: #f2f4f9;
    font-weight: 600;
    font-size: 14px;
    background: linear-gradient(to left, #2c375896, #2c37585b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-items {
    padding: 6px 0;
}

.dropdown-item {
    display: block;
    padding: 8px 14px;
    color: #f2f4f9;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: linear-gradient(to left, #2c3758ce, #2c3758ce);
    color: #ffffff;
    padding-left: 20px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.381);
}

.dropdown-item.logout {
    color: #f04747;
}

.dropdown-item.logout:hover {
    background: rgba(240, 71, 71, 0.1);
    color: #f04747;
}

.dropdown-divider {
    margin: 8px 16px;
    border: none;
    border-top: 1px solid #838caa;
}

/* Desktop Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .user-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
        max-height: 50vh;
        overflow-y: auto;
    }
    
    .user-dropdown.open {
        transform: translateY(0);
    }
    
    .dropdown-header {
        padding: 16px 20px;
        font-size: 18px;
        position: sticky;
        top: 0;
        background: #2f364b;
        z-index: 1;
        border-bottom: 1px solid #838caa;
    }
    
    .dropdown-item {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    /* Add drag handle for mobile */
    .user-dropdown::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #838caa;
        border-radius: 2px;
    }
}

.addserverbutton {
    box-sizing: border-box;
    border: 1px solid #838caa;
    border-radius: 10px;
    background: linear-gradient(to left, #2c375896, #2c37585b);
    padding: 6px 14px;
    transition: background 0.3s;
    color: #ffffff;
    margin-left: 50px;
    margin-right: -10px;
}

.addserverbutton:hover {
    background: linear-gradient(to left, #2c3758ce, #2c3758ce);
}

.addserverbuttonnone1 {
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    padding: 6px 14px;
    transition: background 0.3s;
    background: transparent;
    color: #ffffff;
}

.addserverbuttonnone2 {
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    padding: 6px 14px;
    transition: background 0.3s;
    margin-left: px;
    background: transparent;
    color: #ffffff;
}

.addserverbuttonnone3 {
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    padding: 6px 14px;
    transition: background 0.3s;
    margin-left: px;
    background: transparent;
    color: #ffffff;
}

.addserverbuttonnone4 {
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    padding: 6px 14px;
    transition: background 0.3s;
    background: transparent;
    color: #ffffff;
}

/* Navigation icons - hidden by default, shown in mobile */
.addserverbuttonnone1::before,
.addserverbuttonnone2::before,
.addserverbuttonnone3::before,
.addserverbuttonnone4::before {
    content:"";
    width: 20px;
    height: 20px;
    background-size: contain;
    float: left;
    margin-right: 10px;
    margin-top: 2px;
    display: none;
}

.addserverbuttonnone1::before {
    background-image: url("/img/explore.png");
}

.addserverbuttonnone2::before {
    background-image: url("/img/crown.png");
}

.addserverbuttonnone3::before {
    background-image: url("/img/chat.png");
}

.addserverbuttonnone4::before {
    background-image: url("/img/blog.png");
}

.divider {
    display: none;
}

/* Main content flex fix */
main {
    flex: 1 0 auto;
    width: 100%;
    min-height: calc(100vh - 80px);
    padding-bottom: 40px;
}

/* Page wrapper to ensure footer sticks to bottom */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/*FOOTER*/
footer {
    width: 65%;
    background-color: #2f364b;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    padding-bottom: 40px;
    color: #ffffff;
    border: 1px solid #838caa;
    border-bottom: none;
    margin: 40px auto 0 auto;
    margin-bottom: -25px;
    border-radius: 25px 25px 0 0;
    flex-shrink: 0;
    position: relative;
}

/* Footer pseudo element to fill bottom gap */
footer::after {
    content: "";
    position: absolute;
    bottom: -25px;
    left: -1px;
    right: -1px;
    height: 25px;
    background-color: #2f364b;
    border-left: 1px solid #838caa;
    border-right: 1px solid #838caa;
}

.footer-section {
    flex: 1;
    max-width: 30%;
    padding: 0 20px;
}

.footer-section h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Fallback for old h3 tags */
.footer-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;

}

.footer-logo img {
    max-width: 350px;
    height: auto;
    margin-top: 10%;
}

.notaffiliated {
    font-size: 8.6px;
    margin-left: 8.6px;
    color: #838caa;
}

.notaffiliated:hover {
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.79);
}

.ser {
    color: white;
}

.gms {
    color: white;
}

.bts {
    color: white;
}

.blg {
    color: white;
}

.twt {
    color: white;
}

.tos {
    color: white;
}

.sup {
    color: white;
}

.ser:hover {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.79);
}

.gms:hover {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.79);
}

.bts:hover {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.79);
}

.blg:hover {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.79);
}

.twt:hover {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.79);
}

.tos:hover {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.79);
}

.sup:hover {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.79);
}

/* CONTACT FORM */
.contact-form {
    width: 100%;
    min-height: 75vh;
    display: flex;
    justify-content: center; 
    align-items: center;
    margin-top: 5%;
    margin-bottom: 5%;
}

form {
    background-color: #2f364b;
    display: flex;
    flex-direction: column;
    padding: 2vw 4vw;
    width: 90%;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 1px 0 5px 0 #494e5f;
}

form h1 {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 30px;
}

form input, form textarea {
    border: 0;
    margin: 10px 0;
    padding: 20px;
    outline: none;
    background: linear-gradient(to left, #2c375896, #2c37585b);
    font-size: 16px;
    box-shadow: 1px 0 5px 0 #494e5f;
}

form button {
    padding: 15px;
    background: linear-gradient(to left, #2c375896, #2c37585b);
    color: white;
    font-size: 18px;
    border: solid #494e5f 1px;
    outline: none;
    cursor: pointer;
    margin: 20px;
    border-radius: 30px;
    box-shadow: 1px 0 5px 0 #494e5f;
    transition: opacity 0.16s;
}

form button:hover {
    background: linear-gradient(to left, #2c3758ce, #2c3758ce);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.381);
}

form button:active {
    opacity: 0.5;
}

form input::placeholder,
form textarea::placeholder {
    color: rgba(255, 255, 255, 0.764);
}

input[type="text"] {
    color: #ffffff; 
}

input[type="email"] {
    color: #ffffff; 
}

textarea {
    color: #ffffff;
}

input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
textarea:-webkit-autofill,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:hover {
    -webkit-text-fill-color: white;
    transition: background-color 5000s ease-in-out 0s;
}

/*SERVERS(INDEX.HTML) HEADLINE + SEARCH INPUT */
.servers-container {
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: center;
    max-width: 65%;
    margin-left: 17.5%;
    height: 35vh;
    margin-top: 5%;
    margin-bottom: 1%; 
}

.search-input {
    height: 45px;
    background: linear-gradient(to left, #292e3e, #2f364b);
    border: solid #838caa 1px;
    border-radius: 5px;
}

.search-input:focus {
    outline: none;
}

.searchfordiscords {
    font-size: 40px;
    color: white;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-weight: bold;
    padding: 2%;
}

.servers-container .search-input {
    font-size: 16px;
    padding-left: 10px;
}

.servers-container .search-input::placeholder {
    font-size: 16px;
}

.input-with-search {
    position: relative;
    display: inline-block;
}

.search-button {
    background-image: url('/frontend/img/search.png');
    background-size: 28px 28px; 
    background-repeat: no-repeat;
    background-color: transparent;
    width: 30px; 
    height: 30px; 
    cursor: pointer; 
    position: absolute;
    right: 8px; 
    top: 50%; 
    transform: translateY(-50%);
    border: none; 
    margin-top: 2px;
}

.search-input {
    padding-right: 200px; 
    width: 100%; 
}

/*SERVERS(INDEX.HTML) DIVIDER */
.divider2 {
    border: 0;
    border-top: 1px solid #838caa;
    width: 98%; 
    margin: 13vh 0; 
}


/*SERVERS(INDEX.HTML) Featred Servers + Random Premium Discord Servers */
.servers-containerv2 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: left;
    max-width: 65%;
    margin-left: 17.5%;
    margin-bottom: 5%;
    margin-top: 2%;
}

.FeaturedS {
    color: white;
    font-size: 30px;
}

.RandomPDS {
    color: rgba(255, 255, 255, 0.555);
    font-weight: 300;
    margin-bottom: 2%;
    font-size: 17px;
    margin-top: 10px;
}

.premium {
    color: white;
}


/*SERVERS(INDEX.HTML) SERVER LISTINGS*/
.div-container {
    display: grid;
    grid-template-columns: repeat(1, 0.7fr);
    grid-auto-rows: minmax(150px, auto);
    grid-gap: 2px;
}

.div1, .div2, .div3, .div4, .div5, .div6 {
    background: rgba(102, 102, 224, 0.048);
    margin: 0;
}

.div1 {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.div6 {
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.add-box {
    max-width: 70%;
    height: 160px;
    border: solid #838caa 2px;
    border-radius: 10px;
    box-shadow: 1px 0 5px 0 #747b94;
    margin-top: 50px;
    margin-bottom: 50px;
}

.showmore-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px;
    margin-top: 20px;
    background-color: transparent;
    border: solid #838caa7b 1px;
    color: white;
    font-size: 18px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.showmore-btn:hover {
    background-color: rgba(255, 255, 255, 0.03); 
  }

.showmore-btn img {
    width: 12px; 
    height: 12px; 
    margin-left: 12px; 
}


/*EXPLORE TAB expo.html*/
.discord-explore{
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: center;
    max-width: 65%;
    margin-left: 17.5%;
    height: 35vh;
    margin-top: 5%;
    margin-bottom: 1%;
}

.search-input-expo {
    height: 45px;
    background: linear-gradient(to left, #292e3e, #2f364b);
    border: solid #838caa 1px;
    border-radius: 5px;
    padding-left: 10px;
    padding-right: 200px;
    width: 100%;
}

.search-input-expo:focus {
    outline: none;
}

.discord-explore .search-input-expo {
    font-size: 16px;
    padding-left: 10px;
}

.discord-explore .search-input-expo::placeholder {
    font-size: 16px;
}

.explore-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: left;
    max-width: 65%;
    margin-left: 17.5%;
    margin-bottom: 5%;
    margin-top: 2%;
}

.Popular-Categories {
    color: white;
    font-size: 28px;
    font-weight: bold;
    margin-top: -2vh;
}

.PCh2 {
    color: rgba(255, 255, 255, 0.555);
    font-weight: 300;
    margin-bottom: 2%;
    font-size: 16px;
    margin-top: 5px;
}

.popcategories-content {
    background-color: rgba(102, 102, 224, 0.048);
    width: 100%;
    height: 100px;
    border-radius: 10px;
    margin-bottom: 100px;
    border: solid #838caa 1px;
}

.all-categories {
    color: white;
    font-size: 28px;
    font-weight: bold;
    margin-top: -4vh;
}

.list-categories {
    color: rgba(255, 255, 255, 0.555);
    font-weight: 300;
    margin-bottom: 2%;
    font-size: 16px;
    margin-top: 5px;
    border-radius: 10px;
}

.all-categories-content {
    background-color: rgba(102, 102, 224, 0.048);
    width: 100%;
    height: 500px;
    border-radius: 10px;
    border: solid #838caa 1px;
}


/*ADVERTISE /GETM.HTML*/
.main-advertisement-container {
    display: flex;
    justify-content: top;
    align-items: center;
    flex-direction: column;
    max-width: 65%;
    padding-bottom: 60px;
    margin-left: 17.5%;
    min-height: 100vh;
    margin-top: 6%;
    margin-bottom: 1%; 
}

/* Blog Container Styles */
.main-blog-container {
    display: flex;
    justify-content: top;
    align-items: center;
    flex-direction: column;
    max-width: 65%;
    padding-bottom: 60px;
    margin-left: 17.5%;
    min-height: 100vh;
    margin-top: 6%;
    margin-bottom: 1%;
}

.blog-title {
    color: white;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 1vh;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.blog-subtitle {
    color: white;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.4;
    text-align: center;
    padding: 0 20px;
    margin: 0 auto;
}

/* Blog Card Styles */
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.blog-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Blog Post Styles */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    color: #ffffff;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-post-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-post-meta {
    color: #b9bbbe;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.blog-post-content {
    line-height: 1.8;
    color: #dcddde;
}

.blog-post-content h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #5865f2;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content ul {
    margin: 1rem 0 1.5rem 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
    list-style: disc;
}

.blog-post-content strong {
    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .blog-post-container {
        padding: 1rem;
    }
    
    .blog-post-title {
        font-size: 1.8rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.4rem;
    }
}

.text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.growyourcommunity {
    color: white;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 1vh;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.bestboostingplatform{
    color: white;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.4;
    text-align: center;
    padding: 0 20px;
    margin: 0 auto;
}

/* Break nur auf Mobile anzeigen */
.mobile-break {
    display: none;
}



/*MEDIA QUERY*/
@media only screen and (max-width: 1760px) {
    /* NAVBAR */
    header {
        width: 80%;
        padding: 0 20px;
    }
    /* FOOTER */
    footer {
        width: 80%;
        margin-left: 10%;
    }

    .div-container {
        display: grid;
        grid-template-columns: repeat(1, 0.8fr);
        grid-auto-rows: minmax(150px, auto);
        grid-gap: 2px;
    }

    .add-box {
        max-width: 80%;
    }
    
}


@media only screen and (max-width: 1370px) {
    /* NAVBAR */
    header {
        width: 90%;
        padding: 0 20px;
    }
    /* FOOTER */
    footer {
        width: 90%;
        margin-left: 5%;
    }

    .div-container {
        display: grid;
        grid-template-columns: repeat(1, 0.9fr);
        grid-auto-rows: minmax(150px, auto);
        grid-gap: 2px;
    }

    .add-box {
        max-width: 90%;
    }
}

@media only screen and (max-width: 1270px) {
    /* NAVBAR */
    header {
        width: 90%;
        padding: 0 20px;
    }
    /* FOOTER */
    footer {
        width: 90%;
        margin-left: 5%;
    }
    
    /* ADVERTISE PAGE */
    .main-advertisement-container {
        max-width: 90%;
        margin-left: 5%;
    }
    
    .main-blog-container {
        max-width: 90%;
        margin-left: 5%;
    }

    /*SERVERS(INDEX.HTML) HEADLINE + SEARCH INPUT */
    .servers-container {
        max-width: 90%;
        margin-left: 5%;
    }

    .searchfordiscords {
        padding: 2%;
        padding-top: 5%;
    }

    .div-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: minmax(150px, auto);
        grid-gap: 2px;
    }

    .add-box {
        max-width: 100%;
    }
}

@media only screen and (max-width: 1270px) {
    /* EXPLORE PAGE RESPONSIVE */
    .discord-explore {
        max-width: 90%;
        margin-left: 5%;
    }
    
    .explore-content {
        max-width: 90%;
        margin-left: 5%;
    }
    
    .divider2 {
        width: 98%;
        margin: 10vh 0;
    }
}

@media only screen and (max-width: 1150px) {
    /* NAVBAR */
    header {
        width: 100%;
        padding: 0 20px;
    }

    nav {
        position: absolute;
        left: -300px;
        top: 0;
        z-index: 2;
        width: 280px;
        height: 100%;
        background-color: #2f364b;
        transition: 0.2s;
        box-shadow: 1px 0 5px 0 #494e5f;
        margin-top: 80px;
    }

    #nav_check:checked ~ nav {
        left: 0;
    }

    nav .logo {
        display: block;
        height: 70px;
        display: flex;
        align-items: center;
        margin-left: 15px;
    }

    nav ul li a {
        margin-bottom: 5px;
        padding: 10px 15px;
        border-radius: 5px;
    }

    nav ul {
        display: block;
        padding: 0 20px;
        margin-top: 30px;

    }

    .hamburger {
        display: block;
    }

    .addserverbutton:hover {
        background: transparent;
    }

    header {
        border-radius: 0px;
        border: none;
        border-bottom: 1px solid #838caa;
    }

    .addserverbutton {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        background: linear-gradient(to left, #2c375896, #2c37585b) !important;
        border: 1px solid #838caa !important;
        border-radius: 8px !important;
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        padding: 8px 14px !important;
        height: 40px !important;
        width: auto !important;
        max-width: 160px !important;
        white-space: nowrap;
        cursor: pointer;
        margin: 8px 0 8px 30px;
        transition: background 0.2s ease,
                    border-color 0.2s ease,
                    transform 0.1s ease,
                    box-shadow 0.2s ease;
    }
    
    .addserverbutton:hover {
        background: linear-gradient(to left, #2c3758ce, #2c3758ce) !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .addserverbutton:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .addserverbutton:focus {
        outline: 2px solid #838caa;
        outline-offset: 2px;
    }
    
    .addserverbutton::before {
        display: none;
    }

    /* Show navigation icons in mobile */
    .addserverbuttonnone1::before,
    .addserverbuttonnone2::before,
    .addserverbuttonnone3::before,
    .addserverbuttonnone4::before {
        display: block;
    }

    .loginicon {
        margin-right: 10px;
    }

    .divider {
        display: block;
        border: 1px solid  #838caa;
        margin: 20px 0; 
        margin-right: 10px;
        margin-left: 30px;
    }

    nav ul li a::after {
        height: 0px;
    }

    /* FOOTER */
    footer {
        width: 100%;
        margin-left: 0px;
        border-radius: 0px;
        border-left: none;
        border-right: none;
        margin-bottom: 0;
    }
    
    footer::after {
        display: none;
    }

    /*SERVERS(INDEX.HTML) HEADLINE + SEARCH INPUT */
    .servers-container {
        max-width: 90%;
        margin-left: 5%;
    }

    .searchfordiscords {
        padding: 2%;
        padding-top: 5%;
    }

}

@media only screen and (max-width: 950px) and (min-width: 766px) {
    /* Fix footer for tablet sizes */
    footer {
        width: 100%;
        margin: 80px 0 0 0;
        padding-bottom: 60px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    footer::after {
        display: none;
    }
    
    .main-advertisement-container {
        height: auto !important;
        min-height: auto;
        padding-bottom: 100px;
        margin-bottom: 40px;
    }
    
    .advertise-content {
        margin-bottom: 60px;
    }
    
    main {
        padding-bottom: 80px;
    }
}

@media only screen and (max-width: 765px) and (min-width: 551px) {
    /* Fix footer for smaller tablet sizes */
    footer {
        width: 100%;
        margin: 80px 0 0 0;
        padding-bottom: 60px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    footer::after {
        display: none;
    }
    
    .main-advertisement-container {
        height: auto !important;
        min-height: auto;
        padding-bottom: 100px;
        margin-bottom: 40px;
    }
    
    .advertise-content {
        margin-bottom: 60px;
    }
    
    main {
        padding-bottom: 80px;
    }
}

@media only screen and (max-width: 768px) {
    /* ADVERTISE PAGE MOBILE */
    .main-advertisement-container {
        max-width: 95%;
        margin-left: 2.5%;
        padding: 40px 20px;
        margin-top: 10%;
    }
    
    /* EXPLORE PAGE TABLET/MOBILE - wie index.html */
    .discord-explore {
        max-width: 90%;
        margin-left: 5%;
    }
    
    .searchfordiscords {
        font-size: 35px;
        padding: 2%;
        padding-top: 8%;
    }
    
    .search-input-expo {
        height: 40px;
        font-size: 14px;
        padding-right: 175px;
    }
    
    .discord-explore .search-input-expo::placeholder {
        font-size: 14px;
    }
    
    .divider2 {
        width: 98%;
        margin: 10vh 0;
    }
}

@media only screen and (max-width: 765px) {
    footer {
        flex-direction: row;
        width: 100%;
        margin-left: 0px;
        border-radius: 0px;
        border-left: none;
        border-right: none;
        margin-bottom: 0;
    }
    
    footer::after {
        display: none;
    }
    
    .footer-section {
        max-width: 100%;
        font-size: 15px
    }

    form h1 {
        color: #ffffff;
        font-weight: 800;
        margin-top: 20px;
        margin-bottom: 20px;
        font-size: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /*SERVERS(INDEX.HTML) HEADLINE + SEARCH INPUT */
    .servers-container {
        max-width: 90%;
        margin-left: 5%;
    }
    
    .search-input {
        height: 40px;
    }
     
    .searchfordiscords {
        font-size: 35px;
        padding: 2%;
        padding-top: 8%;
    }
    
    .servers-container .search-input {
        font-size: 14px;
        padding-left: 10px;
    }
    
    .servers-container .search-input::placeholder {
        font-size: 14px;
    }
    
    .input-with-search {
        position: relative;
        display: inline-block;
    }
    
    .search-button {
        background-size: 25px 25px;
        width: 27px;
        height: 27px;
    }
    
    .search-input {
        padding-right: 175px; 
        width: 100%; 
    }
  
}

@media only screen and (max-width: 650px) {
    footer {
        flex-direction: column;
        width: 100%;
        margin-left: 0px;
        border-radius: 0px;
        border-left: none;
        border-right: none;
        margin-bottom: 0;
    }
    
    footer::after {
        display: none;
    }

    /*SERVERS(INDEX.HTML) HEADLINE + SEARCH INPUT */
    .servers-container {
        max-width: 90%;
        margin-left: 5%;
    }

    .search-input {
        height: 40px;
    }

    .searchfordiscords {
        font-size: 32px;
        padding: 2%;
        padding-top: 8%;
    }

    .servers-container .search-input {
        font-size: 14px;
        padding-left: 10px;
    }

    .servers-container .search-input::placeholder {
        font-size: 14px;
    }

    .input-with-search {
        position: relative;
        display: inline-block;
    }

    .search-button {
        background-size: 25px 25px;
        width: 27px;
        height: 27px;
    }

    .search-input {
        padding-right: 160px;
        width: 100%;
    }
    
    /* EXPLORE PAGE */
    .search-input-expo {
        padding-right: 160px;
    }
}

/* Fix for text cutoff at 550px */
@media only screen and (max-width: 550px) {
    .growyourcommunity {
        font-size: 1.6rem;
        white-space: nowrap;  /* Kein Umbruch für die Hauptüberschrift */
        padding: 0 10px;
        max-width: 100%;
        line-height: 1.3;
    }
    
    .bestboostingplatform {
        font-size: 0.85rem;
        padding: 0 20px;
        max-width: 100%;
        line-height: 1.5;
        margin-top: 10px;
        white-space: normal;  /* Umbruch erlaubt für die Unterüberschrift */
    }
    
    .main-advertisement-container {
        padding: 30px 15px;
        height: auto;
        min-height: 100vh;
    }
    
    .text-wrapper {
        margin-bottom: 2rem;
    }
    
    .divider2 {
        margin: 3vh 0;
    }
    
    .advertise-content div[style*="grid"] {
        gap: 1rem !important;
        padding: 0 10px !important;
    }
    
    .advertise-content div[style*="text-align: center; padding: 2rem"] {
        padding: 1.5rem !important;
    }
    
    .advertise-content h3 {
        font-size: 1.1rem !important;
    }
    
    .advertise-content p {
        font-size: 0.85rem !important;
    }
    
    .advertise-content div[style*="font-size: 3rem"] {
        font-size: 2.5rem !important;
    }
    
    .advertise-content h2 {
        font-size: 1.5rem !important;
    }
    
    .advertise-content a[href="/frontend/html/adds.html"] {
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

@media only screen and (max-width: 490px) {
    /* ADVERTISE PAGE SMALL MOBILE */
    .main-advertisement-container {
        max-width: 100%;
        margin-left: 0;
        padding: 30px 15px;
        margin-top: 15%;
    }
    
    .growyourcommunity {
        font-size: clamp(1rem, 5vw, 1.8rem);
        white-space: normal;
    }
    
    .bestboostingplatform {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
        max-width: 100%;
        padding: 0 10px;
        white-space: normal; /* Erlaube Umbruch */
        text-align: center;
    }
    
    /* Zeige den Break auf kleinen Geräten */
    .mobile-break {
        display: block;
    }
    
    /*SERVERS(INDEX.HTML) HEADLINE + SEARCH INPUT */
    .servers-container {
        max-width: 90%;
        margin-left: 5%;
    }

    .search-input {
        height: 40px;
    }

    .searchfordiscords {
        font-size: 22px;
        padding: 2%;
        padding-top: 16%;
    }

    .servers-container .search-input {
        font-size: 10px;
        padding-left: 10px;
    }

    .servers-container .search-input::placeholder {
        font-size: 10px;
    }

    .input-with-search {
        position: relative;
        display: inline-block;
    }

    .search-button {
        background-size: 17px 17px;
        width: 19px;
        height: 19px;
    }

    .search-input {
        padding-right: 110px;
        width: 100%;
    }

    .FeaturedS {
        font-size: 20px;
    }

    .RandomPDS {
        font-size: 13px;
    }

    .showmore-btn {
        margin-top: 10px;
        font-size: 13px;
        height: 30px;
    }

    .servers-containerv2 {
        max-width: 86%;
        margin-left: 7%;
    }

    .add-box {
        margin-top: -6vh;
    }
    
    /* EXPLORE PAGE MOBILE - wie index.html */
    .discord-explore {
        max-width: 90%;
        margin-left: 5%;
    }
    
    .explore-content {
        max-width: 86%;
        margin-left: 7%;
    }
    
    .searchfordiscords {
        font-size: 22px;
        padding: 2%;
        padding-top: 16%;
    }
    
    .search-input-expo {
        height: 40px;
        font-size: 10px;
        padding-left: 10px;
        padding-right: 110px;
    }
    
    .discord-explore .search-input-expo::placeholder {
        font-size: 10px;
    }
    
    .divider2 {
        width: 98%;
        margin: 8vh 0;
    }
    
    .Popular-Categories, .all-categories {
        font-size: 20px;
        margin-top: -1vh;
    }
    
    .PCh2, .list-categories {
        font-size: 13px;
    }
    
    .popcategories-content {
        margin-bottom: 40px;
    }
    
    .all-categories-content {
        height: 400px;
    }

}
