:root {
    --hintergrund: #f4f4f4;
    --textfarbe: #222;
    --button-hintergrund: #006400;
    --button-text: #fff;
    --rahmenfarbe: #ccc;
}

body {
    background-color: var(--hintergrund);
    color: var(--textfarbe);
    font-family: sans-serif;
    padding: 2rem;
    max-width: 400px;
    margin: auto;
}

select, button {
    width: 100%;
    padding: 0.75rem;
    margin: 1rem 0;
    border: 1px solid var(--rahmenfarbe);
    border-radius: 5px;
    font-size: 1rem;
}

button {
    background-color: var(--button-hintergrund);
    color: var(--button-text);
    cursor: pointer;
}

button:hover {
    background-color: #228B22;
}

.error {
    color: red;
}

h2 {
    text-align: center;
}
.form-group {
    margin-bottom: 1em;
}
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007b5e;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #005f46;
}

.button.logout {
    background-color: #777;
}

.button.logout:hover {
    background-color: #555;
}
body {
    font-family: sans-serif;
    margin: 0;
    padding: 10px;
    background-color: #f6f6f6;
    color: #333;
    font-size: 16px;
}

h2 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

form, table {
    width: 100%;
    max-width: 100%;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 1em;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    background-color: #007b5e;
    color: #fff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    margin: 5px 0;
}

.button.logout {
    background-color: #777;
}

.button:hover {
    opacity: 0.9;
}

table {
    border-collapse: collapse;
    width: 100%;
}
th, td {
    padding: 4px 2px; /* engerer Abstand */
    border: 1px solid #ccc;
    text-align: center;
    font-size: 0.95em;
}
th.bahn, td.bahn,
th.par, td.par {
    font-size: 1.1em;
    font-weight: bold;
}
th {
    background-color: #eee;
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    th, td {
        font-size: 14px;
        padding: 6px 2px;
    }

    .button {
        width: 100%;
        font-size: 1em;
    }

    input[type="number"] {
        font-size: 1em;
    }
}
.numeric-input {
    width: 50px; /* ❗ feste Breite für 2-stellige Zahl */
    font-size: 1em;
    padding: 6px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .numeric-input {
        width: 50px;
    }
}
.score-par {
    background-color: #fff; /* neutral */
}

.score-under {
    background-color: #d4edda; /* leicht grün */
}

.score-over {
    background-color: #f8d7da; /* leicht rot */
}
.success {
    color: green;
    font-weight: bold;
    margin-bottom: 15px;
}
th.topspiel {
    background-color: #fffacc;
    font-weight: bold;
}

.score-topspiel {
    background-color: #fffbe0;
}
.hc-wert {
    font-size: 1.3em;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}
.hc-gruen {
    background-color: #d8ffd8;
    color: #006600;
}
.hc-grau {
    background-color: #eeeeee;
    color: #333;
}
.hc-rot {
    background-color: #ffd8d8;
    color: #990000;
}
h3 {
    margin-top: 20px;
}

table + h3 {
    margin-top: 30px;
}
