:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --danger: #dc2626;
  --warning: #f59e0b;
  --success: #10b981;
  --bg-dark: #0f172a;
  --surface: #ffffff;
  --border: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background-color: #f8fafc;
  color: var(--text-main);
  overflow: hidden;
}

.app-header {
  height: 56px;
  background-color: var(--bg-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.brand i {
  font-size: 1.35rem;
  color: #38bdf8;
  flex-shrink: 0;
}
.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand h1 {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-brand {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-install {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 700;
  border: 1px solid #34d399;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
  animation: pulseInstall 2s infinite ease-in-out;
}

.btn-install:hover {
  background: #059669;
}

@keyframes pulseInstall {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.pwa-install-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 1rem;
}

/* Berechtigungen-UI */
.permission-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.permission-item:last-of-type {
  border-bottom: none;
}

.permission-icon-col {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.permission-text-col {
  flex: 1;
  min-width: 0;
}

.permission-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.permission-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
  margin-bottom: 4px;
}

.permission-status {
  font-size: 0.75rem;
}

.badge {
  background-color: #334155;
  color: #e2e8f0;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.8rem;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-akut { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.badge-normal { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.badge-behoben { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }

.app-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.sidebar {
  width: 380px;
  max-width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  background-color: #f1f5f9;
  z-index: 999;
}

.card {
  background: var(--surface);
  border-radius: 10px;
  padding: 1.15rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.card h2, .card h3 {
  font-size: 1.05rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.hint {
  font-size: 0.825rem;
  color: #0369a1;
  background: #e0f2fe;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.location-status-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.825rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.location-status-box.selected {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.location-status-box.outside {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  color: #92400e;
  animation: shakeBox 0.35s ease-in-out;
}

.location-status-box.error {
  background: #fef2f2;
  border: 2px solid #ef4444;
  color: #991b1b;
  animation: shakeBox 0.35s ease-in-out;
}

.azv-tooltip {
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.92) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  border-radius: 6px;
  padding: 4px 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  pointer-events: none;
}

/* Verhindert, dass die Ausgrauungs-Maske Klicks auf die Karte abfängt */
path.leaflet-interactive[fill-rule="evenodd"],
.azv-mask-path,
path.azv-mask-path {
  pointer-events: none !important;
}

.location-address-wrap {
  border-top: 1px dashed #cbd5e1;
  padding-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.location-address-wrap label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.location-address-wrap input {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  font-size: 15px;
  color: var(--text-main);
}

.location-address-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.location-address-hint {
  color: #64748b;
  font-size: 0.73rem;
  line-height: 1.35;
  display: block;
}

.location-status-box.selected .location-address-wrap {
  border-top-color: #a7f3d0;
}

.location-status-box.selected .location-address-wrap label {
  color: #065f46;
}

.location-status-box.error .location-address-wrap {
  border-top-color: #fca5a5;
}

.location-status-box.error .location-address-wrap label {
  color: #991b1b;
}

@keyframes shakeBox {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.location-box-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.input-with-button {
  display: flex;
  gap: 0.4rem;
}

.input-with-button input {
  flex: 1;
}

.alert-box {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}
.alert-box.success {
  background-color: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}
.alert-box.error {
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}
.alert-box.info {
  background-color: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
}

.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

/* iOS Safari font-size >= 16px verhindert unerwünschtes Auto-Zoom */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 16px;
  color: var(--text-main);
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.coords-group {
  display: flex;
  gap: 0.5rem;
}
.coords-group > div {
  flex: 1;
}

/* Foto-Upload & Vorschaubilder */
.photo-upload-container {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.photo-btn-group {
  display: flex;
  gap: 0.5rem;
}

.photo-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.photo-preview-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(220, 38, 38, 0.85);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.photo-preview-remove:hover {
  background: #dc2626;
}

/* Vollbild Bildbetrachter Modal */
.image-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.image-modal-box {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.image-modal-box img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.image-modal-title {
  color: #f8fafc;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  background: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.image-modal-close {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 1.2rem;
  cursor: pointer;
}
.image-modal-close:hover {
  color: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  min-height: 42px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: 0.15s ease-in-out;
  touch-action: manipulation;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  min-height: 32px;
  font-size: 0.8rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}
.btn-primary:hover, .btn-primary:active {
  background-color: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  border: 1px solid #475569;
  color: #f8fafc;
}
.btn-outline:hover, .btn-outline:active {
  background: #334155;
}

.btn-subtle {
  background: #e2e8f0;
  color: #334155;
}
.btn-subtle:hover, .btn-subtle:active {
  background: #cbd5e1;
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

/* Admin Tabs Navigation */
.admin-tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.admin-tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s ease-in-out;
}

.admin-tab-btn:hover {
  color: var(--text-main);
  background: rgba(2, 132, 199, 0.05);
  border-radius: 6px 6px 0 0;
}

.admin-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: white;
  border-radius: 6px 6px 0 0;
}

.badge-tab-count {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  margin-left: 4px;
}

.admin-tab-btn.active .badge-tab-count {
  background: #0284c7;
  color: white;
}

.reports-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.report-item {
  border: 1px solid var(--border);
  border-left-width: 5px;
  border-radius: 6px;
  padding: 0.75rem;
  cursor: pointer;
  background: #ffffff;
  transition: transform 0.1s, box-shadow 0.1s;
  touch-action: manipulation;
}
.report-item:active {
  background-color: #f8fafc;
}
.report-item.severity-akut { border-left-color: var(--danger); }
.report-item.severity-normal { border-left-color: var(--primary); }
.report-item.severity-behoben { border-left-color: #16a34a; }

.report-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.report-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.report-item .meta {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.4rem;
}

.map-view-container {
  flex: 1;
  position: relative;
  height: 100%;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 350px;
  background-color: #e5e7eb;
  cursor: crosshair;
}

.map-provider-banner {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 900;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  pointer-events: none;
}

/* Custom Marker Pins */
.custom-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
}
.custom-pin i {
  transform: rotate(45deg);
  color: white;
  font-size: 14px;
}
.pin-akut { background-color: #dc2626; }
.pin-normal { background-color: #0284c7; }
.pin-behoben { background-color: #16a34a; }
.pin-selected {
  background-color: #7c3aed;
  border: 2px solid white;
  animation: pulse-pin 1.5s infinite;
}

@keyframes pulse-pin {
  0% { transform: rotate(-45deg) scale(1); }
  50% { transform: rotate(-45deg) scale(1.18); }
  100% { transform: rotate(-45deg) scale(1); }
}

/* Mobile-spezifische UI-Elemente */
.mobile-nav {
  display: none;
}
.mobile-only {
  display: none;
}

/* Leaflet Popup Styling Optimierung */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  padding: 4px;
}

.outside-azv-popup .leaflet-popup-content-wrapper {
  border: 2px solid #ef4444;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.25);
}
.leaflet-popup-content {
  margin: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
}

/* Responsive Ansicht für Smartphones / Tablets (inkl. Android) */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline-flex !important;
  }

  .app-header {
    height: 50px;
    padding: 0 0.75rem;
  }
  .brand h1 {
    font-size: 1rem;
  }
  .btn-text {
    display: none;
  }

  /* App-Container füllt den sichtbaren Bereich zwischen Header und Bottom-Nav voll aus */
  .app-container {
    flex: 1;
    flex-direction: column;
    height: calc(100dvh - 50px - 60px);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
  }

  /* Sidebar auf Mobilgeräten als Overlay über der Karte anzeigen */
  .sidebar {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 0.75rem;
    overflow-y: auto;
    background-color: #f8fafc;
    z-index: 1050;
  }

  .sidebar.active {
    display: flex;
    flex-direction: column;
  }

  /* Tab-Umschaltung innerhalb der Sidebar */
  .sidebar .tab-content {
    display: none;
    margin-bottom: 1rem;
  }
  .sidebar .tab-content.active {
    display: block;
  }

  /* Kartenansicht bleibt auch bei offenem Formular voll bemessen im DOM erhalten */
  .map-view-container {
    display: flex;
    flex: 1;
    height: 100%;
    width: 100%;
    min-height: 100%;
    position: relative;
  }

  .map-view-container.active {
    display: flex;
    flex-direction: column;
  }

  .map-container {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 100%;
  }

  .reports-list {
    max-height: none;
  }

  /* Mobile Bottom Navigation */
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #ffffff;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1200;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  }

  .nav-tab {
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    touch-action: manipulation;
    position: relative;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .nav-tab i {
    font-size: 1.25rem;
  }

  .nav-tab.active {
    color: var(--primary);
    font-weight: 700;
  }

  .icon-wrap {
    position: relative;
    display: inline-block;
  }

  .tab-indicator {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    background-color: #0284c7;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: none;
  }

  .badge-bubble {
    position: absolute;
    top: -4px;
    right: -10px;
    background-color: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
  }
}

/* Modal Popup für akute Havarie-Meldung */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: #ffffff;
  border-radius: 12px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  border: 1px solid var(--border);
  animation: scaleUpModal 0.2s ease-out;
}

.modal-dialog.akut-dialog {
  border: 2px solid #ef4444;
}

@keyframes scaleUpModal {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header.location-header {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-header.akut-header {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.modal-body {
  padding: 1.25rem;
  color: #1e293b;
  font-size: 0.95rem;
  line-height: 1.45;
}

.modal-lead {
  margin-bottom: 1rem;
}

.havarie-phone-box {
  margin: 1.25rem 0;
  text-align: center;
}

.havarie-phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #dc2626;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  transition: all 0.15s ease;
  width: 100%;
}

.havarie-phone-link:hover,
.havarie-phone-link:active {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45);
}

.havarie-phone-link i {
  animation: ringPhone 1.5s infinite ease-in-out;
}

@keyframes ringPhone {
  0% { transform: rotate(0); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-15deg); }
  30% { transform: rotate(12deg); }
  40% { transform: rotate(-12deg); }
  50% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

.modal-note {
  font-size: 0.825rem;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.35;
}

.modal-note i {
  color: #f59e0b;
  margin-top: 2px;
}

.modal-footer {
  padding: 0 1.25rem 1.25rem 1.25rem;
}

/* ==================== ANMELDEBILDSCHIRM (LOGIN) ==================== */
.login-body {
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 1rem;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.login-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}

.login-sub {
  font-size: 0.82rem;
  color: #64748b;
  display: block;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  padding-right: 2.75rem;
}

.btn-toggle-pwd {
  position: absolute;
  right: 0.65rem;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.35rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-toggle-pwd:hover {
  color: #0f172a;
}

.login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.login-btn {
  font-size: 1rem;
  padding: 0.75rem;
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.login-back-link {
  color: #0284c7;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.login-back-link:hover {
  text-decoration: underline;
  color: #0369a1;
}
