:root {
  --green: #176f3a;
  --green-dark: #0f4d29;
  --green-soft: #eaf4ed;
  --black: #151515;
  --white: #ffffff;
  --sand: #f7f7f2;
  --muted: #5f625f;
  --line: #dfe4de;
  --danger: #963d2c;
  --shadow: 0 12px 30px rgba(0, 0, 0, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--white);
  color: var(--black);
}

.app-shell {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 14px 14px 96px;
  background: var(--white);
}

.hero {
  padding: 10px 0 16px;
  color: var(--black);
}

.top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.menu-btn, .profile-btn {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  padding: 6px 8px;
}

.profile-btn {
  font-size: 38px;
}

.logo-panel {
  background: var(--white);
  border: 2px solid #ebefea;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.07);
}

.brand-logo-img {
  display: block;
  width: 100%;
  height: auto;
}

.app-title-panel {
  text-align: center;
  padding: 18px 6px 10px;
  border-bottom: 4px solid var(--green);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 950;
  opacity: .85;
}

.eyebrow.green {
  color: var(--green);
  opacity: 1;
}

h1, h2, h3 {
  margin: 4px 0 0;
  line-height: 1.08;
}

h1 {
  font-size: 36px;
  font-weight: 950;
}

h2 {
  font-size: 28px;
  font-weight: 950;
}

h3 {
  font-size: 19px;
  font-weight: 950;
}

.hero-copy {
  margin: 10px auto 0;
  color: var(--muted);
  line-height: 1.35;
  max-width: 390px;
}

.screen { display: none; }
.screen.active { display: block; }

.status-card, .form-card, .search-card, .admin-list-wrap, .welcome-card, .project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 15px;
}

.status-card span, .muted {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.4;
}

.welcome-card {
  margin-top: 10px;
}

.tile-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.tile {
  border: 1px solid var(--line);
  border-radius: 20px;
  min-height: 108px;
  background: var(--white);
  padding: 16px;
  text-align: left;
  box-shadow: var(--shadow);
  color: var(--black);
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  column-gap: 14px;
  cursor: pointer;
}

.tile:active, .primary-btn:active, .ghost-btn:active, .text-btn:active {
  transform: translateY(1px);
}

.tile-icon {
  grid-row: span 2;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 27px;
}

.tile span:not(.tile-icon) {
  font-size: 21px;
  font-weight: 950;
}

.tile small {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-grid .tile {
  min-height: 102px;
}

.admin-entry {
  text-align: center;
  margin-top: 16px;
}

.back-btn {
  margin: 0 0 12px;
  background: var(--black);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
}

.section-title {
  color: var(--black);
  margin-bottom: 14px;
}

.section-title .eyebrow {
  color: var(--green);
}

input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  margin: 6px 0 14px;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23,111,58,.12);
}

textarea { resize: vertical; }

.field-label {
  display: block;
  font-weight: 950;
  font-size: 14px;
  margin-top: 4px;
}

.site-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.site-btn {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 18px;
  padding: 14px;
  text-align: left;
  box-shadow: var(--shadow);
}

.site-btn strong {
  display: block;
  font-size: 16px;
}

.site-btn span {
  color: var(--muted);
  font-size: 13px;
}

.site-btn.selected {
  border-color: var(--green);
  outline: 3px solid rgba(23,111,58,.14);
}

.site-btn-top, .admin-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.selected-site, .mini-info {
  background: var(--green-soft);
  border: 1px solid #cfe2d5;
  padding: 12px;
  border-radius: 16px;
  margin-bottom: 10px;
  font-weight: 950;
}

.mini-info {
  background: #fafafa;
  color: var(--muted);
  font-weight: 850;
  font-size: 14px;
}

.photo-preview {
  width: 100%;
  min-height: 210px;
  background: #f1f3ef;
  border: 1px dashed #c9d2ca;
  border-radius: 20px;
  display: block;
  margin: 6px 0 14px;
}

