/* Grundlayout */
body {
    font-family: Arial, sans-serif;
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.container {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
}

h2 {
    color: #333;
    text-align: center;
    font-size: 1.5em;
}

textarea {
    width: 100%;
    font-size: 16px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    resize: none;
    box-sizing: border-box;
}

.buttons, .reset-container, .copy-container {
    text-align: center;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

button {
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1 1 40%; /* Buttons skalieren auf kleinen Bildschirmen */
    min-width: 100px;
}

button:hover {
    background-color: #0056b3;
}

button.copied {
    background-color: #000;
    color: #fff;
    transition: background 0.3s;
}

p#output {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    min-height: 40px;
    border: 1px solid #ccc;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 10px;
}

/* Responsive Anpassungen */
@media (max-width: 480px) {
    h2 {
        font-size: 1.2em;
    }
    button {
        font-size: 14px;
        padding: 8px 15px;
        flex: 1 1 45%;
    }
    textarea {
        font-size: 14px;
    }
}
/* Sprach Auswahl */

.language-selector {

position: absolute;

top: 15px;

right: 15px;

}

.language-selector button {

background: white;

color: black;

border: 1px solid #ccc;

}

.language-popup {

position: absolute;

right: 0;

background: white;

border: 1px solid #ccc;

border-radius: 5px;

overflow: hidden;

margin-top: 5px;

}

.language-popup div {

padding: 10px;

cursor: pointer;

}

.language-popup div:hover {

background: #eee;

}

.hidden {

display: none;

}


