/* ALB Hanse Verwaltung — shared design tokens */
:root {
  --alb-primary: #1e3a5f;
  --alb-primary-dark: #15293f;
  --alb-accent: #d4b896;
  --alb-bg: #fafaf7;
  --alb-surface: #ffffff;
  --alb-border: #e8e6e0;
  --alb-text: #1a1a1a;
  --alb-text-muted: #6b6b6b;
  --alb-success: #2d6a4f;
  --alb-warn: #b08900;
  --alb-error: #9b2c2c;
}
html, body { background: var(--alb-bg); color: var(--alb-text); font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 14px; }
* { -webkit-font-smoothing: antialiased; }
.alb-card { background: var(--alb-surface); border: 1px solid var(--alb-border); border-radius: 0.5rem; }
.alb-btn-primary { background: var(--alb-primary); color: #fff; border-radius: 0.5rem; font-weight: 500; transition: background .15s; }
.alb-btn-primary:hover { background: var(--alb-primary-dark); }
.alb-btn-secondary { background: #fff; color: var(--alb-primary); border: 1px solid var(--alb-border); border-radius: 0.5rem; font-weight: 500; }
.alb-btn-secondary:hover { background: #f4f2ec; }
.alb-input { background: #fff; border: 1px solid var(--alb-border); border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 14px; }
.alb-input:focus { outline: none; border-color: var(--alb-primary); box-shadow: 0 0 0 3px rgba(30,58,95,0.10); }
.alb-shadow { box-shadow: 0 1px 2px 0 rgba(20, 30, 50, 0.04), 0 1px 1px 0 rgba(20, 30, 50, 0.03); }
.alb-divider { border-color: var(--alb-border); }
.alb-text-muted { color: var(--alb-text-muted); }
.alb-h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; color: var(--alb-text); }
.alb-h2 { font-size: 20px; font-weight: 600; color: var(--alb-text); }
.alb-h3 { font-size: 16px; font-weight: 600; color: var(--alb-text); }
.alb-meta { font-size: 12px; color: var(--alb-text-muted); }
.alb-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 500; }
.alb-pill-success { background: rgba(45,106,79,.10); color: var(--alb-success); }
.alb-pill-warn { background: rgba(176,137,0,.12); color: var(--alb-warn); }
.alb-pill-error { background: rgba(155,44,44,.10); color: var(--alb-error); }
.alb-pill-neutral { background: #f0eee8; color: var(--alb-text-muted); }
.alb-pill-primary { background: rgba(30,58,95,.08); color: var(--alb-primary); }

/* Sidebar nav for portals */
.alb-sidebar { width: 220px; background: var(--alb-primary); color: #d8e2ee; min-height: 100vh; display: flex; flex-direction: column; }
.alb-sidebar a {
  position: relative;
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .85rem;
  margin: 1px 0;
  border-radius: 8px;
  color: #b9c4d4;
  font-size: 14px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.alb-sidebar a > svg,
.alb-sidebar a > [data-lucide] { color: #8fa1bb; transition: color .15s ease; flex-shrink: 0; }
.alb-sidebar a:hover { background: rgba(255,255,255,.05); color: #fff; }
.alb-sidebar a:hover > svg,
.alb-sidebar a:hover > [data-lucide] { color: #e6dcc8; }

.alb-sidebar a.active {
  background:
    linear-gradient(90deg, rgba(212,184,150,.16) 0%, rgba(212,184,150,.04) 55%, rgba(255,255,255,0) 100%),
    rgba(255,255,255,.04);
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 1px 0 0 rgba(0,0,0,.12);
}
.alb-sidebar a.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--alb-accent);
  box-shadow: 0 0 12px 0 rgba(212,184,150,.55);
}
.alb-sidebar a.active > svg,
.alb-sidebar a.active > [data-lucide] { color: var(--alb-accent); }
.alb-topbar { height: 60px; background: #fff; border-bottom: 1px solid var(--alb-border); display: flex; align-items: center; padding: 0 24px; gap: 16px; }

/* Hamburg hero gradient (no AI-slop, just hanseatic horizon) */
.hh-horizon {
  background:
    linear-gradient(180deg, rgba(8,16,30,.78) 0%, rgba(10,22,40,.55) 35%, rgba(15,30,55,.45) 65%, rgba(20,40,70,.55) 100%),
    linear-gradient(180deg, #0d1b30 0%, #1a2f4d 30%, #2a4567 55%, #3a5778 80%, #4d6b8c 100%);
}
.hh-scrim {
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 30%, rgba(0,0,0,0) 60%);
}
.hero-headline { text-shadow: 0 2px 24px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.35); }
.hero-sub { text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hh-bricks {
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 30px);
}

/* Placeholder image (subtle striped) */
.alb-placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(30,58,95,.06) 0 8px, rgba(30,58,95,.02) 8px 16px),
    #eeece5;
  color: var(--alb-text-muted);
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

/* Geschoss-Trenner in Tabellen (z. B. Objekt-Einheiten) */
tbody tr.floor-divider td {
  padding: 11px 16px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--alb-primary);
  background: linear-gradient(
    105deg,
    rgba(30, 58, 95, 0.09) 0%,
    rgba(212, 184, 150, 0.14) 42%,
    #f0ebe2 100%
  );
  border-top: 1px solid var(--alb-border);
  border-bottom: 1px solid rgba(30, 58, 95, 0.12);
  box-shadow: inset 4px 0 0 0 var(--alb-accent);
  vertical-align: middle;
  cursor: default;
  user-select: none;
}
tbody tr.floor-divider:hover td {
  background: linear-gradient(
    105deg,
    rgba(30, 58, 95, 0.1) 0%,
    rgba(212, 184, 150, 0.16) 42%,
    #ede8de 100%
  );
}
tbody tr.floor-divider:first-child td {
  border-top: none;
  box-shadow:
    inset 4px 0 0 0 var(--alb-accent),
    inset 0 1px 0 0 rgba(30, 58, 95, 0.06);
}

/* Summenzeile in Einheiten-Tabellen – Werte nicht umbrechen */
tfoot tr.alb-table-summe td {
  white-space: nowrap;
  vertical-align: middle;
}
tfoot tr.alb-table-summe td.alb-table-summe-label {
  white-space: normal;
}