.hint {
  background: #edf6ef;
  color: var(--green-dark);
  padding: 11px 12px;
  border-radius: 15px;
  margin: 10px 0 13px;
  font-size: 14px;
  line-height: 1.35;
}

.hidden { display: none !important; }

.primary-btn, .ghost-btn {
  width: 100%;
  border-radius: 17px;
  padding: 15px 16px;
  font-weight: 950;
  font-size: 15px;
  cursor: pointer;
}

.primary-btn {
  border: 0;
  background: linear-gradient(180deg, #242424, #050505);
  color: white;
  box-shadow: 0 10px 22px rgba(0,0,0,.20);
}

.ghost-btn {
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  margin-top: 9px;
}

.text-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 950;
  text-decoration: underline;
  padding: 13px 8px 0;
  cursor: pointer;
}

.quick-actions { margin-top: 15px; }

.result {
  color: var(--green);
  font-weight: 950;
  line-height: 1.35;
}

.tools-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 14px;
}

.file-btn { display: block; text-align: center; }
.file-btn input { display: none; }

.admin-list { display: grid; gap: 10px; }

.admin-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px;
  background: white;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.badge {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 950;
  background: var(--green-soft);
  color: var(--green);
  height: fit-content;
  white-space: nowrap;
}

.badge.pruefung {
  background: #fff1c9;
  color: #8a5a00;
}

.badge.pausiert {
  background: #fff1d6;
  color: #765100;
}

.badge.abgeschlossen {
  background: #eeeeee;
  color: #666666;
}

.badge.inaktiv {
  background: #f3dddd;
  color: #85382b;
}

.item-actions {
  display: flex;
  gap: 8px;
  margin-top: 11px;
  flex-wrap: wrap;
}

.item-actions button {
  flex: 1;
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: 13px;
  padding: 10px;
  font-weight: 950;
  min-width: 95px;
}

.item-actions .delete {
  color: var(--danger);
}

.small-gap {
  margin-top: -2px;
  margin-bottom: 14px;
}

.admin-entry .ghost-btn {
  margin-bottom: 8px;
}

.lock-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76px;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 24px rgba(0,0,0,.18);
  pointer-events: none;
}

@media (min-width: 760px) {
  .app-shell { max-width: 980px; }
  main { max-width: 520px; margin: 0 auto; }
}


.employee-admin-wrap {
  border: 2px solid rgba(23,111,58,.18);
}

.employee-form {
  margin-top: 12px;
}

.employee-tools {
  margin-top: -4px;
}

.employee-tools .primary-btn,
.employee-tools .ghost-btn {
  margin-top: 0;
}

.employee-item.inactive {
  opacity: .72;
  background: #fafafa;
}

.employee-list {
  margin-top: 12px;
}


.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.code-row input {
  margin-bottom: 14px;
}

.code-btn {
  width: auto;
  white-space: nowrap;
  padding-left: 14px;
  padding-right: 14px;
  margin-top: 6px;
}

code {
  background: #f1f3ef;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 2px 6px;
  font-weight: 950;
  color: var(--green);
}


.rapport-form .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-btn {
  padding: 10px 12px;
  font-size: 13px;
  border-width: 1px;
  margin-top: -7px;
  margin-bottom: 10px;
}

.rapport-form input[type="file"] {
  border-style: dashed;
  background: #fafafa;
}

@media (max-width: 420px) {
  .rapport-form .two-col {
    grid-template-columns: 1fr;
  }
}


.time-display {
  background: var(--green-soft);
  border: 1px solid #cfe2d5;
  color: var(--green-dark);
  border-radius: 14px;
  padding: 10px 12px;
  margin: -6px 0 14px;
  font-weight: 900;
}

.dictation-tip {
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}


.open-rapport-card {
  background: #fff7e6;
  border: 2px solid #f0d59a;
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: var(--shadow);
  margin-bottom: 15px;
}

.open-rapport-card span {
  display: block;
  color: var(--muted);
  margin: 5px 0 12px;
  font-size: 14px;
}

.open-rapport-card .primary-btn {
  padding: 12px 14px;
}
