/* Firmenfarben: hier zentral ändern */
:root {
  --dunkel: #2f2f2f;     /* Anthrazit wie die Logo-Schrift auf dunklem Grund */
  --logo-grau: #bfbfbf;  /* Grau des Logo-Kreises */
  --holz: #8a5a36;       /* Holzton für die Hauptknöpfe */
  --holz-dunkel: #6f4628;
  --hintergrund: #efedea;
  --hell: #f6f1ea;       /* heller Holzton für Hinweiskästen */
}

* {
box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--hintergrund);
  color: var(--dunkel);
  margin: 0;
}

header {
  background: var(--dunkel);
  color: white;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex-wrap: wrap;
  text-align: center;
}

header img {
  height: 44px;
  margin-right: 12px;
}

/* Schrift im Stil des Logos: Großbuchstaben mit Abstand */
header { flex-wrap: nowrap; text-align: left; }
header h3 {
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 15px;
}

.login-logo {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 10px;
}

.container {
background: white;
margin: 20px auto;
padding: 20px;
border-radius: 15px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
width: 95%;
max-width: 400px;
}

.container h2 {
text-align: center;
margin-bottom: 20px;
color: var(--dunkel);
font-weight: 500;
letter-spacing: 1px;
}

input, select, button {
width: 100%;
padding: 12px;
margin: 10px 0;
border-radius: 10px;
border: 1px solid #ccc;
font-size: 16px;
}

button {
background: var(--holz);
border: none;
color: white;
cursor: pointer;
font-size: 16px;
padding: 14px;
}

button:active { background: var(--holz-dunkel); }

input:focus, select:focus {
  outline: none;
  border-color: var(--holz);
  box-shadow: 0 0 0 2px rgba(138, 90, 54, 0.25);
}

.admin-button {
  background: var(--dunkel);
}

/* Gesperrte Knöpfe grau, damit man sieht, welcher gerade gilt */
button:disabled {
  background: #cfc9c2;
  cursor: not-allowed;
  opacity: 0.7;
}

.archived {
  color: #888;
}

/* Admin-Seiten mit Tabellen brauchen etwas mehr Breite */
.container { max-width: 560px; }

.muted { color: #777; font-size: 14px; }

.row { display: flex; gap: 8px; align-items: center; }
.row > * { flex: 1; }
.row > .small-btn { flex: 0 0 auto; }

/* Kleine Knöpfe mindestens 44 px, damit sie mit dem Finger gut zu treffen sind */
.small-btn {
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  margin: 0;
  font-size: 16px;
}
.small-btn.danger { background: #dc3545; }
.small-btn.grey { background: #8a8a8a; }

/* Farbwähler groß genug, damit man die Farbe sieht und trifft */
input[type="color"] {
  height: 48px;
  padding: 4px;
  cursor: pointer;
}

/* Kompakte Listenzeile: Name links, Symbolknöpfe rechts */
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.list-actions { display: flex; gap: 6px; flex-shrink: 0; }

.logout-button { background: #8a8a8a; }

/* Karten in der Zeitkorrektur */
.card {
  border: 1px solid #ddd;
  border-left: 6px solid #ccc;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
}
.card-head { display: flex; align-items: center; margin-bottom: 6px; }
.card-sum { margin-left: auto; font-weight: bold; }
.entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #eee;
}
.entry-time { font-weight: bold; }
.note { font-style: italic; color: #555; font-size: 0.9em; }
.running-time { background: var(--hell); border-left: 5px solid var(--holz); border-radius: 8px; padding: 10px; text-align: center; font-size: 1.1em; }
.entry-actions { display: flex; gap: 6px; }

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  margin: 3px 4px 0 0;
}
.tag-run  { background: #d4edda; color: #155724; }
.tag-warn { background: #fff3cd; color: #856404; }
.tag-info { background: #d1ecf1; color: #0c5460; }

/* Auswertungstabellen */
table.ana { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
table.ana td { padding: 6px 4px; border-bottom: 1px solid #eee; vertical-align: top; }
table.ana td.num { text-align: right; white-space: nowrap; }

ul {
  text-align: left;
}
