/* Globale Stile & Mobile-First Defaults */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.back-button {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 15px 0 0 15px;
    transition: background-color 0.3s, transform 0.2s;
    float: left;
    clear: both;
}

.back-button:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.container {
    background-color: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    text-align: center;
}

h1 {
    color: #0056b3;
    margin-bottom: 5px;
    font-size: 1.8rem;
}

p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.input-section, .conversion-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

input, select {
    padding: 10px 15px;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: 300px;
    background-color: #f8f9fa;
    color: #333;
}

input:focus, select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

#resultValue {
    font-size: 2.2rem;
    color: #28a745;
    margin: 10px 0;
    font-weight: bold;
    word-break: break-all;
}

/* Media Queries für größere Bildschirme */
@media (min-width: 600px) {
    body {
        align-items: center;
        padding: 40px;
    }

    .container {
        padding: 30px 40px;
    }

    h1 {
        font-size: 2.2rem;
    }

    p {
        font-size: 1rem;
    }

    .input-section, .conversion-result {
        flex-direction: row;
        justify-content: center;
    }
    
    .input-section {
        margin-bottom: 40px;
    }

    input, select {
        width: auto;
        min-width: 150px;
    }

    /* Positionierung des Zurück-Buttons auf größeren Bildschirmen */
    .back-button {
        position: absolute;
        top: 30px;
        left: 30px;
        margin: 0;
        float: none;
        clear: none;
    }

    .container {
        margin-top: 0;
    }
}