/* ==========================================================================
   MELISA BROWSER — UNIFIED HUB CORE DESIGN SYSTEM (2026)
   Matches the aesthetic of Ludwigslust Stadtportal Homepage
   Clean, modern, strictly professional — No emojis, no dated gradients.
   ========================================================================== */

:root {
  --hub-bg: #f2eae0;
  --hub-surface: #faf5ed;
  --hub-border: #ded3c4;
  --hub-border-hover: #1e4d38;
  --hub-text-main: #2b221b;
  --hub-text-muted: #6e6054;
  --hub-text-sub: #786b5e;
  --hub-primary: #1e4d38;
  --hub-primary-hover: #153828;
  --hub-primary-soft: #ebf3ee;
  --hub-badge-bg: #eee5d7;
  --hub-badge-text: #523a28;
  --hub-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --hub-shadow-hover: 0 10px 25px -5px rgba(30, 77, 56, 0.15);
  --hub-radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--hub-bg);
  color: var(--hub-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 48px;
  display: block !important;
}

/* ─── Compact Header ─── */
.hub-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.hub-title-block {
  flex: 1 1 320px;
}

.hub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hub-primary);
  background: var(--hub-primary-soft);
  border: 1px solid rgba(30, 77, 56, 0.2);
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 6px;
}

.hub-title {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--hub-text-main);
  line-height: 1.2;
}

.hub-subtitle {
  margin: 0;
  font-size: 13.5px;
  color: var(--hub-text-muted);
  font-weight: 500;
  line-height: 1.45;
}

.hub-admin-card {
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--hub-shadow);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--hub-text-main);
  max-width: 380px;
}

.hub-admin-card strong {
  display: block;
  font-size: 13px;
  color: var(--hub-primary);
  margin-bottom: 3px;
  font-weight: 700;
}

.hub-admin-card a {
  color: var(--hub-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Category Filter Chips ─── */
.hub-chips {
  max-width: 1180px;
  margin: 0 auto 14px;
  padding: 4px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-chips::-webkit-scrollbar {
  display: none;
}

.hub-chip {
  white-space: nowrap;
  padding: 7px 15px;
  border-radius: 9999px;
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--hub-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.hub-chip:hover {
  border-color: var(--hub-primary);
  color: var(--hub-text-main);
}

.hub-chip em {
  background: var(--hub-badge-bg);
  color: var(--hub-primary);
  padding: 1px 7px;
  border-radius: 9999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.hub-chip.is-active {
  background: var(--hub-primary);
  color: #ffffff;
  border-color: var(--hub-primary);
}

.hub-chip.is-active em {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ─── Sections and Grids ─── */
.hub-section {
  margin-bottom: 24px;
}

.hub-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--hub-text-main);
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hub-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* ─── Standard Card ─── */
.hub-card {
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--hub-shadow);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 0 !important;
  position: relative;
  overflow: hidden;
}

.hub-card:hover {
  border-color: var(--hub-border-hover);
  box-shadow: var(--hub-shadow-hover);
  transform: translateY(-2px);
}

.hub-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  background: var(--hub-badge-bg);
  color: var(--hub-badge-text);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.hub-badge.accent {
  background: var(--hub-primary-soft);
  color: var(--hub-primary);
}

.hub-card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hub-text-main);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

/* ─── Information Rows with SVG Icons ─── */
.hub-info-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--hub-text-muted);
  line-height: 1.45;
  flex: 1 1 auto;
}

.hub-info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hub-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--hub-text-sub);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  margin-top: 2px;
}

.hub-info-row span {
  flex: 1 1 auto;
  word-break: break-word;
}

.hub-info-row a {
  color: var(--hub-primary);
  font-weight: 600;
}

/* ─── Action Buttons ─── */
.hub-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hub-border);
}

.hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hub-btn-primary {
  background: var(--hub-primary);
  color: #ffffff !important;
}

.hub-btn-primary:hover {
  background: var(--hub-primary-hover);
}

.hub-btn-secondary {
  background: #eee5d7;
  color: var(--hub-text-main) !important;
  border: 1px solid var(--hub-border);
}

.hub-btn-secondary:hover {
  background: #e4d7c5;
  color: var(--hub-primary) !important;
  border-color: var(--hub-primary);
}

.hub-btn-ghost {
  background: transparent;
  color: var(--hub-text-sub);
  border: 1px dashed var(--hub-border);
  cursor: default;
}

/* Footer note */
.hub-footer {
  max-width: 1180px;
  margin: 32px auto 48px;
  text-align: center;
  font-size: 12px;
  color: var(--hub-text-sub);
  padding: 0 20px;
}

@media (max-width: 640px) {
  .hub-chip {
    font-size: 12px;
    padding: 6px 12px;
  }
  .hub-chips {
    gap: 6px;
    padding: 4px 16px;
  }
}
