/* Immobilienverwaltungstool – Gabriel Heiter Immobilien GmbH
   Basis-Styles (Design vom Kunden freigegeben). Komponenten nutzen Inline-Styles. */
:root { --accent: #C2185B; --brand: #A21458; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: #F5F6F8; color: #20293A; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .85; }
::placeholder { color: #9AA3AF; }
input, select, button, textarea { font-family: inherit; }
.boot { display: flex; height: 100vh; align-items: center; justify-content: center; color: #9AA3AF; }

.scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll::-webkit-scrollbar-thumb { background: #D5D9DF; border-radius: 8px; }
/* scrollbar-frei (weiterhin scrollbar per Wischen/Trackpad), z.B. Tab-Leisten */
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { width: 0; height: 0; display: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent) !important; }

/* Interaktion */
.nav-link { transition: background .12s, color .12s; }
.prop-card { transition: box-shadow .15s, transform .15s; }
.prop-card:hover { box-shadow: 0 8px 24px rgba(20,30,50,.12); transform: translateY(-2px); }
.row-hover { transition: background .12s; }
.row-hover:hover { background: #FAFBFC; }
.btn { transition: filter .12s, opacity .12s; cursor: pointer; }
.btn:hover { filter: brightness(.96); }
.tab { cursor: pointer; }
.clickable { cursor: pointer; }

/* Badges */
.badge { display: inline-block; padding: 5px 16px; border-radius: 8px; font-size: 12.5px; font-weight: 500; }
.badge-offen { background: #FCE6D5; color: #D98236; }
.badge-erledigt, .badge-abgeschlossen, .badge-bezahlt { background: #DBF3E2; color: #2F9E5A; }

/* Login */
.login-wrap { display: flex; min-height: 100vh; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FBD9E6 0%, #F5F6F8 55%); }
.login-card { width: 380px; max-width: 92vw; background: #fff; border-radius: 20px;
  padding: 36px 34px; box-shadow: 0 12px 40px rgba(20,30,50,.12); }
.login-card h1 { font-size: 20px; margin: 0 0 4px; }
.login-card .sub { color: #8A94A0; font-size: 13.5px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: #5A6472; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #E2E6EB; border-radius: 11px;
  padding: 13px 15px; font-size: 14.5px; background-color: #fff; color: #20293A; }
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A94A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.login-btn { width: 100%; border: none; background: var(--accent); color: #fff; padding: 14px;
  border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.login-err { color: #D9534F; font-size: 13px; margin-bottom: 14px; min-height: 18px; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(20,30,50,.35); display: flex;
  align-items: center; justify-content: center; z-index: 150; }
.modal { background: #fff; border-radius: 18px; width: 480px; max-width: 92vw;
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(20,30,50,.25); }
.modal.wide { width: 640px; }
.modal h2 { margin: 0; font-size: 20px; padding: 24px 28px 6px; }
.modal-body { padding: 8px 28px 4px; overflow-y: auto; flex: 1; }
.modal.confirm-modal h2 { padding-bottom: 12px; }
.modal.confirm-modal p { padding: 0 28px; }
.modal .field input, .modal .field select, .modal .field textarea {
  border-radius: 10px; padding: 11px 13px; font-size: 14px; }
.modal .field select { padding-right: 38px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 28px;
  border-top: 1px solid #F1F2F4; background: #fff; }

/* Seiten-Panel (Drawer, rechts) */
.drawer-overlay { position: fixed; inset: 0; background: rgba(20,30,50,.35); z-index: 100; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 448px; max-width: 94vw;
  background: #fff; box-shadow: -8px 0 28px rgba(20,30,50,.14); z-index: 101;
  display: flex; flex-direction: column; }
.drawer.drawer--in { animation: drawerIn .22s cubic-bezier(.22,.61,.36,1); }
.drawer-body { padding: 0 26px 24px; overflow-y: auto; flex: 1; }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* Druckansicht */
.print-overlay { position: fixed; inset: 0; background: #EEF0F3; z-index: 200; overflow-y: auto; }
.print-toolbar { position: sticky; top: 0; display: flex; gap: 10px; justify-content: flex-end;
  padding: 14px 24px; background: #fff; border-bottom: 1px solid #ECEEF1; }
.print-toolbar .btn-dark { display: flex; align-items: center; gap: 7px; }
.print-area { max-width: 820px; margin: 26px auto; background: #fff; padding: 36px 42px;
  box-shadow: 0 2px 12px rgba(20,30,50,.1); border-radius: 6px; line-height: 1.55; }
.print-area p { margin: 0 0 12px; }
@media print {
  .app-root, .print-toolbar { display: none !important; }
  .print-overlay { position: static; background: #fff; overflow: visible; }
  .print-area { box-shadow: none; margin: 0; max-width: none; padding: 0; border-radius: 0; }
  @page { margin: 16mm; }
}
.btn-dark { background: #20293A; color: #fff; border: none; padding: 12px 22px; border-radius: 11px; font-weight: 600; cursor: pointer; }
.btn-ghost { background: #fff; color: #5A6472; border: 1px solid #E2E6EB; padding: 12px 22px; border-radius: 11px; font-weight: 500; cursor: pointer; }

/* ---- App-Shell (responsiv) -------------------------------------------- */
.app-shell { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 275px; flex: none; background: #fff; border-right: 1px solid #ECEEF1;
  display: flex; flex-direction: column; padding: 24px 16px 16px; overflow-y: auto; }
.main { flex: 1; overflow-y: auto; overflow-x: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 40px 0; }
.content { padding: 12px 40px 60px; }
.sidebar-backdrop { display: none; }
.nav-toggle { display: none; }

/* Tablet-Portrait & schmaler: Sidebar als ausklappbarer Drawer + Hamburger */
@media (max-width: 1000px) {
  .topbar { padding: 16px 20px 0; }
  .content { padding: 12px 20px 56px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 11px; border: 1px solid #E2E6EB;
    background: #fff; color: #20293A; cursor: pointer; flex: none; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 120; width: 272px;
    transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: 0 14px 44px rgba(20,30,50,.2); }
  .app-shell.nav-open .sidebar { transform: translateX(0); }
  .app-shell.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0;
    background: rgba(20,30,50,.4); z-index: 110; }
}
@media (max-width: 560px) {
  .topbar { padding: 14px 14px 0; }
  .content { padding: 10px 14px 48px; }
}
