* { box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 1rem;
    background: #f4f5f7;
    color: #1c1e21;
}

h1 { font-size: 1.4rem; margin-top: 0; }
h2 { font-size: 1.1rem; }

.mobil, .desktop {
    max-width: 480px;
    margin: 0 auto;
}

.desktop { max-width: 900px; }

.hinweis {
    background: #eef6ff;
    border: 1px solid #b6d8ff;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
}

.fehler {
    background: #fdecea;
    border: 1px solid #f5b7b1;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    color: #8a1f11;
}

.status { font-weight: 600; }
.status-aktiv { color: #0a7d2b; }

.buttons {
    display: flex;
    gap: 1rem;
    margin: 1.2rem 0;
}

.btn {
    flex: 1;
    display: block;
    text-align: center;
    padding: 1.4rem 0;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}

.btn-start { background: #1a8a3f; }
.btn-ende { background: #b3261e; }

section.saldo {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.positiv { color: #0a7d2b; }
.negativ { color: #b3261e; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

th, td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 0.95rem;
}

tr.ausgenommen { color: #888; font-style: italic; }

.link-korrektur { margin-top: 1.2rem; font-size: 0.9rem; }

.tag-block {
    background: #fff;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tag-block h3 { margin: 0 0 0.4rem 0; }
.tag-block .saldo-zeile { font-size: 0.9rem; color: #444; margin-bottom: 0.5rem; }

.segment-zeile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0;
    font-size: 0.9rem;
}

.segment-zeile form { display: inline; }

.form-inline { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
.form-inline input[type=date], .form-inline input[type=time], .form-inline input[type=text] {
    padding: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button, input[type=submit] {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
}

button.gefahr { background: #b3261e; }
button.sekundaer { background: #6b7280; }

.monatsnav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.monatsnav a { text-decoration: none; }

form.login-form {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 320px;
    margin: 2rem auto;
}

form.login-form input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
