/* ============================================================
   MyDwell – Corporate Design CSS
   Farben, Sidebar, Karten, Buttons, Formulare
   ============================================================ */

/* ─── Google Fonts: Montserrat ─── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* ─── CSS-Variablen ─── */
:root {
  --mydwell-orange:  #ffaa4d;
  --mydwell-dark:    #3c3c3b;
  --mydwell-white:   #ffffff;
  --mydwell-bg:      #f5f5f5;
  --mydwell-success: #4caf50;
  --mydwell-danger:  #e53935;
  --mydwell-warning: #ff9800;
  --mydwell-info:    #2196f3;
  --sidebar-width:   260px;
  --sidebar-collapsed: 70px;
  --topbar-height:   60px;
  --border-radius-card: 12px;
  --border-radius-btn:  8px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
  --transition: all 0.25s ease;
}

/* ─── Basis ─── */
* { box-sizing: border-box; }

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--mydwell-bg);
  color: var(--mydwell-dark);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background-color: var(--mydwell-dark);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: var(--transition);
  overflow-x: hidden;
}

/* Logo-Bereich */
.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 80px;
}

.sidebar-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  /* Weißer Hintergrund damit Logo (Orange + Dunkelgrau) auf dunkler Sidebar sichtbar ist */
  background-color: #ffffff;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
}

.sidebar-logo-name {
  color: var(--mydwell-white);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.sidebar-logo-claim {
  color: var(--mydwell-orange);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.nav-section-label {
  color: rgba(255,255,255,0.35);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 22px 4px;
  margin-top: 8px;
}

/* Abschnitts-Label in Content-Bereichen (z.B. Buchhaltung) */
.section-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(60,60,59,.38);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.sidebar-nav .nav-link i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav .nav-link:hover {
  background-color: rgba(255,255,255,0.07);
  color: var(--mydwell-white);
}

.sidebar-nav .nav-link.active {
  background-color: var(--mydwell-orange);
  color: var(--mydwell-dark) !important;
  font-weight: 700;
}

.sidebar-nav .nav-link.active i {
  color: var(--mydwell-dark);
}

/* Badge im Menü (z.B. ungelesene Nachrichten) */
.nav-badge {
  margin-left: auto;
  background-color: var(--mydwell-danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

/* Untermenü */
.sidebar-submenu {
  padding-left: 54px;
}

.sidebar-submenu .nav-link {
  font-size: 0.8rem;
  padding: 8px 22px 8px 0;
  color: rgba(255,255,255,0.55);
}

.sidebar-submenu .nav-link:hover,
.sidebar-submenu .nav-link.active {
  color: var(--mydwell-orange);
  background: none;
}

/* Benutzer-Info unten */
.sidebar-user {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--mydwell-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--mydwell-dark);
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  color: var(--mydwell-white);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem;
}

.sidebar-logout {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}

.sidebar-logout:hover {
  color: var(--mydwell-danger);
}

/* ════════════════════════════════════════
   HAUPTINHALT
   ════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

/* Topbar */
.topbar {
  background-color: var(--mydwell-white);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.topbar-toggle {
  background: none;
  border: none;
  color: var(--mydwell-dark);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: var(--transition);
  display: none; /* nur mobil */
}

.topbar-toggle:hover {
  background-color: var(--mydwell-bg);
}

.topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mydwell-dark);
  margin: 0;
  flex: 1;
}

/* Stadt-Filter Topbar */
.topbar-stadtfilter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-stadtfilter select {
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: var(--border-radius-btn);
  padding: 6px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mydwell-dark);
  background-color: var(--mydwell-white);
  cursor: pointer;
  transition: var(--transition);
  min-width: 160px;
}

.topbar-stadtfilter select:focus {
  outline: none;
  border-color: var(--mydwell-orange);
  box-shadow: 0 0 0 3px rgba(255,170,77,0.15);
}

/* Seiteninhalt */
.page-content {
  flex: 1;
  padding: 24px;
}

/* Breadcrumb */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.8rem;
}

.breadcrumb-bar a {
  color: var(--mydwell-orange);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-bar a:hover { text-decoration: underline; }

.breadcrumb-bar .sep {
  color: rgba(0,0,0,0.3);
}

.breadcrumb-bar .current {
  color: var(--mydwell-dark);
  font-weight: 600;
}

/* ════════════════════════════════════════
   KARTEN
   ════════════════════════════════════════ */
.card {
  background-color: var(--mydwell-white);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  border: none;
  transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-hover); }

.card-header {
  background: none;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--border-radius-card) var(--border-radius-card) 0 0 !important;
}

.card-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
  color: var(--mydwell-dark);
}

