body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: #f3f1eb;
    color: #2a2a2a;
    margin: clamp(10px, 3vw, 40px);
    min-height: 100vh;
}

h1 {
    text-align: center;
    font-weight: 500;
    color: #002147;
    border-bottom: 3px solid #a41623;
    padding-bottom: clamp(6px, 1.2vw, 10px);
    margin-bottom: clamp(15px, 2.5vw, 30px);
    font-size: clamp(22px, 3vw, 32px);
}

.container {
    padding: clamp(15px, 2.5vw, 30px);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

label {
    display: block;
    margin-bottom: clamp(4px, 0.7vw, 8px);
    color: #002147;
    font-size: clamp(14px, 1.5vw, 16px);
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: clamp(7px, 1vw, 10px);
    border: 1px solid #b2b2b2;
    border-radius: 6px;
    background-color: #ffffff;
    box-sizing: border-box;
    font-size: clamp(14px, 1.5vw, 15px);
    font-family: inherit;
}

input[type="text"]:not([name=transl]),
input[type="password"],
input[type="number"],
select {
    margin-bottom: clamp(8px, 1.5vw, 15px);
}

#filterInput {
    max-width: 250px;
}

input:focus, select:focus {
    border-color: #002147;
    box-shadow: 0 0 4px rgba(0, 33, 71, 0.3);
    outline: none;
}

select:focus {
    outline: none;
    border-color: #7b2ff7;
    box-shadow: 0 0 0 3px rgba(123, 47, 247, 0.15);
}

button {
    background-color: #002147;
    color: white !important;
    padding: clamp(7px, 1vw, 10px) clamp(10px, 1.5vw, 15px);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: clamp(14px, 1.5vw, 15px);
    box-sizing: border-box;
    transition: 0.2s;
}

button:hover {
    background-color: #0056b3;
}

#counter {
    font-size: clamp(13px, 1.5vw, 16px);
    font-style: italic;
    color: #555;
    margin-bottom: clamp(8px, 1.5vw, 15px);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: clamp(8px, 1.5vw, 15px);
}

th, td {
    padding: clamp(10px, 1.2vw, 12px) clamp(10px, 1.4vw, 14px);
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: clamp(13px, 1.5vw, 16px);
}

th {
    background-color: #002147;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
}

th:hover {
    background-color: #12345b;
}

tr:nth-child(even) {
    background-color: #f8f8f8;
}

tr.focused {
    background-color: #e8f0fa;
}

td input {
    width: 95%;
    padding: clamp(4px, 0.7vw, 6px);
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: clamp(13px, 1.4vw, 15px);
}

.hidden {
    display: none;
}

.checkmark {
    font-size: clamp(14px, 2vw, 20px);
    color: transparent;
}

.fade-out {
    transition: opacity 1s ease;
    opacity: 0;
}


/* Zusätzliche Anpassungen für sehr kleine Bildschirme */
@media (max-width: 600px) {

    body {
        margin: clamp(8px, 3vw, 20px);
    }

    h1 {
        font-size: clamp(18px, 5vw, 22px);
    }

    .container {
        max-width: 1024px;
        padding: clamp(10px, 3vw, 20px);
    }

    .unit,
    .wordgroup {
        display: none;
    }

    #filterInput {
        margin-right: 1em;
    }

    .german {
        max-width: 100px;
    }
}