html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.login-page {
  min-height: 65vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.login-card {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  overflow: hidden;
  max-width: 520px;
  margin: 0 auto;
}

.login-card-header {
  padding: 1.5rem 1.75rem 1.2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border-bottom: 1px solid #e9ecef;
}

.login-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6c757d;
}

.login-title {
  margin: 0.25rem 0 0;
  font-size: 1.5rem;
}

.login-subtitle {
  margin: 0.35rem 0 0;
  color: #6c757d;
}

.login-form .form-control {
  padding: 0.65rem 0.75rem;
}

/* Wartungsbericht-Editor */
.report-areas-heading {
  color: #c0392b;
  margin: 1.5rem 0 0.75rem;
}

.report-section .card-header {
  background-color: #fdf3f2;
}

.report-section-text {
  min-height: 7rem;
  overflow: hidden;
  resize: vertical;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.photo-card {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.5rem;
  background: #f8f9fa;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  background: #e9ecef;
}

.report-attachment {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #f8f9fa;
}

.report-attachment-name {
  flex: 1 1 12rem;
  overflow-wrap: anywhere;
}

.report-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0;
  background: #fff;
  border-top: 1px solid #dee2e6;
}