.card-body { padding: 20px; }

/* Kennzahlen-Karten */
.stat-card {
  background-color: var(--mydwell-white);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  color: inherit;
}

.stat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.stat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-card-icon.orange  { background-color: rgba(255,170,77,0.15); color: var(--mydwell-orange); }
.stat-card-icon.green   { background-color: rgba(76,175,80,0.12);  color: var(--mydwell-success); }
.stat-card-icon.red     { background-color: rgba(229,57,53,0.1);   color: var(--mydwell-danger); }
.stat-card-icon.blue    { background-color: rgba(255,170,77,0.1);  color: var(--mydwell-orange); }
.stat-card-icon.dark    { background-color: rgba(60,60,59,0.08);   color: var(--mydwell-dark); }

.stat-card-info { flex: 1; }

.stat-card-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--mydwell-dark);
}

.stat-card-label {
  font-size: 0.75rem;
  color: rgba(60,60,59,0.55);
  font-weight: 500;
  margin-top: 3px;
}

.stat-card-sub {
  font-size: 0.72rem;
  margin-top: 6px;
  font-weight: 500;
}

/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */
.btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: var(--border-radius-btn);
  padding: 8px 18px;
  font-size: 0.85rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-primary {
  background-color: var(--mydwell-orange);
  color: var(--mydwell-dark);
}

.btn-primary:hover {
  background-color: #f09a35;
  color: var(--mydwell-dark);
  box-shadow: 0 4px 12px rgba(255,170,77,0.35);
}

.btn-dark {
  background-color: var(--mydwell-dark);
  color: var(--mydwell-white);
}

.btn-dark:hover {
  background-color: #2a2a29;
  color: var(--mydwell-white);
}

.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--mydwell-orange);
  color: var(--mydwell-dark);
}

.btn-outline-primary:hover {
  background-color: var(--mydwell-orange);
  color: var(--mydwell-dark);
}

.btn-success {
  background-color: var(--mydwell-success);
  color: white;
}

.btn-success:hover { background-color: #43a047; color: white; }

.btn-danger {
  background-color: var(--mydwell-danger);
  color: white;
}

.btn-danger:hover { background-color: #c62828; color: white; }

.btn-outline-secondary {
  background: transparent;
  border: 1.5px solid rgba(0,0,0,0.15);
  color: var(--mydwell-dark);
}

.btn-outline-secondary:hover {
  background-color: rgba(0,0,0,0.05);
  color: var(--mydwell-dark);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 0.95rem;
}

.btn-icon {
  padding: 7px 10px;
  line-height: 1;
}

/* ════════════════════════════════════════
   FORMULARE
   ════════════════════════════════════════ */
.form-control,
.form-select {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: var(--border-radius-btn);
  padding: 10px 14px;
  color: var(--mydwell-dark);
  background-color: var(--mydwell-white);
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--mydwell-orange);
  box-shadow: 0 0 0 3px rgba(255,170,77,0.18);
}

.form-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--mydwell-dark);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--mydwell-danger);
  margin-left: 2px;
}

.form-text {
  font-size: 0.75rem;
  color: rgba(60,60,59,0.5);
  margin-top: 4px;
}

/* Geändertes Feld (Mieter bearbeiten) */
.field-changed .form-control,
.field-changed .form-select {
  border-color: var(--mydwell-orange);
  background-color: rgba(255,170,77,0.05);
}

.badge-changed {
  background-color: var(--mydwell-orange);
  color: var(--mydwell-dark);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
}

/* ════════════════════════════════════════
   TABELLEN
   ════════════════════════════════════════ */
.table-mydwell {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.table-mydwell th {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(60,60,59,0.5);
  padding: 12px 16px;
  border-bottom: 2px solid rgba(0,0,0,0.06);
  white-space: nowrap;
}

.table-mydwell td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  vertical-align: middle;
}

.table-mydwell tbody tr {
  transition: var(--transition);
}

.table-mydwell tbody tr:hover {
  background-color: rgba(255,170,77,0.05);
}

.table-mydwell tbody tr:last-child td {
  border-bottom: none;
}

/* Clickbare Zeile */
tr.clickable { cursor: pointer; }

/* ════════════════════════════════════════
   BADGES / STATUS
   ════════════════════════════════════════ */
.badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.badge-success { background-color: rgba(76,175,80,0.12); color: #2e7d32; }
.badge-danger  { background-color: rgba(229,57,53,0.1);  color: #c62828; }
.badge-warning { background-color: rgba(255,152,0,0.12); color: #e65100; }
.badge-info    { background-color: rgba(255,170,77,0.1); color: var(--mydwell-orange); }
.badge-orange  { background-color: rgba(255,170,77,0.15); color: #b36a00; }
.badge-dark    { background-color: rgba(60,60,59,0.08);  color: var(--mydwell-dark); }
.badge-wohnung { background-color: #ffaa4d; color: #3c3c3b; }
.badge-garage  { background-color: rgba(156,39,176,0.1); color: #6a1b9a; }

/* Belegungs-Dot */
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot-green   { background-color: var(--mydwell-success); }
.dot-red     { background-color: var(--mydwell-danger); }
.dot-orange  { background-color: var(--mydwell-warning); }

/* ════════════════════════════════════════
   AVATAR
   ════════════════════════════════════════ */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--mydwell-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mydwell-dark);
  flex-shrink: 0;
}

.avatar-lg {
  width: 60px;
  height: 60px;
  font-size: 1.3rem;
}

.avatar-xl {
  width: 80px;
  height: 80px;
  font-size: 1.8rem;
}

/* ════════════════════════════════════════
   WARNUNGS-PANEL (Dashboard)
   ════════════════════════════════════════ */
.warning-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 500;
}

.warning-item:last-child { margin-bottom: 0; }

.warning-item.rot {
  background-color: rgba(229,57,53,0.08);
  border-left: 3px solid var(--mydwell-danger);
  color: #c62828;
}

.warning-item.orange {
  background-color: rgba(255,152,0,0.08);
  border-left: 3px solid var(--mydwell-warning);
  color: #e65100;
}

.warning-item.blau {
  background-color: rgba(255,170,77,0.08);
  border-left: 3px solid var(--mydwell-orange);
  color: var(--mydwell-orange);
}

.warning-item i {
  font-size: 1rem;
  flex-shrink: 0;
}

.warning-item a {
  color: inherit;
  text-decoration: underline;
}

/* ════════════════════════════════════════
   FORTSCHRITTSBALKEN (Mieter-Formular)
   ════════════════════════════════════════ */
.wizard-steps {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  gap: 0;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.wizard-step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2.5px solid rgba(0,0,0,0.15);
  background-color: var(--mydwell-white);
  color: rgba(0,0,0,0.35);
  z-index: 1;
  transition: var(--transition);
}

.wizard-step.active .wizard-step-num {
  background-color: var(--mydwell-orange);
  border-color: var(--mydwell-orange);
  color: var(--mydwell-dark);
  box-shadow: 0 0 0 4px rgba(255,170,77,0.2);
}

.wizard-step.done .wizard-step-num {
  background-color: var(--mydwell-success);
  border-color: var(--mydwell-success);
  color: white;
}

.wizard-step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(0,0,0,0.35);
  margin-top: 6px;
  text-align: center;
}

.wizard-step.active .wizard-step-label { color: var(--mydwell-dark); }
.wizard-step.done .wizard-step-label   { color: var(--mydwell-success); }

/* Verbindungslinie */
.wizard-step::before {
  content: '';
  position: absolute;
  top: 19px;
  left: calc(50% + 19px);
  right: calc(-50% + 19px);
  height: 2.5px;
  background-color: rgba(0,0,0,0.1);
}

.wizard-step:last-child::before { display: none; }
.wizard-step.done::before { background-color: var(--mydwell-success); }

/* ════════════════════════════════════════
   TABS (Mieter-Detail)
   ════════════════════════════════════════ */
.nav-tabs-mydwell {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid rgba(0,0,0,0.08);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.nav-tabs-mydwell .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(60,60,59,0.55);
  padding: 10px 18px;
  border: none;
  background: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  border-radius: 8px 8px 0 0;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-tabs-mydwell .nav-link:hover {
  color: var(--mydwell-dark);
  background-color: rgba(0,0,0,0.03);
}

.nav-tabs-mydwell .nav-link.active {
  color: var(--mydwell-dark);
  border-bottom-color: var(--mydwell-orange);
  background-color: rgba(255,170,77,0.06);
}

/* ════════════════════════════════════════
   CHAT
   ════════════════════════════════════════ */
.chat-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 75%;
}

.chat-msg.admin { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.mieter { align-self: flex-start; }

.chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-msg.admin .chat-bubble {
  background-color: var(--mydwell-orange);
  color: var(--mydwell-dark);
  border-radius: 16px 4px 16px 16px;
}

.chat-msg.mieter .chat-bubble {
  background-color: rgba(0,0,0,0.06);
  color: var(--mydwell-dark);
  border-radius: 4px 16px 16px 16px;
}

.chat-time {
  font-size: 0.68rem;
  color: rgba(0,0,0,0.35);
  margin-top: 3px;
  text-align: right;
}

.chat-msg.mieter .chat-time { text-align: left; }

/* ════════════════════════════════════════
   MIETER-HEADER
   ════════════════════════════════════════ */
.mieter-header {
  background: var(--mydwell-white);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.mieter-header-row1 {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mieter-header-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.mieter-header-sub {
  font-size: 0.82rem;
  color: rgba(60,60,59,0.55);
  margin-top: 2px;
}

.mieter-header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mieter-kennzahlen {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.mieter-kenn-item {
  text-align: center;
}

.mieter-kenn-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mydwell-dark);
}

.mieter-kenn-label {
  font-size: 0.68rem;
  color: rgba(60,60,59,0.5);
  margin-top: 2px;
}

/* ════════════════════════════════════════
   LOGIN-SEITE
   ════════════════════════════════════════ */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--mydwell-dark);
  padding: 20px;
}

.login-card {
  background: var(--mydwell-white);
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
}

.login-logo {
  width: 80px;
  margin-bottom: 12px;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--mydwell-dark);
}

.login-claim {
  font-size: 0.78rem;
  color: var(--mydwell-orange);
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.login-form .form-control {
  margin-bottom: 14px;
}

.login-btn {
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ════════════════════════════════════════
   ZIMMER-GRID (Wohnungs-Detail)
   ════════════════════════════════════════ */
.zimmer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.zimmer-card {
  background: var(--mydwell-white);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 18px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.zimmer-card:hover { box-shadow: var(--shadow-hover); }

.zimmer-card.belegt { border-color: rgba(229,57,53,0.2); }
.zimmer-card.frei   { border-color: rgba(76,175,80,0.2); }

.zimmer-card-nr {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--mydwell-dark);
}

.zimmer-card-preis {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mydwell-orange);
  margin-top: 4px;
}

.zimmer-card-info {
  font-size: 0.75rem;
  color: rgba(60,60,59,0.5);
  margin-top: 2px;
}

.zimmer-card-mieter {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.07);
  font-size: 0.8rem;
}

/* ════════════════════════════════════════
   SUCHFELD
   ════════════════════════════════════════ */
.search-box {
  position: relative;
}

.search-box .form-control {
  padding-left: 40px;
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0,0,0,0.3);
  font-size: 0.9rem;
}

