:root {
  --bg: #f5f2ee;
  --card: #ffffff;
  --border: #e2ddd8;
  --text: #1a1714;
  --muted: #8a8279;
  --green: #2e5e3a;
  --green-dark: #244b2e;
  --red: #c0392b;
  --amber: #d35400;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { font-size: 17px; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 16px 16px 40px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.45;
}

/* ---- Kopf: Logo + Fahrrad-Nummer ---- */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
header img.logo { height: 92px; width: auto; }
header .brand { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.4rem; color: var(--green); }

.bike-badge {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.bike-badge .label { font-size: 0.85rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.06em; }
.bike-badge .nr { font-family: 'DM Serif Display', Georgia, serif; font-size: 2.4rem; line-height: 1; }

/* ---- Sprachauswahl ---- */
.lang-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.lang-bar button {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
}
.lang-bar button.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* ---- Aktionsauswahl (große Kacheln) ---- */
h2.section { font-size: 1.15rem; margin-bottom: 14px; font-weight: 600; }

.action-list { display: flex; flex-direction: column; gap: 12px; }
.action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, border-color 0.15s ease;
}
.action-card:active { transform: scale(0.98); }
.action-card .ic { font-size: 1.8rem; width: 42px; text-align: center; }
.action-card .txt strong { display: block; font-size: 1.05rem; }
.action-card .txt span { font-size: 0.85rem; color: var(--muted); }
.action-card.register { border-left: 5px solid var(--green); }
.action-card.return   { border-left: 5px solid var(--amber); }
.action-card.damage   { border-left: 5px solid var(--red); }

/* ---- Formular ---- */
form { display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.field input[type=text],
.field input[type=number],
.field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field textarea { min-height: 80px; resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }

/* Zustands-Auswahl */
.cond-options { display: flex; flex-direction: column; gap: 8px; }
.cond-options label {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font-weight: 500; cursor: pointer;
}
.cond-options input[type=radio] { width: 20px; height: 20px; accent-color: var(--green); }
.cond-options label:has(input:checked) { border-color: var(--green); background: #f0f6f1; }

/* Foto */
.photo-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px dashed var(--border); border-radius: 10px;
  padding: 16px; font-size: 1rem; font-family: inherit;
  background: var(--card); color: var(--green); cursor: pointer; width: 100%;
}
.photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photo-preview .thumb { position: relative; }
.photo-preview img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.photo-preview .rm {
  position: absolute; top: -7px; right: -7px; background: var(--red); color: #fff;
  border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 0.9rem; cursor: pointer;
}
input[type=file] { display: none; }

/* Info-Box */
.info {
  background: #fff8e8; border: 1px solid #f0e2b8; border-radius: 10px;
  padding: 13px 15px; font-size: 0.9rem; color: #6b5a2a; display: flex; gap: 10px;
}
.info .ic { font-size: 1.1rem; }

/* Knöpfe */
.btn-primary {
  background: var(--green); color: #fff; border: none; border-radius: 12px;
  padding: 16px; font-size: 1.1rem; font-weight: 600; font-family: inherit;
  cursor: pointer; width: 100%;
}
.btn-primary:disabled { background: #b8c5bb; cursor: not-allowed; }
.btn-back {
  background: none; border: none; color: var(--muted); font-family: inherit;
  font-size: 0.95rem; cursor: pointer; padding: 6px 0; align-self: flex-start;
}
.err-msg { color: var(--red); font-size: 0.9rem; }

/* Erfolgs-/Fehleranzeige */
.result { text-align: center; padding: 40px 20px; }
.result .big { font-size: 4rem; }
.result h2 { font-size: 1.4rem; margin: 16px 0 8px; }
.result p { color: var(--muted); }

.hidden { display: none !important; }
