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

/* CSS-Variablen für Light Mode */
:root {
    --background-color: #f8f8f8;
    --text-color: #333;
    --accent-color: #ff914d;
    --card-background: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --section-background: #f0f0f5;
    --link-hover-bg: #4A90E2;
    --link-hover-color: #ffffff;
	--box-gradient-header-colors: linear-gradient(90deg, #ffd6e0, #ffc1e3, #e3b2f5, #b2d7f5, #a4f0e0);
}

/* CSS-Variablen für Dark Mode */
body.dark-mode {
    --background-color: #1e1e2e;
    --text-color: #e0e0e0;
    --accent-color: #8131b4;
    --card-background: #2b2b3c;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --section-background: #2b2b3c;
    --link-hover-bg: #76c7c0;
    --link-hover-color: #ffffff;
	--box-gradient-header-colors: linear-gradient(90deg, #fb6c80, #cc3e83, #910083, #4c3b78, #00696a);
}

/* Header */
header {
    background-color: var(--card-background);
    width: 100%;
    height: 60px; /* Feste Höhe */
    box-shadow: 0 4px 8px var(--card-shadow);
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Füllt den Header aus */
    padding: 0 20px; /* Horizontaler Abstand */
}

.logo {
    font-size: 1.8em;
    color: var(--accent-color);
    font-weight: bold;
    line-height: 0.7; /* Setze dies auf 1, um den Abstand zu verringern */
}

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

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

.nav-links li a:hover {
    color: var(--link-hover-color);
    background-color: var(--link-hover-bg);
    border-radius: 5px;
}

/* Toggle-Button für Dark/Light Mode */
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5em; /* Stelle sicher, dass die Schriftgröße angepasst ist */
    cursor: pointer;
    color: var(--accent-color);
    padding: 0; /* Entferne Padding */
    margin: 7px 0px 0 0; /* Entferne Margin */
    line-height: 1; /* Stelle sicher, dass die Zeilenhöhe klein ist */
    align-self: flex-start; /* Hebe den Button an */
    height: auto; /* Stelle sicher, dass der Button nicht höher ist als nötig */
}

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

#languageIcon {
    width: 30px; /* Größe des Sprachsymbols */
    cursor: pointer;
}

.language-menu {
    display: none; /* Menü standardmäßig versteckt */
    position: absolute;
    top: 100%; /* Direkt unter dem Sprachsymbol anzeigen */
    background-color: var(--accent-color);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 4px;
    z-index: 1;
}

.language-menu img {
    width: 24px; /* Größe der Flaggen */
    margin: 5px;
    cursor: pointer;
}

.language-menu img:hover {
    opacity: 0.7; /* Leichter Hover-Effekt für die Flaggen */
}

.icon-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Abstand zwischen Sprachsymbol und Toggle-Button */
}

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

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
}



/* Tool Container */
.tool-container {
    width: 90%;
    max-width: 800px;
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--card-shadow);
	margin: 0px;
	margin-top: -20px;
}

/* Eingabefelder und Ausgabe-Box */
textarea, .output-box {
    width: 100%;
    min-height: 300px; /* Höhe entsprechend anpassen */
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    padding: 10px;
    margin-top: 10px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 5px;
    resize: vertical;
}

/* Button-Stil */
button {
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--link-hover-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: #0073e6;
}

/* Container für Zeilennummern und Code */
.code-container {
    display: flex;
    background-color: #2b2b2b; /* Dunkler Hintergrund für die Code-Container */
    border: 1px solid #444;
    border-radius: 5px;
    overflow: hidden;
}

/* Styling der Code-Ausgabe */
.output-box {
    width: 100%;
    min-height: 150px;
    padding: 10px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    white-space: pre;
    overflow-x: auto;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5; /* Gleiche Zeilenhöhe wie die Zeilennummern */
}


.line-numbers {
    background-color: #333; /* Etwas hellerer Hintergrund als die Box */
    color: #888; /* Gedämpfte Farbe für Zeilennummern */
    padding-top: 20px; /* Feinjustierung des oberen Abstands */
    padding-bottom: 20px; /* Padding anpassen */
    padding-right: 10px;
    text-align: right;
    user-select: none;
    border-right: 1px solid #444;
    font-size: 14px;
    line-height: 1.5; /* Gleiche Zeilenhöhe wie die Ausgabebox */
}

/* Benachrichtigung */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s ease;
	
}

.notification.show {
    opacity: 1;
}

/* Footer */
footer {
    background-color: var(--card-background);
    color: var(--text-color);
    width: 100%;
    padding: 15px;
    text-align: center;
    box-shadow: 0 -4px 8px var(--card-shadow);
	margin-top: -20px;
}

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

.features-section h2 {
    color: var(--accent-color);
    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: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--card-shadow);
    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: var(--box-gradient-header-colors); /* Farbverlauf entsprechend des Bildes */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

#top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    font-size: 16px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .feature-item {
        max-width: 90%; /* Nimmt bei kleiner Bildschirmgröße 90% der Breite ein */
    }
}

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

.faq-section h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
}

.faq-item {
	position: relative;
    margin-bottom: 20px;
    background-color: var(--card-background);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--card-shadow);
    color: var(--text-color);
}

.faq-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px; /* Dünner Balken */
    background: var(--box-gradient-header-colors); /* Farbverlauf entsprechend des Bildes */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.faq-item p {
    margin: 0;
}

/* Mobile Anpassungen */
@media (max-width: 480px) {
    h1, h2 {
        font-size: 1.2em;
    }

    button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .features-container {
        grid-template-columns: 1fr;
    }
}