/* ════════════════════════════════════════
   ALERTS / FLASH-MESSAGES
   ════════════════════════════════════════ */
.alert {
  border-radius: 10px;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background-color: rgba(76,175,80,0.1);  color: #2e7d32; }
.alert-danger  { background-color: rgba(229,57,53,0.1);  color: #c62828; }
.alert-warning { background-color: rgba(255,152,0,0.1);  color: #e65100; }
.alert-info    { background-color: rgba(255,170,77,0.1); color: var(--mydwell-orange); }

/* ════════════════════════════════════════
   LEER-ZUSTAND
   ════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: rgba(60,60,59,0.4);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.empty-state h5 {
  font-weight: 700;
  color: rgba(60,60,59,0.55);
  margin-bottom: 8px;
}

.empty-state p { font-size: 0.875rem; }

/* ════════════════════════════════════════
   RESPONSIVE – Tablet & Mobil
   ════════════════════════════════════════ */
@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  }

  .main-content {
    margin-left: 0;
  }

  .topbar-toggle { display: flex; }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
  }

  .sidebar-overlay.active { display: block; }
}

@media (max-width: 767px) {
  .page-content { padding: 16px; }

  .mieter-kennzahlen {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-card-value { font-size: 1.4rem; }

  .zimmer-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .mieter-header-actions { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  .mieter-kennzahlen {
    grid-template-columns: repeat(2, 1fr);
  }

  .login-card { padding: 32px 24px; }

  .wizard-step-label { display: none; }

  .nav-tabs-mydwell .nav-link {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}

/* ════════════════════════════════════════
   HILFKLASSEN
   ════════════════════════════════════════ */
.text-orange  { color: var(--mydwell-orange) !important; }
.text-mydark  { color: var(--mydwell-dark) !important; }
.bg-orange    { background-color: var(--mydwell-orange) !important; }
.bg-mydark    { background-color: var(--mydwell-dark) !important; }
.fw-700       { font-weight: 700 !important; }
.fw-600       { font-weight: 600 !important; }
.cursor-pointer { cursor: pointer; }

/* Trennlinie */
.divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: 20px 0;
}

/* Scroll-to-top */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background-color: var(--mydwell-dark);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  z-index: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.scroll-top-btn.visible { opacity: 1; }
.scroll-top-btn:hover { background-color: var(--mydwell-orange); color: var(--mydwell-dark); }
