/* Global Dark Background */
body {
    font-family: Arial, sans-serif;
    background: #121212;
    margin: 0;
    padding: 0;
    color: #e0e0e0;
}

/* Card */
.container {
    max-width: 400px;
    margin: 60px auto;
    padding: 25px;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

h1 {
    text-align: center;
    color: #ffffff;
}

.input-group {
    margin: 20px 0;
}

label {
    font-weight: bold;
    color: #bdbdbd;
}

input {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2c2c2c;
    color: #ffffff;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: #8ab4f8;
}

/* --- NEUE STYLES FÜR NAVIGATION --- */

/* Landing Page Layout */
.landing-page {
    max-width: 600px; /* Breiter für die Kacheln */
    text-align: center;
}

.landing-page h2 {
    color: #bdbdbd;
    margin-bottom: 30px;
    font-weight: normal;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr; /* Eine Spalte auf kleinen Bildschirmen */
    gap: 15px;
}

/* Navigations-Karten */
.nav-card {
    display: block;
    padding: 20px;
    background: #2c2c2c;
    border-radius: 10px;
    text-decoration: none; /* Link-Unterstreichung entfernen */
    color: inherit;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: left;
}

.nav-card:hover {
    background: #3a3a3a;
    transform: translateY(-3px);
}

.nav-card h3 {
    margin-top: 0;
    color: #8ab4f8; /* Akzentfarbe für den Titel */
}

.nav-card p {
    margin-bottom: 0;
    font-size: 0.9em;
    color: #bdbdbd;
}

/* Zurück-Link */
.back-link {
    display: inline-block;
    color: #8ab4f8;
    text-decoration: none;
    margin-bottom: 15px;
    font-weight: bold;
    transition: color 0.2s;
}

.back-link:hover {
    color: #ffffff;
}
/* --- NEUE STYLES FÜR TASCHENRECHNER --- */

.calculator-container {
    max-width: 320px; /* Kleineres Layout für den Taschenrechner */
}

.calculator {
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    background: #2c2c2c;
}

.display {
    width: 100%;
    height: 60px;
    margin-bottom: 10px;
    padding: 0 10px;
    text-align: right;
    font-size: 2.2em;
    background: #1e1e1e;
    border: none;
    color: #ffffff;
    box-sizing: border-box;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.calculator button {
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.2s;
    color: #ffffff;
    background: #444;
}

.calculator button:hover {
    background: #555;
}

.number, .decimal {
    background: #616161;
}

.number:hover, .decimal:hover {
    background: #757575;
}

.operator, .equal {
    background: #8ab4f8; /* Akzentfarbe */
    color: #1e1e1e;
    font-weight: bold;
}

.operator:hover, .equal:hover {
    background: #a3c3fc;
}

.clear {
    background: #cf6679;
    color: #1e1e1e;
    grid-column: span 2;
}

.clear:hover {
    background: #e57373;
}

.zero {
    grid-column: span 2;
}
/* --- NEUE STYLES FÜR EINHEITENRECHNER --- */

.unit-converter input[type="number"], .unit-converter select {
    box-sizing: border-box;
    /* Anpassung der Breite für die Dropdown-Liste */
}

.unit-converter select {
    height: 40px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 30px; /* Platz für den Pfeil */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22%23e0e0e0%22%20d%3D%22M10%204H2L6%208Z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

#results {
    margin-top: 25px;
    padding: 15px;
    background: #2c2c2c;
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #3a3a3a;
}

.result-item:last-child {
    border-bottom: none;
}

.result-value {
    font-weight: bold;
    color: #ffffff;
    font-size: 1.1em;
}

.result-unit {
    color: #8ab4f8; /* Akzentfarbe */
    font-weight: 500;
}

.new-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 150px;
    z-index: 1000;
}