/* Basis-Reset und globale Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #e0e0e0;
    background-color: #1e1e2e;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
}

/* Header */
header {
    background-color: #2b2b3c;
    width: 100%;
    height: 60px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo {
    font-size: 1.8em;
    color: #8131b4;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1em;
    padding: 10px 15px;
    transition: background 0.3s, color 0.3s;
}

.nav-links li a:hover {
    color: #1e1e2e;
    background-color: #76c7c0;
    border-radius: 5px;
}

/* Toggle-Button für Dark/Light Mode */
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #8131b4;
}

.language-switcher {
    position: relative;
    display: inline-block;
}

#languageIcon {
    width: 30px;
    cursor: pointer;
}

.language-menu {
    display: none;
    position: absolute;
    top: 100%;
    background-color: #8131b4;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 4px;
    z-index: 1;
}

.language-menu img {
    width: 24px;
    margin: 5px;
    cursor: pointer;
}

.language-menu img:hover {
    opacity: 0.7;
}

.icon-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hauptinhalt */
main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Info-Section */
.info-section {
    background-color: #2b2b3c;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    color: #8131b4;
    max-width: 600px;
    font-size: 1.1em;
	margin-top: -20px;
}

/* Grid für Tool-Cards */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
}

/* Tool-Cards */
.tool-card {
    background: var(--card-background, #2c2b3b);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 320px;
}

.tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #fb6c80, #cc3e83, #910083, #4c3b78, #00696a);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* Vorschau-Inhalt */
.preview {
    background-color: #2c2b3b;
    border-radius: 12px;
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Iframe-Anpassungen */
.scaled-iframe {
    width: 830px; /* Ursprüngliche Breite */
    height: 690px; /* Ursprüngliche Höhe */
    border: none;
    background: transparent;
	align-items: center;
}

.iframe-animation-name {
	color: #e1e1e0; 
	font-size: 0.8em; 
	text-decoration: none;
}

.iframe-animation-name:hover {
	color: #fff; 
}	

.preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Buttons */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.play-btn,
.download-btn {
    background: #8131b4;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.play-btn:hover,
.download-btn:hover {
    background-color: #5a1180;
}

/* Info-Section */
.info-section {
    background-color: #2b2b3c;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    color: #8131b4;
    max-width: 600px;
    font-size: 1.1em;
}

/* Features Section */
.features-section {
    background-color: #2b2b3c;
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

.features-section h2 {
    color: #8131b4;
    margin-bottom: 20px;
}

/* Grid Layout für die Feature Cards */
.features-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-items: center;
}

.feature-item {
	position: relative;
    background-color: #2b2b3c;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: left;
    width: 100%;
    max-width: 300px;
}

.feature-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px; /* Dünner Balken */
    background: linear-gradient(90deg, #fb6c80, #cc3e83, #910083, #4c3b78, #00696a); /* Farbverlauf entsprechend des Bildes */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* "Top"-Button-Styling */
#top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    font-size: 16px;
    background-color: #8131b4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
	z-index: 1000; /* Sicherstellen, dass der Button ganz oben liegt */
    transition: opacity 0.3s ease;
}

/* Sichtbar, wenn gescrollt wird */
#top-button.show {
    opacity: 1;
}

/* FAQ Section */
.faq-section {
    background-color: #2b2b3c;
    padding: 40px 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 1200px;
	margin-top: 0px;
}

.faq-section h2 {
    color: #8131b4;
    margin-bottom: 20px;
    text-align: center;
}

.faq-item {
	position: relative;
    margin-bottom: 20px;
    background-color: #2b2b3c;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.faq-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px; /* Dünner Balken */
    background: linear-gradient(90deg, #fb6c80, #cc3e83, #910083, #4c3b78, #00696a); /* Farbverlauf entsprechend des Bildes */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.faq-item p {
    margin: 0;
}

/* Footer */
footer {
    background-color: #2b2b3c;
    color: #e0e0e0;
    width: 100%;
    padding: 15px;
    text-align: center;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
	margin-top: -20px;
}

@media (max-width: 768px) {
    .tool-grid {
        grid-template-columns: 1fr; /* Eine Spalte fÃ¼r mobile Ansicht */
    }

}
