/*
 * General Colors
 */
/*
 * Font → Open Sans
 * Weight → Light: 300, Regular: 400, Medium: 500,  SemiBold : 600, Bold: 700, ExtraBold: 800
 */
/*
 * Font → Roboto
 * Weight → ExtraLight: 200, Light: 300, Regular: 400, Medium: 500, Bold: 700, ExtraBold: 800, Black: 900
 */
@import '../fonts/open-sans-v40-latin/open-sans.css';
@import '../fonts/roboto-v48-latin/roboto.css';
@import '../fonts/fontawesome-pro-6.6.0-web/css/all.css';
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 160%;
  background: #f4f5f7;
  color: #1a1d23;
}
.topbar {
  background: #1a1d23;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar .topbar-logo {
  height: 28px;
}
.topbar .topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.topbar .topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.topbar .topbar-user {
  font-size: 0.78rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.topbar .topbar-logout {
  color: #9ca3af;
  font-size: 0.85rem;
  text-decoration: none;
}
.topbar .topbar-logout:hover {
  color: #ccde20;
}
.steps-bar {
  background: #ffffff;
  border: 1px solid #e2e5e9;
  border-radius: 14px;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: flex-start;
  max-width: 760px;
  margin: 1rem auto 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}
.steps-bar .step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  flex-shrink: 0;
}
.steps-bar .step-item.done {
  cursor: pointer;
}
.steps-bar .step-item.done:hover .step-dot {
  opacity: 0.82;
}
.steps-bar .step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e5e9;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.steps-bar .step-item.active .step-dot {
  background: #ccde20;
  color: #1a1d23;
}
.steps-bar .step-item.done .step-dot {
  background: #16a34a;
  color: #fff;
}
.steps-bar .step-item.reachable {
  cursor: pointer;
}
.steps-bar .step-item.reachable .step-dot {
  background: #ffffff;
  border: 2px solid #ccde20;
  color: #1a1d23;
}
.steps-bar .step-item.reachable:hover .step-dot {
  background: #f5fad0;
}
.steps-bar .step-item.reachable .step-label {
  color: #9fac12;
}
.steps-bar .step-item.reachable .step-label .step-name {
  color: #9ca3af;
}
.steps-bar .step-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: #9ca3af;
  text-align: center;
  line-height: 1.35;
}
.steps-bar .step-label .step-name {
  display: block;
  font-weight: 400;
  color: #9ca3af;
}
.steps-bar .step-item.active .step-label {
  color: #1a1d23;
}
.steps-bar .step-item.active .step-label .step-name {
  color: #6b7280;
}
.steps-bar .step-item.done .step-label {
  color: #16a34a;
}
.steps-bar .step-item.done .step-label .step-name {
  color: #6b7280;
}
.steps-bar .step-line {
  flex: 1;
  height: 2px;
  background: #e2e5e9;
  margin-top: 13px;
}
.steps-bar .step-line.done {
  background: #16a34a;
}
.page-content {
  max-width: 760px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e5e9;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.card-header {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
}
.card-sub {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.card-body {
  padding: 1rem 1.25rem;
}
.card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  gap: 0.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  transition: opacity 0.15s;
}
.btn:hover {
  opacity: 0.88;
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.btn-brand {
  background: #ccde20;
  color: #1a1d23;
  flex: 1;
  justify-content: center;
}
.btn-dark {
  background: #1a1d23;
  color: #fff;
  width: 100%;
  justify-content: center;
}
.btn-success {
  background: #16a34a;
  color: #fff;
  flex: 1;
  justify-content: center;
}
.btn-ghost {
  background: transparent;
  color: #6b7280;
  border: 1px solid #e2e5e9;
}
.field-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.field {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: #f4f5f7;
  border: 1.5px solid #e2e5e9;
  border-radius: 8px;
  font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 160%;
  color: #1a1d23;
  margin-bottom: 0.6rem;
  outline: none;
}
.field:focus,
.field.active {
  border-color: #ccde20;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(204, 222, 32, 0.15);
}
.field-row {
  display: flex;
  gap: 0.5rem;
}
.field-row .field-wrap {
  flex: 1;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  background: #f4f5f7;
  color: #6b7280;
  border: 1.5px solid #e2e5e9;
  transition: all 0.15s;
  user-select: none;
}
.chip.active {
  background: #ccde20;
  color: #1a1d23;
  border-color: #ccde20;
}
.chip:hover:not(.active) {
  border-color: #6b7280;
}
.bewirtung-block {
  margin-bottom: 0.75rem;
}
.sub-chips-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.sub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.sub-chip {
  padding: 0.28rem 0.65rem;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  background: #f4f5f7;
  color: #6b7280;
  border: 1.5px solid #e2e5e9;
  transition: all 0.12s;
  user-select: none;
}
.sub-chip.active {
  background: #ccde20;
  color: #1a1d23;
  border-color: #ccde20;
  font-weight: 700;
}
.sub-chip:hover:not(.active) {
  border-color: #6b7280;
}
.slider-block {
  margin-bottom: 0.75rem;
}
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}
.slider-cat {
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.slider-val {
  font-size: 1rem;
  font-weight: 800;
}
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(to right, #ccde20 0%, #ccde20 var(--val, 40%), #e2e5e9 var(--val, 40%), #e2e5e9 100%);
  outline: none;
  cursor: pointer;
  margin: 0.2rem 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #ccde20;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #ccde20;
  cursor: pointer;
}
.slider-minmax {
  display: flex;
  justify-content: space-between;
  margin-top: 0.2rem;
}
.slider-minmax .slider-min,
.slider-minmax .slider-max {
  font-size: 0.72rem;
  color: #9ca3af;
  white-space: nowrap;
}
.slider-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.slider-input-row .amount-input {
  width: 100px;
  text-align: right;
  padding: 0.3rem 0.6rem;
  font-weight: 700;
  font-size: 0.875rem;
  border: 1.5px solid #ccde20;
  border-radius: 6px;
  background: #f4f5f7;
  color: #1a1d23;
  outline: none;
  box-shadow: 0 0 0 3px rgba(204, 222, 32, 0.12);
  flex-shrink: 0;
}
.slider-input-row .or-hint {
  font-size: 0.72rem;
  color: #9ca3af;
  margin: 0;
  text-align: left;
}
.or-hint {
  font-size: 0.72rem;
  color: #9ca3af;
  text-align: right;
  margin-top: 0.2rem;
}
.km-rate-hint {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 0.15rem;
}
.computed-cost {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ccde20;
  min-height: 1.4rem;
  margin-top: 0.35rem;
}
.bewirtung-breakdown {
  margin-top: 0.5rem;
  background: #f4f5f7;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 0.1rem 0;
  color: #6b7280;
}
.breakdown-row.breakdown-total {
  border-top: 1px solid #e2e5e9;
  margin-top: 0.25rem;
  padding-top: 0.28rem;
  font-weight: 700;
  color: #1a1d23;
}
.euro-input-block {
  margin-bottom: 0.75rem;
}
.amount-field-row {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #e2e5e9;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 0.6rem;
}
.amount-field-row:focus-within {
  border-color: #ccde20;
  box-shadow: 0 0 0 3px rgba(204, 222, 32, 0.15);
}
.amount-field-row input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #1a1d23;
  background: transparent;
}
.amount-field-row input:disabled {
  opacity: 0.5;
}
.amount-field-row .amount-suffix {
  padding: 0 0.75rem;
  background: #f4f5f7;
  border-left: 1.5px solid #e2e5e9;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}
.step2-info {
  padding: 0 1.25rem 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}
.position-list {
  border-top: 1px solid #f3f4f6;
  margin-top: 0.5rem;
}
.position-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.82rem;
}
.position-item:last-child {
  border-bottom: none;
}
.position-item .pos-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #f0f9e6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}
.position-item .pos-desc {
  flex: 1;
  font-weight: 500;
}
.position-item .pos-desc small {
  display: block;
  font-size: 0.7rem;
  color: #9ca3af;
}
.position-item .pos-amount {
  font-weight: 700;
}
.position-item .pos-delete {
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
}
.position-item .pos-delete:hover {
  color: #dc2626;
}
.upload-zone {
  border: 2px dashed #e2e5e9;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.15s;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: #ccde20;
  background: #f8fde8;
}
.upload-zone i {
  font-size: 1.8rem;
  color: #9fac12;
  margin-bottom: 0.5rem;
  display: block;
}
.upload-zone .upload-text {
  font-size: 0.82rem;
  color: #6b7280;
}
.upload-zone .upload-text strong {
  color: #1a1d23;
}
.upload-error {
  color: #dc2626;
  font-size: 0.78rem;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.receipts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.receipt-thumb {
  width: 56px;
  height: 72px;
  background: #f0f9e6;
  border: 1px solid #c8dd60;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #6b7280;
  gap: 0.2rem;
  position: relative;
}
.receipt-thumb i {
  font-size: 1.2rem;
  color: #9fac12;
}
.receipt-thumb .receipt-name {
  font-size: 0.55rem;
  text-align: center;
  padding: 0 2px;
  word-break: break-all;
}
.receipt-thumb .receipt-remove {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  background: #dc2626;
  color: #fff;
  border-radius: 50%;
  border: 1.5px solid #fff;
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.summary-table tr {
  border-bottom: 1px solid #f3f4f6;
}
.summary-table tr:last-child {
  border-bottom: none;
}
.summary-table td {
  padding: 0.4rem 0;
}
.summary-table td:first-child {
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.summary-table td:last-child {
  text-align: right;
  font-weight: 600;
}
.total-block {
  background: #f5f9d0;
  border: 2px solid #d4e830;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.total-block .total-label {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.total-block .total-value {
  font-size: 1.2rem;
  font-weight: 800;
}
.signature-pad {
  margin-bottom: 1rem;
}
.signature-pad-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.signature-canvas {
  display: block;
  width: 100%;
  height: 140px;
  border: 1.5px solid #e2e5e9;
  border-radius: 8px;
  background: #ffffff;
  cursor: crosshair;
  touch-action: none;
}
.signature-canvas.has-sig {
  border-color: #ccde20;
}
.sig-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
}
.sig-hint {
  font-size: 0.72rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.btn-sig-clear {
  background: none;
  border: 1px solid #e2e5e9;
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  color: #6b7280;
  cursor: pointer;
}
.btn-sig-clear:hover {
  border-color: #dc2626;
  color: #dc2626;
}
.receipts-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}
.login-page {
  min-height: 100vh;
  background: #1a1d23;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.login-logo {
  height: 52px;
  margin-bottom: 0.3rem;
}
.login-tag {
  font-size: 0.78rem;
  color: #9ca3af;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.login-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.75rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}
.login-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.login-card .login-hint {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}
.input-wrap {
  position: relative;
  margin-bottom: 0.6rem;
}
.input-wrap i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.82rem;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  padding: 0.55rem 0.75rem 0.55rem 2.2rem;
  font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 160%;
  background: #f4f5f7;
  border: 1.5px solid #e2e5e9;
  border-radius: 8px;
  color: #1a1d23;
  outline: none;
}
.input-wrap input:focus {
  border-color: #ccde20;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(204, 222, 32, 0.15);
}
.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 7px;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.domain-note {
  text-align: center;
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
