.generate-btn.loading {
    pointer-events: none; /* Button nicht klickbar */
    opacity: 0.8; /* Transparenz für den Button */
    position: relative;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #7357FF;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}



/* General Styles */
body {
    font-family: Inter, sans-serif;
    Height: 100%
    margin: 0;
    padding: 0;
    background-color: #21194D;
    color: #E2DCFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color: #7357FF;
    height: 85px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px; /* Verkleinerte Padding für Mobilgeräte */
    box-sizing: border-box;
    position: relative;
    z-index: 1000;
}

.logo {
    position: relative;
    z-index: 1;
}

.logo img {
    height: 40px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: flex-end; /* Rechts ausgerichtet */
    flex-grow: 1; /* Füllt den verbleibenden Platz im Header */
}


.nav a {
    text-decoration: none;
    font-size: 16px;
    color: white;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    top: 20px;
    right: 20px;
}

.hamburger img {
    width: 29px;
    height: 24px;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #7357FF;
    display: none; /* Versteckt das Menü initial */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 1000;
    padding-top: 85px;
}

.mobile-nav.open {
    display: flex; /* Zeigt das Menü an */
}

.logo {
    position: absolute; /* Absolut positioniert */
    top: 20px; /* Gleiche Position wie im Header */
    left: 20px; /* Gleiche Position wie im Header */
    z-index: 1100; /* Über der mobilen Navigation */
}

.mobile-nav a {
    text-decoration: none;
    font-size: 30px;
    color: white;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1100;
}

.close-btn img {
    width: 29px;
    height: 24px;
}

/* Content Styles */
.content {
    padding: 0px;
    max-width: 900px;
    width: calc(100% - 40px);
    box-sizing: border-box;
    text-align: center;
}

.drop-zone {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    color: #21194D;
    cursor: pointer;
    margin: 0px auto;
    width: calc(100% - 16px);
    max-width: 900px;
    box-sizing: border-box;
}

.drop-zone img {
    margin-bottom: 10px;
    width: 24px;
    height: 25px;
}

.drop-zone p {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
}

/* Layout Buttons */
.layout-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Vier Spalten */
    gap: 16px;
    margin: 20px auto;
    width: calc(100% - 16px);
    max-width: 900px;
}

.layout-button {
    display: flex;
    align-items: center;
    position: relative;
    background-color: #A5A6F6;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    height: 44px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    padding-left: 0;
    justify-content: flex-start;
}

.layout-button.selected {
    opacity: 1;
}

.layout-button:not(.selected) {
    opacity: 0.6;
}

.layout-icon {
    background-color: #7357FF;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px; /* Abrundung nur links */
    position: absolute;
    left: 0;
}

.layout-icon img {
    width: 24px;
    height: 24px;
}

.layout-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-left: 50px; /* Platz für das Icon */
    padding-left: 6px; /* Padding zwischen Icon und Text */
}

.layout-text .title {
    font-size: 12px;
    font-weight: 800;
}

.layout-text .subtitle {
    font-size: 12px;
    font-weight: 400;
}

/* Generate Button */
.generate-btn {
    background-color: #7357FF;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 90px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 20px auto;
    width: auto;
    box-sizing: border-box;
}

.generate-btn img {
    width: 13px;
    height: 13px;
}

.generate-btn:hover {
    background-color: #574dcf;
}

/* Section Styles */
.section {
    padding: 40px 0px;
    color: white;
    text-align: center;
    border-radius: 10px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

.section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.section p {
    font-size: 16px;
    line-height: 1.5;
}

/* Status Bar */
.progress-bar {
    position: relative;
    width: 100%;
    height: 20px;
    background-color: #E2DCFF;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
    display: inline-block;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #7357FF;
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 10px;
    font-size: 14px;
    color: white;
    text-align: center;
}

/* Media Query for Mobile */
@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .layout-buttons {
        grid-template-columns: repeat(2, 1fr); /* Zwei Spalten */
    }

    .hamburger {
    display: block;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    top: 20px;
    right: 20px;
}

    .mobile-nav {
        padding-top: 85px; /* Platz für das Logo */
    }
}

footer {
    background-color: #21194D;
    color: #E2DCFF;
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid #7357FF;
    margin-top: auto; /* Damit der Footer am unteren Rand bleibt */
    width: 100%;
}


.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Für kleinere Bildschirme */
}

.footer-nav a {
    color: #E2DCFF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #7357FF;
}
/* Contact Section */
#support {
    background-color: #7357FF;
    border-radius: 16px;
    padding: 40px 20px;
    color: #fff;
    border-radius: 10px;
    margin: 20px auto;
    width: calc(100% - 16px);
    text-align: center;
}

#support h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

#support p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-btn {
    background-color: #3C28A4;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: #21194D;
}
